sessions

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 12 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
	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

func New(config config.Config, 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