gcp

package
v0.25.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterClient

func NewClusterClient(ctx context.Context) (*container.ClusterManagerClient, error)

NewClusterClient creates a client that can be used to interact with GKE clusters

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(clusterManager *container.ClusterManagerClient) (*Client, error)

NewClient will return a client that has permissions to interact with GCP services

func (*Client) GetCluster

func (c *Client) GetCluster(ctx context.Context, cluster, location, project string) (*containerpb.Cluster, error)

GetCluster will return GKE cluster details

type GCloudError added in v0.23.0

type GCloudError struct {
	// contains filtered or unexported fields
}

func (GCloudError) Error added in v0.23.0

func (g GCloudError) Error() string

Jump to

Keyboard shortcuts

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