providers

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NAME_AMAZON = "amazon"
)
View Source
const (
	NAME_GOOGLE = "google"
)

Variables

This section is empty.

Functions

func GetMetadata

func GetMetadata(url string, headers map[string]string) (string, error)

func InitGoogle

func InitGoogle() structs.Provider

https://cloud.google.com/compute/docs/metadata Metadata-Flavor: Google

Types

type Amazon

type Amazon struct {
	Mapping structs.ProviderMapping
}

func (Amazon) IsCurrentProvider

func (a Amazon) IsCurrentProvider() bool

func (Amazon) Name

func (a Amazon) Name() string

func (Amazon) Read

func (a Amazon) Read(s string) (string, error)

type Google

type Google struct {
	Mapping structs.ProviderMapping
}

func (Google) IsCurrentProvider

func (g Google) IsCurrentProvider() bool

func (Google) Name

func (g Google) Name() string

func (Google) Read

func (g Google) Read(s string) (string, error)

Jump to

Keyboard shortcuts

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