Documentation
¶
Index ¶
- Constants
- func AsSHA256(o interface{}) string
- func BoolPtr(val bool) *bool
- func BoolTrue(val *bool) bool
- func ContainsElement(list []string, s string) bool
- func GetDefaultHumioCoreImageFromEnvVar() string
- func GetDefaultHumioHelperImageFromEnvVar() string
- func GetE2ELicenseFromEnvVar() string
- func GetTypeName(myvar interface{}) string
- func Int32Ptr(val int32) *int32
- func Int32PtrToFloat64Ptr(val *int32) *float64
- func Int64Ptr(val int64) *int64
- func MapToSortedString(m map[string]string) string
- func NewLogger() (*uberzap.Logger, error)
- func PreserveKindCluster() bool
- func RemoveElement(list []string, s string) []string
- func StringPtr(val string) *string
- func TLSEnabled(hc *humiov1alpha1.HumioCluster) bool
- func UseCertManager() bool
- func UseDummyImage() bool
- func UseEnvtest() bool
- type Cluster
- type ClusterInterface
Constants ¶
const (
TrueStr string = "true"
)
Variables ¶
This section is empty.
Functions ¶
func AsSHA256 ¶
func AsSHA256(o interface{}) string
AsSHA256 does a sha 256 hash on an object and returns the result
func ContainsElement ¶
ContainsElement returns true if 's' is an element in the list
func GetDefaultHumioCoreImageFromEnvVar ¶
func GetDefaultHumioCoreImageFromEnvVar() string
GetDefaultHumioCoreImageFromEnvVar returns the user-defined default image for humio-core containers
func GetDefaultHumioHelperImageFromEnvVar ¶
func GetDefaultHumioHelperImageFromEnvVar() string
GetDefaultHumioHelperImageFromEnvVar returns the user-defined default image for helper containers
func GetE2ELicenseFromEnvVar ¶
func GetE2ELicenseFromEnvVar() string
GetE2ELicenseFromEnvVar returns the E2E license set as an environment variable
func GetTypeName ¶
func GetTypeName(myvar interface{}) string
GetTypeName returns the name of the type of object which is obtained by using reflection
func Int32PtrToFloat64Ptr ¶
func MapToSortedString ¶
MapToSortedString prettifies a string map, so it's more suitable for readability when logging. The output is constructed by sorting the slice.
func NewLogger ¶
NewLogger returns a JSON logger with references to the origin of the log entry. All log entries also includes a field "ts" containing the timestamp in RFC3339 format.
func PreserveKindCluster ¶
func PreserveKindCluster() bool
PreserveKindCluster returns true if the intention is to not delete kind cluster after test execution. This is to allow reruns of tests to be performed where resources can be reused.
func RemoveElement ¶
RemoveElement returns a list where the element 's' has been removed
func TLSEnabled ¶
func TLSEnabled(hc *humiov1alpha1.HumioCluster) bool
TLSEnabled returns whether we a cluster should configure TLS or not
func UseCertManager ¶
func UseCertManager() bool
UseCertManager returns whether the operator will use cert-manager
func UseDummyImage ¶
func UseDummyImage() bool
UseDummyImage returns whether we are using a dummy image replacement instead of real container images
func UseEnvtest ¶
func UseEnvtest() bool
UseEnvtest returns whether the Kubernetes API is provided by envtest
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}