config

package
v0.0.0-...-c9ffa05 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package config provides methods for managing configuration of apps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List(c *deis.Client, app string) (api.Config, error)

List lists an app's config.

func Set

func Set(c *deis.Client, app string, config api.Config) (api.Config, error)

Set sets an app's config variables and creates a new release. This is a patching operation, which means when you call Set() with an api.Config:

  • If the variable does not exist, it will be set.
  • If the variable exists, it will be overwritten.
  • If the variable is set to nil, it will be unset.
  • If the variable was ignored in the api.Config, it will remain unchanged.

Calling Set() with an empty api.Config will return a deis.ErrConflict. Trying to unset a key that does not exist returns a deis.ErrUnprocessable. Trying to set a tag that is not a label in the kubernetes cluster will return a deis.ErrTagNotFound.

Types

This section is empty.

Jump to

Keyboard shortcuts

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