Documentation ¶
Index ¶
- type ImageRunner
- func (c *ImageRunner) DownloadArtifact(ctx context.Context, id, name, dir string) error
- func (c *ImageRunner) GetLogs(ctx context.Context, id string) (string, error)
- func (c *ImageRunner) GetStatus(ctx context.Context, id string) (imagerunner.Runner, error)
- func (c *ImageRunner) ListArtifacts(ctx context.Context, id string) ([]string, error)
- func (c *ImageRunner) StopRun(ctx context.Context, runID string) error
- func (c *ImageRunner) 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 ImageRunner ¶
type ImageRunner struct { HTTPClient *http.Client URL string Credentials credentials.Credentials }
func NewImageRunner ¶
func NewImageRunner(url string, creds credentials.Credentials, timeout time.Duration) ImageRunner
func (*ImageRunner) DownloadArtifact ¶
func (c *ImageRunner) DownloadArtifact(ctx context.Context, id, name, dir string) error
func (*ImageRunner) GetStatus ¶
func (c *ImageRunner) GetStatus(ctx context.Context, id string) (imagerunner.Runner, error)
func (*ImageRunner) ListArtifacts ¶
func (*ImageRunner) StopRun ¶
func (c *ImageRunner) StopRun(ctx context.Context, runID string) error
func (*ImageRunner) TriggerRun ¶
func (c *ImageRunner) TriggerRun(ctx context.Context, spec imagerunner.RunnerSpec) (imagerunner.Runner, error)
Click to show internal directories.
Click to hide internal directories.