api

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTFEAPI

func NewTFEAPI(
	client tfeClient,
	authorizer *authz.Authorizer,
	signer tfeapi.Signer,
	responder *tfeapi.Responder,
) *tfe

Types

type API

type API struct {
	*tfeapi.Responder
	Client apiClient
}

func (*API) AddHandlers

func (a *API) AddHandlers(r *mux.Router)

type Client

type Client struct {
	*otfhttp.Client
}

func (*Client) GetLockFile

func (c *Client) GetLockFile(ctx context.Context, runID resource.TfeID) ([]byte, error)

func (*Client) GetRun

func (c *Client) GetRun(ctx context.Context, runID resource.TfeID) (*run.Run, error)

func (*Client) GetRunPlanFile

func (c *Client) GetRunPlanFile(ctx context.Context, runID resource.TfeID, format run.PlanFormat) ([]byte, error)

func (*Client) ListRuns

func (c *Client) ListRuns(ctx context.Context, opts run.ListOptions) (*resource.Page[*run.Run], error)

func (*Client) PutChunk

func (c *Client) PutChunk(ctx context.Context, opts run.PutChunkOptions) error

func (*Client) UploadLockFile

func (c *Client) UploadLockFile(ctx context.Context, runID resource.TfeID, lockfile []byte) error

func (*Client) UploadRunPlanFile

func (c *Client) UploadRunPlanFile(ctx context.Context, runID resource.TfeID, plan []byte, format run.PlanFormat) error

type RunClient

type RunClient = Client

Alias client to permit embedding it with other clients in a struct without a name clash.

Jump to

Keyboard shortcuts

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