Documentation
¶
Index ¶
- func ArchiveVolume(ctx context.Context, volumeNames []string, targetFile string) error
- func ContainerID() string
- func CreateNetworkIfNeeded(ctx context.Context, name string) (string, error)
- func CreateVolume(ctx context.Context, name string) error
- func JoinNetwork(ctx context.Context, containerID string, networkID string) error
- func SetFlags(cmd *exec.Cmd)
- func StreamingLogger(logger Logger) io.WriteCloser
- func ToDomain(file string) string
- func UnArchiveVolume(ctx context.Context, volumeNames []string, targetFile string) error
- func WithLogger(ctx context.Context, logger Logger) context.Context
- type At
- type ErrDockerAPI
- type Logger
- type LoggerFunc
- type Process
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveVolume ¶
func ContainerID ¶
func ContainerID() string
func CreateNetworkIfNeeded ¶
func JoinNetwork ¶
func StreamingLogger ¶
func StreamingLogger(logger Logger) io.WriteCloser
func UnArchiveVolume ¶
Types ¶
type ErrDockerAPI ¶
type ErrDockerAPI struct {
Message string
}
func (*ErrDockerAPI) Error ¶
func (eda *ErrDockerAPI) Error() string
type Logger ¶
type Logger interface {
Println(...interface{})
}
func LoggerFromContext ¶
func Namespaced ¶
type LoggerFunc ¶
type LoggerFunc func(...interface{})
func (LoggerFunc) Println ¶
func (lf LoggerFunc) Println(vars ...interface{})
Click to show internal directories.
Click to hide internal directories.