azure

package
v0.0.0-...-5785f03 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateADUDeployment

func CreateADUDeployment(token string, aduAccountEndpoint string, aduAccountInstance string, group string, deployment string, aduDeployment ADUDeployment) error

func CreateSASToken

func CreateSASToken(resourceUri string, keyName string, key string) string

func DeleteADUDeployment

func DeleteADUDeployment(token string, aduAccountEndpoint string, aduAccountInstance string, group string, deployment string) error

func GetAzureToken

func GetAzureToken(tenantId string, clientId string, clientSecret string, scope string) (string, error)

func RetryADUDeployment

func RetryADUDeployment(token string, aduAccountEndpoint string, aduAccountInstance string, group string, deployment string, aduDeployment ADUDeployment) error

Types

type ADUDeployment

type ADUDeployment struct {
	UpdateId      UpdateId `json:"updateId"`
	IsCanceled    bool     `json:"isCanceled,omitempty"`
	IsRetry       bool     `json:"isRetry,omitempty"`
	GroupId       string   `json:"groupId"`
	DeploymentId  string   `json:"deploymentId"`
	StartDateTime string   `json:"startDateTime,omitempty"`
}

func GetADUDeployment

func GetADUDeployment(token string, aduAccountEndpoint string, aduAccountInstance string, group string, deployment string) (ADUDeployment, error)

type ADUGroup

type ADUGroup struct {
	GroupId         string   `json:"groupId"`
	GroupType       string   `json:"groupType"`
	Tags            []string `json:"tags,omitempty"`
	CreatedDateTime string   `json:"createdDateTime"`
	DeviceClassId   string   `json:"deviceClassId"`
	DeviceCount     uint64   `json:"deviceCount"`
	DeploymentId    string   `json:"deploymentId"`
}

func GetADUGroup

func GetADUGroup(token string, aduAccountEndpoint string, aduAccountInstance string, group string) (ADUGroup, error)

type AzureToken

type AzureToken struct {
	TokenType    string `json:"token_type,omitempty"`
	ExpiresIn    uint64 `json:"expires_in,omitempty"`
	ExtExpiresIn uint64 `json:"ext_expires_in,omitempty"`
	AccessToken  string `json:"access_token"`
}

type UpdateId

type UpdateId struct {
	Provider string `json:"provider"`
	Name     string `json:"name"`
	Version  string `json:"version"`
}

Jump to

Keyboard shortcuts

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