Help us shape the future of Go! Take the 2026 Go Developer Survey

port

package
v2.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortMapping

type PortMapping struct {
	base.EnvironmentTag

	// ID is the stable unique identifier for the mapping row.
	//
	// Required: true
	ID string `json:"id"`

	// ContainerID is the owning container ID.
	//
	// Required: true
	ContainerID string `json:"containerId"`

	// ContainerName is the primary container name.
	//
	// Required: true
	ContainerName string `json:"containerName"`

	// HostIP is the host interface IP when the port is published.
	//
	// Required: false
	HostIP string `json:"hostIp,omitempty"`

	// HostPort is the published port on the host.
	//
	// Required: false
	HostPort int `json:"hostPort,omitempty"`

	// ContainerPort is the exposed port inside the container.
	//
	// Required: true
	ContainerPort int `json:"containerPort"`

	// Protocol is the transport protocol.
	//
	// Required: true
	Protocol string `json:"protocol"`

	// IsPublished indicates whether the port is bound on the host.
	//
	// Required: true
	IsPublished bool `json:"isPublished"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL