Documentation ¶
Index ¶
- Constants
- func AddDeployTarFile(archive io.Reader, fileSize int64, name string) io.ReadCloser
- func ArchiveBuildCmds(app provision.App, archiveURL string) []string
- func ArchiveDeployCmds(app provision.App, archiveURL string) []string
- func DeployCmds(app provision.App) []string
- func DownloadFromContainer(client Client, contID string, filePath string) (io.ReadCloser, error)
- func LeanContainerCmds(processName, imageID string, app provision.App) ([]string, string, error)
- func LeanContainerCmdsWithExtra(processName, imageID string, app provision.App, extraCmds []string) ([]string, string, error)
- func PrepareImageForDeploy(args PrepareImageArgs) (string, error)
- func ProcessCmdForImage(processName, imageID string) ([]string, string, error)
- func PushImage(client Client, name, tag string, authconfig docker.AuthConfiguration) error
- func RegistryAuthConfig() docker.AuthConfiguration
- func UserForContainer() (username string, uid *int64)
- func WaitDocker(client *docker.Client) error
- type Client
- type ClientWithTimeout
- type PrepareImageArgs
Constants ¶
View Source
const (
JsonFileLogDriver = "json-file"
)
Variables ¶
This section is empty.
Functions ¶
func AddDeployTarFile ¶
func ArchiveBuildCmds ¶
ArchiveBuildCmds build a image using the archive method.
func ArchiveDeployCmds ¶
ArchiveDeployCmds is a legacy command to deploys an unit using the archive method.
func DeployCmds ¶
DeployCmds deploys an unit builded by tsuru.
func DownloadFromContainer ¶
func LeanContainerCmds ¶
func PrepareImageForDeploy ¶
func PrepareImageForDeploy(args PrepareImageArgs) (string, error)
func ProcessCmdForImage ¶
func RegistryAuthConfig ¶
func RegistryAuthConfig() docker.AuthConfiguration
func UserForContainer ¶
func WaitDocker ¶
func WaitDocker(client *docker.Client) error
Types ¶
type Client ¶
type Client interface { PushImage(docker.PushImageOptions, docker.AuthConfiguration) error InspectImage(string) (*docker.Image, error) TagImage(string, docker.TagImageOptions) error CommitContainer(docker.CommitContainerOptions) (*docker.Image, error) DownloadFromContainer(string, docker.DownloadFromContainerOptions) error }
type ClientWithTimeout ¶
type ClientWithTimeout struct {
*docker.Client
}
func (*ClientWithTimeout) SetTimeout ¶
func (c *ClientWithTimeout) SetTimeout(timeout time.Duration)
Click to show internal directories.
Click to hide internal directories.