provision

package
v0.0.0-...-cd25e5e Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ThingConfig

type ThingConfig struct {
	// The ARN of the certificate.
	CertificateArn string

	// The ID of the certificate. AWS IoT issues a default subject name for the
	// certificate (e.g., AWS IoT Certificate).
	CertificateID string

	// The certificate data, in PEM format.
	CertificatePem string

	// The generated key pair.
	KeyPair *iot.KeyPair
}

ThingConfig contains credentials for a thing.

func LoadConfig

func LoadConfig(name string) (*ThingConfig, error)

LoadConfig load the configuration from a file

func NewThingConfig

func NewThingConfig(resp *iot.CreateKeysAndCertificateOutput) *ThingConfig

NewThingConfig create a new thing configuration using the response

func (*ThingConfig) Save

func (tc *ThingConfig) Save(name string) error

Save the configuration to a YAML file with the name used as the filename

Jump to

Keyboard shortcuts

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