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 GetNodeByHost(c *cluster.Cluster, host string) (cluster.Node, 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 ProcessCmdForImage(processName, imageID string) ([]string, string, error)
- func PushImage(client Client, name, tag string, authconfig docker.AuthConfiguration) error
- func RegistryAuthConfig(image string) docker.AuthConfiguration
- func UserForContainer() (username string, uid *int64)
- func WaitDocker(client *docker.Client) error
- type Client
- type PullAndCreateClient
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 ProcessCmdForImage ¶
func PushImage ¶
func PushImage(client Client, name, tag string, authconfig docker.AuthConfiguration) error
func RegistryAuthConfig ¶
func RegistryAuthConfig(image string) docker.AuthConfiguration
func UserForContainer ¶
func WaitDocker ¶
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 PullAndCreateClient ¶
func (*PullAndCreateClient) PullAndCreateContainer ¶
func (c *PullAndCreateClient) PullAndCreateContainer(opts docker.CreateContainerOptions, w io.Writer) (*docker.Container, string, error)
func (*PullAndCreateClient) SetTimeout ¶
func (c *PullAndCreateClient) SetTimeout(timeout time.Duration)
Click to show internal directories.
Click to hide internal directories.