MCPcopy
hub / github.com/docker/compose / Port

Method Port

pkg/api/api.go:129–129  ·  view source on GitHub ↗

Port executes the equivalent to a `compose port`

(ctx context.Context, projectName string, service string, port uint16, options PortOptions)

Source from the content-addressed store, hash-verified

127 Events(ctx context.Context, projectName string, options EventsOptions) error
128 // Port executes the equivalent to a `compose port`
129 Port(ctx context.Context, projectName string, service string, port uint16, options PortOptions) (string, int, error)
130 // Publish executes the equivalent to a `compose publish`
131 Publish(ctx context.Context, project *types.Project, repository string, options PublishOptions) error
132 // Images executes the equivalent of a `compose images`

Callers 1

runPortFunction · 0.65

Implementers 3

MockComposepkg/mocks/mock_docker_compose_api.go
MockComposeMockRecorderpkg/mocks/mock_docker_compose_api.go
composeServicepkg/compose/compose.go

Calls

no outgoing calls

Tested by

no test coverage detected