config

package
v0.0.0-...-dfe815e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2019 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPath

func GetPath(cwd string) (string, error)

GetPath tries to return a valid .kubecli.yaml file path.

func Write

func Write(file string, data Data) error

Write YAML config to file.

Types

type ContainerData

type ContainerData struct {
	Name string
}

ContainerData represents the container subsection of the kubecli.yaml file.

type Data

type Data struct {
	Gke        GKEData
	Docker     DockerData
	Deployment DeploymentData
}

Data represents the configuration structure of kubecli.yaml file.

func Read

func Read(file string) (Data, error)

Read kubecli.yaml file and parse it.

type DeploymentData

type DeploymentData struct {
	Name      string
	Namespace string
	Container ContainerData
}

DeploymentData represents the deployment subsection of the kubecli.yaml file.

type DockerData

type DockerData struct {
	Name string
	Tag  string
}

DockerData represents the docker subsection of the kubecli.yaml file.

type GKEData

type GKEData struct {
	Project string
	Zone    string
	Cluster string
}

GKEData represents the gke subsection of the kubecli.yaml file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL