localdirectory

package
v1.5.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpecConfig added in v1.4.0

func NewSpecConfig(source string, rw bool) (*models.SpecConfig, error)

Types

type AllowedPath added in v1.0.1

type AllowedPath struct {
	Path      string
	ReadWrite bool
}

func ParseAllowPath added in v1.0.1

func ParseAllowPath(path string) AllowedPath

func ParseAllowPaths added in v1.0.1

func ParseAllowPaths(paths []string) []AllowedPath

func (AllowedPath) String added in v1.0.1

func (obj AllowedPath) String() string

string representation of the object.

type Source added in v1.0.4

type Source struct {
	SourcePath string
	ReadWrite  bool
}

func DecodeSpec added in v1.0.4

func DecodeSpec(spec *models.SpecConfig) (Source, error)

func (Source) ToMap added in v1.0.4

func (c Source) ToMap() map[string]interface{}

type StorageProvider

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

func NewStorageProvider added in v0.3.29

func NewStorageProvider(params StorageProviderParams) (*StorageProvider, error)

func (*StorageProvider) CleanupStorage

func (driver *StorageProvider) CleanupStorage(_ context.Context, _ models.InputSource, _ storage.StorageVolume) error

func (*StorageProvider) GetVolumeSize

func (driver *StorageProvider) GetVolumeSize(_ context.Context, volume models.InputSource) (uint64, error)

func (*StorageProvider) HasStorageLocally

func (driver *StorageProvider) HasStorageLocally(_ context.Context, volume models.InputSource) (bool, error)

func (*StorageProvider) IsInstalled

func (driver *StorageProvider) IsInstalled(context.Context) (bool, error)

func (*StorageProvider) PrepareStorage

func (driver *StorageProvider) PrepareStorage(
	_ context.Context,
	_ string,
	storageSpec models.InputSource,
) (storage.StorageVolume, error)

func (*StorageProvider) Upload

type StorageProviderParams added in v0.3.29

type StorageProviderParams struct {
	AllowedPaths []AllowedPath
}

Jump to

Keyboard shortcuts

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