Versions in this module Expand all Collapse all v0 v0.1.0 Sep 28, 2021 Changes in this version + const DOCKER_VERSION + type Docker struct + DockerClient *client.Client + Registry *Registry + func NewDockerService(opt *options.DockerOption) (*Docker, error) + func (d *Docker) ContainerAttach(ctx context.Context, container string, options types.ContainerAttachOptions) (types.HijackedResponse, error) + func (d *Docker) ContainerCreate(ctx context.Context, config *containertypes.Config, ...) (containertypes.ContainerCreateCreatedBody, error) + func (d *Docker) ContainerKill(ctx context.Context, container, signal string) error + func (d *Docker) ContainerRemove(ctx context.Context, container string, options types.ContainerRemoveOptions) error + func (d *Docker) ContainerStart(ctx context.Context, container string, options types.ContainerStartOptions) error + func (d *Docker) ContainerStop(ctx context.Context, container string, timeout *time.Duration) error + func (d *Docker) ContainerWait(ctx context.Context, container string, condition containertypes.WaitCondition) (<-chan containertypes.ContainerWaitOKBody, <-chan error) + func (d *Docker) CopyFromContainer(ctx context.Context, container, srcPath string) (io.ReadCloser, types.ContainerPathStat, error) + func (d *Docker) CopyToContainer(ctx context.Context, container, path string, content io.Reader, ...) error + func (d *Docker) GetProjectName() string + func (d *Docker) GetServerAddress() string + func (d *Docker) ImageBuild(ctx context.Context, context io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error) + func (d *Docker) ImageInspectWithRaw(ctx context.Context, image string) (types.ImageInspect, []byte, error) + func (d *Docker) ImagePull(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error) + func (d *Docker) ImagePush(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error) + func (d *Docker) ImageTag(ctx context.Context, image, ref string) error + func (d *Docker) RegistryAuth() (string, error) + type DockerService interface + ContainerAttach func(ctx context.Context, container string, options types.ContainerAttachOptions) (types.HijackedResponse, error) + ContainerCreate func(ctx context.Context, config *containertypes.Config, ...) (containertypes.ContainerCreateCreatedBody, error) + ContainerKill func(ctx context.Context, container, signal string) error + ContainerRemove func(ctx context.Context, container string, options types.ContainerRemoveOptions) error + ContainerStart func(ctx context.Context, container string, options types.ContainerStartOptions) error + ContainerStop func(ctx context.Context, container string, timeout *time.Duration) error + ContainerWait func(ctx context.Context, container string, condition containertypes.WaitCondition) (<-chan containertypes.ContainerWaitOKBody, <-chan error) + CopyFromContainer func(ctx context.Context, container, srcPath string) (io.ReadCloser, types.ContainerPathStat, error) + CopyToContainer func(ctx context.Context, container, path string, content io.Reader, ...) error + GetProjectName func() string + GetServerAddress func() string + ImageBuild func(ctx context.Context, context io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error) + ImageInspectWithRaw func(ctx context.Context, image string) (types.ImageInspect, []byte, error) + ImagePull func(ctx context.Context, ref string, options types.ImagePullOptions) (io.ReadCloser, error) + ImagePush func(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error) + ImageTag func(ctx context.Context, image, ref string) error + RegistryAuth func() (string, error) + type MockDockerService struct + func NewMockDockerService(ctrl *gomock.Controller) *MockDockerService + func (m *MockDockerService) ContainerAttach(arg0 context.Context, arg1 string, arg2 types.ContainerAttachOptions) (types.HijackedResponse, error) + func (m *MockDockerService) ContainerCreate(arg0 context.Context, arg1 *container.Config, arg2 *container.HostConfig, ...) (container.ContainerCreateCreatedBody, error) + func (m *MockDockerService) ContainerKill(arg0 context.Context, arg1, arg2 string) error + func (m *MockDockerService) ContainerRemove(arg0 context.Context, arg1 string, arg2 types.ContainerRemoveOptions) error + func (m *MockDockerService) ContainerStart(arg0 context.Context, arg1 string, arg2 types.ContainerStartOptions) error + func (m *MockDockerService) ContainerStop(arg0 context.Context, arg1 string, arg2 *time.Duration) error + func (m *MockDockerService) ContainerWait(arg0 context.Context, arg1 string, arg2 container.WaitCondition) (<-chan container.ContainerWaitOKBody, <-chan error) + func (m *MockDockerService) CopyFromContainer(arg0 context.Context, arg1, arg2 string) (io.ReadCloser, types.ContainerPathStat, error) + func (m *MockDockerService) CopyToContainer(arg0 context.Context, arg1, arg2 string, arg3 io.Reader, ...) error + func (m *MockDockerService) EXPECT() *MockDockerServiceMockRecorder + func (m *MockDockerService) GetProjectName() string + func (m *MockDockerService) GetServerAddress() string + func (m *MockDockerService) ImageBuild(arg0 context.Context, arg1 io.Reader, arg2 types.ImageBuildOptions) (types.ImageBuildResponse, error) + func (m *MockDockerService) ImageInspectWithRaw(arg0 context.Context, arg1 string) (types.ImageInspect, []byte, error) + func (m *MockDockerService) ImagePull(arg0 context.Context, arg1 string, arg2 types.ImagePullOptions) (io.ReadCloser, error) + func (m *MockDockerService) ImagePush(arg0 context.Context, arg1 string, arg2 types.ImagePushOptions) (io.ReadCloser, error) + func (m *MockDockerService) ImageTag(arg0 context.Context, arg1, arg2 string) error + func (m *MockDockerService) RegistryAuth() (string, error) + type MockDockerServiceMockRecorder struct + func (mr *MockDockerServiceMockRecorder) ContainerAttach(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) ContainerCreate(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) ContainerKill(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) ContainerRemove(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) ContainerStart(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) ContainerStop(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) ContainerWait(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) CopyFromContainer(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) CopyToContainer(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) GetProjectName() *gomock.Call + func (mr *MockDockerServiceMockRecorder) GetServerAddress() *gomock.Call + func (mr *MockDockerServiceMockRecorder) ImageBuild(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) ImageInspectWithRaw(arg0, arg1 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) ImagePull(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) ImagePush(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) ImageTag(arg0, arg1, arg2 interface{}) *gomock.Call + func (mr *MockDockerServiceMockRecorder) RegistryAuth() *gomock.Call + type Registry struct + Email string + Password string + Project string + Serveraddress string + Username string