configmap

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map struct {
	// contains filtered or unexported fields
}

func New

func New() *Map

func (*Map) AllKeys

func (c *Map) AllKeys() []string

func (Map) Delete

func (c Map) Delete(key string)

func (Map) Get

func (c Map) Get(key string) any

func (Map) GetBool

func (c Map) GetBool(key string) bool

func (Map) GetBoolOk

func (c Map) GetBoolOk(key string) (bool, bool, error)

func (Map) GetDuration

func (c Map) GetDuration(key string) time.Duration

func (Map) GetDurationOk

func (c Map) GetDurationOk(key string) (time.Duration, bool, error)

func (Map) GetInt

func (c Map) GetInt(key string) int

func (Map) GetIntOk

func (c Map) GetIntOk(key string) (int, bool, error)

func (Map) GetOk

func (c Map) GetOk(key string) (any, bool)

func (Map) GetString

func (c Map) GetString(key string) string

func (Map) GetStringOk

func (c Map) GetStringOk(key string) (string, bool, error)

func (Map) GetStringSlice

func (c Map) GetStringSlice(key string) []string

func (Map) GetStringSliceOk

func (c Map) GetStringSliceOk(key string) ([]string, bool, error)

func (Map) GetUint

func (c Map) GetUint(key string) uint

func (Map) GetUint32

func (c Map) GetUint32(key string) uint32

func (Map) GetUint32Ok

func (c Map) GetUint32Ok(key string) (uint32, bool, error)

func (Map) GetUintOk

func (c Map) GetUintOk(key string) (uint, bool, error)

func (*Map) InjectEnvVars

func (c *Map) InjectEnvVars(env []string, prefix string) []error

func (Map) MarshalJSON

func (c Map) MarshalJSON() ([]byte, error)

func (Map) MarshalYAML

func (c Map) MarshalYAML() (interface{}, error)

func (*Map) Merge

func (c *Map) Merge(x *Map) error

func (*Map) Schema

func (c *Map) Schema() map[string]reflect.Type

func (Map) Set

func (c Map) Set(key string, value any) error

func (Map) SetBool

func (c Map) SetBool(key string, value bool)

func (Map) SetDuration

func (c Map) SetDuration(key string, value time.Duration)

func (*Map) SetFromCLIArgs

func (c *Map) SetFromCLIArgs(key string, args ...string) error

func (*Map) SetFromENV added in v1.0.1

func (c *Map) SetFromENV(key string, arg string) error

func (Map) SetInt

func (c Map) SetInt(key string, value int)

func (*Map) SetKeyTypeSchema

func (c *Map) SetKeyTypeSchema(key string, t any)

func (Map) SetString

func (c Map) SetString(key string, value string)

func (Map) SetUint

func (c Map) SetUint(key string, value uint)

func (Map) SetUint32

func (c Map) SetUint32(key string, value uint32)

func (*Map) UnmarshalJSON

func (c *Map) UnmarshalJSON(data []byte) error

func (*Map) UnmarshalYAML

func (c *Map) UnmarshalYAML(node *yaml.Node) error

type UnmarshalErrors

type UnmarshalErrors struct {
	// contains filtered or unexported fields
}

UnmarshalErrors is a collection of errors that occurred during unmarshalling. Do not return this type directly, but use its result() method instead.

func (*UnmarshalErrors) Error

func (e *UnmarshalErrors) Error() string

func (*UnmarshalErrors) WrappedErrors

func (e *UnmarshalErrors) WrappedErrors() []error

WrappedErrors returns the list of errors that occurred during unmarshalling.

Jump to

Keyboard shortcuts

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