client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintErr

func PrintErr(err string)

PrintErr formats an application error.

Types

type Client

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

Client represents an instance of a connection to AWS.

func New

func New(key string, secret string, region string) *Client

New is a factory function that returns a new client instance.

func (*Client) Query

func (c *Client) Query(key string, version string) (*Parameter, error)

Get returns a single value from AWS Parameter Store for a given key and version.

func (*Client) QueryPath

func (c *Client) QueryPath(path string, recursive bool, version string) (Parameters, error)

Get returns a value from AWS Parameter Store for a given directory and version.

func (*Client) Version

func (c *Client) Version() string

Version prints the version of the client then exits.

type Parameter

type Parameter struct {
	Name    string `json:"name"`    // Name of the key.
	Type    string `json:"type"`    // Data type.
	Value   string `json:"value"`   // Value.
	Version int64  `json:"version"` // Version of the value.
}

A parameter value for exporting.

type Parameters

type Parameters []*Parameter

A list of parameters.

Jump to

Keyboard shortcuts

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