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
Click to show internal directories.
Click to hide internal directories.