Documentation
¶
Index ¶
- func CheckDockerImageExists(dockerClient DockerClientInterface, imageRef string) (bool, error)
- func Contains(slice []string, item string) bool
- func ParseDockerImage(image string) (string, string, error)
- func SourceConfigUriParser(uri string) (string, string, error)
- type DockerClientInterface
- type RealDockerClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDockerImageExists ¶
func CheckDockerImageExists(dockerClient DockerClientInterface, imageRef string) (bool, error)
CheckDockerImageExists checks if a Docker image exists
func ParseDockerImage ¶ added in v0.2.0
ParseDockerImage parses a Docker image string and returns the repository and tag values.
Types ¶
type DockerClientInterface ¶ added in v0.2.0
type DockerClientInterface interface {
ImageInspect(ctx context.Context, imageRef string) (image.InspectResponse, error)
}
DockerClientInterface defines the methods required for a Docker client
type RealDockerClient ¶ added in v0.2.0
type RealDockerClient struct {
// contains filtered or unexported fields
}
RealDockerClient wraps the actual Docker client
func NewRealDockerClient ¶ added in v0.2.0
func NewRealDockerClient() (*RealDockerClient, error)
NewRealDockerClient initializes a new RealDockerClient
func (*RealDockerClient) ImageInspect ¶ added in v0.2.0
func (r *RealDockerClient) ImageInspect( ctx context.Context, imageRef string, ) (image.InspectResponse, error)
ImageInspect implements DockerClientInterface
Click to show internal directories.
Click to hide internal directories.