artifactservice

package
v0.0.0-...-a3532f1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactServiceClient

type ArtifactServiceClient interface {
	UploadArtifact(ctx context.Context, artifact artifact.Artifact) error
	DownloadArtifact(ctx context.Context, artifactName string) (artifact.Artifact, error)
	DeleteArtifact(ctx context.Context, artifactName string) error
}

ArtifactServiceClient represents the methods required for artifact management.

func New

func New(opts Options) (ArtifactServiceClient, error)

New returns a new instance of an ArtifactServiceClient.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements the ArtifactServiceClient interface.

func (*Client) DeleteArtifact

func (c *Client) DeleteArtifact(ctx context.Context, artifactName string) error

DeleteArtifact deletes an artifact from storage.

func (*Client) DownloadArtifact

func (c *Client) DownloadArtifact(ctx context.Context, artifactName string) (artifact.Artifact, error)

DownloadArtifact downloads an artifact from storage.

func (*Client) UploadArtifact

func (c *Client) UploadArtifact(ctx context.Context, artifact artifact.Artifact) error

UploadArtifact uploads an artifact to storage.

type Options

type Options struct {
	Store      types.Storage
	WorkingDir string
}

Options holds the configuration for the artifact service.

Jump to

Keyboard shortcuts

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