Documentation ¶
Index ¶
- Constants
- type GroupScope
- type GroupSpec
- func (s *GroupSpec) GetActualTags(resource genruntime.MetaObject) (infrav1.Tags, error)
- func (s *GroupSpec) GetAdditionalTags() infrav1.Tags
- func (s *GroupSpec) GetDesiredTags(resource genruntime.MetaObject) (infrav1.Tags, error)
- func (s *GroupSpec) Parameters(ctx context.Context, object genruntime.MetaObject) (genruntime.MetaObject, error)
- func (s *GroupSpec) ResourceRef() genruntime.MetaObject
- func (s *GroupSpec) SetTags(resource genruntime.MetaObject, tags infrav1.Tags) error
- func (s *GroupSpec) WasManaged(object genruntime.MetaObject) bool
- type Service
- func (s *Service) Delete(ctx context.Context) error
- func (s *Service) IsManaged(ctx context.Context) (bool, error)
- func (s *Service) Name() string
- func (s *Service) Pause(ctx context.Context) error
- func (s *Service) Reconcile(ctx context.Context) error
- func (s *Service) ShouldDeleteIndividualResources(ctx context.Context) bool
Constants ¶
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.AsyncStatusUpdater GroupSpec() azure.ASOResourceSpecGetter GetClient() client.Client ClusterName() string }
GroupScope defines the scope interface for a group service.
type GroupSpec ¶ added in v0.5.3
type GroupSpec struct { Name string Namespace string Location string ClusterName string AdditionalTags infrav1.Tags Owner metav1.OwnerReference }
GroupSpec defines the specification for a Resource Group.
func (*GroupSpec) GetActualTags ¶ added in v1.11.0
func (s *GroupSpec) GetActualTags(resource genruntime.MetaObject) (infrav1.Tags, error)
GetActualTags implements aso.TagsGetterSetter.
func (*GroupSpec) GetAdditionalTags ¶ added in v1.11.0
GetAdditionalTags implements aso.TagsGetterSetter.
func (*GroupSpec) GetDesiredTags ¶ added in v1.11.0
func (s *GroupSpec) GetDesiredTags(resource genruntime.MetaObject) (infrav1.Tags, error)
GetDesiredTags implements aso.TagsGetterSetter.
func (*GroupSpec) Parameters ¶ added in v0.5.3
func (s *GroupSpec) Parameters(ctx context.Context, object genruntime.MetaObject) (genruntime.MetaObject, error)
Parameters implements aso.ResourceSpecGetter.
func (*GroupSpec) ResourceRef ¶ added in v1.11.0
func (s *GroupSpec) ResourceRef() genruntime.MetaObject
ResourceRef implements aso.ResourceSpecGetter.
func (*GroupSpec) SetTags ¶ added in v1.11.0
func (s *GroupSpec) SetTags(resource genruntime.MetaObject, tags infrav1.Tags) error
SetTags implements aso.TagsGetterSetter.
func (*GroupSpec) WasManaged ¶ added in v1.11.0
func (s *GroupSpec) WasManaged(object genruntime.MetaObject) bool
WasManaged implements azure.ASOResourceSpecGetter.
type Service ¶
type Service struct { Scope GroupScope aso.Reconciler }
Service provides operations on Azure resources.
func (*Service) IsManaged ¶ added in v1.3.0
IsManaged returns true if the ASO ResourceGroup was created by CAPZ, meaning that the resource group's lifecycle is managed.
func (*Service) ShouldDeleteIndividualResources ¶ added in v1.11.0
ShouldDeleteIndividualResources returns false if the resource group is 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. |