Documentation ¶
Index ¶
- func Age(unixTime int64) string
- func Clear(v interface{})
- func CombineManifests(yamls []string) string
- func ComputeHmacSha256(ak string, sk string) string
- func ExtraServiceName(releaseName, namespace string) string
- func GeneHelmReleaseName(namespace, serviceName string) string
- func GenerateTmpFile() (string, error)
- func GetAddress(uri string) (string, error)
- func GetJSONData(jsonValues map[string]interface{}) map[string]string
- func GetJiraKeys(title string) (keys []string)
- func GetRandomNumString(length int) string
- func GetRandomString(length int) string
- func GetURLHostName(urlAddr string) string
- func JSONToYaml(json map[string]interface{}) (string, error)
- func RecursionGetKeyAndValue(jsonValues map[string]interface{}, mapKey string)
- func RecursionReplaceValue(jsonValues map[string]interface{}, replaceKeyArr []string, ...)
- func ReplaceMapValue(jsonValues map[string]interface{}, replaceMap map[string]interface{}) map[string]interface{}
- func ReplaceRepo(origin, addr, namespace string) string
- func ReplaceWrapLine(script string) string
- func SendRequest(url, method string, header http.Header, body []byte) ([]byte, error)deprecated
- func SplitManifests(content string) []string
- func UUID() string
- func WriteFile(filename string, data []byte, perm os.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Age ¶
Age returns a string representing the time elapsed since unixTime in the form "1d", "2h", "3m", or "4s".
func CombineManifests ¶ added in v1.3.0
func ComputeHmacSha256 ¶ added in v1.3.0
ComputeHmacSha256 According to ak/sk generate secret key
func ExtraServiceName ¶ added in v1.5.0
func GeneHelmReleaseName ¶ added in v1.5.0
func GenerateTmpFile ¶
func GetAddress ¶ added in v1.2.0
func GetJSONData ¶
func GetJiraKeys ¶
func GetRandomNumString ¶ added in v1.2.0
func GetRandomString ¶ added in v1.2.0
func JSONToYaml ¶
func RecursionGetKeyAndValue ¶
RecursionGetKeyAndValue 递归获取map中的key和value
func RecursionReplaceValue ¶
func RecursionReplaceValue(jsonValues map[string]interface{}, replaceKeyArr []string, replaceValue interface{})
RecursionReplaceValue 递归替换map中的value
func ReplaceMapValue ¶
func ReplaceMapValue(jsonValues map[string]interface{}, replaceMap map[string]interface{}) map[string]interface{}
ReplaceMapValue 拿匹配到的key和value去替换原始的map中的key和value
func ReplaceRepo ¶
func ReplaceWrapLine ¶
func SplitManifests ¶ added in v1.3.0
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.