types

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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