aws

package
v0.0.0-...-47efce2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RegionID        string `yaml:"regionID"`
	AccessKeyID     string `yaml:"accessKeyID"`
	AccessKeySecret string `yaml:"accessKeySecret"`
	Account         string `yaml:"account"`
	LambdaRole      string `yaml:"lambdaRole"`

	UserCodeBucket string `yaml:"userCodeBucket"`
	AwsCodeBucket  string `yaml:"awsCodeBucket"`
}

Config defines the neccessary settings about aws.Manager

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager exposes the interfaces about resource CRUD on aws

func NewManagerWithConfig

func NewManagerWithConfig(config Config) (*Manager, error)

NewManagerWithConfig create a manager with given configuration

func (*Manager) CreateFunction

func (m *Manager) CreateFunction(funcName string, dir string, e env.Env, memoryS string, timeoutS string) error

CreateFunction creates a function on lambda

func (*Manager) DeleteFunction

func (m *Manager) DeleteFunction(funcName string) error

DeleteFunction deletes a function

func (*Manager) GetCodeURI

func (m *Manager) GetCodeURI(funcName string) (string, error)

func (*Manager) GetFunction

func (m *Manager) GetFunction(funcName string) (*function.Meta, error)

GetFunction fetches the metadata of a function

func (*Manager) GetImage

func (m *Manager) GetImage(funcName string) (string, error)

func (*Manager) InvokeFunction

func (m *Manager) InvokeFunction(funcName string, args []byte) ([]byte, error)

InvokeFunction invokes a function by name

func (*Manager) ListFunction

func (m *Manager) ListFunction() ([]*function.Meta, error)

ListFunction displays the functions

func (*Manager) SaveCode

func (m *Manager) SaveCode(funcName string, file string) error

Jump to

Keyboard shortcuts

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