Documentation ¶
Index ¶
Constants ¶
View Source
const ( ActionDefaultRetries = 3 ActionDefaultTimeout = 1 * time.Second ActionDefaultDelay = 500 * time.Millisecond )
Variables ¶
View Source
var (
ErrActionNotConfigured = fmt.Errorf("action not configured")
)
View Source
var (
ErrRetryCountExceeded = fmt.Errorf("retry count exceeded")
)
Functions ¶
func RegisterActionPlugin ¶
func RegisterActionPlugin(ap ActionPlugin)
Types ¶
type Action ¶
type Action interface { Config() ActionConfig Do(Env, params.Params) error }
func ParseAction ¶
type ActionConfig ¶
func DefaultActionConfig ¶
func DefaultActionConfig() ActionConfig
func (ActionConfig) Config ¶
func (ac ActionConfig) Config() ActionConfig
func (*ActionConfig) UnmarshalJSON ¶
func (ac *ActionConfig) UnmarshalJSON(buf []byte) error
type ActionPlugin ¶
type ContainerManager ¶
type Manager ¶
type Manager interface { ParseConfig([]byte) error MaxDelay() time.Duration ForContainer(ui.ContainerEmitter, string) ContainerManager }
func NewManager ¶
func NewManager(log logrus.FieldLogger) Manager
Click to show internal directories.
Click to hide internal directories.