package
23.10.11+incompatible
Repository: https://github.com/projecteru2/core.git
Documentation: pkg.go.dev

# Functions

AdvancedDivide returns 0 when 0/0.
Any returns true if any element in slice meets the requirement.
CleanStatsdMetrics trans dot to _.
DecodeMetaInLabel get meta from label and decode it.
DecodePublishInfo decode publish info.
EncodeMetaInLabel encode meta to json.
EncodePublishInfo encode publish info.
EnsureReaderClosed As the name says, blocks until the stream is empty, until we meet EOF.
Filter returns a new slice with elements that meet the requirement.
GenerateSlice generates a slice with factory function.
GetGitRepoName return git repo name.
GetHTTPClient returns a HTTP client.
GetHTTPSClient returns an HTTPS client if cert_path/ca/cert/key is empty, it returns an HTTP client instead.
GetOutboundAddress finds out self-service address.
GetTag reture image tag.
GetUnixSockClient .
InheritTracingInfo pass through the tracing info: peer, tracing id.
LabelsFilter filter workload by labels.
ListAllExecutableFiles returns all the executable files in the given path.
LoadConfig load config from yaml.
MakeCommandLineArgs make command line args.
MakePublishInfo generate publish info.
MakeWorkloadName joins appname, entrypoint, ident using '_'.
Map like map in Python.
Max returns the biggest one.
MergeHookOutputs merge hooks output.
Min returns the lesser one.
NewEngineCache creates Cache instance.
NewInheritCtx new a todo context and get the previous values.
NewPool new a pool.
NormalizeImageName will normalize image name.
ParseRAMInHuman returns int value in bytes of a human readable string e.g.
ParseWorkloadName does the opposite thing as MakeWorkloadName.
PCR Prepare, Commit, Rollback.
RandomString random a string.
Range .
Reverse any slice.
Round for float64 to int.
SentryGo wraps goroutine spawn to capture panic.
SHA256 .
ShortID short workload ID.
Sum returns sum of all elements in slice.
Tail return tail thing.
TempFile store a temp file.
Txn provides unified API to perform txn.
Unique return a index, where s[:index] is a unique slice Unique requires sorted slice.
WithTimeout runs a function with given timeout.

# Constants

DefaultVersion for default version.

# Structs

EngineCache connections otherwise they'll leak.