resources

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResourceName

func ResourceName(id string) (string, error)

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

func NewService(scope *actuators.Scope) *Service

NewService returns a new service given the api clients.

func (*Service) CheckGroupExistence

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

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

func (s *Service) DeleteResourceGroup() (err error)

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

func (s *Service) GetNetworkInterfaceName(machine *clusterv1.Machine) string

GetNetworkInterfaceName returns the nic resource name of the machine.

func (*Service) GetOSDiskName

func (s *Service) GetOSDiskName(machine *clusterv1.Machine) string

GetOSDiskName returns the OS disk resource name of the machine.

func (*Service) GetPublicIPName

func (s *Service) GetPublicIPName(machine *clusterv1.Machine) string

GetPublicIPName returns the public IP resource name of the machine. TODO: Move to network package

func (*Service) GetVMName

func (s *Service) GetVMName(machine *clusterv1.Machine) string

GetVMName returns the VM resource name of the machine.

func (*Service) ReconcileResourceGroup

func (s *Service) ReconcileResourceGroup() (err error)

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.

Jump to

Keyboard shortcuts

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