Documentation
¶
Index ¶
Constants ¶
View Source
const DEFAULT_DOCKER_ADDRESS = "docker.io"
Variables ¶
This section is empty.
Functions ¶
func ApplySocket ¶
func ApplySocket(runtimeType RuntimeType, opts *types.ContainerConfig) types.ContainerConfig
func ContainsDomain ¶ added in v0.5.0
Function to check if a string contains a domain address
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" Test RuntimeType = "test" Unknown RuntimeType = "unknown" )
Click to show internal directories.
Click to hide internal directories.