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

# Packages

# Functions

ConvertMapToStruct is used to fill the specified struct with map.
Encrypt encrypts the content with salt.
FindNamedMatches returns named matches of the regexp groups.
GenerateRandomString generate a random string with 32 byte length.
GenerateRandomStringWithLen generates a random string with length.
GetStrValueOfAnyType return string format of any value, for map, need to convert to json.
IsContainIllegalChar ...
IsDigest A sha256 is a string with 64 characters.
IsIllegalLength ...
NewLimitedConcurrentRunner creates a runner.
NewPassportsPool creates a passports pool with given size.
ParseEndpoint parses endpoint to a URL.
ParseJSONInt ...
ParseLink parses the raw link header to Links.
ParseOfftime ...
ParseProjectIDOrName parses value to ID(int64) or name(string).
ParseRepository splits a repository into two parts: project and rest.
ParseTimeStamp parse timestamp to time.
ReversibleDecrypt decrypts the str with aes/base64 or base 64 depending on "header".
ReversibleEncrypt encrypts the str with aes/base64.
SafeCastBool --.
SafeCastFloat64 --.
SafeCastInt --.
SafeCastString -- cast a object to string saftely.
ScanOverviewMarker ...
TestTCPConn tests TCP connection timeout: the total time before returning if something is wrong with the connection, in second interval: the interval time for retring after failure, in second.
TrimLower ...
ValidateRepo validates whether a repo name is valid.
ValidateTag validates whether a tag is valid.

# Constants

EncryptHeaderV1 ...
SHA1 is the name of sha1 hash alg.
SHA256 is the name of sha256 hash alg.

# Variables

HashAlg used to get correct alg for hash.
RepoRegexp is regular expression to match repo name, for example, 'busybox', 'stage/busybox'.
TagRegexp is regular expression to match image tags, for example, 'v1.0'.

# Structs

Link : HTTP link header.
TimeMarker is used to control an action not to be taken frequently within the interval.

# Interfaces

LimitedConcurrentRunner is used to run tasks, but limit the max concurrency.
PassportsPool holds a given number of passports, they can be applied or be revoked.

# Type aliases

Links : multiple link.