gcp

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: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteBindingsWithNonExistentServiceAccounts added in v0.27.4

func DeleteBindingsWithNonExistentServiceAccounts(sessions GCPSessions, options GCPOptions)

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 DeleteExpiredJobs added in v0.27.1

func DeleteExpiredJobs(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 DeleteOrphanedIAMPolicyBindings added in v0.27.1

func DeleteOrphanedIAMPolicyBindings(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
	EnableJob              bool
}

type GCPSessions

type GCPSessions struct {
	Bucket           *storage.Client
	ArtifactRegistry *artifactregistry.Client
	Cluster          *container.ClusterManagerClient
	Network          *compute.NetworksClient
	Subnetwork       *compute.SubnetworksClient
	Route            *compute.RoutesClient
	Router           *compute.RoutersClient
	IAM              *iam.Service
	CRM              *cloudresourcemanager.Service
	Job              *run.JobsClient
}

Jump to

Keyboard shortcuts

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