metadata

package
v1.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetadataService

type MetadataService struct {
	Root         string
	Client       pkg.Getter
	ApiVersion   string
	UserdataPath string
	MetadataPath string
}

func NewDatasource

func NewDatasource(root, apiVersion, userdataPath, metadataPath string, header http.Header) MetadataService

func (MetadataService) AvailabilityChanges

func (ms MetadataService) AvailabilityChanges() bool

func (MetadataService) ConfigRoot

func (ms MetadataService) ConfigRoot() string

func (MetadataService) FetchData

func (ms MetadataService) FetchData(url string) ([]byte, error)

func (MetadataService) FetchUserdata

func (ms MetadataService) FetchUserdata() ([]byte, error)

func (MetadataService) IsAvailable

func (ms MetadataService) IsAvailable() bool

func (MetadataService) MetadataUrl

func (ms MetadataService) MetadataUrl() string

func (MetadataService) UserdataUrl

func (ms MetadataService) UserdataUrl() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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