groups

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupScope

type GroupScope interface {
	logr.Logger
	azure.Authorizer
	azure.AsyncStatusUpdater
	GroupSpec() azure.ResourceSpecGetter
	ClusterName() string
}

GroupScope defines the scope interface for a group service.

type GroupSpec added in v0.5.3

type GroupSpec struct {
	Name           string
	Location       string
	ClusterName    string
	AdditionalTags infrav1.Tags
}

GroupSpec defines the specification for a Resource Group.

func (*GroupSpec) OwnerResourceName added in v0.5.3

func (s *GroupSpec) OwnerResourceName() string

OwnerResourceName is a no-op for groups.

func (*GroupSpec) Parameters added in v0.5.3

func (s *GroupSpec) Parameters(existing interface{}) (interface{}, error)

Parameters returns the parameters for the group.

func (*GroupSpec) ResourceGroupName added in v0.5.3

func (s *GroupSpec) ResourceGroupName() string

ResourceGroupName returns the name of the group. Note that it is the same as the resource name in this case.

func (*GroupSpec) ResourceName added in v0.5.3

func (s *GroupSpec) ResourceName() string

ResourceName returns the name of the group.

type Service

type Service struct {
	Scope GroupScope
	// contains filtered or unexported fields
}

Service provides operations on Azure resources.

func New

func New(scope GroupScope) *Service

New creates a new service.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context) error

Delete deletes the resource group if it is managed by capz.

func (*Service) IsGroupManaged

func (s *Service) IsGroupManaged(ctx context.Context) (bool, error)

IsGroupManaged returns true if the resource group has an owned tag with the cluster name as value, meaning that the resource group's lifecycle is managed.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) error

Reconcile gets/creates/updates a resource group.

Directories

Path Synopsis
Package mock_groups is a generated GoMock package.
Package mock_groups is a generated GoMock package.

Jump to

Keyboard shortcuts

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