util

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPointer

func BoolPointer(b bool) *bool

BoolPointer returns a point of the bool

func ContainsString

func ContainsString(slice []string, s string) bool

ContainsString .

func EmptyTypedFloatSlice

func EmptyTypedFloatSlice(f ...float64) []interface{}

EmptyTypedFloatSlice .

func EmptyTypedStrSlice

func EmptyTypedStrSlice(s ...string) []interface{}

EmptyTypedStrSlice .

func GetPodSecurityContextFromSecurityContext

func GetPodSecurityContextFromSecurityContext(sc *corev1.SecurityContext) *corev1.PodSecurityContext

GetPodSecurityContextFromSecurityContext .

func Int64Pointer

func Int64Pointer(i int64) *int64

Int64Pointer returns a pointer of the int64

func IntPointer

func IntPointer(i int32) *int32

IntPointer returns a pointer of the int

func IntstrPointer

func IntstrPointer(i int) *intstr.IntOrString

IntstrPointer returns a point of the intOrString

func MergeMultipleStringMaps

func MergeMultipleStringMaps(stringMaps ...map[string]string) map[string]string

MergeMultipleStringMaps merges multiple maps of strings

func MergeStringMaps

func MergeStringMaps(l map[string]string, l2 map[string]string) map[string]string

MergeStringMaps merges two maps of strings

func PointerToBool

func PointerToBool(flag *bool) bool

PointerToBool returns the bool from a pointer

func PointerToInt32

func PointerToInt32(i *int32) int32

PointerToInt32 returns the int32 from a pointer

func PointerToString

func PointerToString(s *string) string

PointerToString returns the string from a pointer

func RemoveString

func RemoveString(slice []string, s string) (result []string)

RemoveString .

func StrPointer

func StrPointer(s string) *string

StrPointer returns a pointer of the string

Types

type ZeroModTimeFileSystem

type ZeroModTimeFileSystem struct {
	Source http.FileSystem
}

ZeroModTimeFileSystem is an http.FileSystem wrapper. It exposes a filesystem exactly like Source, except all file modification times are changed to zero.

func (ZeroModTimeFileSystem) Open

func (fs ZeroModTimeFileSystem) Open(name string) (http.File, error)

Jump to

Keyboard shortcuts

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