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 ¶
func (d Destination) MarshalJSON() ([]byte, error)
func (*Destination) UnmarshalJSON ¶
func (d *Destination) UnmarshalJSON(input []byte) error
type Policy ¶
type Policy struct { Source Source `json:"source"` Destination Destination `json:"destination"` }
type PolicySlice ¶
type PolicySlice []Policy
func (PolicySlice) Len ¶
func (s PolicySlice) Len() int
func (PolicySlice) Less ¶
func (s PolicySlice) Less(i, j int) bool
func (PolicySlice) Swap ¶
func (s PolicySlice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.