metadata

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2017 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (

	// DefaultMetadataAddress specifies the default value to use if nothing is specified
	DefaultMetadataAddress = "169.254.169.250"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPFinderFromMetadata

type IPFinderFromMetadata struct {
	// contains filtered or unexported fields
}

IPFinderFromMetadata is used to hold information related to Metadata client and other stuff.

func NewIPFinderFromMetadata

func NewIPFinderFromMetadata(metadataAddress string) (*IPFinderFromMetadata, error)

NewIPFinderFromMetadata returns a new instance of the IPFinderFromMetadata

func (*IPFinderFromMetadata) GetIP

func (ipf *IPFinderFromMetadata) GetIP(cid, rancherid string) string

GetIP returns the IP address for the given container id, return an empty string if not found

Jump to

Keyboard shortcuts

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