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 DeepClone[T any](src *T) (*T, 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 GetCacheDir(ctx context.Context) string
- func GetCacheDirNoDefault(ctx context.Context) string
- func GetTmpBaseDir(ctx context.Context) string
- func GetTmpBaseDirNoDefault(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[any]
- func NewGoHelperR[T any](ctx context.Context, max int) *goHelper[T]
- func OpenBrowser(url string) error
- func ParseBoolOrDefault(s string, def bool) bool
- func ParseBoolOrFalse(s string) bool
- func ParseBoolOrFalsePtr(s *string) bool
- func Ptr[T any](v T) *T
- func RandomString(n int) string
- func RandomizeSuffix(s string, randLen int, maxLen int) string
- func RunParallelE(ctx context.Context, fs ...func() error) error
- func Sha256Bytes(data []byte) string
- func Sha256String(data string) string
- func StrPtrEquals(s1 *string, s2 *string) bool
- func Touch(path string) error
- func UncompressGzip(input []byte) ([]byte, error)
- func WithCacheDir(ctx context.Context, cacheDir string) context.Context
- 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 OrderedMap
- func (s *OrderedMap[K, V]) ForEach(cb func(k K, v V))
- func (s *OrderedMap[K, V]) Get(k K) (V, bool)
- func (s *OrderedMap[K, V]) Has(k K) bool
- func (s *OrderedMap[K, V]) Len() int
- func (s *OrderedMap[K, V]) ListKeys() []K
- func (s *OrderedMap[K, V]) ListValues() []V
- func (s *OrderedMap[K, V]) Merge(other *OrderedMap[K, V])
- func (s *OrderedMap[K, V]) Set(k K, v V) bool
- func (s *OrderedMap[K, V]) SetMultiple(k []K, v V)
- 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 GetCacheDir ¶ added in v2.23.0
func GetCacheDirNoDefault ¶ added in v2.25.0
func GetTmpBaseDir ¶
func GetTmpBaseDirNoDefault ¶ added in v2.25.0
func IsDirectory ¶
func NewGoHelperR ¶ added in v2.25.1
func OpenBrowser ¶ added in v2.21.0
func ParseBoolOrDefault ¶ added in v2.22.0
func ParseBoolOrFalse ¶
func ParseBoolOrFalsePtr ¶ added in v2.22.0
func RandomString ¶
func RandomizeSuffix ¶ added in v2.24.0
func RunParallelE ¶ added in v2.20.0
func Sha256Bytes ¶
func Sha256String ¶
func StrPtrEquals ¶ added in v2.21.0
func UncompressGzip ¶ added in v2.20.0
func WithCacheDir ¶ added in v2.23.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[K comparable, V any] struct { // contains filtered or unexported fields }
func (*OrderedMap[K, V]) ForEach ¶ added in v2.22.0
func (s *OrderedMap[K, V]) ForEach(cb func(k K, v V))
func (*OrderedMap[K, V]) Get ¶
func (s *OrderedMap[K, V]) Get(k K) (V, bool)
func (*OrderedMap[K, V]) Has ¶
func (s *OrderedMap[K, V]) Has(k K) bool
func (*OrderedMap[K, V]) Len ¶ added in v2.22.0
func (s *OrderedMap[K, V]) Len() int
func (*OrderedMap[K, V]) ListKeys ¶
func (s *OrderedMap[K, V]) ListKeys() []K
func (*OrderedMap[K, V]) ListValues ¶
func (s *OrderedMap[K, V]) ListValues() []V
func (*OrderedMap[K, V]) Merge ¶ added in v2.9.0
func (s *OrderedMap[K, V]) Merge(other *OrderedMap[K, V])
func (*OrderedMap[K, V]) Set ¶
func (s *OrderedMap[K, V]) Set(k K, v V) bool
func (*OrderedMap[K, V]) SetMultiple ¶ added in v2.9.0
func (s *OrderedMap[K, V]) SetMultiple(k []K, v V)
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[K comparable, V any] struct { // contains filtered or unexported fields }
func (*ThreadSafeCache[K, V]) Clear ¶ added in v2.22.0
func (c *ThreadSafeCache[K, V]) Clear()
func (*ThreadSafeCache[K, V]) ForEach ¶ added in v2.22.0
func (c *ThreadSafeCache[K, V]) ForEach(cb func(k K, v V))
func (*ThreadSafeCache[K, V]) Get ¶
func (c *ThreadSafeCache[K, V]) Get(key K, f func() (V, error)) (V, error)
type ThreadSafeMultiCache ¶
type ThreadSafeMultiCache[K comparable, V any] 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.