Documentation ¶
Index ¶
- type MetadataService
- func (ms MetadataService) AvailabilityChanges() bool
- func (ms MetadataService) ConfigRoot() string
- func (ms MetadataService) FetchData(url string) ([]byte, error)
- func (ms MetadataService) FetchNetworkConfig(filename string) ([]byte, error)
- func (ms MetadataService) FetchUserdata() ([]byte, error)
- func (ms MetadataService) IsAvailable() bool
- func (ms MetadataService) MetadataUrl() string
- func (ms MetadataService) UserdataUrl() string
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) MetadataService
func (MetadataService) AvailabilityChanges ¶
func (ms MetadataService) AvailabilityChanges() bool
func (MetadataService) ConfigRoot ¶
func (ms MetadataService) ConfigRoot() string
func (MetadataService) FetchNetworkConfig ¶
func (ms MetadataService) FetchNetworkConfig(filename 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
Click to show internal directories.
Click to hide internal directories.