Documentation
¶
Index ¶
- type HostContainer
- type HostManager
- func (d *HostManager) BuildImage(ctx context.Context, dockerfile []byte, imageName string, platform string) (io.ReadCloser, error)
- func (d *HostManager) BuildMultiArchImage(ctx context.Context, dockerfile []byte, dockerCtx *bytes.Buffer, ...) (io.ReadCloser, []string, error)
- func (d *HostManager) CommitContainer(ctx context.Context, containerID string, opts types.CommitOptions) (string, error)
- func (d *HostManager) ContainerList(ctx context.Context, all bool) ([]*types.Container, error)
- func (d *HostManager) ContainerLogs(ctx context.Context, id string, ShowStdout bool, ShowStderr bool, Follow bool) (io.ReadCloser, error)
- func (d *HostManager) CopyContentToContainer(ctx context.Context, id, content, dest string) error
- func (d *HostManager) CopyDirectorToContainer(ctx context.Context, id, srcPath, dstPath string) error
- func (d *HostManager) CopyFileFromContainer(ctx context.Context, id string, srcPath string) (string, error)
- func (d *HostManager) CopyToContainer(ctx context.Context, id, srcPath, dstPath string) error
- func (d *HostManager) CreateContainer(ctx context.Context, opts *types.ContainerConfig, authBase64 string) (string, error)
- func (d *HostManager) ExecContainer(ctx context.Context, id string, cmd []string, attachStdOut bool) (io.Reader, error)
- func (d *HostManager) InspectContainer(ctx context.Context, id string) (*types.ContainerConfig, error)
- func (d *HostManager) InspectImage(ctx context.Context, image string) (*types.ImageInfo, error)
- func (d *HostManager) ListImage(ctx context.Context, image string) ([]string, error)
- func (d *HostManager) Name() string
- func (d *HostManager) PullImage(ctx context.Context, image string, authBase64 string, platform string) (io.ReadCloser, error)
- func (d *HostManager) PushImage(ctx context.Context, target string, authBase64 string) (io.ReadCloser, error)
- func (d *HostManager) RemoveContainer(ctx context.Context, containerID string) error
- func (d *HostManager) RemoveImage(ctx context.Context, target string) error
- func (d *HostManager) StartContainer(ctx context.Context, id string) error
- func (d *HostManager) StopContainer(ctx context.Context, id string, signal string) error
- func (d *HostManager) TagImage(ctx context.Context, source, target string) error
- func (d *HostManager) WaitContainer(ctx context.Context, id string, waitCondition string) (*int64, error)
- type WriterToReadCloser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostContainer ¶
type HostContainer struct {
// contains filtered or unexported fields
}
type HostManager ¶
type HostManager struct {
// contains filtered or unexported fields
}
func NewHostManager ¶
func NewHostManager() *HostManager
func (*HostManager) BuildImage ¶
func (d *HostManager) BuildImage(ctx context.Context, dockerfile []byte, imageName string, platform string) (io.ReadCloser, error)
func (*HostManager) BuildMultiArchImage ¶
func (*HostManager) CommitContainer ¶
func (d *HostManager) CommitContainer(ctx context.Context, containerID string, opts types.CommitOptions) (string, error)
func (*HostManager) ContainerList ¶
func (*HostManager) ContainerLogs ¶
func (d *HostManager) ContainerLogs(ctx context.Context, id string, ShowStdout bool, ShowStderr bool, Follow bool) (io.ReadCloser, error)
func (*HostManager) CopyContentToContainer ¶
func (d *HostManager) CopyContentToContainer(ctx context.Context, id, content, dest string) error
func (*HostManager) CopyDirectorToContainer ¶
func (d *HostManager) CopyDirectorToContainer(ctx context.Context, id, srcPath, dstPath string) error
func (*HostManager) CopyFileFromContainer ¶
func (*HostManager) CopyToContainer ¶
func (d *HostManager) CopyToContainer(ctx context.Context, id, srcPath, dstPath string) error
func (*HostManager) CreateContainer ¶
func (d *HostManager) CreateContainer(ctx context.Context, opts *types.ContainerConfig, authBase64 string) (string, error)
func (*HostManager) ExecContainer ¶
func (*HostManager) InspectContainer ¶
func (d *HostManager) InspectContainer(ctx context.Context, id string) (*types.ContainerConfig, error)
func (*HostManager) InspectImage ¶
func (*HostManager) Name ¶
func (d *HostManager) Name() string
func (*HostManager) PullImage ¶
func (d *HostManager) PullImage(ctx context.Context, image string, authBase64 string, platform string) (io.ReadCloser, error)
func (*HostManager) PushImage ¶
func (d *HostManager) PushImage(ctx context.Context, target string, authBase64 string) (io.ReadCloser, error)
func (*HostManager) RemoveContainer ¶
func (d *HostManager) RemoveContainer(ctx context.Context, containerID string) error
func (*HostManager) RemoveImage ¶
func (d *HostManager) RemoveImage(ctx context.Context, target string) error
func (*HostManager) StartContainer ¶
func (d *HostManager) StartContainer(ctx context.Context, id string) error
func (*HostManager) StopContainer ¶
func (*HostManager) TagImage ¶
func (d *HostManager) TagImage(ctx context.Context, source, target string) error
func (*HostManager) WaitContainer ¶
type WriterToReadCloser ¶
type WriterToReadCloser struct {
// contains filtered or unexported fields
}
WriterToReadCloser wraps an io.Writer and allows reading the written data as an io.ReadCloser.
func NewWriterToReadCloser ¶
func NewWriterToReadCloser() *WriterToReadCloser
NewWriterToReadCloser creates a new WriterToReadCloser.
func (*WriterToReadCloser) Close ¶
func (wtrc *WriterToReadCloser) Close() error
Close closes both the writer and reader ends of the pipe.
Click to show internal directories.
Click to hide internal directories.