aws

package
v0.0.0-...-8fc2537 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeySetup  = "Setup"
	KeyConfig = "Config"
	SchemeS3  = "s3"
)
View Source
const Key = Namespace("aws")

Key is a name of the plugin variable

Variables

This section is empty.

Functions

func ConvertS3Error

func ConvertS3Error(err error, args ...interface{}) error

ConvertS3Error wraps S3 error and returns trace equivalent

func Copy

func Copy(src interface{}, dest interface{}) (force.Action, error)

Copy copies files between buckets from source to destination

func RecursiveCopy

func RecursiveCopy(src interface{}, dest interface{}) (force.Action, error)

RecursiveCopy copies files between buckets from source to destination using directory as a source or destination

func Scope

func Scope() (force.Group, error)

Scope returns a new scope with all the functions and structs defined, this is the entrypoint into plugin as far as force is concerned

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 Local

type Local struct {
	Path string
	Mode int
}

Local is a local path

func (*Local) CheckAndSetDefaults

func (l *Local) CheckAndSetDefaults() error

func (Local) String

func (l Local) String() string

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 S3

type S3 struct {
	Bucket               string
	Key                  string
	ServerSideEncryption string
}

S3 is S3 bucket source or destination

func (*S3) CheckAndSetDefaults

func (s *S3) CheckAndSetDefaults() error

func (S3) String

func (s S3) String() string

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

func (n *Setup) NewInstance(group force.Group) (force.Group, interface{})

NewInstance returns a new instance of a plugin bound to group

func (*Setup) Type

func (n *Setup) Type() interface{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL