Documentation ¶
Index ¶
- func GenCommonName(flag string, index int) string
- func GenLabelsKey(prefix, resource string) string
- func GenWorkloadInstanceName(appName string, index int) string
- func GetNormalizedGroupNameVersion(group, name, version string) string
- func InstallgoroutineDumpGenerator()
- func IntToLetter(i int) string
- func InterfaceToString(v interface{}) string
- func IsFromSameSubnet(remoteAddr, podIP string) bool
- func IsNumeric(s string) bool
- func IsURL(url string) bool
- func IsValidUUID(u string) error
- func JoinStr(flag string, index int) string
- func JoinURL(base string, paths ...string) string
- func NanoTime() string
- func NormalizeString(str string) string
- func PKCS5Padding(src []byte, blockSize int) []byte
- func PKCS5UnPadding(src []byte) []byte
- func SendHttpRequest(method, url string, header map[string]string, bodyData []byte, maxRetry int) ([]byte, error)
- func ShuffleStrings(list []string)
- func SplitMultiString(s string) []string
- func StackTrace(all bool) string
- func UUID() string
- func ValidateDomainName(domain string) bool
- type AESCipher
- type LabelTool
- func (lt LabelTool) CheckLabelExist(curLabelsMap, appendLabelMap map[string]string) bool
- func (lt LabelTool) GenLabelIndexes(labels map[string]string) string
- func (lt LabelTool) GenLabelSearchValue(labels map[string]string) string
- func (lt LabelTool) GetDigestMd5(key string) string
- func (lt LabelTool) MergeLabels(curLabelsMap map[string]string, appendLabelMap map[string]string) (string, map[string]string, error)
- func (lt LabelTool) ParseQueryParams2Labels(labels string) (map[string]string, error)
- func (lt LabelTool) ParseStrLabels(labels string) (map[string]string, error)
- type RSACipher
- func (rc RSACipher) Decrypt(cipherText []byte, priKey []byte) ([]byte, error)
- func (rc RSACipher) Encrypt(plainText []byte, pubKey []byte) ([]byte, error)
- func (rc RSACipher) Signature(plainText []byte, priKey []byte) ([]byte, error)
- func (rc RSACipher) VerifySignature(plainText, pubKey, signature []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenCommonName ¶
instance name must meet DNS-1123 standard for keep the container name global unique attach a string
func GenLabelsKey ¶
func GenWorkloadInstanceName ¶
func InstallgoroutineDumpGenerator ¶
func InstallgoroutineDumpGenerator()
func IntToLetter ¶
func InterfaceToString ¶
func InterfaceToString(v interface{}) string
func IsFromSameSubnet ¶
super hack way do subnet match
func IsValidUUID ¶
func NormalizeString ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func SendHttpRequest ¶
func ShuffleStrings ¶
func ShuffleStrings(list []string)
func SplitMultiString ¶
func StackTrace ¶
func ValidateDomainName ¶
Types ¶
type LabelTool ¶
type LabelTool struct { }
func (LabelTool) CheckLabelExist ¶
func (LabelTool) GenLabelIndexes ¶
func (LabelTool) GenLabelSearchValue ¶
func (LabelTool) GetDigestMd5 ¶
func (LabelTool) MergeLabels ¶
func (LabelTool) ParseQueryParams2Labels ¶
Click to show internal directories.
Click to hide internal directories.