Documentation ¶
Index ¶
- Constants
- func AddGKECluster(name string) error
- func AddVanillaCluster(name string) error
- func BuildGKERuntime(c *ClusterConf) error
- func BuildVanillaRuntime(c *ClusterConf) error
- func ClusterRuntimeImageTag(c *ClusterConf) string
- func ErrorIfMultipleKubectlContextsPossible(c *ClusterConf) error
- func ExecClusterNonInteractive(clusterName string, execArgs []string) error
- func GetAptKubectlVersion(c *ClusterConf) string
- func ListClusters() ([]string, error)
- func OpenClusterInteractiveSession(clusterName string) error
- func PrepareRuntimeForCluster(c *ClusterConf) error
- func PrintAvailableKubectlVersionsApt() error
- func RemoveClusterConfig(clusterName string) error
- func RunContainerExec(c *ClusterConf, execArgs []string) error
- func RunContainerInteractive(c *ClusterConf, args ...string) error
- type ClusterConf
Constants ¶
View Source
const ( ClusterVariantGKE = "gke" ClusterVariantVanilla = "vanilla" )
View Source
const ( RuntimeImageTagGKE = "forestgagnon/kparanoid/local/gke-runtime:1" RuntimeImageTagVanilla = "forestgagnon/kparanoid/local/vanilla-runtime:1" )
Variables ¶
This section is empty.
Functions ¶
func AddGKECluster ¶
func AddVanillaCluster ¶
func BuildGKERuntime ¶
func BuildGKERuntime(c *ClusterConf) error
func BuildVanillaRuntime ¶
func BuildVanillaRuntime(c *ClusterConf) error
func ClusterRuntimeImageTag ¶
func ClusterRuntimeImageTag(c *ClusterConf) string
func ErrorIfMultipleKubectlContextsPossible ¶
func ErrorIfMultipleKubectlContextsPossible(c *ClusterConf) error
func GetAptKubectlVersion ¶
func GetAptKubectlVersion(c *ClusterConf) string
func ListClusters ¶
func PrepareRuntimeForCluster ¶
func PrepareRuntimeForCluster(c *ClusterConf) error
func PrintAvailableKubectlVersionsApt ¶
func PrintAvailableKubectlVersionsApt() error
func RemoveClusterConfig ¶
func RunContainerExec ¶
func RunContainerExec(c *ClusterConf, execArgs []string) error
func RunContainerInteractive ¶
func RunContainerInteractive(c *ClusterConf, args ...string) error
Types ¶
type ClusterConf ¶
type ClusterConf struct { Variant string `json:"variant"` KubectlVersion string `json:"kubectlVersion"` Name string `json:"-"` }
func GetClusterConf ¶
func GetClusterConf(clusterName string) (*ClusterConf, error)
func (*ClusterConf) EnsureRequiredContainerEnvFiles ¶
func (c *ClusterConf) EnsureRequiredContainerEnvFiles() error
Click to show internal directories.
Click to hide internal directories.