azure

package
v0.27.6 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteExpiredACRs

func DeleteExpiredACRs(sessions AzureSessions, options AzureOptions)

DeleteExpiredACRs identifies and deletes Azure Container Registries that have expired based on their TTL tags

func DeleteExpiredRGs

func DeleteExpiredRGs(sessions AzureSessions, options AzureOptions)

DeleteExpiredRGs identifies and deletes Azure Resource Groups that have expired based on their TTL tags

func DeleteExpiredStorageAccounts

func DeleteExpiredStorageAccounts(sessions AzureSessions, options AzureOptions)

DeleteExpiredStorageAccounts identifies and deletes Azure Storage Accounts that have expired based on their TTL tags

func RunPlecoAzure

func RunPlecoAzure(locations []string, interval int64, wg *sync.WaitGroup, options AzureOptions)

Types

type AzureOptions

type AzureOptions struct {
	TagValue             string
	TagName              string
	DisableTTLCheck      bool
	IsDestroyingCommand  bool
	DryRun               bool
	Location             string
	SubscriptionID       string
	ResourceGroupName    string
	EnableRG             bool
	EnableStorageAccount bool
	EnableACR            bool
}

type AzureSessions

type AzureSessions struct {
	RG             *armresources.ResourceGroupsClient
	StorageAccount *armstorage.AccountsClient
	ACR            *armcontainerregistry.RegistriesClient
}

func Initialize

func Initialize() (AzureSessions, error)

Initialize creates and returns an AzureSessions object with authenticated clients

Jump to

Keyboard shortcuts

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