azure

package
v3.5.12 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteBlob

func DeleteBlob(containerClient *container.Client, blobName string, allowNonExistent bool) error

func DownloadFile

func DownloadFile(containerClient *container.Client, blobName, path string) error

DownloadFile downloads a single file from Azure Blob Storage

func PutDirectory

func PutDirectory(containerClient *container.Client, blobName, path string) error

PutDirectory uploads all files in a directory to Azure Blob Storage

func PutFile

func PutFile(containerClient *container.Client, blobName, path string) error

PutFile uploads a file to Azure Blob Storage

Types

type ArtifactDriver

type ArtifactDriver struct {
	AccountKey  string
	Container   string
	Endpoint    string
	UseSDKCreds bool
}

ArtifactDriver is a driver for Azure Blob Storage

func (*ArtifactDriver) Delete

func (azblobDriver *ArtifactDriver) Delete(artifact *wfv1.Artifact) error

Delete deletes an artifact from a Azure Blob Storage

func (*ArtifactDriver) DownloadDirectory

func (azblobDriver *ArtifactDriver) DownloadDirectory(containerClient *container.Client, artifact *wfv1.Artifact, path string) error

DownloadDirectory downloads all of the files starting with the named blob prefix into a local directory.

func (*ArtifactDriver) IsDirectory

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

IsDirectory indicates whether or not the artifact represents a directory or a single file.

func (*ArtifactDriver) ListObjects

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

ListObjects lists the files in Azure Blob Storage

func (*ArtifactDriver) Load

func (azblobDriver *ArtifactDriver) Load(artifact *wfv1.Artifact, path string) error

Load downloads artifacts from Azure Blob Storage

func (*ArtifactDriver) OpenStream

func (azblobDriver *ArtifactDriver) OpenStream(artifact *wfv1.Artifact) (io.ReadCloser, error)

OpenStream opens a stream reader for an artifact from Azure Blob Storage

func (*ArtifactDriver) Save

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

Save saves an artifact to Azure Blob Storage

Jump to

Keyboard shortcuts

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