util

package
v0.0.0-...-2798f75 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Base64 string = "^(?:[A-Za-z0-9+\\/]{4})*(?:[A-Za-z0-9+\\/]{2}==|[A-Za-z0-9+\\/]{3}=|[A-Za-z0-9+\\/]{4})$"
)

Variables

This section is empty.

Functions

func Contains

func Contains(arr []string, element string) bool

func Convert

func Convert(from interface{}, to interface{})

func InferShard

func InferShard() (int, error)

func MaskLeft

func MaskLeft(s string) string

func ProcessDataWithFilter

func ProcessDataWithFilter(itemType string, key *string, data interface{}, comparator func(oldItem interface{}, newItem interface{}) bool, callback func() error) error

Types

type Sharding

type Sharding struct {
	// contains filtered or unexported fields
}

func NewSharding

func NewSharding(replicas int) *Sharding

func (*Sharding) InitApplications

func (sh *Sharding) InitApplications(applications []unstructured.Unstructured)

func (*Sharding) ShouldBeProcessed

func (sh *Sharding) ShouldBeProcessed(obj interface{}) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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