imgexec

package
v0.123.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 (c *Client) DownloadArtifact(ctx context.Context, id, name, dir string) error

func (*Client) GetLogs added in v0.122.0

func (c *Client) GetLogs(ctx context.Context, id string) (string, error)

func (*Client) GetStatus

func (c *Client) GetStatus(ctx context.Context, id string) (imagerunner.Runner, error)

func (*Client) ListArtifacts added in v0.122.0

func (c *Client) ListArtifacts(ctx context.Context, id string) ([]string, error)

func (*Client) StopRun

func (c *Client) StopRun(ctx context.Context, runID string) error

func (*Client) TriggerRun

func (c *Client) TriggerRun(ctx context.Context, spec imagerunner.RunnerSpec) (imagerunner.Runner, error)

Jump to

Keyboard shortcuts

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