Documentation ¶
Index ¶
- func DestroyCluster(ctx context.Context, clusterId string) error
- func DialPort(ctx context.Context, cluster *KubernetesCluster, targetPort int) (net.Conn, error)
- func UserSSHKeys() (compute.Computable[[]string], error)
- type BuildCluster
- type BuildCluster_ColocatedPort
- type ClusterShape
- type CreateClusterResult
- type CreateKubernetesClusterRequest
- type CreateKubernetesClusterResponse
- type DestroyKubernetesClusterRequest
- type GetKubernetesClusterRequest
- type GetKubernetesClusterResponse
- type ImageRegistry
- type KubernetesCluster
- type KubernetesClusterList
- type LabelEntry
- type ListKubernetesClustersRequest
- type StartCreateKubernetesClusterResponse
- type WaitKubernetesClusterRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UserSSHKeys ¶
func UserSSHKeys() (compute.Computable[[]string], error)
Types ¶
type BuildCluster ¶
type BuildCluster struct {
Colocated *BuildCluster_ColocatedPort `json:"colocated,omitempty"`
}
type ClusterShape ¶
type CreateClusterResult ¶
type CreateClusterResult struct { ClusterId string Cluster *KubernetesCluster Registry *ImageRegistry BuildCluster *BuildCluster Deadline *time.Time }
func CreateAndWaitCluster ¶
func WaitCluster ¶
func WaitCluster(ctx context.Context, clusterId string) (*CreateClusterResult, error)
type CreateKubernetesClusterRequest ¶
type CreateKubernetesClusterRequest struct { OpaqueUserAuth []byte `json:"opaque_user_auth,omitempty"` Ephemeral bool `json:"ephemeral,omitempty"` DocumentedPurpose string `json:"documented_purpose,omitempty"` AuthorizedSshKeys []string `json:"authorized_ssh_keys,omitempty"` MachineType string `json:"machine_type,omitempty"` Feature []string `json:"feature,omitempty"` }
type CreateKubernetesClusterResponse ¶
type CreateKubernetesClusterResponse struct { Status string `json:"status,omitempty"` ClusterId string `json:"cluster_id,omitempty"` Cluster *KubernetesCluster `json:"cluster,omitempty"` Registry *ImageRegistry `json:"registry,omitempty"` BuildCluster *BuildCluster `json:"build_cluster,omitempty"` Deadline string `json:"deadline,omitempty"` }
type GetKubernetesClusterResponse ¶
type GetKubernetesClusterResponse struct { Cluster *KubernetesCluster `json:"cluster,omitempty"` Registry *ImageRegistry `json:"registry,omitempty"` BuildCluster *BuildCluster `json:"build_cluster,omitempty"` Deadline string `json:"deadline,omitempty"` }
func GetCluster ¶
func GetCluster(ctx context.Context, clusterId string) (*GetKubernetesClusterResponse, error)
type ImageRegistry ¶
type ImageRegistry struct {
EndpointAddress string `json:"endpoint_address,omitempty"`
}
type KubernetesCluster ¶
type KubernetesCluster struct { ClusterId string `json:"cluster_id,omitempty"` Created string `json:"created,omitempty"` Deadline string `json:"deadline,omitempty"` SSHProxyEndpoint string `json:"ssh_proxy_endpoint,omitempty"` SshPrivateKey []byte `json:"ssh_private_key,omitempty"` DocumentedPurpose string `json:"documented_purpose,omitempty"` Shape *ClusterShape `json:"shape,omitempty"` EndpointAddress string `json:"endpoint_address,omitempty"` CertificateAuthorityData []byte `json:"certificate_authority_data,omitempty"` ClientCertificateData []byte `json:"client_certificate_data,omitempty"` ClientKeyData []byte `json:"client_key_data,omitempty"` KubernetesDistribution string `json:"kubernetes_distribution,omitempty"` Platform []string `json:"platform,omitempty"` IngressDomain string `json:"ingress_domain,omitempty"` Label []*LabelEntry `json:"label,omitempty"` }
func CreateCluster ¶
type KubernetesClusterList ¶
type KubernetesClusterList struct {
Clusters []KubernetesCluster `json:"cluster"`
}
func ListClusters ¶
func ListClusters(ctx context.Context) (*KubernetesClusterList, error)
type LabelEntry ¶
type ListKubernetesClustersRequest ¶
type ListKubernetesClustersRequest struct {
OpaqueUserAuth []byte `json:"opaque_user_auth,omitempty"`
}
type StartCreateKubernetesClusterResponse ¶
type StartCreateKubernetesClusterResponse struct { ClusterId string `json:"cluster_id,omitempty"` ClusterFragment *KubernetesCluster `json:"cluster_fragment,omitempty"` }
Click to show internal directories.
Click to hide internal directories.