application

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoDefaultAuthentication = errors.New("no default authentication was found")
	ErrSTSIdentityNotFound     = errors.New("sts identity not found")
	ErrNoEC2ProfileRole        = errors.New("no ec2 profile role was found")
)

Functions

This section is empty.

Types

type Application

type Application struct {
	RouterClient ports.AWSRouter
	InfoLog      *log.Logger
	ErrorLog     *log.Logger
}

Application type is used across the application to de dependency injection.

func NewApplication

func NewApplication() *Application

func (*Application) Init

func (a *Application) Init() error

Init will load the credentials into the application. If no credentials are found then an error will be returned.

func (*Application) UpdateRouting

func (app *Application) UpdateRouting(ctx context.Context) (tgws []*awsrouter.Tgw, err error)

UpdateRouting will identify all the TGWs in a region. It will find all the route tables of the TGWs. And it will update the routes on each route table.

Jump to

Keyboard shortcuts

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