store

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: MIT Imports: 7 Imported by: 2

Documentation

Overview

Package store implements the database operations required for config.

Index

Constants

This section is empty.

Variables

View Source
var (
	// AWS Profile.
	Profile string

	// AWS Region.
	Region string
)

Functions

func NewSession added in v0.4.0

func NewSession() *store

NewSession creates the config file required by nephele to function, if not present and creates a new database connection and returns a new store.

Types

type Credentials added in v0.3.0

type Credentials struct {
	AccessId  string `db:"access_id"`  // AWS Access Key ID
	SecretKey string `db:"secret_key"` // AWS Secret Access Key
	Region    string `db:"region"`     // AWS Region
}

func GetCredentials

func GetCredentials() *Credentials

GetCredentials returns accessId, secretKey and region information for the current AWS profile.

Jump to

Keyboard shortcuts

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