docker

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2017 License: LGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

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 JsonMapToString

func JsonMapToString(jsonStr string, key string) (string, error)

Types

type DockerBuildConfig

type DockerBuildConfig struct {
	Tags        []string
	BuildFolder string
}

type DockerClient

type DockerClient struct {
	// contains filtered or unexported fields
}

func NewDockerClient

func NewDockerClient(config *DockerClientConfig) (*DockerClient, error)

func (*DockerClient) BuildImage

func (d *DockerClient) BuildImage(buildConfig DockerBuildConfig) (string, error)

func (*DockerClient) PushImage

func (d *DockerClient) PushImage(tag string) error

func (*DockerClient) PushImages

func (d *DockerClient) PushImages(tags []string) error

func (*DockerClient) TagImage

func (d *DockerClient) TagImage(imageId string, tag string) error

func (*DockerClient) TagImages

func (d *DockerClient) TagImages(imageId string, tags []string) error

type DockerClientConfig

type DockerClientConfig struct {
	Endpoint string
}

type ImageInfoProvider added in v1.0.0

type ImageInfoProvider interface {
	GetManifest(repository string, tag string) (*schema1.SignedManifest, error)
	GetManifestEnv(repository string, tag string, name string) (string, error)
	GetTags(repository string) (*TagsAPIResponse, error)
}

type ImageName

type ImageName struct {
	Registry   string
	Repository string
	Tag        string
}

func (ImageName) String

func (n ImageName) String() string

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 (registry *RegistryClient) GetManifestEnv(repository string, tag string, name string) (string, error)

func (*RegistryClient) GetManifestEnvMap

func (registry *RegistryClient) GetManifestEnvMap(repository string, tag string) (map[string]string, error)

func (*RegistryClient) GetTags

func (registry *RegistryClient) GetTags(repository string) (*TagsAPIResponse, error)

type TagsAPIResponse added in v1.0.0

type TagsAPIResponse struct {
	Name string   `json:"name"`
	Tags []string `json:"tags"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL