nat

package
v0.0.0-...-f4cebfc Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package nat is a generated protocol buffer package.

It is generated from these files:

pb/moby/nat/nat.proto

It has these top-level messages:

PortBinding
PortMap
PortSet

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNilPointer = errors.New("found nil pointer")
)

Functions

This section is empty.

Types

type PortBinding

type PortBinding struct {
	// HostIP is the host IP Address
	// HostIP string `json:"HostIp"`
	HostIp string `protobuf:"bytes,1,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"`
	// HostPort is the host port number
	// HostPort string
	HostPort string `protobuf:"bytes,2,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"`
}

PortBinding represents a binding between a Host IP address and a Host Port type PortBinding struct

func (*PortBinding) Descriptor

func (*PortBinding) Descriptor() ([]byte, []int)

func (*PortBinding) GetHostIp

func (m *PortBinding) GetHostIp() string

func (*PortBinding) GetHostPort

func (m *PortBinding) GetHostPort() string

func (*PortBinding) ProtoMessage

func (*PortBinding) ProtoMessage()

func (*PortBinding) Reset

func (m *PortBinding) Reset()

func (*PortBinding) String

func (m *PortBinding) String() string

type PortMap

type PortMap struct {
	InternalMap map[string]*PortMap_PortBindingSlice `` /* 168-byte string literal not displayed */
}

PortMap is a collection of PortBinding indexed by Port Port is a string containing port number and protocol in the format "80/tcp" // type Port string type PortMap map[Port][]PortBinding

func ConvertFromDockerApiTypePortMap

func ConvertFromDockerApiTypePortMap(s nattypes.PortMap) (dst *PortMap)

func (*PortMap) DeepCopyChecked

func (m *PortMap) DeepCopyChecked() (*PortMap, []error)

func (*PortMap) Descriptor

func (*PortMap) Descriptor() ([]byte, []int)

func (*PortMap) ExportIntoDockerApiType

func (m *PortMap) ExportIntoDockerApiType() (tgt nattypes.PortMap)

func (*PortMap) GetInternalMap

func (m *PortMap) GetInternalMap() map[string]*PortMap_PortBindingSlice

func (*PortMap) ProtoMessage

func (*PortMap) ProtoMessage()

func (*PortMap) Reset

func (m *PortMap) Reset()

func (*PortMap) String

func (m *PortMap) String() string

type PortMap_PortBindingSlice

type PortMap_PortBindingSlice struct {
	InternalList []*PortBinding `protobuf:"bytes,1,rep,name=internal_list,json=internalList" json:"internal_list,omitempty"`
}

func (*PortMap_PortBindingSlice) Descriptor

func (*PortMap_PortBindingSlice) Descriptor() ([]byte, []int)

func (*PortMap_PortBindingSlice) GetInternalList

func (m *PortMap_PortBindingSlice) GetInternalList() []*PortBinding

func (*PortMap_PortBindingSlice) ProtoMessage

func (*PortMap_PortBindingSlice) ProtoMessage()

func (*PortMap_PortBindingSlice) Reset

func (m *PortMap_PortBindingSlice) Reset()

func (*PortMap_PortBindingSlice) String

func (m *PortMap_PortBindingSlice) String() string

type PortSet

type PortSet struct {
	InternalMap map[string]*PortSet_VoidStruct `` /* 168-byte string literal not displayed */
}

PortSet is a collection of structs indexed by Port type PortSet map[Port]struct{}

func ConvertFromDockerApiTypePortSet

func ConvertFromDockerApiTypePortSet(s *nattypes.PortSet) (dst *PortSet)

func (*PortSet) DeepCopyChecked

func (m *PortSet) DeepCopyChecked() (*PortSet, []error)

func (*PortSet) Descriptor

func (*PortSet) Descriptor() ([]byte, []int)

func (*PortSet) ExportIntoDockerApiType

func (m *PortSet) ExportIntoDockerApiType() (tgt nattypes.PortSet)

func (*PortSet) GetInternalMap

func (m *PortSet) GetInternalMap() map[string]*PortSet_VoidStruct

func (*PortSet) ProtoMessage

func (*PortSet) ProtoMessage()

func (*PortSet) Reset

func (m *PortSet) Reset()

func (*PortSet) String

func (m *PortSet) String() string

type PortSet_VoidStruct

type PortSet_VoidStruct struct {
}

func (*PortSet_VoidStruct) Descriptor

func (*PortSet_VoidStruct) Descriptor() ([]byte, []int)

func (*PortSet_VoidStruct) ProtoMessage

func (*PortSet_VoidStruct) ProtoMessage()

func (*PortSet_VoidStruct) Reset

func (m *PortSet_VoidStruct) Reset()

func (*PortSet_VoidStruct) String

func (m *PortSet_VoidStruct) String() string

Jump to

Keyboard shortcuts

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