sessions

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 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 added in v0.5.0

type Instance struct {
	Region                     string
	Instance                   string
	ResourceID                 string
	EnhancedMonitoringInterval time.Duration
}

Instance represents a single RDS instance information in runtime.

type Sessions

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

Sessions is a pool of AWS sessions.

func New added in v0.5.0

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

New creates a new sessions pool for given configuration.

func (*Sessions) AllSessions added in v0.5.0

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

AllSessions returns all sessions and instances.

func (*Sessions) GetSession added in v0.5.0

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