aws

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: BSD-3-Clause Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout      = 30
	DefaultWaitDuration = 20
	DefaultMaxRetry     = 3
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiGateway

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

func NewApiGateway

func NewApiGateway(config *config.Config, awsConfig aws.Config) *ApiGateway

type CloudWatch

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

CloudWatch is the AWS Cloudwatch operations

func NewCloudWatch

func NewCloudWatch(config *config.Config, awsConfig aws.Config) *CloudWatch

NewCloudWatch creates a new AWS Cloudwatch

func (*CloudWatch) DeleteLog

func (c *CloudWatch) DeleteLog()

func (*CloudWatch) Monitor

func (c *CloudWatch) Monitor()

monitor is an infinite loop that continously monitors AWS Cloudwatch log events

type IAM

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

func NewIAM

func NewIAM(cfg *config.Config, awsConfig aws.Config) *IAM

NewIAM creates a new AWS IAM object

type Lambda

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

Lambda is the AWS Lambda operations

func NewLambda

func NewLambda(cfg *config.Config) (*Lambda, error)

NewLambda instantiates a new AWS Lambda service

func (*Lambda) Build

func (l *Lambda) Build() (string, error)

Build builds the deployment package for lambda

func (*Lambda) CreateFunctionEntry

func (l *Lambda) CreateFunctionEntry(file string) error

CreateFunctionEntry creates a Lambda function handler file

func (*Lambda) Deploy

func (l *Lambda) Deploy(zipPath string) (bool, error)

func (*Lambda) Invoke added in v0.1.0

func (l *Lambda) Invoke(command string) error

func (*Lambda) Logs

func (l *Lambda) Logs()

Logs shows AWS logs

func (*Lambda) Rollback

func (l *Lambda) Rollback(steps int) error

Rollback rolls back a Lambda deployment to a number of previous versions `revision`

func (*Lambda) Undeploy

func (l *Lambda) Undeploy() error

Undeploy deletes a Lambda deployment

func (*Lambda) Update

func (l *Lambda) Update(zipPath string) error

type S3

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

func NewS3

func NewS3(config *config.Config, awsConfig aws.Config) *S3

NewS3 creates a new AWS S3 object

func (*S3) Delete

func (s *S3) Delete(filePath string) error

delete a file from AWS S3 bucket

func (*S3) Upload

func (s *S3) Upload(filePath string) error

upload a file to AWS S3 bucket

Jump to

Keyboard shortcuts

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