azure

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Provider = "azure"

Variables

This section is empty.

Functions

func GetAuthorizer

func GetAuthorizer(sp *ServicePrincipal, env *azure.Environment) (autorest.Authorizer, error)

GetAuthorizer returns autorest Authorizer with the specified service principal in the specified environment

Types

type ActivityLogsClient

type ActivityLogsClient struct {
	insights.ActivityLogsClient
}

ActivityLogsClient extends insights.ActivityLogsClient

type CloudConnection

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

CloudConnection represents an authenticated Azure cloud connection

func NewCloudConnection

func NewCloudConnection(env *azure.Environment, creds *Credentials) (*CloudConnection, error)

NewCloudConnection returns a new CloudConnection instance

func (*CloudConnection) GetActivityLogsClient

func (cc *CloudConnection) GetActivityLogsClient() *ActivityLogsClient

GetActivityLogsClient returns a ActivityLogsClient instance

func (*CloudConnection) GetContainerServicesClient

func (cc *CloudConnection) GetContainerServicesClient() *ContainerServicesClient

GetContainerServicesClient returns a ContainerServicesClient instance

func (*CloudConnection) GetGroupsClient

func (cc *CloudConnection) GetGroupsClient() *GroupsClient

GetGroupsClient returns a GroupsClient instance

func (*CloudConnection) GetLoadBalancersClient

func (cc *CloudConnection) GetLoadBalancersClient() *LoadBalancersClient

GetLoadBalancersClient returns a LoadBalancersClient instance

func (*CloudConnection) GetManagedClustersClient

func (cc *CloudConnection) GetManagedClustersClient() *ManagedClustersClient

GetManagedClustersClient returns a ManagedClustersClient instance

func (*CloudConnection) GetProvidersClient

func (cc *CloudConnection) GetProvidersClient() *ProvidersClient

GetProvidersClient returns a ProvidersClient instance

func (*CloudConnection) GetPublicIPAddressesClient

func (cc *CloudConnection) GetPublicIPAddressesClient() *PublicIPAddressesClient

GetPublicIPAddressesClient returns a PublicIPAddressesClient instance

func (*CloudConnection) GetRoleAssignmentsClient

func (cc *CloudConnection) GetRoleAssignmentsClient() *RoleAssignmentsClient

GetRoleAssignmentsClient returns a RoleAssignmentsClient instance

func (*CloudConnection) GetRoleDefinitionsClient

func (cc *CloudConnection) GetRoleDefinitionsClient() *RoleDefinitionsClient

GetRoleDefinitionsClient returns a RoleDefinitionsClient instance

func (*CloudConnection) GetRouteTablesClient

func (cc *CloudConnection) GetRouteTablesClient() *RouteTablesClient

GetRouteTablesClient returns a RouteTablesClient instance

func (*CloudConnection) GetSecurityGroupsClient

func (cc *CloudConnection) GetSecurityGroupsClient() *SecurityGroupsClient

GetSecurityGroupsClient returns a SecurityGroupsClient instance

func (*CloudConnection) GetSubnetsClient

func (cc *CloudConnection) GetSubnetsClient() *SubnetsClient

GetSubnetsClient returns a SubnetsClient instance

func (*CloudConnection) GetSubscriptionID

func (cc *CloudConnection) GetSubscriptionID() string

GetSubscriptionID returns the subscription ID used to connect to the cloud

func (*CloudConnection) GetSubscriptionsClient

func (cc *CloudConnection) GetSubscriptionsClient() *SubscriptionsClient

GetSubscriptionsClient returns a SubscriptionsClient instance

func (*CloudConnection) GetVirtualMachineScaleSetsClient

func (cc *CloudConnection) GetVirtualMachineScaleSetsClient() *VirtualMachineScaleSetsClient

GetVirtualMachineScaleSetsClient returns a VirtualMachineScaleSetsClient instance

func (*CloudConnection) GetVirtualMachineSizesClient

func (cc *CloudConnection) GetVirtualMachineSizesClient() *VirtualMachineSizesClient

GetVirtualMachineSizesClient returns a VirtualMachineSizesClient instance

func (*CloudConnection) GetVirtualMachinesClient

func (cc *CloudConnection) GetVirtualMachinesClient() *VirtualMachinesClient

GetVirtualMachinesClient returns a VirtualMachinesClient instance

func (*CloudConnection) GetVirtualNetworksClient

func (cc *CloudConnection) GetVirtualNetworksClient() *VirtualNetworksClient

GetVirtualNetworksClient returns a VirtualNetworksClient instance

type ContainerServicesClient

type ContainerServicesClient struct {
	containerservice.ContainerServicesClient
}

ContainerServicesClient extends containerservice.ContainerServicesClient

func (*ContainerServicesClient) ListKubernetesVersions

func (client *ContainerServicesClient) ListKubernetesVersions(ctx context.Context, location string) (res []string, err error)

ListKubernetesVersions returns available k8s versions at the specified location

type Credentials

type Credentials struct {
	ServicePrincipal
	SubscriptionID string
}

Credentials represents Azure credential data

func NewCredentials

func NewCredentials(values map[string]string) *Credentials

NewCredentials creates a new Credentials instance from a secret's values

type GroupsClient

