Documentation ¶
Index ¶
- func GetAclValidator(blockerType string) aclValidator
- func GetAliasValidator(blockerType string) aliasValidator
- func ToMap(src interface{}, content Content) (map[string]interface{}, error)
- func ValidateVendorMapping(req *VendorMappingRequest) (errMsg string)
- func ValidateWithVendorId(vendorId int, req *VendorMappingRequest) (errMsg string)
- type ACLsRequest
- type ACLsResponse
- type AliasesRequest
- type AliasesResponse
- type CapabilitiesResponse
- type ClientRequest
- type ClientResponse
- type Content
- type PostRequest
- type VendorMappingRequest
- type VendorMappingResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAclValidator ¶
func GetAclValidator(blockerType string) aclValidator
Return mitigation scope validator by input blocker type (goBgpScopeValidator or goAristaScopeValidator)
func GetAliasValidator ¶
func GetAliasValidator(blockerType string) aliasValidator
Return mitigation scope validator by input blocker type (goBgpScopeValidator or goAristaScopeValidator)
func ValidateVendorMapping ¶
func ValidateVendorMapping(req *VendorMappingRequest) (errMsg string)
Validate vendor-mapping (Post/Put request)
func ValidateWithVendorId ¶
func ValidateWithVendorId(vendorId int, req *VendorMappingRequest) (errMsg string)
Validate with vendor-id (Put request)
Types ¶
type ACLsRequest ¶
type ACLsResponse ¶
type AliasesRequest ¶
type AliasesResponse ¶
type CapabilitiesResponse ¶
type CapabilitiesResponse struct {
Capabilities data_types.Capabilities `json:"ietf-dots-data-channel:capabilities" yang:"nonconfig"`
}
type ClientRequest ¶
type ClientRequest struct {
DotsClient []types.DotsClient `json:"ietf-dots-data-channel:dots-client"`
}
func (*ClientRequest) Validate ¶
func (r *ClientRequest) Validate() (bool, string)
func (*ClientRequest) ValidateWithCuid ¶
func (r *ClientRequest) ValidateWithCuid(cuid string) (bool, string)
type ClientResponse ¶
type ClientResponse struct {
DotsClient types.DotsClient `json:"ietf-dots-data-channel:dots-client"`
}
type PostRequest ¶
type PostRequest struct { Aliases *types.Aliases `json:"ietf-dots-data-channel:aliases"` ACLs *types.ACLs `json:"ietf-dots-data-channel:acls"` VendorMapping *types.VendorMapping `json:"ietf-dots-mapping:vendor-mapping"` }
func (*PostRequest) ValidateExtract ¶
func (r *PostRequest) ValidateExtract(method string, customer *models.Customer) (interface{}, error)
type VendorMappingRequest ¶
type VendorMappingRequest struct {
VendorMapping types.VendorMapping `json:"ietf-dots-mapping:vendor-mapping"`
}
type VendorMappingResponse ¶
type VendorMappingResponse struct {
VendorMapping types.VendorMapping `json:"ietf-dots-mapping:vendor-mapping"`
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.