outputlocation

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSandboxMountPathNotFound = errors.New("failed to find sandbox mount path")
)

Functions

This section is empty.

Types

type BlobUpload

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

func (*BlobUpload) Enabled

func (bu *BlobUpload) Enabled() bool

func (*BlobUpload) Name

func (bu *BlobUpload) Name() string

func (*BlobUpload) Output

func (bu *BlobUpload) Output(srcFilePath string) error

type HostPath

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

func (*HostPath) Enabled

func (hp *HostPath) Enabled() bool

func (*HostPath) Name

func (hp *HostPath) Name() string

func (*HostPath) Output

func (hp *HostPath) Output(srcFilePath string) error

type Location

type Location interface {
	// Name returns the name of the output location.
	Name() string
	// Enabled checks whether a output location is enabled.
	Enabled() bool
	// Output outputs source file to the location specified by the users.
	Output(srcFilePath string) error
}

func NewBlobUpload

func NewBlobUpload(logger *log.ZapLogger) Location

func NewHostPath

func NewHostPath(logger *log.ZapLogger) Location

func NewPersistentVolumeClaim

func NewPersistentVolumeClaim(logger *log.ZapLogger) Location

func NewS3Upload added in v0.0.10

func NewS3Upload(logger *log.ZapLogger) Location

type PersistentVolumeClaim

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

func (*PersistentVolumeClaim) Enabled

func (pvc *PersistentVolumeClaim) Enabled() bool

func (*PersistentVolumeClaim) Name

func (pvc *PersistentVolumeClaim) Name() string

func (*PersistentVolumeClaim) Output

func (pvc *PersistentVolumeClaim) Output(srcFilePath string) error

type S3Upload added in v0.0.10

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

func (*S3Upload) Enabled added in v0.0.10

func (su *S3Upload) Enabled() bool

func (*S3Upload) Name added in v0.0.10

func (su *S3Upload) Name() string

func (*S3Upload) Output added in v0.0.10

func (su *S3Upload) Output(srcFilePath string) error

Directories

Path Synopsis
managed package provides the functionality to manage the output locations for the Capture.
managed package provides the functionality to manage the output locations for the Capture.

Jump to

Keyboard shortcuts

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