Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultAddress = "http://169.254.169.254/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Interface ¶
type Interfaces ¶
type Metadata ¶
type Metadata struct {
Hostname string `json:"hostname"`
Interfaces Interfaces `json:"interfaces"`
PublicKeys []string `json:"public_keys"`
DNS DNS `json:"dns"`
}
type MetadataService ¶
func NewDatasource ¶
func NewDatasource(root string) *MetadataService
func (MetadataService) AvailabilityChanges ¶
func (ms MetadataService) AvailabilityChanges() bool
func (*MetadataService) FetchMetadata ¶
func (ms *MetadataService) FetchMetadata() (metadata datasource.Metadata, err error)
func (MetadataService) Type ¶
func (ms MetadataService) Type() string
Source Files
¶
- metadata.go
Click to show internal directories.
Click to hide internal directories.