structs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2016 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KEY_ADDRESS_PRIVATE = "address-private"
	KEY_ADDRESS_PUBLIC  = "address-public"
	KEY_INSTANCE_NAME   = "instance"
	KEY_PROVIDER        = "provider"
	KEY_REGION          = "region"
	KEY_ZONE            = "zone"
)

Variables

Functions

This section is empty.

Types

type MetadataItem

type MetadataItem struct {
	Url       string
	ParseFunc MetadataItemParseFunc
}

type MetadataItemParseFunc

type MetadataItemParseFunc func(interface{}) (string, error)

type Provider

type Provider interface {
	Name() string
	IsCurrentProvider() bool
	Read(key string) (string, error)
}

type ProviderMapping

type ProviderMapping struct {
	MetadataAddress string
	MetadataItems   map[string]MetadataItem
}

Jump to

Keyboard shortcuts

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