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
Click to show internal directories.
Click to hide internal directories.