azure

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Azure

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

func New

func New() (azure *Azure, err error)

New Azure client

func (*Azure) CreateEndpoint

func (azure *Azure) CreateEndpoint(request *types.CreateEndpointRequest) (*types.Endpoint, error)

func (*Azure) CreatePrivateLinkService added in v0.2.24

func (az *Azure) CreatePrivateLinkService(req types.PlsRequest) (res types.PlsResponse, err error)

CreatePrivateLinkService creates a private link service and returns its ID and the list of resource IDs related to it. This action is idempotent.

func (*Azure) DeleteEndpoint

func (azure *Azure) DeleteEndpoint(ctx context.Context, endpointID string) error

1. Delete Endpoint

func (*Azure) DeletePrivateLinkService added in v0.2.46

func (az *Azure) DeletePrivateLinkService(req types.PlsRequest) (err error)

func (*Azure) DeleteSecurityGroup added in v0.2.1

func (azure *Azure) DeleteSecurityGroup(ctx context.Context, securityGroupID string) error

func (*Azure) FindMySubnetID added in v0.1.11

func (azure *Azure) FindMySubnetID(metadata *Instance) (string, error)

func (*Azure) GetCallerIdentity added in v0.2.16

func (azure *Azure) GetCallerIdentity() (*string, error)

func (*Azure) GetEndpoint added in v0.1.11

func (azure *Azure) GetEndpoint(request *types.CreateEndpointRequest) (*types.Endpoint, error)

func (*Azure) GetMetadata

func (az *Azure) GetMetadata() (metadata types.Metadata, err error)

func (*Azure) GetPrivateLinkServiceResources added in v0.2.46

func (az *Azure) GetPrivateLinkServiceResources(req types.PlsRequest) (res types.PlsResourcesResponse, err error)

GetPrivateLinkService return private link service ID and list of resource IDs related to it.

func (*Azure) GetProvider added in v0.1.11

func (az *Azure) GetProvider() types.Vendor

func (*Azure) LoadCredentials added in v0.2.18

func (azure *Azure) LoadCredentials()

func (*Azure) ToTags added in v0.2.46

func (azure *Azure) ToTags(tags map[string]string) (resTags map[string]*string)

func (*Azure) UserAgent added in v0.2.46

func (az *Azure) UserAgent() string

type BaseName added in v0.2.46

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

type Compute

type Compute struct {
	AzEnvironment              string    `json:"azEnvironment"`
	IsHostCompatibilityLayerVM string    `json:"isHostCompatibilityLayerVm"`
	LicenseType                string    `json:"licenseType,omitempty"`
	Location                   string    `json:"location"`
	Name                       string    `json:"name"`
	Offer                      string    `json:"offer"`
	OsProfile                  OsProfile `json:"osProfile"`
	OsType                     string    `json:"osType"`
	PlacementGroupID           string    `json:"placementGroupId"`
	// plan
	// platformUpdateDomain
	// platformFaultDomain
	// provider
	// publicKeys
	// publisher
	ResourceGroupName string `json:"resourceGroupName"`
	ResourceID        string `json:"resourceId"`
	Sku               string `json:"sku"`
	// securityProfile
	// storageProfile
	SubscriptionID uuid.UUID `json:"subscriptionId"`
	Tags           string    `json:"tags"`
	// tagsList
	Version        string    `json:"version"`
	VMID           uuid.UUID `json:"vmId"`
	VMScaleSetName string    `json:"vmScaleSetName"`
	VMSize         string    `json:"vmSize"`
	Zone           string    `json:"zone"`
}

Compute - describe Azure compute element

type IPAddress

type IPAddress struct {
	PrivateIPAddress string `json:"privateIpAddress"`
	PublicIPAddress  string `json:"publicIpAddress"`
}

IPAddress - IP address configuration

type IPv4

type IPv4 struct {
	IPAddress []IPAddress `json:"ipAddress"`
	Subnet    []Subnet    `json:"subnet"`
}

IPv4 - IPv4 description

type IPv6

type IPv6 struct {
	IPAddress []IPAddress `json:"ipAddress"`
	Subnet    Subnet      `json:"subnet"`
}

IPv6 - IPv4 description

type Instance

type Instance struct {
	Compute Compute `json:"compute"`
	Network Network `json:"network"`
}

Instance - Azure instance metadata

func InstanceMetadata added in v0.2.46

func InstanceMetadata() (instanceMetadata *Instance, err error)

type Interface

type Interface struct {
	IPv4       IPv4   `json:"ipv4"`
	IPv6       IPv6   `json:"ipv6"`
	MacAddress string `json:"macAddress"`
}

Interface description

type Network

type Network struct {
	Interface []Interface `json:"interface"`
}

Network description

type OsProfile

type OsProfile struct {
	AdminUsername                 string `json:"adminUsername"`
	ComputerName                  string `json:"computerName"`
	DisablePasswordAuthentication string `json:"disablePasswordAuthentication"`
}

OsProfile - well OS Profile

type Subnet

type Subnet struct {
	Address string `json:"address"`
	Prefix  string `json:"prefix"`
}

Subnet description

Jump to

Keyboard shortcuts

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