Documentation ¶
Index ¶
- Variables
- func ArchiveVolume(ctx context.Context, volumeNames []string, targetFile string) error
- func ContainerID() string
- func CreateNetworkIfNeeded(ctx context.Context, name string) (string, error)
- func JoinNetwork(ctx context.Context, containerID string, networkID string) error
- func LoggerFromContext(ctx context.Context) *zap.Logger
- func ReadEnvFile(filename string) (map[string]string, error)
- func SetFlags(cmd *exec.Cmd)
- func StreamingLogger(logger *zap.Logger) io.WriteCloser
- func SubLogger(ctx context.Context, name string) *zap.Logger
- func ToDomain(file string) string
- func UnArchiveVolume(ctx context.Context, volumeNames []string, targetFile string) error
- func WaitToBeHealthy(ctx context.Context, cli client.APIClient, containerID string, created string) error
- func WithLogger(ctx context.Context, logger *zap.Logger) context.Context
- func WithSubLogger(ctx context.Context, name string) context.Context
- type At
- type ErrDockerAPI
- type Process
- type Task
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEventStreamClosed = errors.New("event stream closed")
Functions ¶
func ArchiveVolume ¶
func ContainerID ¶
func ContainerID() string
func CreateNetworkIfNeeded ¶
func JoinNetwork ¶
func StreamingLogger ¶
func StreamingLogger(logger *zap.Logger) io.WriteCloser
func UnArchiveVolume ¶
func WaitToBeHealthy ¶ added in v0.0.3
Types ¶
type ErrDockerAPI ¶
type ErrDockerAPI struct {
Message string
}
func (*ErrDockerAPI) Error ¶
func (eda *ErrDockerAPI) Error() string
type Task ¶ added in v0.0.3
type Task struct {
// contains filtered or unexported fields
}
func Spawn ¶ added in v0.0.3
Spawn background processing go-routine. Will be stopped when context finished or Stop() invoked. Stop will wait till the go-routine finish.
func Timer ¶ added in v0.0.3
func Timer(ctx context.Context, interval time.Duration, runnable func(ctx context.Context) error) *Task
Timer task that will be repeated till context canceled (or Stop). Error will be logged.
Click to show internal directories.
Click to hide internal directories.