gcp

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteExpiredArtifactRegistryRepositories

func DeleteExpiredArtifactRegistryRepositories(sessions GCPSessions, options GCPOptions)

func DeleteExpiredBuckets

func DeleteExpiredBuckets(sessions GCPSessions, options GCPOptions)

func DeleteExpiredGKEClusters

func DeleteExpiredGKEClusters(sessions GCPSessions, options GCPOptions)

func DeleteExpiredRouters added in v0.15.0

func DeleteExpiredRouters(sessions GCPSessions, options GCPOptions)

func DeleteExpiredServiceAccounts

func DeleteExpiredServiceAccounts(sessions GCPSessions, options GCPOptions)

func DeleteExpiredVPCs

func DeleteExpiredVPCs(sessions GCPSessions, options GCPOptions)

func RunPlecoGCP

func RunPlecoGCP(regions []string, interval int64, wg *sync.WaitGroup, options GCPOptions)

Types

type GCPOptions

type GCPOptions struct {
	ProjectID              string
	TagName                string
	TagValue               string
	DisableTTLCheck        bool
	IsDestroyingCommand    bool
	DryRun                 bool
	Location               string
	EnableCluster          bool
	EnableBucket           bool
	EnableNetwork          bool
	EnableArtifactRegistry bool
	EnableIAM              bool
	EnableRouter           bool
}

type GCPSessions

type GCPSessions struct {
	Bucket           *storage.Client
	ArtifactRegistry *artifactregistry.Client
	Cluster          *container.ClusterManagerClient
	Network          *compute.NetworksClient
	Router           *compute.RoutersClient
	IAM              *iam.Service
}

Jump to

Keyboard shortcuts

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