config

package
v0.0.0-...-b196e69 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package config provides methods for managing configuration of apps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Detach

func Detach(c *drycc.Client, app string, config api.Config) error

Detach config groups from app ptype.

func List

func List(c *drycc.Client, app string, version int) (api.Config, error)

List lists an app's config.

func Set

func Set(c *drycc.Client, app string, config api.Config, merge bool) (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 drycc.ErrConflict. Trying to unset a key that does not exist returns a drycc.ErrUnprocessable. Trying to set a tag that is not a label in the kubernetes cluster will return a drycc.ErrTagNotFound.

Types

This section is empty.

Jump to

Keyboard shortcuts

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