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