sessions

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	Region                     string
	Instance                   string
	ResourceID                 string
	Labels                     map[string]string
	EnhancedMonitoringInterval time.Duration
}

Instance represents a single RDS instance information in runtime.

func (Instance) String

func (i Instance) String() string

type Sessions

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

Sessions is a pool of AWS sessions.

func New

func New(instances []config.Instance, client *http.Client, trace bool) (*Sessions, error)

New creates a new sessions pool for given configuration.

func (*Sessions) AllSessions

func (s *Sessions) AllSessions() map[*session.Session][]Instance

AllSessions returns all sessions and instances.

func (*Sessions) GetSession

func (s *Sessions) GetSession(region, instance string) (*session.Session, *Instance)

GetSession returns session and full instance information for given region and instance.

Jump to

Keyboard shortcuts

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