util

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: UPL-1.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToOciDefinedTags

func ConvertToOciDefinedTags(osokDef *map[string]v1beta1.MapValue) *map[string]map[string]interface{}

func DoNotRequeue

func DoNotRequeue() (ctrl.Result, error)

func GetOSOKStatusCondition

func GetOSOKStatusCondition(status v1beta1.OSOKStatus, conditionType v1beta1.OSOKConditionType, log loggerutil.OSOKLogger) *v1beta1.OSOKCondition

func InitOSOK

func InitOSOK(config *rest.Config, log loggerutil.OSOKLogger)

func RequeueWithError

func RequeueWithError(err error, duration time.Duration, log loggerutil.OSOKLogger) (ctrl.Result, error)

func RequeueWithoutError

func RequeueWithoutError(duration time.Duration, log loggerutil.OSOKLogger) (ctrl.Result, error)

func UnzipWallet

func UnzipWallet(filename string) (map[string][]byte, error)

func UpdateOSOKStatusCondition

func UpdateOSOKStatusCondition(osokStatus v1beta1.OSOKStatus, conditionType v1beta1.OSOKConditionType,
	status v1.ConditionStatus, reason string, message string, log loggerutil.OSOKLogger) v1beta1.OSOKStatus

Types

type LogUtil

type LogUtil struct {
	Log logr.Logger
}

func (*LogUtil) LogDebug

func (l *LogUtil) LogDebug(msg string, keysAndValues ...interface{})

func (*LogUtil) LogError

func (l *LogUtil) LogError(err error, msg string, keysAndValues ...interface{})

func (*LogUtil) LogInfo

func (l *LogUtil) LogInfo(msg string, keysAndValues ...interface{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL