Documentation ¶
Index ¶
- Variables
- type ConditionContextAction
- type Config
- func (c Config) Bool(key string) (bool, error)
- func (c Config) BoolDefault(key string, defaultValue bool) bool
- func (c Config) Duration(key string) (time.Duration, error)
- func (c Config) DurationDefault(key string, defaultValue time.Duration) time.Duration
- func (c Config) Get(key string) (interface{}, error)
- func (c Config) Int(key string) (int, error)
- func (c Config) IntDefault(key string, defaultValue int) int
- func (c Config) Map(key string) (map[string]string, error)
- func (c Config) MapDefault(key string) map[string]string
- func (c Config) String(key string) (string, error)
- func (c Config) StringDefault(key, defaultValue string) string
- func (c Config) Strings(key string) ([]string, error)
- func (c Config) ToJobs() ([]*Job, error)
- type Context
- type Execute
- type Exists
- type Fetch
- type Job
- type List
- type ListDir
- type Match
- type MultipleContextAction
- type OssDownload
- type OssExists
- type OssUpload
- type Range
- type Replace
- type SingleContextAction
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidAction invalid action ErrInvalidAction = errors.New("invalid action") )
var ( // ErrInvalidRangeExpression invalid range expression ErrInvalidRangeExpression = errors.New("invalid range expression") )
var ( // ErrKeyCountInvalid match group count different from context key count ErrKeyCountInvalid = errors.New("match group count different from context key count") )
var ( // ErrKeyNotFound key not found error ErrKeyNotFound = errors.New("key not found") )
Functions ¶
This section is empty.
Types ¶
type ConditionContextAction ¶
ConditionContextAction action results condition context
type Config ¶
type Config map[string]interface{}
Config job config
func (Config) BoolDefault ¶
BoolDefault get boolean value or default
func (Config) DurationDefault ¶
DurationDefault get time duration or default
func (Config) IntDefault ¶
IntDefault get int value or default
func (Config) MapDefault ¶ added in v0.6.1
MapDefault get map or default
func (Config) StringDefault ¶
StringDefault get string value or default
type Context ¶
Context job context
func NewContextFromEnv ¶
NewContextFromEnv create context from env
func (Context) IntDefault ¶
IntDefault get int value or default
type Execute ¶
type Execute struct {
// contains filtered or unexported fields
}
Execute execute external command
type Exists ¶
type Exists struct {
// contains filtered or unexported fields
}
Exists exists external command
type Fetch ¶
type Fetch struct {
// contains filtered or unexported fields
}
Fetch http get html and match regexp
type List ¶ added in v0.3.1
type List struct {
// contains filtered or unexported fields
}
List list files
type ListDir ¶ added in v0.6.0
type ListDir struct {
// contains filtered or unexported fields
}
ListDir list dirs
type Match ¶ added in v0.6.0
type Match struct {
// contains filtered or unexported fields
}
Match http get html and match regexp
type MultipleContextAction ¶
MultipleContextAction action results multiple contexts
type OssDownload ¶ added in v0.3.1
type OssDownload struct {
// contains filtered or unexported fields
}
OssDownload ossDownload external command
type OssExists ¶ added in v0.3.0
type OssExists struct {
// contains filtered or unexported fields
}
OssExists ossExists external command
type OssUpload ¶ added in v0.3.1
type OssUpload struct {
// contains filtered or unexported fields
}
OssUpload ossUpload external command
type Replace ¶
type Replace struct {
// contains filtered or unexported fields
}
Replace replace external command
type SingleContextAction ¶
SingleContextAction action results single context