Documentation
¶
Index ¶
- type API
- type Client
- func (c *Client) AwaitAllocatedJobs(ctx context.Context, agentID resource.TfeID) ([]*runner.Job, error)
- func (c *Client) AwaitJobSignal(ctx context.Context, jobID resource.TfeID) func() (runner.JobSignal, error)
- func (c *Client) CreateAgentToken(ctx context.Context, poolID resource.TfeID, ...) (*runner.AgentToken, []byte, error)
- func (c *Client) FinishJob(ctx context.Context, jobID resource.TfeID, opts runner.FinishJobOptions) error
- func (c *Client) GenerateDynamicCredentialsToken(ctx context.Context, jobID resource.TfeID, audience string) ([]byte, error)
- func (c *Client) GetJob(ctx context.Context, jobID resource.TfeID) (*runner.Job, error)
- func (c *Client) Register(ctx context.Context, opts runner.RegisterRunnerOptions) (*runner.RunnerMeta, error)
- func (c *Client) StartJob(ctx context.Context, jobID resource.TfeID) ([]byte, error)
- func (c *Client) UpdateStatus(ctx context.Context, agentID resource.TfeID, status runner.RunnerStatus) error
- type RunnerClient
- type TFEAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
func (*API) AddHandlers ¶
type Client ¶
client accesses the service endpoints via RPC.
func (*Client) AwaitAllocatedJobs ¶
func (*Client) AwaitJobSignal ¶
func (*Client) CreateAgentToken ¶
func (*Client) GenerateDynamicCredentialsToken ¶
func (*Client) Register ¶
func (c *Client) Register(ctx context.Context, opts runner.RegisterRunnerOptions) (*runner.RunnerMeta, error)
func (*Client) UpdateStatus ¶
type RunnerClient ¶
type RunnerClient = 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.