utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomBytes

func RandomBytes(n int) ([]byte, error)

RandomBytes generate random bytes

func RandomInt

func RandomInt() (int64, error)

RandomInt returns a random int64

func RandomStringObjectSafe

func RandomStringObjectSafe(n int) (string, error)

RandomStringObjectSafe returns a random string that is safe to use as an k8s object Name

https://kubernetes.io/docs/concepts/overview/working-with-objects/names/

Types

This section is empty.

Jump to

Keyboard shortcuts

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