package gke
import "gvisor.dev/gvisor/tools/gvisor_k8s_tool/provider/gke"
Package gke contains functions to interact with Google Kubernetes Engine.
Index ¶
- func GetCluster(ctx context.Context, clusterURL ClusterURL) (*cluster.Cluster, error)
- type ClusterURL
Functions ¶
func GetCluster ¶
GetCluster returns a Kubernetes client for the given named cluster.
Types ¶
type ClusterURL ¶
ClusterURL represents a GKE cluster URL of the format: "projects/$MYPROJECT/locations/$CONTINENT-$LOCATION/clusters/$CLUSTER"
func NewClusterURL ¶
func NewClusterURL(url string) (ClusterURL, error)
NewClusterURL parses the cluster URL.
func (ClusterURL) String ¶
func (c ClusterURL) String() string
String returns the cluster URL string.
Source Files ¶
gke.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 14 minutes ago –
Tools for package owners.