Documentation
¶
Index ¶
- func NewTFEAPI(client tfeClient, responder *tfeapi.Responder, authorizer *authz.Authorizer) *tfe
- type API
- type Client
- func (c *Client) GetWorkspace(ctx context.Context, workspaceID resource.TfeID) (*workspace.Workspace, error)
- func (c *Client) GetWorkspaceByName(ctx context.Context, organization organization.Name, name string) (*workspace.Workspace, error)
- func (c *Client) ListWorkspaces(ctx context.Context, opts workspace.ListOptions) (*resource.Page[*workspace.Workspace], error)
- func (c *Client) Lock(ctx context.Context, workspaceID resource.TfeID, runID *resource.TfeID) (*workspace.Workspace, error)
- func (c *Client) Unlock(ctx context.Context, workspaceID resource.TfeID, runID *resource.TfeID, ...) (*workspace.Workspace, error)
- func (c *Client) UpdateWorkspace(ctx context.Context, workspaceID resource.TfeID, opts workspace.UpdateOptions) (*workspace.Workspace, error)
- type WorkspaceClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
func (*API) AddHandlers ¶
type Client ¶
func (*Client) GetWorkspace ¶
func (*Client) GetWorkspaceByName ¶
func (*Client) ListWorkspaces ¶
type WorkspaceClient ¶
type WorkspaceClient = Client
Alias client to permit embedding it with other clients in a struct without a name clash.
Click to show internal directories.
Click to hide internal directories.