Documentation ¶
Index ¶
- func FindStages(content string) []string
- func ParseDockerignore(dir, dockerfile string) ([]string, error)
- func SlugifyTag(tag string) string
- func Tag(registry, image, tag string) string
- type Client
- type MockDocker
- func (m *MockDocker) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
- func (m *MockDocker) ImagePush(ctx context.Context, image string, options types.ImagePushOptions) (io.ReadCloser, error)
- func (m *MockDocker) RegistryLogin(ctx context.Context, auth types.AuthConfig) (registry.AuthenticateOKBody, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindStages ¶
func ParseDockerignore ¶
func SlugifyTag ¶ added in v0.0.23
Types ¶
type Client ¶
type Client interface { RegistryLogin(ctx context.Context, auth types.AuthConfig) (registry.AuthenticateOKBody, error) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error) ImagePush(ctx context.Context, image string, options types.ImagePushOptions) (io.ReadCloser, error) }
type MockDocker ¶
type MockDocker struct { Username string Password string ServerAddress string BuildContext []io.Reader BuildOptions []types.ImageBuildOptions Images []string LoginError error BuildCount int BuildError []error PushError error PushOutput *string BrokenOutput bool ResponseError error }
func (*MockDocker) ImageBuild ¶
func (m *MockDocker) ImageBuild(ctx context.Context, buildContext io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
func (*MockDocker) ImagePush ¶
func (m *MockDocker) ImagePush(ctx context.Context, image string, options types.ImagePushOptions) (io.ReadCloser, error)
func (*MockDocker) RegistryLogin ¶
func (m *MockDocker) RegistryLogin(ctx context.Context, auth types.AuthConfig) (registry.AuthenticateOKBody, error)
Click to show internal directories.
Click to hide internal directories.