Documentation
¶
Index ¶
- func CheckS3Unlocked(config *Config, lockPath string, sess *session.Session) (bool, error)
- func NewDirectoryIterator(bucket, dir string) s3manager.BatchUploadIterator
- type Command
- type CommandCommit
- type CommandHelp
- type CommandLock
- type CommandUnlock
- type Config
- func (this *Config) SetExpires(value uint64) error
- func (this *Config) SetRetriesWait(value uint64) error
- func (this *Config) SetS3AccessKey(value string) error
- func (this *Config) SetS3Bucket(value string) error
- func (this *Config) SetS3Region(value string) error
- func (this *Config) SetS3SecretKey(value string) error
- func (this *Config) SetTimeout(value uint64) error
- type DirectoryIterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckS3Unlocked ¶
func NewDirectoryIterator ¶
func NewDirectoryIterator(bucket, dir string) s3manager.BatchUploadIterator
NewDirectoryIterator builds a new DirectoryIterator
Types ¶
type CommandCommit ¶
type CommandCommit struct{}
func (*CommandCommit) Help ¶
func (this *CommandCommit) Help() string
type CommandHelp ¶
func (*CommandHelp) Help ¶
func (this *CommandHelp) Help() string
type CommandLock ¶
type CommandLock struct{}
func (*CommandLock) Help ¶
func (this *CommandLock) Help() string
type CommandUnlock ¶
type CommandUnlock struct{}
func (*CommandUnlock) Help ¶
func (this *CommandUnlock) Help() string
type Config ¶
type Config struct { Directory string Expires uint64 RetriesWait uint64 S3AccessKey string S3Bucket string S3Region string S3SecretKey string Timeout uint64 }
func (*Config) SetExpires ¶
func (*Config) SetRetriesWait ¶
func (*Config) SetS3AccessKey ¶
func (*Config) SetS3Bucket ¶
func (*Config) SetS3Region ¶
func (*Config) SetS3SecretKey ¶
func (*Config) SetTimeout ¶
type DirectoryIterator ¶
type DirectoryIterator struct {
// contains filtered or unexported fields
}
DirectoryIterator represents an iterator of a specified directory
func (*DirectoryIterator) Err ¶
func (di *DirectoryIterator) Err() error
Err returns error of DirectoryIterator
func (*DirectoryIterator) Next ¶
func (di *DirectoryIterator) Next() bool
Next returns whether next file exists or not
func (*DirectoryIterator) UploadObject ¶
func (di *DirectoryIterator) UploadObject() s3manager.BatchUploadObject
UploadObject uploads a file
Click to show internal directories.
Click to hide internal directories.