Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

Design the client package API #313

@noahingh

Description

@noahingh

I will collect APIs under the api pkg to let users reference them when interacting with the server. I'll design the package to let users can easily reference it.

Example

func main() {
	ctx := context.Background()
	ts := oauth2.StaticTokenSource(
		&oauth2.Token{AccessToken: "... your access token ..."},
	)
        tc := oauth2.NewClient(ctx, ts)
        
        c := api.NewClient(...)
        ds, _ := c.Search.ListDeployments(ctx, ...)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: cliThis issue or pull request is related to the features of CLIenhancementNew feature or request

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions