backend

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsEcs

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

func (*AwsEcs) GetEC2Client

func (s *AwsEcs) GetEC2Client() *ec2.EC2

func (*AwsEcs) GetECSClient

func (s *AwsEcs) GetECSClient() ecsiface.ECSAPI

func (*AwsEcs) RunTask

func (s *AwsEcs) RunTask(taskDefArn string, wait bool) error

type AwsSSMBackend

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

func (*AwsSSMBackend) AddParams

func (s *AwsSSMBackend) AddParams(name string, val string) error

func (*AwsSSMBackend) GetParameter

func (s *AwsSSMBackend) GetParameter(paramPath string) (*string, error)

type AwsSTS

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

func (*AwsSTS) GetUserName

func (s *AwsSTS) GetUserName() (string, error)

type Cloudwatchlags

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

func GetAwsLogs

func GetAwsLogs(config config.HappyConfigIface) *Cloudwatchlags

type ParamStoreBackend

type ParamStoreBackend interface {
	GetParameter(paramPath string) (*string, error)
	AddParams(name string, val string) error
}

func GetAwsBackend

func GetAwsBackend(config config.HappyConfigIface) ParamStoreBackend

func GetAwsBackendWithClient

func GetAwsBackendWithClient(ssmClient ssmiface.SSMAPI) ParamStoreBackend

type TaskRunner

type TaskRunner interface {
	RunTask(taskDef string, wait bool) error
	GetECSClient() ecsiface.ECSAPI
	GetEC2Client() *ec2.EC2
}

func GetAwsEcs

func GetAwsEcs(config config.HappyConfigIface) TaskRunner

type TaskType

type TaskType string
const (
	DeletionTask  TaskType = "delete"
	MigrationTask TaskType = "migrate"
)

type UserIDBackend

type UserIDBackend interface {
	GetUserName() (string, error)
}

func GetAwsSts

func GetAwsSts(config config.HappyConfigIface) UserIDBackend

func GetAwsStsWithClient

func GetAwsStsWithClient(client stsiface.STSAPI) UserIDBackend

Jump to

Keyboard shortcuts

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