Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplySocket ¶
func ApplySocket(runtimeType RuntimeType, opts *types.ContainerConfig) types.ContainerConfig
Types ¶
type ChannelReadCloser ¶
type ChannelReadCloser struct {
// contains filtered or unexported fields
}
ChannelReadCloser is a custom type that implements io.ReadCloser.
func NewChannelReadCloser ¶
func NewChannelReadCloser(ch <-chan string) *ChannelReadCloser
NewChannelReadCloser creates a new ChannelReadCloser.
func (*ChannelReadCloser) Close ¶
func (crc *ChannelReadCloser) Close() error
Close closes the ChannelReadCloser.
type ContainerSocket ¶
type ContainerSocket struct {
RuntimeType RuntimeType
Source string
Target string
}
func DockerSocket ¶
func DockerSocket() (*ContainerSocket, error)
func PodmanSocket ¶
func PodmanSocket() (*ContainerSocket, error)
func Socket ¶
func Socket(runtimeType RuntimeType) (*ContainerSocket, error)
type ImageInfo ¶
func ParseDockerImage ¶
type ReadCloser ¶
type ReadCloser struct {
// contains filtered or unexported fields
}
ReadCloser wraps a bytes.Buffer and implements io.ReadCloser
func NewReadCloser ¶
func NewReadCloser(reader io.Reader) *ReadCloser
func (*ReadCloser) Close ¶
func (rc *ReadCloser) Close() error
Close implements the io.Closer interface
type RuntimeType ¶
type RuntimeType string
const ( Docker RuntimeType = "docker" Podman RuntimeType = "podman" Unknown RuntimeType = "unknown" )
Click to show internal directories.
Click to hide internal directories.