host

package
v0.37.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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 (d *HostManager) BuildMultiArchImage(ctx context.Context, dockerfile []byte, dockerCtx *bytes.Buffer, imageName string, platforms []string, authBase64 string) (io.ReadCloser, []string, error)

func (*HostManager) CommitContainer

func (d *HostManager) CommitContainer(ctx context.Context, containerID string, opts types.CommitOptions) (string, error)

func (*HostManager) ContainerList

func (d *HostManager) ContainerList(ctx context.Context, all bool) ([]*types.Container, error)

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 (d *HostManager) CopyFileFromContainer(ctx context.Context, id string, srcPath string) (string, error)

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 (d *HostManager) ExecContainer(ctx context.Context, id string, cmd []string, attachStdOut bool) (io.Reader, error)

func (*HostManager) InspectContainer

func (d *HostManager) InspectContainer(ctx context.Context, id string) (*types.ContainerConfig, error)

func (*HostManager) InspectImage

func (d *HostManager) InspectImage(ctx context.Context, image string) (*types.ImageInfo, error)

func (*HostManager) ListImage

func (d *HostManager) ListImage(ctx context.Context, image string) ([]string, error)

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 (d *HostManager) StopContainer(ctx context.Context, id string, signal string) error

func (*HostManager) TagImage

func (d *HostManager) TagImage(ctx context.Context, source, target string) error

func (*HostManager) WaitContainer

func (d *HostManager) WaitContainer(ctx context.Context, id string, waitCondition string) (*int64, error)

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.

func (*WriterToReadCloser) Read

func (wtrc *WriterToReadCloser) Read(p []byte) (int, error)

Read reads data from the underlying io.PipeReader.

func (*WriterToReadCloser) Write

func (wtrc *WriterToReadCloser) Write(p []byte) (int, error)

Write writes data to the underlying io.PipeWriter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL