Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureMetadata ¶
type AzureMetadata struct { Timeout *time.Duration InstanceMetadataUrl string ScheduledEventsUrl string UserAgent string // contains filtered or unexported fields }
func (*AzureMetadata) ApproveScheduledEvent ¶
func (m *AzureMetadata) ApproveScheduledEvent(event *AzureScheduledEvent) error
func (*AzureMetadata) FetchInstanceMetadata ¶
func (m *AzureMetadata) FetchInstanceMetadata() (*AzureMetadataInstanceResponse, error)
func (*AzureMetadata) FetchScheduledEvents ¶
func (m *AzureMetadata) FetchScheduledEvents() (*AzureScheduledEventResponse, error)
func (*AzureMetadata) Init ¶
func (m *AzureMetadata) Init()
type AzureMetadataInstanceResponse ¶
type AzureMetadataInstanceResponse struct { Compute struct { Location string `json:"location"` Name string `json:"name"` Offer string `json:"offer"` OsType string `json:"osType"` PlacementGroupID string `json:"placementGroupId"` PlatformFaultDomain string `json:"platformFaultDomain"` PlatformUpdateDomain string `json:"platformUpdateDomain"` Publisher string `json:"publisher"` ResourceGroupName string `json:"resourceGroupName"` Sku string `json:"sku"` SubscriptionID string `json:"subscriptionId"` Tags string `json:"tags"` Version string `json:"version"` VMID string `json:"vmId"` VMSize string `json:"vmSize"` } `json:"compute"` }
type AzureScheduledEvent ¶
type AzureScheduledEvent struct { EventId string `json:"EventId"` EventType string `json:"EventType"` ResourceType string `json:"ResourceType"` Resources []string `json:"Resources"` EventStatus string `json:"EventStatus"` NotBefore string `json:"NotBefore"` Description string `json:"Description"` EventSource string `json:"EventSource"` }
func (*AzureScheduledEvent) NotBeforeUnixTimestamp ¶
func (e *AzureScheduledEvent) NotBeforeUnixTimestamp() (eventValue float64, err error)
type AzureScheduledEventApproval ¶
type AzureScheduledEventApproval struct {
StartRequests []AzureScheduledEventApprovalEvent `json:"StartRequests"`
}
type AzureScheduledEventApprovalEvent ¶
type AzureScheduledEventApprovalEvent struct {
EventId string `json:"EventId"`
}
type AzureScheduledEventResponse ¶
type AzureScheduledEventResponse struct { DocumentIncarnation int `json:"DocumentIncarnation"` Events []AzureScheduledEvent `json:"Events"` }
Click to show internal directories.
Click to hide internal directories.