http

package
v3.5.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClientWithCertificate added in v3.4.0

func CreateClientWithCertificate(clientCert, clientKey []byte) (*http.Client, error)

func CreateOauth2Client added in v3.4.0

func CreateOauth2Client(clientID, clientSecret, tokenURL string, scopes []string, endpointParams []wfv1.OAuth2EndpointParam) *http.Client

Types

type ArtifactDriver added in v3.1.0

type ArtifactDriver struct {
	Username string
	Password string
	Client   *http.Client
}

ArtifactDriver is the artifact driver for artifactory and http URLs

func (*ArtifactDriver) Delete added in v3.4.0

func (h *ArtifactDriver) Delete(s *wfv1.Artifact) error

Delete is unsupported for the http artifacts

func (*ArtifactDriver) IsDirectory added in v3.4.0

func (h *ArtifactDriver) IsDirectory(artifact *wfv1.Artifact) (bool, error)

func (*ArtifactDriver) ListObjects added in v3.1.0

func (h *ArtifactDriver) ListObjects(artifact *wfv1.Artifact) ([]string, error)

func (*ArtifactDriver) Load added in v3.1.0

func (h *ArtifactDriver) Load(inputArtifact *wfv1.Artifact, path string) error

Load reads the artifact from the HTTP URL

func (*ArtifactDriver) OpenStream added in v3.4.0

func (h *ArtifactDriver) OpenStream(inputArtifact *wfv1.Artifact) (io.ReadCloser, error)

func (*ArtifactDriver) Save added in v3.1.0

func (h *ArtifactDriver) Save(path string, outputArtifact *wfv1.Artifact) error

Save writes the artifact to the URL

Jump to

Keyboard shortcuts

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