Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidUserTypes = userTypes{ UserTypeIBRL, UserTypeIBRLWithAllocatedIP, UserTypeEdgeFiltering, UserTypeMulticast, }
Functions ¶
This section is empty.
Types ¶
type ApiServer ¶
func NewApiServer ¶
type Option ¶
type Option func(*ApiServer)
func WithBaseContext ¶
func WithHandler ¶
func WithSockFile ¶
type ProvisionRequest ¶
type ProvisionRequest struct {
UserType UserType `json:"user_type"`
TunnelSrc net.IP `json:"tunnel_src"`
TunnelDst net.IP `json:"tunnel_dst"`
TunnelNet *net.IPNet `json:"tunnel_net"`
DoubleZeroIP net.IP `json:"doublezero_ip"`
DoubleZeroPrefixes []*net.IPNet `json:"doublezero_prefixes"`
MulticastSubGroups []net.IP `json:"mcast_sub_groups"`
MulticastPubGroups []net.IP `json:"mcast_pub_groups"`
BgpLocalAsn uint32 `json:"bgp_local_asn"`
BgpRemoteAsn uint32 `json:"bgp_remote_asn"`
}
func (*ProvisionRequest) MarshalJSON ¶
func (p *ProvisionRequest) MarshalJSON() ([]byte, error)
func (*ProvisionRequest) UnmarshalJSON ¶
func (p *ProvisionRequest) UnmarshalJSON(data []byte) error
func (*ProvisionRequest) Validate ¶
func (p *ProvisionRequest) Validate() error
type RemoveRequest ¶
type RemoveRequest struct {
UserType UserType `json:"user_type"`
}
func (*RemoveRequest) Validate ¶
func (r *RemoveRequest) Validate() error
type StatusRequest ¶
type StatusRequest struct {
}
type StatusResponse ¶
type UserType ¶
type UserType int
func (UserType) FromString ¶
func (UserType) MarshalJSON ¶
func (*UserType) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.