model

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

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 UpdateDeploymentInPlace added in v0.3.0

func UpdateDeploymentInPlace(deployment *v1beta1.Deployment, variables []Variable, configMapName string, secretName string, containerName string, overwriteEnv bool) error

func WriteConfigMap

func WriteConfigMap(configMap *v1.ConfigMap, leftOver [][]byte, writer io.Writer) error

func WriteDeployment

func WriteDeployment(deployment *v1beta1.Deployment, leftOver [][]byte, writer io.Writer) error

func WriteSecrets

func WriteSecrets(secret *v1.Secret, leftOver [][]byte, writer io.Writer) error

Types

type Application added in v0.2.2

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

type InputType

type InputType string
const (
	SIMPLE         InputType = "simple"
	REFERENCE      InputType = "reference"
	VAULT          InputType = "vault"
	CONSUL         InputType = "consul"
	LAYERED_CONSUL InputType = "layered_consul"
)

type Variable

type Variable struct {
	Name        string
	Destination VariableDestination
	Source      InputType
	Value       interface{}
}

type VariableDef

type VariableDef struct {
	Name        string
	Source      InputType
	Destination VariableDestination
	Value       interface{}
	Context     map[string]string
}

func NewVariableDef added in v0.3.0

func NewVariableDef() VariableDef

type VariableDestination added in v0.3.0

type VariableDestination string
const (
	CONFIGMAP VariableDestination = "config"
	SECRET    VariableDestination = "secret"
	INLINE    VariableDestination = "inline"
)

type VariableType

type VariableType string

Jump to

Keyboard shortcuts

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