Documentation
¶
Index ¶
- Constants
- Variables
- func CopyMap(m map[string]interface{}) map[string]interface{}
- func DeepMergeMap(dst, src map[string]interface{}) error
- func GenerateDiffieHellmanParams(opts ...DiffieHellmanOpt) (string, error)
- func GeneratePassphrase(opts ...PassphraseOpt) string
- func Int(i int) *int
- func OnlyLetters(s string) bool
- func RemoveDuplicates[T comparable](sliceList []T) []T
- func ReplaceRecursive(input map[string]interface{}, keys []string, output map[string]interface{}, ...)
- func SanitizeSlice(slice []string) []string
- func SliceContains[T comparable](s []T, e T) bool
- func StrPtr(s string) *string
- func WithBits(bits int) func(cfg *DiffieHellmanConfig)
- func WithCharSet(charset string) func(conf *PassphraseConfig)
- func WithEncoding(encoding Encoding) func(cfg *DiffieHellmanConfig)
- func WithLength(length int) func(conf *PassphraseConfig)
- type DiffieHellmanConfig
- type DiffieHellmanOpt
- type Encoding
- type PassphraseConfig
- type PassphraseOpt
- type Primitive
Constants ¶
View Source
const ( DELIMITER string = "." REPLACE_TEMPLATE string = "{{ .Values | get \"%s\" \"%v\" }}" )
Variables ¶
View Source
var ( BumpValues = []string{"annotation", "label", "securitycontext", "affinity"} BumpTemlplate = `` /* 188-byte string literal not displayed */ )
Functions ¶
func DeepMergeMap ¶
func GenerateDiffieHellmanParams ¶
func GenerateDiffieHellmanParams(opts ...DiffieHellmanOpt) (string, error)
func GeneratePassphrase ¶
func GeneratePassphrase(opts ...PassphraseOpt) string
func OnlyLetters ¶
func RemoveDuplicates ¶
func RemoveDuplicates[T comparable](sliceList []T) []T
RemoveDuplicates takes in a generic slice of values and returns the same slice with duplicates removed
func ReplaceRecursive ¶
func ReplaceRecursive(input map[string]interface{}, keys []string, output map[string]interface{}, template string)
TODO(FMJdev): add bump stop values which act as base case so we do not template Kubernetes labels etc. Relying on recursion until we hit a primitive is highly error prone.
func SanitizeSlice ¶
func SliceContains ¶
func SliceContains[T comparable](s []T, e T) bool
SliceContains checks if an element is contained within a slice
func WithBits ¶
func WithBits(bits int) func(cfg *DiffieHellmanConfig)
func WithCharSet ¶
func WithCharSet(charset string) func(conf *PassphraseConfig)
func WithEncoding ¶
func WithEncoding(encoding Encoding) func(cfg *DiffieHellmanConfig)
func WithLength ¶
func WithLength(length int) func(conf *PassphraseConfig)
Types ¶
type DiffieHellmanConfig ¶
type DiffieHellmanOpt ¶
type DiffieHellmanOpt func(cfg *DiffieHellmanConfig)
type PassphraseConfig ¶
type PassphraseOpt ¶
type PassphraseOpt func(conf *PassphraseConfig)
Click to show internal directories.
Click to hide internal directories.