Documentation ¶
Index ¶
- func CreateAuthConfig(username, password string) (string, error)
- func GetDockerfileImages(loc string) ([]string, error)
- func IsBase64(s string) bool
- type Client
- type ClientImpl
- func (c *ClientImpl) Build(options types.ImageBuildOptions) error
- func (c *ClientImpl) Login(auth registry.AuthConfig) error
- func (c *ClientImpl) Pull(refStr string, options types.ImagePullOptions) error
- func (c *ClientImpl) Push(image string, options types.ImagePushOptions) error
- func (c *ClientImpl) Tag(source string, target string) error
- type Service
- type ServiceImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAuthConfig ¶
func GetDockerfileImages ¶
Types ¶
type Client ¶
type Client interface { Build(options types.ImageBuildOptions) error Pull(refStr string, options types.ImagePullOptions) error Push(image string, options types.ImagePushOptions) error Tag(source string, target string) error Login(auth registry.AuthConfig) error }
type ClientImpl ¶
type ClientImpl struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(opts ...client.Opt) *ClientImpl
func (*ClientImpl) Build ¶
func (c *ClientImpl) Build(options types.ImageBuildOptions) error
func (*ClientImpl) Login ¶
func (c *ClientImpl) Login(auth registry.AuthConfig) error
func (*ClientImpl) Pull ¶
func (c *ClientImpl) Pull(refStr string, options types.ImagePullOptions) error
func (*ClientImpl) Push ¶
func (c *ClientImpl) Push(image string, options types.ImagePushOptions) error
type ServiceImpl ¶
type ServiceImpl struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(client Client) *ServiceImpl
func (*ServiceImpl) Login ¶
func (s *ServiceImpl) Login(auth string) error
func (*ServiceImpl) Pull ¶
func (s *ServiceImpl) Pull(imageRefURL, registryAuth string) error
Pull requests the docker host to pull an image from a remote repository. The full remote image path is required as well as authentication for the registry.
func (*ServiceImpl) Push ¶
func (s *ServiceImpl) Push(imageRefURL, registryAuth string) error
Push requests the docker host to push an image to a remote repository. The full remote image path is required as well as authentication for the registry.
func (*ServiceImpl) Tag ¶
func (s *ServiceImpl) Tag(src, dest string) error
Directories ¶
Path | Synopsis |
---|---|
Package mock_docker is a generated GoMock package.
|
Package mock_docker is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.