utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: AGPL-3.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ContextLogKey            = key("console-log")
	ContextRequestID         = key("request-id")
	ContextRequestUserID     = key("request-user-id")
	ContextRequestUserAgent  = key("request-user-agent")
	ContextRequestHost       = key("request-host")
	ContextRequestRemoteAddr = key("request-remote-addr")
	ContextAuditKey          = key("request-audit-entry")
)

context keys

Variables

View Source
var ErrCantDetermineMinIOImage = errors.New("can't determine MinIO Image")

ErrCantDetermineMinIOImage when not able to find MinIO version

Functions

func DecodeBase64

func DecodeBase64(s string) (string, error)

DecodeBase64 : decoded base64 input into utf-8 text

func GetLatestMinIOImage

func GetLatestMinIOImage(client http.ClientI) (*string, error)

GetLatestMinIOImage returns the latest docker image for MinIO if found on the internet

func GetOperatorRuntime

func GetOperatorRuntime() common.Runtime

GetOperatorRuntime Retrieves the runtime from env variable

func NewUUID

func NewUUID() (string, error)

NewUUID - get a random UUID.

func PossibleParityValues

func PossibleParityValues(args ...string) ([]string, error)

PossibleParityValues returns possible parities for input args, parties are calculated in uniform manner for one pool or multiple pools, ensuring that parities returned are common and applicable across all pools.

Types

This section is empty.

Jump to

Keyboard shortcuts

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