credentials_file

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CredentialsFile

type CredentialsFile struct {
	Filename      string
	Configuration *ini.File
}

func NewFromConfiguration

func NewFromConfiguration(configuration *ini.File, filename string) (*CredentialsFile, error)

func NewFromCredentials

func NewFromCredentials(c *credentials.Credentials, profileName, filename string) (*CredentialsFile, error)

func NewFromDisk

func NewFromDisk(filename string) (*CredentialsFile, error)

func (*CredentialsFile) Delete

func (f *CredentialsFile) Delete() error

func (*CredentialsFile) DoesProfileHavePermanentCredentials

func (f *CredentialsFile) DoesProfileHavePermanentCredentials(profileName string) bool

func (*CredentialsFile) GetCredentialsFromProfile

func (f *CredentialsFile) GetCredentialsFromProfile(name string) (*credentials.Credentials, error)

func (*CredentialsFile) Save

func (f *CredentialsFile) Save() error

type Profile

type Profile = ini.Section

Jump to

Keyboard shortcuts

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