resources

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNetworkInterfaceName

func GetNetworkInterfaceName(machine *clusterv1.Machine) string

GetNetworkInterfaceName returns the nic resource name of the machine.

func GetOSDiskName

func GetOSDiskName(machine *clusterv1.Machine) string

GetOSDiskName returns the OS disk resource name of the machine.

func GetPublicIPName

func GetPublicIPName(machine *clusterv1.Machine) string

GetPublicIPName returns the public IP resource name of the machine.

func GetVMName

func GetVMName(machine *clusterv1.Machine) string

GetVMName returns the VM resource name of the machine.

func ResourceName

func ResourceName(id string) (string, error)

ResourceName extracts the name of the resource from its ID.

Types

type Service

type Service struct {
	DeploymentsClient resources.DeploymentsClient
	GroupsClient      resources.GroupsClient
	// contains filtered or unexported fields
}

Service implements the AzureResourceManagementClient interface.

func NewService

func NewService(subscriptionID string) *Service

NewService returns a new instance of Service.

func (*Service) CheckGroupExistence

func (s *Service) CheckGroupExistence(resourceGroupName string) (autorest.Response, error)

CheckGroupExistence checks oif the resource group exists or not.

func (*Service) CreateOrUpdateDeployment

CreateOrUpdateDeployment is used to create or update a kubernetes cluster. It does so by creating or updating an ARM deployment.

func (*Service) CreateOrUpdateGroup

func (s *Service) CreateOrUpdateGroup(resourceGroupName string, location string) (resources.Group, error)

CreateOrUpdateGroup creates or updates an azure resource group.

func (*Service) DeleteGroup

func (s *Service) DeleteGroup(resourceGroupName string) (resources.GroupsDeleteFuture, error)

DeleteGroup deletes an azure resource group.

func (*Service) GetDeploymentResult

func (s *Service) GetDeploymentResult(future resources.DeploymentsCreateOrUpdateFuture) (de resources.DeploymentExtended, err error)

GetDeploymentResult retrieves the result of the ARM deployment operation.

func (*Service) SetAuthorizer

func (s *Service) SetAuthorizer(authorizer autorest.Authorizer)

SetAuthorizer sets the authorizer component of the azure clients.

func (*Service) ValidateDeployment

func (s *Service) ValidateDeployment(machine *clusterv1.Machine, clusterConfig *azureconfigv1.AzureClusterProviderSpec, machineConfig *azureconfigv1.AzureMachineProviderSpec) error

ValidateDeployment validates the parameters of the cluster by calling the ARM validate method.

func (*Service) WaitForDeploymentsCreateOrUpdateFuture

func (s *Service) WaitForDeploymentsCreateOrUpdateFuture(future resources.DeploymentsCreateOrUpdateFuture) error

WaitForDeploymentsCreateOrUpdateFuture returns when the ARM operation completes.

func (*Service) WaitForGroupsDeleteFuture

func (s *Service) WaitForGroupsDeleteFuture(future resources.GroupsDeleteFuture) error

WaitForGroupsDeleteFuture returns when the DeleteGroup operation completes.

Jump to

Keyboard shortcuts

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