gcp

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 5 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

func NewContainerClient

func NewContainerClient(ctx context.Context) (*googleContainer.Service, error)

NewContainerClient creates a client that can be used to fetch cluster credentials

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, 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

Jump to

Keyboard shortcuts

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