package
2.2.1+incompatible
Repository: https://github.com/goharbor/harbor.git
Documentation: pkg.go.dev

# Functions

DeSerializeJob decodes bytes to ptr of work.Job.
DirExists check if the specified dir exists.
FileExists check if the specified exists.
GenerateNodeID returns ID of current node.
IsEmptyStr check if the specified str is empty (len ==0) after triming prefix and suffix spaces.
IsValidPort check if port is valid.
IsValidURL validates if the url is well-formted.
MakeIdentifier creates uuid for job.
ReadEnv return the value of env variable.
ResolveHostnameAndIP gets the local hostname and IP.
SerializeJob encodes work.Job to json data.

# Constants

NodeID is const of the ID context key.

# Type aliases

NodeIDContextKey is used to keep node ID in the system context.