Documentation ¶
Index ¶
- Variables
- func CheckPath(path string) bool
- func CheckPathPart(part string) (ok bool, isVarData []string)
- func DurationToString(in time.Duration) string
- func GetIP(r *http.Request) string
- func GrabIPFromURL(in string) string
- func IntSliceToStringSlice(in []int) []string
- func InterfaceSliceToIntSlice(in []interface{}) ([]int, error)
- func InterfaceSliceToStringSlice(in []interface{}) []string
- func MapStringInterfaceToMapStringString(in map[string]interface{}) map[string]string
- func RandStr(length int) string
- func ResetDockerFunctions()
- func StringSliceToIntSlice(in []string) []int
- func StringToDuration(in string) (time.Duration, error)
- func StringToIntSlice(in string) ([]int, error)
- func StringToStringMap(in []byte) (map[string]interface{}, error)
- func StringToStringSlice(in string) []string
- type Locker
- type ServiceKeyCheckInterface
- type UpdateProgress
- type WriteCounter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HasEnv = hasEnv HasCGroup = hasCGroup InDocker = inDocker HasSocket = hasSocket )
View Source
var DownloadFile = downloadFile
Functions ¶
func CheckPathPart ¶
func DurationToString ¶
func GrabIPFromURL ¶
func IntSliceToStringSlice ¶
func InterfaceSliceToStringSlice ¶
func InterfaceSliceToStringSlice(in []interface{}) []string
func ResetDockerFunctions ¶
func ResetDockerFunctions()
func StringSliceToIntSlice ¶
func StringToIntSlice ¶
func StringToStringMap ¶
func StringToStringSlice ¶
Types ¶
type ServiceKeyCheckInterface ¶
type ServiceKeyCheckInterface interface { CheckKey(key string) bool CheckIP(ipAddress string) bool }
func GRPCAccessChecker ¶
func GRPCAccessChecker(ctx context.Context, getByBaseID func(baseID string) ServiceKeyCheckInterface, systemLabel string) (ServiceKeyCheckInterface, string)
type UpdateProgress ¶
type WriteCounter ¶
type WriteCounter struct { FileSize uint64 Total uint64 ReportProgress func(wc *WriteCounter) }
Click to show internal directories.
Click to hide internal directories.