configmap

package
v3.0.3-alpha2+incompat... Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: MIT Imports: 11 Imported by: 4

Documentation

Index

Constants

View Source
const (
	ErrInvalidConfigMap chkitErrors.Err = "invalid config map"
)

Variables

This section is empty.

Functions

func KeyRegexp

func KeyRegexp() *regexp.Regexp

Types

type ConfigMap

type ConfigMap kubeModels.ConfigMap

func ConfigMapFromKube

func ConfigMapFromKube(kubeConfigMap kubeModels.ConfigMap) ConfigMap

func (ConfigMap) Add

func (config ConfigMap) Add(data map[string]string) ConfigMap

func (ConfigMap) AddItems

func (config ConfigMap) AddItems(items ...Item) ConfigMap

func (ConfigMap) Age

func (config ConfigMap) Age() string

func (ConfigMap) Copy

func (config ConfigMap) Copy() ConfigMap

func (ConfigMap) Delete

func (config ConfigMap) Delete(key string) ConfigMap

func (ConfigMap) Get

func (config ConfigMap) Get(key string, defaultValues ...string) (string, bool)

Get -- if defaultValues passed, then first return

func (ConfigMap) Items

func (config ConfigMap) Items() []Item

func (ConfigMap) MarshalJSON

func (config ConfigMap) MarshalJSON() ([]byte, error)

func (ConfigMap) MarshalYAML

func (config ConfigMap) MarshalYAML() (interface{}, error)

func (ConfigMap) RenderJSON

func (config ConfigMap) RenderJSON() (string, error)

func (ConfigMap) RenderTable

func (config ConfigMap) RenderTable() string

func (ConfigMap) RenderYAML

func (config ConfigMap) RenderYAML() (string, error)

func (ConfigMap) Set

func (config ConfigMap) Set(key string, value string) ConfigMap

func (ConfigMap) SetName

func (config ConfigMap) SetName(name string) ConfigMap

func (ConfigMap) TableHeaders

func (ConfigMap) TableHeaders() []string

func (ConfigMap) TableRows

func (config ConfigMap) TableRows() [][]string

func (ConfigMap) ToKube

func (config ConfigMap) ToKube() kubeModels.ConfigMap

func (ConfigMap) Validate

func (config ConfigMap) Validate() error

type ConfigMapList

type ConfigMapList []ConfigMap

func ConfigMapListFromKube

func ConfigMapListFromKube(kubeList []kubeModels.ConfigMap) ConfigMapList

func MakeList

func MakeList(size uint) ConfigMapList

func MakeListCap

func MakeListCap(size, cap uint) ConfigMapList

func (ConfigMapList) Append

func (list ConfigMapList) Append(configs ...ConfigMap) ConfigMapList

func (ConfigMapList) Copy

func (list ConfigMapList) Copy() ConfigMapList

func (ConfigMapList) Delete

func (list ConfigMapList) Delete(i int) ConfigMapList

func (ConfigMapList) Filter

func (list ConfigMapList) Filter(pred func(ConfigMap) bool) ConfigMapList

func (ConfigMapList) Len

func (list ConfigMapList) Len() int

func (ConfigMapList) MarshalJSON

func (list ConfigMapList) MarshalJSON() ([]byte, error)

func (ConfigMapList) Names

func (list ConfigMapList) Names() []string

func (ConfigMapList) RenderJSON

func (list ConfigMapList) RenderJSON() (string, error)

func (ConfigMapList) RenderTable

func (list ConfigMapList) RenderTable() string

func (ConfigMapList) RenderYAML

func (list ConfigMapList) RenderYAML() (string, error)

func (ConfigMapList) TableHeaders

func (ConfigMapList) TableHeaders() []string

func (ConfigMapList) TableRows

func (list ConfigMapList) TableRows() [][]string

func (ConfigMapList) ToKube

func (list ConfigMapList) ToKube() []kubeModels.ConfigMap

type Item

type Item struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

func NewItem

func NewItem(key string, value string) Item

func (Item) Data

func (item Item) Data() (key string, value string)

func (Item) String

func (item Item) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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