Documentation
¶
Index ¶
- func NewTFEAPI(client tfeClient, responder *tfeapi.Responder, signer *surl.Signer) *tfe
- type API
- type Client
- func (c *Client) CreateStateVersion(ctx context.Context, opts state.CreateStateVersionOptions) (*state.Version, error)
- func (c *Client) DeleteStateVersion(ctx context.Context, svID resource.TfeID) error
- func (c *Client) DownloadCurrentState(ctx context.Context, workspaceID resource.TfeID) ([]byte, error)
- func (c *Client) DownloadState(ctx context.Context, svID resource.TfeID) ([]byte, error)
- func (c *Client) GetCurrentStateVersion(ctx context.Context, workspaceID resource.TfeID) (*state.Version, error)
- func (c *Client) ListStateVersions(ctx context.Context, workspaceID resource.TfeID, opts resource.PageOptions) (*resource.Page[*state.Version], error)
- func (c *Client) RollbackStateVersion(ctx context.Context, svID resource.TfeID) (*state.Version, error)
- type StateClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
func (*API) AddHandlers ¶
type Client ¶
func (*Client) CreateStateVersion ¶
func (*Client) DeleteStateVersion ¶
func (*Client) DownloadCurrentState ¶
func (*Client) DownloadState ¶
func (*Client) GetCurrentStateVersion ¶
func (*Client) ListStateVersions ¶
type StateClient ¶
type StateClient = 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.