spi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: Apache-2.0, BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginSPIImpl

type PluginSPIImpl struct{}

PluginSPIImpl is the real implementation of SPI interface that makes the calls to the AWS SDK.

func (*PluginSPIImpl) NewEC2API

func (ms *PluginSPIImpl) NewEC2API(session *session.Session) ec2iface.EC2API

NewEC2API Returns a EC2API object

func (*PluginSPIImpl) NewSession

func (ms *PluginSPIImpl) NewSession(secret *corev1.Secret, region string) (*session.Session, error)

NewSession starts a new AWS session

type SessionProviderInterface

type SessionProviderInterface interface {
	NewSession(*corev1.Secret, string) (*session.Session, error)
	NewEC2API(*session.Session) ec2iface.EC2API
}

SessionProviderInterface provides an interface to deal with AWS provider session

Jump to

Keyboard shortcuts

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