azureclient

package
v3.2.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const KeyVaultEndpoint = "https://vault.azure.net" // beware of the leopard

Variables

This section is empty.

Functions

func GetAuthorizerFromContext

func GetAuthorizerFromContext(ctx context.Context, key api.ContextKey) (autorest.Authorizer, error)

func NewAuthorizer

func NewAuthorizer(clientID, clientSecret, tenantID, resource string) (autorest.Authorizer, error)

func NewAuthorizerFromEnvironment

func NewAuthorizerFromEnvironment(resource string) (autorest.Authorizer, error)

Types

type AccountsClient

type AccountsClient interface {
	ListKeys(context context.Context, resourceGroup, accountName string) (storage.AccountListKeysResult, error)
	ListByResourceGroup(context context.Context, resourceGroup string) (storage.AccountListResult, error)
	AccountsClientAddons
	Client
}

AccountsClient is a minimal interface for azure AccountsClient

func NewAccountsClient

func NewAccountsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) AccountsClient

NewAccountsClient returns a new AccountsClient

type AccountsClientAddons

type AccountsClientAddons interface {
	Create(ctx context.Context, resourceGroupName string, accountName string, parameters storage.AccountCreateParameters) error
}

type ActivityLogsClient

type ActivityLogsClient interface {
	List(ctx context.Context, filter string, selectParameter string) (result insights.EventDataCollectionPage, err error)
}

ActivityLogsClient is a minimal interface for azure ActivityLogsClient

func NewActivityLogsClient

func NewActivityLogsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) ActivityLogsClient

NewActivityLogsClient creates a new ActivityLogsClient

type ApplicationsClient

type ApplicationsClient interface {
	Get(ctx context.Context, resourceGroupName string, applicationName string) (result managedapplications.Application, err error)
	GetByID(ctx context.Context, applicationID string) (result managedapplications.Application, err error)
	ListByResourceGroup(ctx context.Context, resourceGroupName string) (result managedapplications.ApplicationListResultPage, err error)
	Client
}

ApplicationsClient is a minimal interface for azure ApplicationsClient

func NewApplicationsClient

func NewApplicationsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) ApplicationsClient

NewApplicationsClient creates a new ApplicationsClient

type Client

type Client interface {
	Client() autorest.Client
}

Client returns the Client

type DeploymentsClient

type DeploymentsClient interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName string, deploymentName string, parameters resources.Deployment) (result resources.DeploymentsCreateOrUpdateFuture, err error)
	Client
	DeploymentClient() resources.DeploymentsClient
}

DeploymentsClient is a minimal interface for azure DeploymentsClient

func NewDeploymentsClient

func NewDeploymentsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) DeploymentsClient

NewDeploymentsClient creates a new DeploymentsClient

type GroupsClient

type GroupsClient interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName string, parameters resources.Group) (result resources.Group, err error)
	List(ctx context.Context, filter string, top *int32) (result resources.GroupListResultPage, err error)
	Delete(ctx context.Context, resourceGroupName string) (result resources.GroupsDeleteFuture, err error)
	Client
}

GroupsClient is a minimal interface for azure Resources Client

func NewGroupsClient

func NewGroupsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) GroupsClient

NewGroupsClient creates a new ResourcesClient

type KeyVaultClient

type KeyVaultClient interface {
	GetSecret(ctx context.Context, vaultBaseURL string, secretName string, secretVersion string) (result keyvault.SecretBundle, err error)
	ImportCertificate(ctx context.Context, vaultBaseURL string, certificateName string, parameters keyvault.CertificateImportParameters) (result keyvault.CertificateBundle, err error)
}

func NewKeyVaultClient

func NewKeyVaultClient(ctx context.Context, authorizer autorest.Authorizer) KeyVaultClient

NewKeyVaultClient gets a new client for accessing vault values. Important: the authorizer supplied must have its resource set to "https://vault.azure.net"

type MarketPlaceAgreementsClient

type MarketPlaceAgreementsClient interface {
	Create(ctx context.Context, publisherID string, offerID string, planID string, parameters marketplaceordering.AgreementTerms) (result marketplaceordering.AgreementTerms, err error)
	Get(ctx context.Context, publisherID string, offerID string, planID string) (result marketplaceordering.AgreementTerms, err error)
}

MarketPlaceAgreementsClient is a minimal interface for azure MarketPlaceAgreementsClient

func NewMarketPlaceAgreementsClient

func NewMarketPlaceAgreementsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) MarketPlaceAgreementsClient

