metadata

package
v0.20230227.1095030 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication struct {
	Audiences        []string
	LoginEndpoint    string
	IdentityProvider string
	Tenant           string
}

type Client

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

func NewClientWithEndpoint

func NewClientWithEndpoint(endpoint string) *Client

func (*Client) GetMetaData

func (c *Client) GetMetaData(ctx context.Context, name string) (*MetaData, error)

GetMetaData connects to the ARM metadata service at the configured endpoint, to retrieve information about the current environment. Sometimes an endpoint will not support the latest schema, in such cases it will not be possible to configure all services but a best effort will be made to request and parse an earlier schema version. `name` is used when falling back to an earlier schema version where multiple environments are returned and the desired one must be matched by name.

type DnsSuffixes

type DnsSuffixes struct {
	Attestation string
	FrontDoor   string
	KeyVault    string
	ManagedHSM  string
	MariaDB     string
	MySql       string
	Postgresql  string
	SqlServer   string
	Storage     string
	StorageSync string
	Synapse     string
}

type MetaData

type MetaData struct {
	Authentication          Authentication
	DnsSuffixes             DnsSuffixes
	Name                    string
	ResourceIdentifiers     ResourceIdentifiers
	ResourceManagerEndpoint string
}

type ResourceIdentifiers

type ResourceIdentifiers struct {
	Attestation    string
	Batch          string
	LogAnalytics   string
	Media          string
	MicrosoftGraph string
	OSSRDBMS       string
	Synapse        string
}

Jump to

Keyboard shortcuts

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