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
}
Click to show internal directories.
Click to hide internal directories.