Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination struct { ID string `json:"id"` Tag string `json:"tag,omitempty"` Protocol string `json:"protocol"` Port int `json:"port,omitempty"` Ports Ports `json:"ports"` }
func (Destination) MarshalJSON ¶ added in v1.2.0
func (d Destination) MarshalJSON() ([]byte, error)
func (*Destination) UnmarshalJSON ¶ added in v1.2.0
func (d *Destination) UnmarshalJSON(input []byte) error
type Policy ¶
type Policy struct { Source Source `json:"source"` Destination Destination `json:"destination"` }
type PolicySlice ¶ added in v1.0.0
type PolicySlice []Policy
func (PolicySlice) Len ¶ added in v1.0.0
func (s PolicySlice) Len() int
func (PolicySlice) Less ¶ added in v1.0.0
func (s PolicySlice) Less(i, j int) bool
func (PolicySlice) Swap ¶ added in v1.0.0
func (s PolicySlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.