fs

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DevnetEnvArtifactNamePrefix = "devnet-descriptor-"
	DevnetEnvArtifactPath       = "env.json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

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

func (*Artifact) Download added in v1.12.0

func (a *Artifact) Download(path string) error

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 DevnetFS added in v1.13.2

type DevnetFS struct {
	*EnclaveFS
}

func NewDevnetFS added in v1.13.2

func NewDevnetFS(fs *EnclaveFS) *DevnetFS

func (*DevnetFS) GetDevnetDescriptor added in v1.13.2

func (fs *DevnetFS) GetDevnetDescriptor(ctx context.Context, opts ...DevnetFSDescriptorOption) (*descriptors.DevnetEnvironment, error)

func (*DevnetFS) UploadDevnetDescriptor added in v1.13.2

func (fs *DevnetFS) UploadDevnetDescriptor(ctx context.Context, env *descriptors.DevnetEnvironment, opts ...DevnetFSDescriptorOption) error

type DevnetFSDescriptorOption added in v1.13.2

type DevnetFSDescriptorOption func(*options)

func WithArtifactName added in v1.13.2

func WithArtifactName(name string) DevnetFSDescriptorOption

func WithArtifactPath added in v1.13.2

func WithArtifactPath(path string) DevnetFSDescriptorOption

type EnclaveContextIface

type EnclaveContextIface interface {
	GetAllFilesArtifactNamesAndUuids(ctx context.Context) ([]*kurtosis_core_rpc_api_bindings.FilesArtifactNameAndUuid, error)
	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, opts ...EnclaveFSOption) (*EnclaveFS, error)

func (*EnclaveFS) GetAllArtifactNames added in v1.12.0

func (fs *EnclaveFS) GetAllArtifactNames(ctx context.Context) ([]string, error)

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) (retErr error)

type EnclaveFSOption added in v1.13.0

type EnclaveFSOption func(*EnclaveFS)

func WithEnclaveCtx added in v1.13.0

func WithEnclaveCtx(enclaveCtx EnclaveContextIface) EnclaveFSOption

func WithFs added in v1.13.0

func WithFs(fs afero.Fs) EnclaveFSOption

Jump to

Keyboard shortcuts

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