Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressType ¶
type AddressType int
const ( Host AddressType = iota Range NetworkAddress AddressGroup )
func (*AddressType) FromString ¶
func (t *AddressType) FromString(input string) AddressType
func (AddressType) MarshalJSON ¶
func (t AddressType) MarshalJSON() ([]byte, error)
func (AddressType) String ¶
func (t AddressType) String() string
func (*AddressType) UnmarshalJSON ¶
func (t *AddressType) UnmarshalJSON(b []byte) error
type Service ¶
type Service struct { Type ServiceType `json:"type"` Comment string `json:"comment,omitempty"` SPortStart *uint32 `json:"sport_start,omitempty"` SPortEnd *uint32 `json:"sport_end,omitempty"` DPortStart *uint32 `json:"dport_start,omitempty"` DPortEnd *uint32 `json:"dport_end,omitempty"` ICMPCode *uint32 `json:"icmp_code,omitempty"` Children *[]string `json:"children,omitempty"` }
type ServiceType ¶
type ServiceType int
const ( TCP ServiceType = iota UDP ICMP ServiceGroup )
func (*ServiceType) FromString ¶
func (t *ServiceType) FromString(input string) ServiceType
func (ServiceType) MarshalJSON ¶
func (t ServiceType) MarshalJSON() ([]byte, error)
func (ServiceType) String ¶
func (t ServiceType) String() string
func (*ServiceType) UnmarshalJSON ¶
func (t *ServiceType) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.