Versions in this module Expand all Collapse all v0 v0.5.1 Jan 19, 2020 v0.5.0 Jan 18, 2020 Changes in this version + const Freeze + const IdentityAPIVersion + const InstanceAPIVersion + const MetadataBaseURI + const Preempt + const Reboot + const Redeploy + const Scheduled + const ScheduledEventsAPIVersion + const Started + type AckEvent struct + EventID string + type AckEvents struct + StartRequests []AckEvent + type Address struct + PrivateIPAddress string + PublicIPAddress string + type Attestation struct + Encoding string + Signature string + type Client struct + BaseURI string + HTTPClient *http.Client + IdentityAPIVersion string + InstanceAPIVersion string + ScheduledEventsAPIVersion string + func New(opts ...ClientOption) (*Client, error) + func (c *Client) AckScheduledEvents(ctx context.Context, acks AckEvents, middleware ...MiddlewareFunc) error + func (c *Client) GetAttestation(ctx context.Context, nonce string, middleware ...MiddlewareFunc) (*Attestation, error) + func (c *Client) GetIdentityToken(ctx context.Context, tokenReq ResourceAndIdentity, ...) (*IdentityToken, error) + func (c *Client) GetInstance(ctx context.Context, middleware ...MiddlewareFunc) (*Instance, error) + func (c *Client) GetScheduledEvents(ctx context.Context, middleware ...MiddlewareFunc) (*ScheduledEvents, error) + type ClientOption func(c *Client) error + type Compute struct + AzureEnvironment string + CustomData string + Location string + Name string + OSType string + Offer string + PlacementGroupID string + Plan *Plan + PlatformFaultDomain string + PlatformUpdateDomain string + Provider string + PublicKeys []PublicKey + Publisher string + ResourceGroupName string + ResourceID string + SKU string + SubscriptionID string + Tags string + VMID string + VMScaleSetName string + VMSize string + Version string + Zone string + type EventStatus string + type EventType string + type IdentityToken struct + AccessToken string + ExpiresIn string + ExpiresOn string + NotBefore string + RefreshToken string + Resource string + TokenType string + type Instance struct + Compute *Compute + Network *Network + type MiddlewareFunc func(next RestHandler) RestHandler + type Network struct + Interfaces []NetworkInterface + type NetworkInterface struct + IPV4 *Protocol + IPV6 *Protocol + MacAddress string + type Plan struct + Name string + Product string + Publisher string + type Protocol struct + IPAddresses []Address + Subnets []Subnet + type PublicKey struct + KeyData string + Path string + type ResourceAndIdentity struct + ClientID *uuid.UUID + ManagedIdentityID *string + ObjectID *uuid.UUID + Resource string + type RestHandler func(ctx context.Context, req *http.Request) (*http.Response, error) + type ScheduledEvent struct + ID string + NotBefore date.TimeRFC1123 + ResourceType string + Resources []string + Status EventStatus + Type EventType + type ScheduledEvents struct + DocumentIncarnation int + Events []ScheduledEvent + type Subnet struct + Address string + Prefix string