fs

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

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

func (*Artifact) ExtractFiles

func (a *Artifact) ExtractFiles(writers ...*ArtifactFileWriter) error

type ArtifactFileReader

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

func NewArtifactFileReader

func NewArtifactFileReader(path string, reader io.Reader) *ArtifactFileReader

type ArtifactFileWriter

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

func NewArtifactFileWriter

func NewArtifactFileWriter(path string, writer io.Writer) *ArtifactFileWriter

type EnclaveContextIface

type EnclaveContextIface interface {
	DownloadFilesArtifact(ctx context.Context, name string) ([]byte, error)
	UploadFiles(pathToUpload string, artifactName string) (services.FilesArtifactUUID, services.FileArtifactName, error)
}

EnclaveContextIface abstracts the EnclaveContext for testing

type EnclaveFS

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

func NewEnclaveFS

func NewEnclaveFS(ctx context.Context, enclave string) (*EnclaveFS, error)

func NewEnclaveFSWithContext

func NewEnclaveFSWithContext(ctx EnclaveContextIface) *EnclaveFS

NewEnclaveFSWithContext creates an EnclaveFS with a provided context (useful for testing)

func (*EnclaveFS) GetArtifact

func (fs *EnclaveFS) GetArtifact(ctx context.Context, name string) (*Artifact, error)

func (*EnclaveFS) PutArtifact

func (fs *EnclaveFS) PutArtifact(ctx context.Context, name string, readers ...*ArtifactFileReader) error

Jump to

Keyboard shortcuts

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