Documentation ¶
Index ¶
- type ClosingBuffer
- type DockerClient
- func (m *DockerClient) ContainerCreate(ctx context.Context, config *container.Config, ...) (container.ContainerCreateCreatedBody, error)
- func (m *DockerClient) ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error)
- func (m *DockerClient) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error
- func (m *DockerClient) ContainerStart(ctx context.Context, containerID string, options types.ContainerStartOptions) error
- func (m *DockerClient) ContainerStop(ctx context.Context, container string, timeout *time.Duration) error
- func (m *DockerClient) ContainerWait(ctx context.Context, containerID string, condition container.WaitCondition) (<-chan container.ContainerWaitOKBody, <-chan error)
- func (m *DockerClient) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
- func (m *DockerClient) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)
- func (m *DockerClient) ImageName(tool *prm.Tool, prmConfig prm.Config) string
- func (m *DockerClient) ImageRemove(ctx context.Context, imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)
- func (m *DockerClient) ServerVersion(ctx context.Context) (types.Version, error)
- type MockBackend
- func (m *MockBackend) Exec(tool *prm.Tool, args []string, prmConfig prm.Config, paths prm.DirectoryPaths) (prm.ToolExitCode, error)
- func (m *MockBackend) GetTool(tool *prm.Tool, prmConfig prm.Config) error
- func (m *MockBackend) Status() prm.BackendStatus
- func (m *MockBackend) Validate(toolInfo prm.ToolInfo, prmConfig prm.Config, paths prm.DirectoryPaths) (prm.ValidateExitCode, string, error)
- type PctInstaller
- type ReadClose
- type Utils
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClosingBuffer ¶
func (*ClosingBuffer) Close ¶
func (cb *ClosingBuffer) Close() (err error)
type DockerClient ¶
type DockerClient struct { Platform string Version string ApiVersion string ErrorString string ImagesSlice []types.ImageSummary Stdout string Stderr string ExitCode int64 ExitErrorMsg string WantChanErr bool }
func (*DockerClient) ContainerCreate ¶
func (m *DockerClient) ContainerCreate(ctx context.Context, config *container.Config, hostConfig *container.HostConfig, networkingConfig *network.NetworkingConfig, platform *specs.Platform, containerName string) (container.ContainerCreateCreatedBody, error)
func (*DockerClient) ContainerLogs ¶
func (m *DockerClient) ContainerLogs(ctx context.Context, container string, options types.ContainerLogsOptions) (io.ReadCloser, error)
func (*DockerClient) ContainerRemove ¶
func (m *DockerClient) ContainerRemove(ctx context.Context, containerID string, options types.ContainerRemoveOptions) error
func (*DockerClient) ContainerStart ¶
func (m *DockerClient) ContainerStart(ctx context.Context, containerID string, options types.ContainerStartOptions) error
func (*DockerClient) ContainerStop ¶
func (*DockerClient) ContainerWait ¶
func (m *DockerClient) ContainerWait(ctx context.Context, containerID string, condition container.WaitCondition) (<-chan container.ContainerWaitOKBody, <-chan error)
func (*DockerClient) ImageBuild ¶
func (m *DockerClient) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
func (*DockerClient) ImageList ¶
func (m *DockerClient) ImageList(ctx context.Context, options types.ImageListOptions) ([]types.ImageSummary, error)
func (*DockerClient) ImageRemove ¶
func (m *DockerClient) ImageRemove(ctx context.Context, imageID string, options types.ImageRemoveOptions) ([]types.ImageDeleteResponseItem, error)
func (*DockerClient) ServerVersion ¶
type MockBackend ¶
type MockBackend struct { StatusIsAvailable bool StatusMessageString string ToolAvalible bool ExecReturn string ValidateReturn string }
func (*MockBackend) Exec ¶
func (m *MockBackend) Exec(tool *prm.Tool, args []string, prmConfig prm.Config, paths prm.DirectoryPaths) (prm.ToolExitCode, error)
func (*MockBackend) Status ¶
func (m *MockBackend) Status() prm.BackendStatus
func (*MockBackend) Validate ¶
func (m *MockBackend) Validate(toolInfo prm.ToolInfo, prmConfig prm.Config, paths prm.DirectoryPaths) (prm.ValidateExitCode, string, error)
Implement when needed
type PctInstaller ¶
func (*PctInstaller) Install ¶
func (p *PctInstaller) Install(templatePkg, targetDir string, force bool) (string, error)
func (*PctInstaller) InstallClone ¶
func (p *PctInstaller) InstallClone(gitUri, targetDir, tempDir string, force bool) (string, error)
Click to show internal directories.
Click to hide internal directories.