Documentation
¶
Index ¶
- func ExecCommand(ctx context.Context, infra Outputs, pod, container string, cmd []string, ...) error
- func GetPodName(ctx context.Context, cfg *rest.Config, infra Outputs, pod string) (string, error)
- func NewRemoter(ctx context.Context, osWriters logging.OsWriters, ...) (admin.Remoter, error)
- type ClusterNamespaceOutputs
- type ClusterOutputs
- type Outputs
- type Remoter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecCommand ¶
func GetPodName ¶
GetPodName finds a pod based on the current infrastructure and an optional pod name If pod name is left blank, this will find either the only active pod or first active pod in a replica set
Types ¶
type ClusterNamespaceOutputs ¶
type ClusterNamespaceOutputs struct { ClusterEndpoint string `ns:"cluster_endpoint"` ClusterCACertificate string `ns:"cluster_ca_certificate"` }
func (ClusterNamespaceOutputs) ClusterInfo ¶
func (o ClusterNamespaceOutputs) ClusterInfo() (clientcmdapi.Cluster, error)
type ClusterOutputs ¶
type ClusterOutputs struct { ClusterEndpoint string `ns:"cluster_endpoint"` ClusterCACertificate string `ns:"cluster_ca_certificate"` }
func (ClusterOutputs) ClusterInfo ¶
func (o ClusterOutputs) ClusterInfo() (clientcmdapi.Cluster, error)
type Outputs ¶
type Outputs struct { ServiceNamespace string `ns:"service_namespace"` ServiceName string `ns:"service_name"` ImageRepoUrl docker.ImageUrl `ns:"image_repo_url,optional"` Deployer gcp.ServiceAccount `ns:"deployer"` MainContainerName string `ns:"main_container_name,optional"` ClusterNamespace ClusterNamespaceOutputs `ns:",connectionContract:cluster-namespace/gcp/k8s:gke"` }
Click to show internal directories.
Click to hide internal directories.