client

package
v0.0.0-...-90561fa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessToken

type AccessToken struct {
	Token     string `json:"access_token"`
	Scope     string `json:"scope"`
	Type      string `json:"token_type"`
	ExpiresIn int64  `json:"expires_in"`
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewAccountClient

func NewAccountClient(cfg *config.Config) (*Client, error)

NewAccountClient is not currently in use, but I left it here for reference. As we might want to provide cross-workspace functionality in the future.

func (*Client) GetWorkspaceToken

func (ac *Client) GetWorkspaceToken(ctx context.Context, workspace provisioning.Workspace) (*AccessToken, error)

GetWorkspaceToken - retrieves an access token for the specified workspace. With Account level config we might not have all the tokens for workspaces, and we might need to get a workspace token programmatically.

func (*Client) ListWorkspaces

func (ac *Client) ListWorkspaces(ctx context.Context) ([]provisioning.Workspace, error)

type ResourcesClient

type ResourcesClient interface {
	List(ctx context.Context) ([]store.Workspace, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL