uploaders

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	S3BucketParamName         = "BUCKET"
	S3FolderTemplateParamName = "FOLDER_TEMPLATE"
)
View Source
const (
	WebhookURLParamName    = "URL"
	WebhookMethodParamName = "METHOD"
)

Variables

View Source
var AllUploaders = []Uploader{
	s3{},
	webhook{},
}

Functions

func GenerateObjects added in v0.1.2

func GenerateObjects(image string) []*v1beta1.Uploader

Types

type Uploader

type Uploader interface {
	GetParameters() []v1beta1.ParameterDefinition
	GetName() string
	Upload(
		ctx context.Context,
		metadata input.PipelineMetadata,
		params map[string]string,
		files []string,
	) error
	GetEnvSecrets() []definitions.EnvironmentSecret
	GetFileSecrets() []definitions.FileSecret
	EnvironmentVariables() []corev1.EnvVar
}

Jump to

Keyboard shortcuts

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