aws

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2018 License: BSD-3-Clause Imports: 13 Imported by: 6

Documentation

Index

Constants

View Source
const (
	// BootstrapTime indicates the amount of time that a machine
	// is able to register with Torus after being booted
	BootstrapTime = 5 // minutes
)
View Source
const (
	// MetadataURL is the metadata URL for AWS
	MetadataURL = "http://169.254.169.254/latest/"
)

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(url, name, org, role, caFile string) (*apitypes.BootstrapResponse, error)

Bootstrap bootstraps a the AWS instance into a role to a given Gatekeeper instance

Types

type Verifier

type Verifier struct {
	// Identity is the []bytes of the identity metadata document
	Identity []byte

	// Signature is the []bytes of the identity signature
	Signature []byte
}

Verifier verifies the AWS instance metadata

func (*Verifier) Verify

func (v *Verifier) Verify() error

Verify verifies the instance metadata and instance identity documents to provide a safe way to provision a machine TODO: Verify further that the instance actually exists in AWS

Jump to

Keyboard shortcuts

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