Documentation ¶
Index ¶
- Constants
- Variables
- func LoadBalancerPorts(lb *armnetwork.LoadBalancer) (loadBalancerPorts []uint16)
- func NewAuthorizer() (*azidentity.DefaultAzureCredential, error)
- func NewAzureComputeDiscovery(opts ...DiscoveryOption) discovery.Discoverer
- func NewAzureNetworkDiscovery(opts ...DiscoveryOption) discovery.Discoverer
- func NewAzureStorageDiscovery(opts ...DiscoveryOption) discovery.Discoverer
- type DiscoveryOption
Constants ¶
View Source
const ( StorageComponent = "storage" ComputeComponent = "compute" NetworkComponent = "network" )
Variables ¶
View Source
var ( ErrCouldNotAuthenticate = errors.New("could not authenticate to Azure") ErrCouldNotGetSubscriptions = errors.New("could not get azure subscription") ErrNoCredentialsConfigured = errors.New("no credentials were configured") ErrGettingNextPage = errors.New("error getting next page") )
View Source
var ( ErrEmptyStorageAccount = errors.New("storage account is empty") ErrMissingDiskEncryptionSetID = errors.New("no disk encryption set ID was specified") )
View Source
var (
ErrEmptyVirtualMachine = errors.New("virtual machine is empty")
)
Functions ¶
func LoadBalancerPorts ¶ added in v1.3.10
func LoadBalancerPorts(lb *armnetwork.LoadBalancer) (loadBalancerPorts []uint16)
func NewAuthorizer ¶ added in v1.3.13
func NewAuthorizer() (*azidentity.DefaultAzureCredential, error)
NewAuthorizer returns the Azure credential using one of the following authentication types (in the following order):
EnvironmentCredential ManagedIdentityCredential AzureCLICredential
func NewAzureComputeDiscovery ¶ added in v1.3.3
func NewAzureComputeDiscovery(opts ...DiscoveryOption) discovery.Discoverer
func NewAzureNetworkDiscovery ¶ added in v1.3.5
func NewAzureNetworkDiscovery(opts ...DiscoveryOption) discovery.Discoverer
func NewAzureStorageDiscovery ¶
func NewAzureStorageDiscovery(opts ...DiscoveryOption) discovery.Discoverer
Types ¶
type DiscoveryOption ¶ added in v1.3.3
type DiscoveryOption func(a *azureDiscovery)
func WithAuthorizer ¶ added in v1.3.3
func WithAuthorizer(authorizer azcore.TokenCredential) DiscoveryOption
func WithSender ¶ added in v1.3.3
func WithSender(sender policy.Transporter) DiscoveryOption
Click to show internal directories.
Click to hide internal directories.