Propagate pod and container name for log files

This commit is contained in:
Satnam Singh
2015-04-20 17:26:40 -07:00
parent bd11f004be
commit 2444c1f943
15 changed files with 134 additions and 19 deletions

View File

@@ -63,6 +63,7 @@ type DockerInterface interface {
RemoveImage(image string) error
Logs(opts docker.LogsOptions) error
Version() (*docker.Env, error)
Info() (*docker.Env, error)
CreateExec(docker.CreateExecOptions) (*docker.Exec, error)
StartExec(string, docker.StartExecOptions) error
}
@@ -70,6 +71,7 @@ type DockerInterface interface {
// DockerID is an ID of docker container. It is a type to make it clear when we're working with docker container Ids
type DockerID string
// KubeletContainerName encapsulates a pod name and a Kubernetes container name.
type KubeletContainerName struct {
PodFullName string
PodUID types.UID