Documentation ¶
Index ¶
- func ResourceName(id string) (string, error)
- type Service
- func (s *Service) CheckGroupExistence(resourceGroupName string) (autorest.Response, error)
- func (s *Service) CreateOrUpdateDeployment(machine *clusterv1.Machine, clusterConfig *providerv1.AzureClusterProviderSpec, ...) (*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) DeleteResourceGroup() (err error)
- func (s *Service) GetDeploymentResult(future resources.DeploymentsCreateOrUpdateFuture) (de resources.DeploymentExtended, err error)
- func (s *Service) GetNetworkInterfaceName(machine *clusterv1.Machine) string
- func (s *Service) GetOSDiskName(machine *clusterv1.Machine) string
- func (s *Service) GetPublicIPName(machine *clusterv1.Machine) string
- func (s *Service) GetVMName(machine *clusterv1.Machine) string
- func (s *Service) ReconcileResourceGroup() (err error)
- func (s *Service) ValidateDeployment(machine *clusterv1.Machine, clusterConfig *providerv1.AzureClusterProviderSpec, ...) 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 ResourceName ¶
ResourceName extracts the name of the resource from its ID.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the ec2 client.
func NewService ¶
NewService returns a new service given the api clients.
func (*Service) CheckGroupExistence ¶
CheckGroupExistence checks if the resource group exists or not.
func (*Service) CreateOrUpdateDeployment ¶
func (s *Service) CreateOrUpdateDeployment(machine *clusterv1.Machine, clusterConfig *providerv1.AzureClusterProviderSpec, machineConfig *providerv1.AzureMachineProviderSpec, startupScript string) (*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) DeleteResourceGroup ¶
DeleteResourceGroup deletes the network of the given cluster.
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) GetNetworkInterfaceName ¶
GetNetworkInterfaceName returns the nic resource name of the machine.
func (*Service) GetOSDiskName ¶
GetOSDiskName returns the OS disk resource name of the machine.
func (*Service) GetPublicIPName ¶
GetPublicIPName returns the public IP resource name of the machine. TODO: Move to network package
func (*Service) ReconcileResourceGroup ¶
ReconcileResourceGroup reconciles the resource group of the given cluster.
func (*Service) ValidateDeployment ¶
func (s *Service) ValidateDeployment(machine *clusterv1.Machine, clusterConfig *providerv1.AzureClusterProviderSpec, machineConfig *providerv1.AzureMachineProviderSpec, startupScript string) 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.