metadata

package
v0.20241212.1154051 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 12 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) (*MetaData, error)

GetMetaData connects to the ARM metadata service at the configured endpoint, to retrieve information about the current environment. We currently only support the 2019-05-01 metadata schema, since earlier versions do not reference some mandatory services, notably Microsoft Graph.

type DnsSuffixes

type DnsSuffixes struct {
	Attestation       string
	ContainerRegistry string
	DataLakeStore     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
	DataLake       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