NewMarketPlaceAgreementsClient creates a new MarketPlaceAgreementsClient

type RBACApplicationsClient

type RBACApplicationsClient interface {
	List(ctx context.Context, filter string) (result graphrbac.ApplicationListResultPage, err error)
	Patch(ctx context.Context, applicationObjectID string, parameters graphrbac.ApplicationUpdateParameters) (result autorest.Response, err error)
}

RBACApplicationsClient is a minimal interface for azure ApplicationsClient

func NewRBACApplicationsClient

func NewRBACApplicationsClient(ctx context.Context, tenantID string, authorizer autorest.Authorizer) RBACApplicationsClient

NewRBACApplicationsClient creates a new ApplicationsClient

type RBACGroupsClient

type RBACGroupsClient interface {
	RBACGroupsClientAddons
}

RBACGroupsClient is a minimal interface for azure GroupsClient

func NewRBACGroupsClient

func NewRBACGroupsClient(ctx context.Context, tenantID string, authorizer autorest.Authorizer) RBACGroupsClient

NewRBACApplicationsClient creates a new ApplicationsClient

type RBACGroupsClientAddons

type RBACGroupsClientAddons interface {
	GetGroupMembers(ctx context.Context, objectID string) ([]graphrbac.BasicDirectoryObject, error)
}

type RecordSetsClient

type RecordSetsClient interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType dns.RecordType, parameters dns.RecordSet, ifMatch string, ifNoneMatch string) (result dns.RecordSet, err error)
	Delete(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType dns.RecordType, ifMatch string) (result autorest.Response, err error)
	Get(ctx context.Context, resourceGroupName string, zoneName string, relativeRecordSetName string, recordType dns.RecordType) (result dns.RecordSet, err error)
}

RecordSetsClient is a minimal interface for azure RecordSetsClient

func NewRecordSetsClient

func NewRecordSetsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) RecordSetsClient

NewRecordSetsClient creates a new RecordSetsClient

type ResourcesClient

type ResourcesClient interface {
	DeleteByID(ctx context.Context, resourceID string) (result resources.DeleteByIDFuture, err error)
	ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, expand string, top *int32) (result resources.ListResultPage, err error)
}

ResourcesClient is a minimal interface for azure Resources Client

func NewResourcesClient

func NewResourcesClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) ResourcesClient

NewResourcesClient creates a new ResourcesClient

type ServicePrincipalsClient

type ServicePrincipalsClient interface {
	List(ctx context.Context, filter string) (graphrbac.ServicePrincipalListResultPage, error)
}

func NewServicePrincipalsClient

func NewServicePrincipalsClient(ctx context.Context, tenantID string, authorizer autorest.Authorizer) ServicePrincipalsClient

NewServicePrincipalsClient create a client to query ServicePrincipal information

type VaultMgmtClient

type VaultMgmtClient interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName string, vaultName string, parameters mgmtkeyvault.VaultCreateOrUpdateParameters) (result mgmtkeyvault.Vault, err error)
}

func NewVaultMgmtClient

func NewVaultMgmtClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) VaultMgmtClient

NewVaultMgmtClient get a new client for management actions

type VirtualMachineScaleSetExtensionsClient

type VirtualMachineScaleSetExtensionsClient interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName string, VMScaleSetName string, vmssExtensionName string, extensionParameters compute.VirtualMachineScaleSetExtension) (result compute.VirtualMachineScaleSetExtensionsCreateOrUpdateFuture, err error)
	Get(ctx context.Context, resourceGroupName string, VMScaleSetName string, vmssExtensionName string, expand string) (result compute.VirtualMachineScaleSetExtension, err error)
	List(ctx context.Context, resourceGroupName string, VMScaleSetName string) (result compute.VirtualMachineScaleSetExtensionListResultPage, err error)
	Client
}

VirtualMachineScaleSetExtensionsClient is a minimal interface for azure VirtualMachineScaleSetExtensionsClient

func NewVirtualMachineScaleSetExtensionsClient

func NewVirtualMachineScaleSetExtensionsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) VirtualMachineScaleSetExtensionsClient

NewVirtualMachineScaleSetExtensionsClient creates a new VirtualMachineScaleSetExtensionsClient

type VirtualMachineScaleSetVMsClient

type VirtualMachineScaleSetVMsClient interface {
	VirtualMachineScaleSetVMsClientAddons
}

VirtualMachineScaleSetVMsClient is a minimal interface for azure VirtualMachineScaleSetVMsClient

