Documentation ¶
Index ¶
- type Client
- func (c *Client) DownloadArtifact(ctx context.Context, id, name, dir string) error
- func (c *Client) GetLogs(ctx context.Context, id string) (string, error)
- func (c *Client) GetStatus(ctx context.Context, id string) (imagerunner.Runner, error)
- func (c *Client) ListArtifacts(ctx context.Context, id string) ([]string, error)
- func (c *Client) StopRun(ctx context.Context, runID string) error
- func (c *Client) TriggerRun(ctx context.Context, spec imagerunner.RunnerSpec) (imagerunner.Runner, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { HTTPClient *http.Client URL string Credentials credentials.Credentials }
func New ¶
func New(url string, creds credentials.Credentials, timeout time.Duration) Client
func (*Client) DownloadArtifact ¶ added in v0.122.0
func (*Client) ListArtifacts ¶ added in v0.122.0
func (*Client) TriggerRun ¶
func (c *Client) TriggerRun(ctx context.Context, spec imagerunner.RunnerSpec) (imagerunner.Runner, error)
Click to show internal directories.
Click to hide internal directories.