http

package
v0.124.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 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 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) GetLogs

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

func (*ImageRunner) GetStatus

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

func (*ImageRunner) ListArtifacts

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

func (*ImageRunner) StopRun

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

func (*ImageRunner) TriggerRun

Jump to

Keyboard shortcuts

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