model

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIMPLE InputType = "simple"
	VAULT            = "vault"
	CONSUL           = "consul"
)
View Source
const (
	CONFIGMAP VariableType = "config"
	SECRET                 = "secret"
	REFERENCE              = "reference"
)

Variables

This section is empty.

Functions

func DiffDeploymets added in v0.2.1

func DiffDeploymets(deployment1 *v1beta1.Deployment, deployment2 *v1beta1.Deployment) error

func ReadConfigMap

func ReadConfigMap(filePath string) (*v1.ConfigMap, [][]byte, error)

func ReadDeployment

func ReadDeployment(filePath string) (*v1beta1.Deployment, [][]byte, error)

func ReadSecrets

func ReadSecrets(filePath string) (*v1.Secret, [][]byte, error)

func UpdateDeployment

func UpdateDeployment(deployment *v1beta1.Deployment, configMap *v1.ConfigMap, secret *v1.Secret, containerName string, variables []VariableDef, overwriteEnv bool) error

func WriteConfigMap

func WriteConfigMap(configMap *v1.ConfigMap, leftOver [][]byte, filePath string) error

func WriteDeployment

func WriteDeployment(deployment *v1beta1.Deployment, leftOver [][]byte, filePath string) error

func WriteSecrets

func WriteSecrets(secret *v1.Secret, leftOver [][]byte, filePath string) error

Types

type Application added in v0.2.2

type Application struct {
	Name        string
	Namespace   string
	Definitions []VariableDef
}

type InputType

type InputType string

type Variable

type Variable struct {
	Name  string
	Type  VariableType
	Value interface{}
}

type VariableDef

type VariableDef struct {
	Name   string
	Source InputType
	Type   VariableType
	Value  interface{}
}

type VariableType

type VariableType string

Jump to

Keyboard shortcuts

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