api

package
v0.0.0-...-156c033 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Username string
	Password string
}

type Client

type Client interface {
	GetCredentials(serverURL string) (*Auth, error)
	ListCredentials() ([]*Auth, error)
}

type ClientFactory

type ClientFactory interface {
	NewClient(awsSession *session.Session, awsConfig *aws.Config) Client
	NewClientWithOptions(opts Options) Client
	NewClientFromRegion(region string) Client
	NewClientWithDefaults() Client
}

type DefaultClientFactory

type DefaultClientFactory struct{}

func (DefaultClientFactory) NewClient

func (defaultClientFactory DefaultClientFactory) NewClient(awsSession *session.Session, awsConfig *aws.Config) Client

NewClient Create new client with AWS Config

func (DefaultClientFactory) NewClientFromRegion

func (defaultClientFactory DefaultClientFactory) NewClientFromRegion(region string) Client

NewClientFromRegion uses the region to create the client

func (DefaultClientFactory) NewClientWithDefaults

func (defaultClientFactory DefaultClientFactory) NewClientWithDefaults() Client

NewClientWithDefaults creates the client and defaults region

func (DefaultClientFactory) NewClientWithOptions

func (defaultClientFactory DefaultClientFactory) NewClientWithOptions(opts Options) Client

NewClientWithOptions Create new client with Options

type Options

type Options struct {
	Session  *session.Session
	Config   *aws.Config
	CacheDir string
}

Options makes the constructors more configurable

Directories

Path Synopsis
Package mock_ssmiface is a generated GoMock package.
Package mock_ssmiface is a generated GoMock package.

Jump to

Keyboard shortcuts

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