Documentation ¶
Index ¶
- func CheckInDir(root string, path string) error
- func CheckSubInDir(root string, subDir string) error
- func CompressGzip(input []byte, level int) ([]byte, error)
- func DeepCopy(dst interface{}, src interface{}) error
- func Exists(path string) bool
- func ExpandPath(p string) string
- func FindStrInSlice(a []string, s string) int
- func GetTmpBaseDir(ctx context.Context) string
- func IntMax(a, b int) int
- func IntMin(a, b int) int
- func IsDirectory(path string) bool
- func IsFile(path string) bool
- func NewGoHelper(ctx context.Context, max int) *goHelper
- func ParseBoolOrFalse(s *string) bool
- func ParseEnvBool(name string, def bool) (bool, error)
- func ParseEnvConfigList(prefix string) map[int]string
- func ParseEnvConfigSets(prefix string) map[int]map[string]string
- func RandomString(n int) string
- func RunParallelE(ctx context.Context, fs ...func() error) error
- func Sha256Bytes(data []byte) string
- func Sha256String(data string) string
- func StrPtr(s string) *string
- func Touch(path string) error
- func UncompressGzip(input []byte) ([]byte, error)
- func WithTmpBaseDir(ctx context.Context, tmpBaseDir string) context.Context
- type Inclusion
- func (inc *Inclusion) AddExclude(typ string, value string)
- func (inc *Inclusion) AddInclude(typ string, value string)
- func (inc *Inclusion) CheckIncluded(l []InclusionEntry, excludeIfNotIncluded bool) bool
- func (inc *Inclusion) GetExcludes(typ string) []string
- func (inc *Inclusion) GetIncludes(typ string) []string
- func (inc *Inclusion) HasType(typ string) bool
- type InclusionEntry
- type OnceByKey
- type OrderedMap
- func (s *OrderedMap) Get(v string) (interface{}, bool)
- func (s *OrderedMap) Has(v string) bool
- func (s *OrderedMap) ListKeys() []string
- func (s *OrderedMap) ListValues() []interface{}
- func (s *OrderedMap) Merge(other *OrderedMap)
- func (s *OrderedMap) Set(k string, v interface{}) bool
- func (s *OrderedMap) SetMultiple(k []string, v interface{})
- type PrettyTable
- type Row
- type ThreadSafeCache
- type ThreadSafeMultiCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckInDir ¶ added in v2.10.0
func CheckSubInDir ¶ added in v2.11.2
func ExpandPath ¶
func FindStrInSlice ¶
func GetTmpBaseDir ¶
func IsDirectory ¶
func NewGoHelper ¶ added in v2.18.4
func ParseBoolOrFalse ¶
func ParseEnvConfigList ¶ added in v2.16.0
func RandomString ¶
func RunParallelE ¶ added in v2.20.0
func Sha256Bytes ¶
func Sha256String ¶
func UncompressGzip ¶ added in v2.20.0
Types ¶
type Inclusion ¶
type Inclusion struct {
// contains filtered or unexported fields
}
func NewInclusion ¶
func NewInclusion() *Inclusion
func (*Inclusion) AddExclude ¶
func (*Inclusion) AddInclude ¶
func (*Inclusion) CheckIncluded ¶
func (inc *Inclusion) CheckIncluded(l []InclusionEntry, excludeIfNotIncluded bool) bool
func (*Inclusion) GetExcludes ¶ added in v2.20.0
func (*Inclusion) GetIncludes ¶ added in v2.20.0
type InclusionEntry ¶
type OrderedMap ¶
type OrderedMap struct {
// contains filtered or unexported fields
}
func (*OrderedMap) Get ¶
func (s *OrderedMap) Get(v string) (interface{}, bool)
func (*OrderedMap) Has ¶
func (s *OrderedMap) Has(v string) bool
func (*OrderedMap) ListKeys ¶
func (s *OrderedMap) ListKeys() []string
func (*OrderedMap) ListValues ¶
func (s *OrderedMap) ListValues() []interface{}
func (*OrderedMap) Merge ¶ added in v2.9.0
func (s *OrderedMap) Merge(other *OrderedMap)
func (*OrderedMap) Set ¶
func (s *OrderedMap) Set(k string, v interface{}) bool
func (*OrderedMap) SetMultiple ¶ added in v2.9.0
func (s *OrderedMap) SetMultiple(k []string, v interface{})
type PrettyTable ¶
type PrettyTable struct {
// contains filtered or unexported fields
}
func (*PrettyTable) AddRow ¶
func (t *PrettyTable) AddRow(c ...string)
func (*PrettyTable) Render ¶
func (t *PrettyTable) Render(limitWidths []int) string
func (*PrettyTable) SortRows ¶
func (t *PrettyTable) SortRows(col int)
type ThreadSafeCache ¶
type ThreadSafeCache struct {
// contains filtered or unexported fields
}
type ThreadSafeMultiCache ¶
type ThreadSafeMultiCache struct {
// contains filtered or unexported fields
}
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
conditions
Package conditions provides utilities for manipulating the status conditions of Kubernetes resource objects that implement the Getter and/or Setter interfaces.
|
Package conditions provides utilities for manipulating the status conditions of Kubernetes resource objects that implement the Getter and/or Setter interfaces. |
metrics
Package metrics contains a Recorder and helpers for recoding standard metrics for all GitOps Toolkit components.
|
Package metrics contains a Recorder and helpers for recoding standard metrics for all GitOps Toolkit components. |
Click to show internal directories.
Click to hide internal directories.