Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TagsChanged ¶ added in v1.11.0
func TagsChanged(lastAppliedTags map[string]interface{}, desiredTags map[string]string, currentTags map[string]*string) (change bool, createOrUpdates map[string]string, deletes map[string]string, annotation map[string]interface{})
TagsChanged determines which tags to delete and which to add.
Types ¶
type AzureClient ¶ added in v1.6.0
type AzureClient struct {
// contains filtered or unexported fields
}
AzureClient contains the Azure go-sdk client.
func NewClient ¶ added in v1.6.0
func NewClient(auth azure.Authorizer) (*AzureClient, error)
NewClient creates a tags client from an authorizer.
func (*AzureClient) GetAtScope ¶ added in v1.6.0
func (ac *AzureClient) GetAtScope(ctx context.Context, scope string) (armresources.TagsResource, error)
GetAtScope sends the get at scope request.
func (*AzureClient) UpdateAtScope ¶ added in v1.6.0
func (ac *AzureClient) UpdateAtScope(ctx context.Context, scope string, parameters armresources.TagsPatchResource) (armresources.TagsResource, error)
UpdateAtScope this operation allows replacing, merging or selectively deleting tags on the specified resource or subscription.
type Service ¶
type Service struct { Scope TagScope // contains filtered or unexported fields }
Service provides operations on Azure resources.
func (*Service) IsManaged ¶ added in v1.3.0
IsManaged returns always returns true as CAPZ does not support BYO tags.
Click to show internal directories.
Click to hide internal directories.