Documentation ¶
Index ¶
- Constants
- type GatewayType
- func (gw GatewayType) IsValid() error
- func (gw GatewayType) List() []GatewayType
- func (gw *GatewayType) MarshalJSON() ([]byte, error)
- func (gw GatewayType) String() string
- func (gw GatewayType) StringList() []string
- func (gw *GatewayType) UnmarshalJSON(data []byte) error
- func (gw GatewayType) ValidOrNil() (*GatewayType, error)
- type InterfaceType
- func (it InterfaceType) IsValid() error
- func (it InterfaceType) List() []GatewayType
- func (it *InterfaceType) MarshalJSON() ([]byte, error)
- func (it InterfaceType) String() string
- func (it InterfaceType) StringList() []string
- func (it *InterfaceType) UnmarshalJSON(data []byte) error
- func (it InterfaceType) ValidOrNil() (*InterfaceType, error)
Constants ¶
View Source
const ( DefaultGateway GatewayType = "default" ManualGateway GatewayType = "manual" SubnetInterfaceType InterfaceType = "subnet" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GatewayType ¶
type GatewayType string
func (GatewayType) IsValid ¶
func (gw GatewayType) IsValid() error
func (GatewayType) List ¶
func (gw GatewayType) List() []GatewayType
func (*GatewayType) MarshalJSON ¶
func (gw *GatewayType) MarshalJSON() ([]byte, error)
MarshalJSON - implements Marshaler interface for GatewayType
func (GatewayType) String ¶
func (gw GatewayType) String() string
func (GatewayType) StringList ¶
func (gw GatewayType) StringList() []string
func (*GatewayType) UnmarshalJSON ¶
func (gw *GatewayType) UnmarshalJSON(data []byte) error
UnmarshalJSON - implements Unmarshaler interface for GatewayType
func (GatewayType) ValidOrNil ¶
func (gw GatewayType) ValidOrNil() (*GatewayType, error)
type InterfaceType ¶
type InterfaceType string
func (InterfaceType) IsValid ¶
func (it InterfaceType) IsValid() error
func (InterfaceType) List ¶
func (it InterfaceType) List() []GatewayType
func (*InterfaceType) MarshalJSON ¶
func (it *InterfaceType) MarshalJSON() ([]byte, error)
MarshalJSON - implements Marshaler interface for InterfaceType
func (InterfaceType) String ¶
func (it InterfaceType) String() string
func (InterfaceType) StringList ¶
func (it InterfaceType) StringList() []string
func (*InterfaceType) UnmarshalJSON ¶
func (it *InterfaceType) UnmarshalJSON(data []byte) error
UnmarshalJSON - implements Unmarshaler interface for InterfaceType
func (InterfaceType) ValidOrNil ¶
func (it InterfaceType) ValidOrNil() (*InterfaceType, error)
Click to show internal directories.
Click to hide internal directories.