Documentation ¶
Index ¶
- Constants
- func GetDockerConfigPath() (string, error)
- func JsonMapToString(jsonStr string, key string) (string, error)
- type Auths
- type Credentials
- type DockerBuildConfig
- type DockerClient
- func (d *DockerClient) BuildImage(buildConfig DockerBuildConfig) (string, error)
- func (d *DockerClient) PushImage(tag, credentials string) error
- func (d *DockerClient) PushImages(tags []string, credentials string) error
- func (d *DockerClient) TagImage(imageId string, tag string) error
- func (d *DockerClient) TagImages(imageId string, tags []string) error
- type DockerClientAPI
- type DockerClientProxy
- func (proxy DockerClientProxy) ImageBuild(ctx context.Context, context io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
- func (proxy DockerClientProxy) ImagePush(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error)
- func (proxy DockerClientProxy) ImageTag(ctx context.Context, image, ref string) error
- type DockerConfig
- type ImageInfoProvider
- type ImageName
- type RegistryClient
- func (registry *RegistryClient) GetManifest(repository string, tag string) (*schema1.SignedManifest, error)
- func (registry *RegistryClient) GetManifestEnv(repository string, tag string, name string) (string, error)
- func (registry *RegistryClient) GetManifestEnvMap(repository string, tag string) (map[string]string, error)
- func (registry *RegistryClient) GetTags(repository string) (*TagsAPIResponse, error)
- type RegistryCredentials
- type RegistryEntry
- type TagsAPIResponse
Constants ¶
View Source
const ( ENV_APP_VERSION = "APP_VERSION" ENV_AURORA_VERSION = "AURORA_VERSION" ENV_SNAPSHOT_TAG = "SNAPSHOT_TAG" ENV_PUSH_EXTRA_TAGS = "PUSH_EXTRA_TAGS" ENV_READINESS_CHECK_URL = "READINESS_CHECK_URL" ENV_READINESS_ON_MANAGEMENT_PORT = "READINESS_ON_MANAGEMENT_PORT" )
Variables ¶
This section is empty.
Functions ¶
func GetDockerConfigPath ¶ added in v1.0.1
Types ¶
type Auths ¶ added in v1.0.1
type Auths map[string]RegistryEntry
type Credentials ¶ added in v1.0.1
type DockerBuildConfig ¶
type DockerClient ¶
type DockerClient struct {
Client DockerClientAPI
}
func NewDockerClient ¶
func NewDockerClient() (*DockerClient, error)
func (*DockerClient) BuildImage ¶
func (d *DockerClient) BuildImage(buildConfig DockerBuildConfig) (string, error)
func (*DockerClient) PushImage ¶
func (d *DockerClient) PushImage(tag, credentials string) error
func (*DockerClient) PushImages ¶
func (d *DockerClient) PushImages(tags []string, credentials string) error
type DockerClientAPI ¶ added in v1.0.1
type DockerClientAPI interface { ImageBuild(ctx context.Context, context io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error) ImagePush(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error) ImageTag(ctx context.Context, image, ref string) error }
type DockerClientProxy ¶ added in v1.0.1
type DockerClientProxy struct {
// contains filtered or unexported fields
}
func (DockerClientProxy) ImageBuild ¶ added in v1.0.1
func (proxy DockerClientProxy) ImageBuild(ctx context.Context, context io.Reader, options types.ImageBuildOptions) (types.ImageBuildResponse, error)
func (DockerClientProxy) ImagePush ¶ added in v1.0.1
func (proxy DockerClientProxy) ImagePush(ctx context.Context, ref string, options types.ImagePushOptions) (io.ReadCloser, error)
type DockerConfig ¶ added in v1.0.1
type DockerConfig struct { Auths Auths `json:"auths"` HttpHeaders map[string]string `json:"HttpHeaders,omitempty"` }
func ReadConfig ¶ added in v1.0.1
func ReadConfig(reader io.Reader) (*DockerConfig, error)
func (DockerConfig) GetCredentials ¶ added in v1.0.1
func (cfg DockerConfig) GetCredentials(address string) (*Credentials, error)
type ImageInfoProvider ¶ added in v1.0.0
type RegistryClient ¶
type RegistryClient struct {
// contains filtered or unexported fields
}
func NewRegistryClient ¶
func NewRegistryClient(address string) *RegistryClient
func (*RegistryClient) GetManifest ¶
func (registry *RegistryClient) GetManifest(repository string, tag string) (*schema1.SignedManifest, error)
func (*RegistryClient) GetManifestEnv ¶
func (*RegistryClient) GetManifestEnvMap ¶
func (*RegistryClient) GetTags ¶
func (registry *RegistryClient) GetTags(repository string) (*TagsAPIResponse, error)
type RegistryCredentials ¶ added in v1.0.1
type RegistryCredentials struct { Username string `json:"username,omitempty"` Password string `json:"password,omitempty"` Serveraddress string `json:"serveraddress,omitempty"` }
func (RegistryCredentials) Encode ¶ added in v1.0.1
func (rc RegistryCredentials) Encode() (string, error)
type RegistryEntry ¶ added in v1.0.1
type TagsAPIResponse ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.