Documentation ¶
Index ¶
- Constants
- func ConvertS3Error(err error, args ...interface{}) error
- func Copy(src interface{}, dest interface{}) (force.Action, error)
- func RecursiveCopy(src interface{}, dest interface{}) (force.Action, error)
- func Scope() (force.Group, error)
- type Config
- type CopyAction
- type Local
- type Namespace
- type Plugin
- type S3
- type Setup
Constants ¶
const ( KeySetup = "Setup" KeyConfig = "Config" SchemeS3 = "s3" )
const Key = Namespace("aws")
Key is a name of the plugin variable
Variables ¶
This section is empty.
Functions ¶
func ConvertS3Error ¶
ConvertS3Error wraps S3 error and returns trace equivalent
func RecursiveCopy ¶
RecursiveCopy copies files between buckets from source to destination using directory as a source or destination
Types ¶
type Config ¶
type Config struct { // Region is S3 bucket region Region string }
Config is an ssh client configuration
func (*Config) CheckAndSetDefaults ¶
func (cfg *Config) CheckAndSetDefaults() (*awssession.Session, error)
CheckAndSetDefaults checks and sets default values
type CopyAction ¶
type CopyAction struct {
// contains filtered or unexported fields
}
func (*CopyAction) Eval ¶
func (s *CopyAction) Eval(ctx force.ExecutionContext) (interface{}, error)
func (*CopyAction) MarshalCode ¶
func (s *CopyAction) MarshalCode(ctx force.ExecutionContext) ([]byte, error)
MarshalCode marshals the action into code representation
func (*CopyAction) String ¶
func (s *CopyAction) String() string
String returns a copy of the software
func (*CopyAction) Type ¶
func (s *CopyAction) Type() interface{}
type Namespace ¶
type Namespace string
Namespace is a wrapper around string to namespace a variable in the context
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is a new logging plugin
type Setup ¶
type Setup struct {
// contains filtered or unexported fields
}
Setup creates new instances of plugins
func (*Setup) Eval ¶
func (n *Setup) Eval(ctx force.ExecutionContext) (interface{}, error)
Eval sets up logging plugin for the instance group
func (*Setup) MarshalCode ¶
func (n *Setup) MarshalCode(ctx force.ExecutionContext) ([]byte, error)
MarshalCode marshals plugin setup to code
func (*Setup) NewInstance ¶
NewInstance returns a new instance of a plugin bound to group