Documentation ¶
Index ¶
- Constants
- Variables
- func AppNamespace() string
- func Base64DecodeInterface(d interface{}) ([]byte, error)
- func CommonSlicePrefix(first []string, second []string) []string
- func CompareStringArrays(arr1, arr2 []string) bool
- func ConvertToSingleDocs(doc []byte) [][]byte
- func DecryptConfigValue(input string) (string, error)
- func ExtractTGZArchive(tgzFile string, destDir string) error
- func FilesToTGZ(files map[string]string) ([]byte, error)
- func GenPassword(length int) string
- func GetFileFromTGZArchive(archive *bytes.Buffer, fileName string) (*bytes.Buffer, error)
- func GetFilesMap(dir string) (map[string][]byte, error)
- func GetReplicatedAPIEndpoint() string
- func GetValueFromMapPath(m interface{}, path []string) interface{}
- func HomeDir() string
- func IntPointer(x int) *int64
- func IsHelmManaged() bool
- func IsURL(str string) bool
- func MarshalIndent(indent int, in interface{}) ([]byte, error)
- func NewRequest(method string, url string, body io.Reader) (*http.Request, error)
- func NewThrottle(after time.Duration) func(f func())
- func PromptForNewPassword() (string, error)
- func SplitStringOnLen(str string, maxLength int) ([]string, error)
- func SplitYAML(input []byte) (map[string][]byte, error)
- func StrPointer(s string) *string
- func TGZArchive(dir string) ([]byte, error)
- func TGZToFiles(tgzBytes []byte) (map[string]string, error)
- func TestGetenv(key string) string
- func ThisImage(ctx context.Context, client kubernetes.Interface) (string, error)
- type ActionableError
- type OverlySimpleGVK
- type OverlySimpleMetadata
Constants ¶
View Source
const ( PasswordSecretName = "kotsadm-password" SessionsSecretName = "kotsadm-sessions" )
Variables ¶
Functions ¶
func AppNamespace ¶
func AppNamespace() string
func Base64DecodeInterface ¶ added in v1.82.0
func CommonSlicePrefix ¶
func CompareStringArrays ¶
CompareStringArrays returns true if all elements in arr1 are present in arr2 and the other way around. it does not check for equal counts of duplicates, or for ordering.
func ConvertToSingleDocs ¶
func DecryptConfigValue ¶ added in v1.98.0
func ExtractTGZArchive ¶
func GenPassword ¶
generates a [0-9a-zA-Z] password of the specified length
func GetFileFromTGZArchive ¶ added in v1.84.0
func GetReplicatedAPIEndpoint ¶
func GetReplicatedAPIEndpoint() string
func GetValueFromMapPath ¶ added in v1.82.0
func GetValueFromMapPath(m interface{}, path []string) interface{}
func IntPointer ¶
func IsHelmManaged ¶
func IsHelmManaged() bool
func MarshalIndent ¶
func NewRequest ¶
NewRequest returns a http.Request object with kots defaults set, including a User-Agent header.
func NewThrottle ¶
func PromptForNewPassword ¶ added in v1.91.0
func StrPointer ¶ added in v1.91.2
func TGZArchive ¶ added in v1.96.0
func TestGetenv ¶
Types ¶
type ActionableError ¶
func (ActionableError) Error ¶
func (e ActionableError) Error() string
type OverlySimpleGVK ¶ added in v1.98.1
type OverlySimpleGVK struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Metadata OverlySimpleMetadata `yaml:"metadata"` }
type OverlySimpleMetadata ¶ added in v1.98.1
Click to show internal directories.
Click to hide internal directories.