Documentation ¶
Index ¶
- Variables
- func Contains(strList []string, str string) bool
- func ConvertTypeByJson(srcObj interface{}, destPtr interface{}) (err error)
- func GetCodeRepoName(codeUrl string) string
- func GetImageName(img string) string
- func HandleCrash(additionalHandlers ...func(interface{}))
- func LookupEnvOrInt(key string, defaultVal int) int
- func LookupEnvOrString(key string, defaultVal string) string
- func ParseImageName(img string, withDefault bool) (string, string, string)
- func ShortUUID() string
- type Response
- type WatchResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var CSTZone = time.FixedZone("GMT", 8*3600)
Functions ¶
func ConvertTypeByJson ¶
func ConvertTypeByJson(srcObj interface{}, destPtr interface{}) (err error)
func GetCodeRepoName ¶
GetCodeRepoName 获取代码库的项目名 如:https://github.com/dnsjia/pipeflow.git ---> pipeflow git@github.com/dnsjia/pipeflow.git -> pipeflow
func GetImageName ¶
GetImageName 获取镜像的名称 如:docker.io/dnsjia/pipeflow:latest -> dnsjia/pipeflow
func HandleCrash ¶
func HandleCrash(additionalHandlers ...func(interface{}))
func LookupEnvOrInt ¶
LookupEnvOrInt returns the value of the environment variable with the given key, or the given default value if the key is not set.
func LookupEnvOrString ¶
LookupEnvOrString returns the value of the environment variable with the given key, or the given default value if the key is not set.
func ParseImageName ¶
ParseImageName 获取镜像的名称 如:docker.io/dnsjia/pipeflow:latest -> docker.io dnsjia/pipeflow latest
Types ¶
type WatchResponse ¶
Click to show internal directories.
Click to hide internal directories.