groups

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ServiceName = "group"

ServiceName is the name of this service.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupScope

type GroupScope interface {
	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(ctx context.Context, existing interface{}) (params interface{}, err 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
	async.Reconciler
	// 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) IsManaged added in v1.3.0

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

IsManaged 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) Name added in v1.3.0

func (s *Service) Name() string

Name returns the service name.

func (*Service) Reconcile

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

Reconcile idempotently creates or 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