Documentation ¶
Index ¶
- type Service
- func (ms Service) AvailabilityChanges() bool
- func (ms Service) ConfigRoot() string
- func (ms Service) FetchAttribute(key string) (string, error)
- func (ms Service) FetchAttributes(key string) ([]string, error)
- func (ms Service) FetchData(url string) ([]byte, error)
- func (ms Service) FetchUserdata() ([]byte, error)
- func (ms *Service) Finish() error
- func (ms Service) IsAvailable() bool
- func (ms Service) MetadataURL() string
- func (ms *Service) String() string
- func (ms Service) UserdataURL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Root string Client pkg.Getter APIVersion string IsAvailableCheckPath string UserdataPath string MetadataPath string // contains filtered or unexported fields }
func NewDatasource ¶
NewDatasource creates as HTTP based cloud-data service with the corresponding paths for the user-data and meta-data. To check the available in IsAvailable, the apiVersion is used as path.
func NewDatasourceWithCheckPath ¶ added in v1.4.0
func NewDatasourceWithCheckPath(root, apiVersion, isAvailableCheckPath, userdataPath, metadataPath string, header http.Header) Service
NewDatasourceWithCheckPath creates as HTTP based cloud-data service with the corresponding paths for the user-data and meta-data.
func (Service) FetchAttribute ¶ added in v1.1.2
func (Service) FetchAttributes ¶ added in v1.1.2
Click to show internal directories.
Click to hide internal directories.