util

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomPrefixedSHA256 added in v1.6.0

func GenerateRandomPrefixedSHA256() string

GenerateRandomPrefixedSHA256 generates a random 64 character SHA 256 hash string, prefixed with `sha256:`

func GenerateRandomSHA256 added in v1.6.0

func GenerateRandomSHA256() string

GenerateRandomSHA256 generates a random 64 character SHA 256 hash string

func RandName

func RandName() string

RandName Generates a random, 32-character, Docker-compatible container name.

func SliceEqual

func SliceEqual(s1, s2 []string) bool

SliceEqual compares two slices and checks whether they have equal content

func SliceSubtract

func SliceSubtract(a1, a2 []string) []string

SliceSubtract subtracts the content of slice a2 from slice a1

func StringMapSubtract

func StringMapSubtract(m1, m2 map[string]string) map[string]string

StringMapSubtract subtracts the content of structmap m2 from structmap m1

func StructMapSubtract

func StructMapSubtract(m1, m2 map[string]struct{}) map[string]struct{}

StructMapSubtract subtracts the content of structmap m2 from structmap m1

Types

This section is empty.

Jump to

Keyboard shortcuts

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