{"modulePath":"github.com/docker/compose-cli","version":"v0.1.14","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package compose\n\n## Constants\n\n```go\nconst (\n\t// ProjectTag allow to track resource related to a compose project\n\tProjectTag = \"com.docker.compose.project\"\n\t// NetworkTag allow to track resource related to a compose network\n\tNetworkTag = \"com.docker.compose.network\"\n\t// ServiceTag allow to track resource related to a compose service\n\tServiceTag = \"com.docker.compose.service\"\n)\n```\n\n## Types\n\n```go\ntype PortPublisher struct {\n\tURL           string\n\tTargetPort    int\n\tPublishedPort int\n\tProtocol      string\n}\n```\nPortPublisher hold status about published port\n\n```go\ntype Service interface {\n\t// Up executes the equivalent to a `compose up`\n\tUp(ctx context.Context, project *types.Project) error\n\t// Down executes the equivalent to a `compose down`\n\tDown(ctx context.Context, projectName string) error\n\t// Logs executes the equivalent to a `compose logs`\n\tLogs(ctx context.Context, projectName string, w io.Writer) error\n\t// Ps executes the equivalent to a `compose ps`\n\tPs(ctx context.Context, projectName string) ([]ServiceStatus, error)\n\t// Convert translate compose model into backend's native format\n\tConvert(ctx context.Context, project *types.Project) ([]byte, error)\n}\n```\nService manages a compose project\n\n```go\ntype ServiceStatus struct {\n\tID         string\n\tName       string\n\tReplicas   int\n\tDesired    int\n\tPorts      []string\n\tPublishers []PortPublisher\n}\n```\nServiceStatus hold status about a service\n\n","path":"github.com/docker/compose-cli/compose","name":"compose","synopsis":"","isRedistributable":true}
