groups

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 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 {
	aso.Scope
	GroupSpecs() []azure.ASOResourceSpecGetter[*asoresourcesv1.ResourceGroup]
}

GroupScope defines the scope interface for a group service.

type GroupSpec added in v0.5.3

type GroupSpec struct {
	Name           string
	AzureName      string
	Namespace      string
	Location       string
	ClusterName    string
	AdditionalTags infrav1.Tags
	Owner          metav1.OwnerReference
}

GroupSpec defines the specification for a Resource Group.

func (*GroupSpec) GetAdditionalTags added in v1.11.0

func (s *GroupSpec) GetAdditionalTags() infrav1.Tags

GetAdditionalTags implements aso.TagsGetterSetter.

func (*GroupSpec) GetDesiredTags added in v1.11.0

func (*GroupSpec) GetDesiredTags(resource *asoresourcesv1.ResourceGroup) infrav1.Tags

GetDesiredTags implements aso.TagsGetterSetter.

func (*GroupSpec) Parameters added in v0.5.3

Parameters implements aso.ResourceSpecGetter.

func (*GroupSpec) ResourceRef added in v1.11.0

func (s *GroupSpec) ResourceRef() *asoresourcesv1.ResourceGroup

ResourceRef implements aso.ResourceSpecGetter.

func (*GroupSpec) SetTags added in v1.11.0

func (*GroupSpec) SetTags(resource *asoresourcesv1.ResourceGroup, tags infrav1.Tags)

SetTags implements aso.TagsGetterSetter.

func (*GroupSpec) WasManaged added in v1.11.0

func (s *GroupSpec) WasManaged(resource *asoresourcesv1.ResourceGroup) bool

WasManaged implements azure.ASOResourceSpecGetter.

type Service

type Service struct {
	Scope GroupScope
	*aso.Service[*asoresourcesv1.ResourceGroup, GroupScope]
}

Service provides operations on Azure resources.

func New

func New(scope GroupScope) *Service

New creates a new service.

func (*Service) IsManaged added in v1.3.0

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

IsManaged returns true if all resource groups are managed and reconciled by ASO, meaning that we can rely on a single resource group delete operation as opposed to deleting every individual resource.

Directories

Path Synopsis
Run go generate to regenerate this mock.
Run go generate to regenerate this mock.

Jump to

Keyboard shortcuts

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