Documentation
¶
Index ¶
- func AddRoutes(router *mux.Router)
- func CreateNetwork(obj *Network) error
- func CreateTenant(obj *Tenant) error
- func DeleteNetwork(key string) error
- func DeleteTenant(key string) error
- func Init()
- func RegisterNetworkCallbacks(handler NetworkCallbacks)
- func RegisterTenantCallbacks(handler TenantCallbacks)
- func ValidateNetwork(obj *Network) error
- func ValidateTenant(obj *Tenant) error
- type CallbackHandlers
- type Collections
- type HttpApiFunc
- type Network
- type NetworkCallbacks
- type NetworkLinks
- type Tenant
- type TenantCallbacks
- type TenantLinkSets
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterNetworkCallbacks ¶
func RegisterNetworkCallbacks(handler NetworkCallbacks)
func RegisterTenantCallbacks ¶
func RegisterTenantCallbacks(handler TenantCallbacks)
Types ¶
type CallbackHandlers ¶
type CallbackHandlers struct { NetworkCb NetworkCallbacks TenantCb TenantCallbacks }
type Collections ¶
type Collections struct {
// contains filtered or unexported fields
}
type HttpApiFunc ¶
type Network ¶
type Network struct { // every object has a key Key string `json:"key,omitempty"` Encap string `json:"encap,omitempty"` IsPrivate bool `json:"isPrivate,omitempty"` IsPublic bool `json:"isPublic,omitempty"` Labels []string `json:"labels,omitempty"` NetworkName string `json:"networkName,omitempty"` PktTag int `json:"pktTag,omitempty"` Subnet string `json:"subnet,omitempty"` TenantName string `json:"tenantName,omitempty"` Links NetworkLinks `json:"links,omitempty"` }
func FindNetwork ¶
Return a pointer to network from collection
type NetworkCallbacks ¶
type NetworkLinks ¶
type Tenant ¶
type Tenant struct { // every object has a key Key string `json:"key,omitempty"` TenantName string `json:"tenantName,omitempty"` // add link-sets and links LinkSets TenantLinkSets `json:"link-sets,omitempty"` }
type TenantCallbacks ¶
type TenantLinkSets ¶
Click to show internal directories.
Click to hide internal directories.