aws

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package aws is a provider that can be used by the providers package to retrieve aws credentials from aws cli credentials and config files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

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

Profile satisfies the types.Profile interface and can be used as a profile by the providers package.

func (*Profile) Name

func (p *Profile) Name() string

Name returns the profile name.

func (*Profile) Payload

func (p *Profile) Payload() []byte

Payload returns the profile json payload.

type Provider

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

Provider satisfies the types.Provider interface and can be used as a provider by the providers package.

func Create

func Create(name string, raw map[string]interface{}) (*Provider, error)

Create will create a new provider with name based on config and return it.

func (*Provider) Get

func (p *Provider) Get(name string) (types.Profile, error)

Get will retrieve profile name from provider p. If name is $env the credentials will be retrieved from current environmental variables.

func (*Provider) Name

func (p *Provider) Name() string

Name returns the provider name.

Jump to

Keyboard shortcuts

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