Versions in this module Expand all Collapse all v1 v1.0.0 Oct 15, 2021 Changes in this version + var SuccessResponse = ResponseNilMsg + func CheckAddressByTcp(address string, port int, timeout time.Duration, logger logr.Logger) (bool, error) + func CheckAddressSSHLived(address string, timeSecond time.Duration, logger logr.Logger) bool + func ContainsString(slice []string, s string, modifier func(s string) string) bool + func FormatString(str string) string + func MapMerge(m1 map[string]interface{}, m2 map[string]interface{}) map[string]interface + func MapMergeString(m1 map[string]string, m2 map[string]string) map[string]string + func MaxIntSlice(v []int) int + func ParseInput(logger logr.Logger, request *restful.Request, response *restful.Response, ...) ([]string, error) + func RandPassword() string + func RandString(n int) string + func ReadHttpPostBody(logger logr.Logger, request *restful.Request, response *restful.Response) ([]byte, error) + func RemoveString(slice []string, s string, modifier func(s string) string) []string + func SortStrings(s []string) []string + type CacheProvider struct + func GetCacheProvider() *CacheProvider + func (c *CacheProvider) Add(key string, value interface{}) error + func (c *CacheProvider) Delete(key string) error + func (c *CacheProvider) Get(key string) (value interface{}, exists bool, err error) + func (c *CacheProvider) Update(key string, value interface{}) error + type ResponseNilMsg struct + Status string + type ResponseWithMsg struct + Msg map[string]interface{} + Status string + func ResponseSucInitFactory() *ResponseWithMsg