func NewVirtualMachineScaleSetVMsClient

func NewVirtualMachineScaleSetVMsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) VirtualMachineScaleSetVMsClient

NewVirtualMachineScaleSetVMsClient creates a new VirtualMachineScaleSetVMsClient

type VirtualMachineScaleSetVMsClientAddons

type VirtualMachineScaleSetVMsClientAddons interface {
	Deallocate(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string) error
	Delete(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string) error
	List(ctx context.Context, resourceGroupName, virtualMachineScaleSetName, filter, selectParameter, expand string) ([]compute.VirtualMachineScaleSetVM, error)
	Reimage(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string, VMScaleSetVMReimageInput *compute.VirtualMachineScaleSetVMReimageParameters) error
	Restart(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string) error
	RunCommand(ctx context.Context, resourceGroupName string, VMScaleSetName string, instanceID string, parameters compute.RunCommandInput) error
	Start(ctx context.Context, resourceGroupName, VMScaleSetName, instanceID string) error
}

type VirtualMachineScaleSetsClient

type VirtualMachineScaleSetsClient interface {
	VirtualMachineScaleSetsClientAddons
	Client
}

VirtualMachineScaleSetsClient is a minimal interface for azure VirtualMachineScaleSetsClient

func NewVirtualMachineScaleSetsClient

func NewVirtualMachineScaleSetsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) VirtualMachineScaleSetsClient

NewVirtualMachineScaleSetsClient creates a new VirtualMachineScaleSetsClient

type VirtualMachineScaleSetsClientAddons

type VirtualMachineScaleSetsClientAddons interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName, VMScaleSetName string, parameters compute.VirtualMachineScaleSet) error
	Delete(ctx context.Context, resourceGroupName, VMScaleSetName string) error
	List(ctx context.Context, resourceGroup string) ([]compute.VirtualMachineScaleSet, error)
	Update(ctx context.Context, resourceGroupName, VMScaleSetName string, parameters compute.VirtualMachineScaleSetUpdate) error
	UpdateInstances(ctx context.Context, resourceGroupName, VMScaleSetName string, VMInstanceIDs compute.VirtualMachineScaleSetVMInstanceRequiredIDs) error
}

type VirtualNetworksClient

type VirtualNetworksClient interface {
	Get(ctx context.Context, resourceGroupName string, virtualNetworkName string, expand string) (result network.VirtualNetwork, err error)
	List(ctx context.Context, resourceGroupName string) (result network.VirtualNetworkListResultPage, err error)
	CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualNetworkName string, parameters network.VirtualNetwork) (network.VirtualNetworksCreateOrUpdateFuture, error)
	Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string) (network.VirtualNetworksDeleteFuture, error)
	Client
}

VirtualNetworksClient is a minimal interface for azure VirtualNetworkClient

func NewVirtualNetworkClient

func NewVirtualNetworkClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) VirtualNetworksClient

NewVirtualNetworkClient creates a new VirtualNetworkClient

type VirtualNetworksPeeringsClient

type VirtualNetworksPeeringsClient interface {
	Delete(ctx context.Context, resourceGroupName string, virtualNetworkName string, instanceID string) (network.VirtualNetworkPeeringsDeleteFuture, error)
	List(ctx context.Context, resourceGroupName string, virtualNetworkName string) (network.VirtualNetworkPeeringListResultPage, error)
	Client
}

VirtualNetworksPeeringClient is a minimal interface for azure NewVirtualNetworkPeeringsClient

func NewVirtualNetworksPeeringsClient

func NewVirtualNetworksPeeringsClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) VirtualNetworksPeeringsClient

NewVirtualNetworksPeeringsClient creates a new VirtualMachineScaleSetVMsClient

type ZonesClient

type ZonesClient interface {
	CreateOrUpdate(ctx context.Context, resourceGroupName string, zoneName string, parameters dns.Zone, ifMatch string, ifNoneMatch string) (result dns.Zone, err error)
	ZonesClientAddons
}

ZonesClient is a minimal interface for azure ZonesClient

func NewZonesClient

func NewZonesClient(ctx context.Context, subscriptionID string, authorizer autorest.Authorizer) ZonesClient

NewZonesClient creates a new ZonesClient

type ZonesClientAddons

type ZonesClientAddons interface {
	Delete(ctx context.Context, resourceGroupName string, zoneName string, ifMatch string) error
}

Directories

Path Synopsis
openshiftmanagedcluster

Jump to

Keyboard shortcuts

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