storage

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandExecuter

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

func NewCommandExecuter

func NewCommandExecuter(s Storager) *CommandExecuter

func (*CommandExecuter) Execute

func (sty *CommandExecuter) Execute(cmd string, nonFlagArgs []string) error

func (*CommandExecuter) SetStorager

func (sty *CommandExecuter) SetStorager(s Storager)

type NotExistsError

type NotExistsError struct{}

func (*NotExistsError) Error

func (e *NotExistsError) Error() string

type Storager

type Storager interface {
	Put(sourceFilePath string, dest string) error
	Get(source string, dest string) error
	Delete(dest string) error
	DeleteRecursive(prefix string) error
	Exists(dest string) (bool, error)
	Sign(dest string, action string, expiration time.Duration) (string, error)
	List(prefix string) ([]string, error)
	Copy(srcBlob string, dstBlob string) error
	Properties(dest string) error
	EnsureStorageExists() error
}

func NewStorageClient

func NewStorageClient(storageType string, configFile *os.File) (Storager, error)

Jump to

Keyboard shortcuts

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