MCPcopy Create free account
hub / github.com/docker/go-plugins-helpers / PortConfig

Struct PortConfig

secrets/api.go:46–55  ·  view source on GitHub ↗

PortConfig represents the config of a port.

Source from the content-addressed store, hash-verified

44
45// PortConfig represents the config of a port.
46type PortConfig struct {
47 Name string `json:",omitempty"`
48 Protocol int32 `json:",omitempty"`
49 // TargetPort is the port inside the container
50 TargetPort uint32 `json:",omitempty"`
51 // PublishedPort is the port on the swarm hosts
52 PublishedPort uint32 `json:",omitempty"`
53 // PublishMode is the mode in which port is published
54 PublishMode int32 `json:",omitempty"`
55}
56
57// Driver represent the interface a driver must fulfill.
58type Driver interface {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected