configmap

package
v3.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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() Items

func (ConfigMap) MarshalJSON

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

func (ConfigMap) MarshalYAML

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

func (ConfigMap) New

func (config ConfigMap) New() ConfigMap

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) ToBase64

func (config ConfigMap) ToBase64() ConfigMap

func (ConfigMap) ToKube

func (config ConfigMap) ToKube() kubeModels.ConfigMap

func (*ConfigMap) UnmarshalJSON

func (config *ConfigMap) UnmarshalJSON(data []byte) error

func (*ConfigMap) UnmarshalYAML

func (config *ConfigMap) UnmarshalYAML(unmarshal func(interface{}) error) 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) Get

func (list ConfigMapList) Get(i int) ConfigMap

func (ConfigMapList) GetByName

func (list ConfigMapList) GetByName(name string) (ConfigMap, bool)

func (ConfigMapList) GetDefault

func (list ConfigMapList) GetDefault(i int, defaultCm ConfigMap) (ConfigMap, bool)

func (ConfigMapList) Head

func (list ConfigMapList) Head() (ConfigMap, bool)

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 {
	// contains filtered or unexported fields
}

func NewItem

func NewItem(key string, value string) Item

func (Item) Data

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

func (Item) Key

func (item Item) Key() string

func (Item) MarshalJSON

func (item Item) MarshalJSON() ([]byte, error)

func (Item) String

func (item Item) String() string

func (*Item) UnmarshalJSON

func (item *Item) UnmarshalJSON(b []byte) error

func (Item) Value

func (item Item) Value() string

func (Item) WithKey

func (item Item) WithKey(key string) Item

func (Item) WithValue

func (item Item) WithValue(value string) Item

type Items

type Items []Item

func (Items) Copy

func (items Items) Copy() Items

func (Items) Map

func (items Items) Map() map[string]string

func (Items) New

func (items Items) New() Items

func (Items) Sorted

func (items Items) Sorted() Items

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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