s3

package
v1.6.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsePublishedKey

func ParsePublishedKey(key string, execution *models.Execution, archive bool) string

Types

type Publisher

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

func NewPublisher

func NewPublisher(params PublisherParams) *Publisher

func (*Publisher) IsInstalled

func (publisher *Publisher) IsInstalled(_ context.Context) (bool, error)

IsInstalled returns true if the S3 client is installed.

func (*Publisher) PublishResult

func (publisher *Publisher) PublishResult(
	ctx context.Context,
	execution *models.Execution,
	resultPath string,
) (models.SpecConfig, error)

func (*Publisher) ValidateJob

func (publisher *Publisher) ValidateJob(_ context.Context, j models.Job) error

ValidateJob validates the job spec and returns an error if the job is invalid.

type PublisherParams

type PublisherParams struct {
	LocalDir       string
	ClientProvider *s3helper.ClientProvider
}

Jump to

Keyboard shortcuts

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