type GroupsClient struct {
	resources.GroupsClient
}

GroupsClient extends resources.GroupsClient

func (*GroupsClient) ListAll

func (client *GroupsClient) ListAll(ctx context.Context, filter string, top *int32) (res []resources.Group, err error)

ListAll returns all resource groups

type LoadBalancersClient

type LoadBalancersClient struct {
	network.LoadBalancersClient
}

LoadBalancersClient extends network.LoadBalancersClient

type ManagedClustersClient

type ManagedClustersClient struct {
	containerservice.ManagedClustersClient
}

ManagedClustersClient extends containerservice.ManagedClustersClient

func (*ManagedClustersClient) CreateOrUpdateAndWaitForIt

func (client *ManagedClustersClient) CreateOrUpdateAndWaitForIt(ctx context.Context, resourceGroupName, clusterName string, params *containerservice.ManagedCluster) (*containerservice.ManagedCluster, error)

CreateOrUpdateAndWaitForIt creates or updates the specified cluster and waits for the operation to finish, returning the resulting cluster

func (*ManagedClustersClient) DeleteAndWaitForIt

func (client *ManagedClustersClient) DeleteAndWaitForIt(ctx context.Context, resourceGroupName, clusterName string) error

DeleteAndWaitForIt deletes the specified cluster and waits for the operation to finish

type ProvidersClient

type ProvidersClient struct {
	resources.ProvidersClient
}

ProvidersClient extends resources.ProvidersClient

type PublicIPAddressesClient

type PublicIPAddressesClient struct {
	network.PublicIPAddressesClient
}

PublicIPAddressesClient extends network.PublicIPAddressesClient

type RoleAssignmentsClient

type RoleAssignmentsClient struct {
	authorization.RoleAssignmentsClient
}

RoleAssignmentsClient extends authorization.RoleAssignmentsClient

func (*RoleAssignmentsClient) AssignRole

func (client *RoleAssignmentsClient) AssignRole(ctx context.Context, scope, roleDefinitionID, principalID string) (authorization.RoleAssignment, error)

AssignRole creates a role assignment featuring the specified role definition and principal and returns the assignment

func (*RoleAssignmentsClient) ListAll

func (client *RoleAssignmentsClient) ListAll(ctx context.Context, filter string) (res []authorization.RoleAssignment, err error)

ListAll returns all role assignments

type RoleDefinitionsClient

type RoleDefinitionsClient struct {
	authorization.RoleDefinitionsClient
}

RoleDefinitionsClient extends authorization.RoleDefinitionsClient

func (*RoleDefinitionsClient) FindByRoleName

func (client *RoleDefinitionsClient) FindByRoleName(ctx context.Context, scope, roleName string) (*authorization.RoleDefinition, error)

FindByRoleName returns a role definition with the matching name or nil, if no such definition can be found

type RouteTablesClient

type RouteTablesClient struct {
	network.RouteTablesClient
}

RouteTablesClient extends network.RouteTablesClient

type SecurityGroupsClient

type SecurityGroupsClient struct {
	network.SecurityGroupsClient
}

SecurityGroupsClient extends network.SecurityGroupsClient

type ServicePrincipal

type ServicePrincipal struct {
	ClientID     string
	ClientSecret string
	TenantID     string
}

ServicePrincipal represents Azure service principal data

type SubnetsClient

type SubnetsClient struct {
	network.SubnetsClient
}

SubnetsClient extends network.SubnetsClient

type SubscriptionsClient

type SubscriptionsClient struct {
	subscriptions.Client
}

SubscriptionsClient extends subscriptions.Client

type VirtualMachineScaleSetsClient

type VirtualMachineScaleSetsClient struct {
	compute.VirtualMachineScaleSetsClient
}

VirtualMachineScaleSetsClient extends compute.VirtualMachineScaleSetsClient

type VirtualMachineSizesClient

type VirtualMachineSizesClient struct {
	compute.VirtualMachineSizesClient
}

VirtualMachineSizesClient extends compute.VirtualMachineSizesClient

func (*VirtualMachineSizesClient) ListMachineTypes

func (client *VirtualMachineSizesClient) ListMachineTypes(ctx context.Context, location string) (res cluster.MachineTypes, err error)

ListMachineTypes returns all machine types available at the specified location

type VirtualMachinesClient

type VirtualMachinesClient struct {
	compute.VirtualMachinesClient
}

VirtualMachinesClient extends compute.VirtualMachinesClient

func (*VirtualMachinesClient) CreateOrUpdateAndWaitForIt

func (client *VirtualMachinesClient) CreateOrUpdateAndWaitForIt(ctx context.Context, resourceGroupName string, vm *compute.VirtualMachine) (*compute.VirtualMachine, error)

CreateOrUpdateAndWaitForIt creates or updates the specified virtual machine and waits for the operation to finish, returning the resulting VM

func (*VirtualMachinesClient) ListAll

func (client *VirtualMachinesClient) ListAll(ctx context.Context, resourceGroupName string) (res []compute.VirtualMachine, err error)

ListAll returns all virtual machines belonging to the specified resource group

type VirtualNetworksClient

type VirtualNetworksClient struct {
	network.VirtualNetworksClient
}

VirtualNetworksClient extends network.VirtualNetworksClient

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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