azure

package
v0.0.0-...-605b549 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client query maintenance client

func New

func New() *Client

New create query maintenance client

func NewWithQuery

func NewWithQuery(q Query) *Client

NewWithQuery create query maintenance client with query override

func (*Client) ApproveScheduledEvent

func (c *Client) ApproveScheduledEvent(vmInstanceName string) error

ApproveScheduledEvent approves scheduled event

func (*Client) GetVMInstanceName

func (c *Client) GetVMInstanceName() (string, error)

GetVMInstanceName gets current vmss/availability set instance name

func (*Client) IsScheduledEvent

func (c *Client) IsScheduledEvent(vmInstanceName string) (string, error)

IsScheduledEvent check if event is scheduled and returns the scheduled event, else nil

type Query

type Query interface {
	Post(url string, body []byte) error
	Get(url string) (string, error)
}

Query interface

type ScheduledEvent

type ScheduledEvent struct {
	EventId      string   `json:"EventId"`
	EventStatus  string   `json:"EventStatus"`
	EventType    string   `json:"EventType"`
	ResourceType string   `json:"ResourceType"`
	Resources    []string `json:"Resources"`
	NotBefore    string   `json:"NotBefore"`
}

ScheduledEvent signifies each scheduled event

type ScheduledEventList

type ScheduledEventList struct {
	DocumentIncarnation int              `json:"DocumentIncarnation"`
	Events              []ScheduledEvent `json:"Events"`
}

ScheduledEventList list of scheduled events

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL