gcp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindCredentials

func FindCredentials(ctx context.Context) (*option.ClientOption, error)

findGcpCredentials returns the default gcp credentials with the CloudPlatformScope

Types

type ClientStore

type ClientStore struct {
	AlloyDBAdminClient           *alloydb.AlloyDBAdminClient
	ArtifactregistryClient       *artifactregistry.Client
	ComputeAddressesClient       *compute.AddressesClient
	ComputeBackendServicesClient *compute.BackendServicesClient
	ComputeDisksClient           *compute.DisksClient
	ComputeNetworksClient        *compute.NetworksClient
	ComputeRegionsClient         *compute.RegionsClient
	ComputeZonesClient           *compute.ZonesClient
	ContainerClustersClient      *container.ClusterManagerClient
	DataprocClustersClient       *dataproc.ClusterControllerClient
	RedisInstancesClient         *redis.CloudRedisClient
	StorageBucketsClient         *storage.Client
}

func InitClients

func InitClients(ctx context.Context, opts *option.ClientOption, project string, apis []string) (*ClientStore, error)

func (*ClientStore) DeleteAlloyDBInstances

func (c *ClientStore) DeleteAlloyDBInstances(ctx context.Context, instances []*alloydbpb.Instance, dryRun bool) error

func (*ClientStore) DeleteArtifactregistryRepositories

func (c *ClientStore) DeleteArtifactregistryRepositories(ctx context.Context, artifactregistryRepositories []*artifactregistrypb.Repository, dryRun bool) error

DeleteArtifactregistryRepositories deletes the provided gcp artifactregistry repositories

func (*ClientStore) DeleteComputeAddresses

func (c *ClientStore) DeleteComputeAddresses(ctx context.Context, addresses []*computepb.Address, dryRun bool) error

func (*ClientStore) DeleteComputeBackendServices

func (c *ClientStore) DeleteComputeBackendServices(ctx context.Context, backendServices []*computepb.BackendService, dryRun bool) error

DeleteComputeBackendServices deletes the provided gcp compute backend services

func (*ClientStore) DeleteComputeDisks

func (c *ClientStore) DeleteComputeDisks(ctx context.Context, disks []*computepb.Disk, dryRun bool) error

DeleteComputeDisks deletes the provided gcp compute disks

func (*ClientStore) DeleteComputeNetworks

func (c *ClientStore) DeleteComputeNetworks(ctx context.Context, networks []*computepb.Network, dryRun bool) error

DeleteComputeNetworks deletes the provided gcp compute networks

func (*ClientStore) DeleteContainerClusters

func (c *ClientStore) DeleteContainerClusters(ctx context.Context, containerClusters []*containerpb.Cluster, dryRun bool) error

DeleteContainerClusters deletes the provided gcp container clusters

func (*ClientStore) DeleteDataprocClusters

func (c *ClientStore) DeleteDataprocClusters(ctx context.Context, dataprocClusters []*dataprocpb.Cluster, dryRun bool) error

DeleteDataprocClusters deletes the provided gcp dataproc clusters

func (*ClientStore) DeleteRedisInstances

func (c *ClientStore) DeleteRedisInstances(ctx context.Context, redisInstances []*redispb.Instance, dryRun bool) error

DeleteRedisInstances deletes the provided gcp redis instances

func (*ClientStore) DeleteStorageBuckets

func (c *ClientStore) DeleteStorageBuckets(ctx context.Context, storageBuckets []*storage.BucketAttrs, dryRun bool) error

DeleteStorageBuckets deletes the provided gcp storage buckets

func (*ClientStore) GetAlloyDBInstances

func (c *ClientStore) GetAlloyDBInstances(ctx context.Context, project string, locations []string) ([]*alloydbpb.Instance, error)

func (*ClientStore) GetArtifactregistryRepositories

func (c *ClientStore) GetArtifactregistryRepositories(ctx context.Context, project string, locations []string) ([]*artifactregistrypb.Repository, error)

GetArtifactregistryRepositories returns a list of gcp artifactregistry repositories of the provided gcp project in the provided locations

func (*ClientStore) GetComputeAddresses

func (c *ClientStore) GetComputeAddresses(ctx context.Context, project string, locations []string) ([]*computepb.Address, error)

GetComputeAddresses returns a list of gcp compute addresses of the provided gcp project in the provided locations

func (*ClientStore) GetComputeBackendServices

func (c *ClientStore) GetComputeBackendServices(ctx context.Context, project string, locations []string) ([]*computepb.BackendService, error)

GetComputeBackendServices returns a list of gcp compute backend services of the provided gcp project in the provided locations

func (*ClientStore) GetComputeDisks

func (c *ClientStore) GetComputeDisks(ctx context.Context, project string, zones []string) ([]*computepb.Disk, error)

GetComputeDisks returns a list of gcp compute disks of the given project in the provided locations

func (*ClientStore) GetComputeNetworks

func (c *ClientStore) GetComputeNetworks(ctx context.Context, project string, locations []string) ([]*computepb.Network, error)

GetComputeNetworks returns a list of gcp compute networks of the provided gcp project in the provided locations

func (*ClientStore) GetComputeRegions

func (c *ClientStore) GetComputeRegions(ctx context.Context, project string) ([]*computepb.Region, error)

GetComputeRegions returns a list of gcp compute regions enabled for the provided gcp project

func (*ClientStore) GetComputeZones

func (c *ClientStore) GetComputeZones(ctx context.Context, project string) ([]*computepb.Zone, error)

GetComputeZones returns a list of gcp compute zones enabled for the provided gcp project

func (*ClientStore) GetContainerClusters

func (c *ClientStore) GetContainerClusters(ctx context.Context, project string, locations []string) ([]*containerpb.Cluster, error)

GetContainerClusters returns a list of gcp container clusters of the provided gcp project in the provided locations

func (*ClientStore) GetDataprocClusters

func (c *ClientStore) GetDataprocClusters(ctx context.Context, project string, locations []string) ([]*dataprocpb.Cluster, error)

GetDataprocClusters returns a list of gcp dataproc clusters of the provided gcp project in the provided locations

func (*ClientStore) GetRedisInstances

func (c *ClientStore) GetRedisInstances(ctx context.Context, project string, locations []string) ([]*redispb.Instance, error)

GetRedisInstances returns a list of gcp redis instances of the provided gcp project in the provided locations

func (*ClientStore) GetStorageBuckets

func (c *ClientStore) GetStorageBuckets(ctx context.Context, project string, locations []string) ([]*storage.BucketAttrs, error)

GetStorageBuckets returns a list of gcp storage buckets of the provided gcp project in the provided locations

Jump to

Keyboard shortcuts

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