Documentation ¶
Index ¶
- func ContextWithDockerEngine(ctx context.Context, client *engineapi.Client) context.Context
- func FuckDockerStream(stream io.ReadCloser) io.Reader
- func GetDockerEngineFromContext(ctx context.Context) (*engineapi.Client, bool)
- func GetGitRepoName(url string) (string, error)
- func GetVersion(image string) string
- func LoadConfig(configPath string) (types.Config, error)
- func MakeCommandLineArgs(s string) []string
- func MakeContainerName(appname, entrypoint, ident string) string
- func ParseContainerName(containerName string) (string, string, string, error)
- func RandomString(n int) string
- func Tail(path string) string
- func TruncateID(id string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithDockerEngine ¶
ContextWithDockerEngine bind docker engine to context Bind a docker engine client to context
func FuckDockerStream ¶
func FuckDockerStream(stream io.ReadCloser) io.Reader
FuckDockerStream will copy docker stream to stdout and err
func GetDockerEngineFromContext ¶
GetDockerEngineFromContext get docker engine from context Get a docker engine client from a context
func GetGitRepoName ¶
GetGitRepoName return git repo name
func LoadConfig ¶
LoadConfig load config from yaml
func MakeCommandLineArgs ¶
MakeCommandLineArgs make command line args
func MakeContainerName ¶
MakeContainerName joins appname, entrypoint, ident using '_'
func ParseContainerName ¶
ParseContainerName does the opposite thing as MakeContainerName
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.