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
Click to show internal directories.
Click to hide internal directories.