Documentation
¶
Index ¶
- func GetS3Client(s S3Config) (*s3.S3, error)
- func GetS3ObjectData(s S3Config, s3client *s3.S3, path string) ([]byte, error)
- func MoveURL(u string, s3configFile path.Local, fl *FileWithProperties, testonly bool) error
- func PutS3ObjectData(checksumsha256 string, s S3Config, s3client *s3.S3, path string, bt []byte) error
- func Run(configFile path.Local, s3configFile path.Local, isTest bool) error
- type Config
- type FileProp
- type FileWithProperties
- type FilesWithProperties
- type Matcher
- type Matchers
- type Property
- type Rule
- type S3Config
- type S3HostsConfigs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetS3ObjectData ¶
func PutS3ObjectData ¶
Types ¶
type FileProp ¶
type FileProp string
const ( Name FileProp = "name" NameSolo FileProp = "name_solo" Ext FileProp = "ext" MinSize FileProp = "minsize" MaxSize FileProp = "maxsize" MimeType FileProp = "mime-type" Date FileProp = "date" Drive FileProp = "drive" Path FileProp = "path" Dir FileProp = "dir" All FileProp = "all" Prop FileProp = "property" )
type FileWithProperties ¶
type FileWithProperties struct {
Name string
Date time.Time
Path path.Local
Size int
Drive string
MimeType string
Properties map[string]string
}
func (FileWithProperties) TargetURL ¶
func (f FileWithProperties) TargetURL(c Config) string
TargetURL will be empty, if there is not matching rule
type FilesWithProperties ¶
type FilesWithProperties []*FileWithProperties
type Matchers ¶
type Matchers []Matcher
func (Matchers) Matches ¶
func (m Matchers) Matches(f FileWithProperties) bool
type S3HostsConfigs ¶
Click to show internal directories.
Click to hide internal directories.