Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinIfNeeded ¶
JoinIfNeeded routes parent resource with URI when needed
Types ¶
type Assets ¶
Assets represents transfer assets
func (Assets) AsTransfer ¶
AsTransfer converts map to transfer or transfers
type Rule ¶
type Rule struct { Matcher *Matcher Compress bool `` //flag to compress asset before sending over wirte and to decompress (this option is only supported on scp or file proto) /* 133-byte string literal not displayed */ Substitution Source *location.Resource `required:"true" description:"source asset or directory"` Dest *location.Resource `required:"true" description:"destination asset or directory"` }
Rule represents transfer rule
func (*Rule) DestStorageOpts ¶
func (r *Rule) DestStorageOpts(context *endly.Context, udfModifier option.Modifier) ([]storage.Option, error)
DestStorageOpts returns rule destination store options
func (*Rule) SourceStorageOpts ¶
SourceStorageOpts returns rule source store options
type Substitution ¶
type Substitution struct { Expand bool `description:"flag to substitute asset content with state keys"` Replace map[string]string `description:"replacements map, if key if found in the conent it wil be replaced with corresponding value."` ExpandIf *Matcher `description:"substitution source matcher"` }
Substitution represents transfer data substitution
Click to show internal directories.
Click to hide internal directories.