utils

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSemaphore

func CreateSemaphore(concurrency int, timeout time.Duration) func() (bool, func())

func Hash

func Hash(s string) uint32

Hash calculates has of the given string

func IsContainsAll

func IsContainsAll(a, b map[string]string) bool

IsContainsAll finds for a contains all b

func IsContainsString

func IsContainsString(s string, arr []string) bool

IsContainsString finds string in array

func ParseCapacity

func ParseCapacity(capacity string) (uint16, string, error)

func RenderFinalizer

func RenderFinalizer(id string) string

RenderFinalizer calculates finalizer name

func RenderMountPoint

func RenderMountPoint(pattern, name string, index int) string

RenderMountPoint calculates mount point

func RenderPVCName

func RenderPVCName(pod string, config *discoblocksondatiov1.DiskConfig) string

RenderPVCName calculates PVC name

func RenderSidecar

func RenderSidecar() (*corev1.Container, error)

RenderSidecar returns the sidecar

Types

This section is empty.

Jump to

Keyboard shortcuts

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