Documentation
¶
Index ¶
- func GetNetworkInterfaceName(machine *clusterv1.Machine) string
- func GetOSDiskName(machine *clusterv1.Machine) string
- func GetPublicIPName(machine *clusterv1.Machine) string
- func GetVMName(machine *clusterv1.Machine) string
- func ResourceName(id string) (string, error)
- type Service
- func (s *Service) CheckGroupExistence(resourceGroupName string) (autorest.Response, error)
- func (s *Service) CreateOrUpdateDeployment(machine *clusterv1.Machine, ...) (*resources.DeploymentsCreateOrUpdateFuture, error)
- func (s *Service) CreateOrUpdateGroup(resourceGroupName string, location string) (resources.Group, error)
- func (s *Service) DeleteGroup(resourceGroupName string) (resources.GroupsDeleteFuture, error)
- func (s *Service) GetDeploymentResult(future resources.DeploymentsCreateOrUpdateFuture) (de resources.DeploymentExtended, err error)
- func (s *Service) SetAuthorizer(authorizer autorest.Authorizer)
- func (s *Service) ValidateDeployment(machine *clusterv1.Machine, ...) error
- func (s *Service) WaitForDeploymentsCreateOrUpdateFuture(future resources.DeploymentsCreateOrUpdateFuture) error
- func (s *Service) WaitForGroupsDeleteFuture(future resources.GroupsDeleteFuture) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNetworkInterfaceName ¶
GetNetworkInterfaceName returns the nic resource name of the machine.
func GetOSDiskName ¶
GetOSDiskName returns the OS disk resource name of the machine.
func GetPublicIPName ¶
GetPublicIPName returns the public IP resource name of the machine.
func ResourceName ¶
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 ¶
NewService returns a new instance of Service.
func (*Service) CheckGroupExistence ¶
CheckGroupExistence checks oif the resource group exists or not.
func (*Service) CreateOrUpdateDeployment ¶
func (s *Service) CreateOrUpdateDeployment(machine *clusterv1.Machine, clusterConfig *azureconfigv1.AzureClusterProviderSpec, machineConfig *azureconfigv1.AzureMachineProviderSpec) (*resources.DeploymentsCreateOrUpdateFuture, error)
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.