Documentation ¶
Overview ¶
Package capmodel ...
Package capmodel ...
Package capmodel ...
Package capmodel ...
Package capmodel ...
Index ¶
- Variables
- func DeleteAddressPool(fabricID, oid string) error
- func DeleteEndpoint(fabricID, oid string) error
- func DeleteZone(fabricID, zoneURI string) error
- func DeleteZoneDomain(zoneURI string) error
- func GetAddressPool(fabricID, oid string) (model.AddressPool, error)
- func GetAllAddressPools(fabricID string) (map[string]model.AddressPool, error)
- func GetAllEndpoints(fabricID string) (map[string]capdata.EndpointData, error)
- func GetAllFabric(pattern string) (map[string]capdata.Fabric, error)
- func GetAllSwitchChassis(pattern string) (map[string]model.Chassis, error)
- func GetAllZones(fabricID string) (map[string]model.Zone, error)
- func GetEndpoints(fabricID, oid string) (capdata.EndpointData, error)
- func GetFabric(fabricID string) (capdata.Fabric, error)
- func GetPort(portID string) (*dmtf.Port, error)
- func GetSwitch(switchID string) (model.Switch, error)
- func GetSwitchChassis(chassisID string) (model.Chassis, error)
- func GetSwitchPort(switchID string) ([]string, error)
- func GetZone(fabricID, zoneURI string) (model.Zone, error)
- func GetZoneDomain(zoneURI string) (capdata.ACIDomainData, error)
- func SaveAddressPool(fabricID, oid string, data *model.AddressPool) error
- func SaveEndpoint(fabricID, oid string, data *capdata.EndpointData) error
- func SaveFabric(fabricID string, data *capdata.Fabric) error
- func SavePort(portID string, data *dmtf.Port) error
- func SaveSwitch(switchID string, data *model.Switch) error
- func SaveSwitchChassis(chassisID string, data *model.Chassis) error
- func SaveSwitchPort(switchID string, data []string) error
- func SaveToDB(table, resourceID string, data interface{}) error
- func SaveZone(fabricID, zoneURI string, data *model.Zone) error
- func SaveZoneDomain(zoneURI string, data *capdata.ACIDomainData) error
- func UpdateAddressPool(fabricID, oid string, data *model.AddressPool) error
- func UpdateDbData(table, resourceID string, data interface{}) error
- func UpdateEndpoint(fabricID, oid string, data *capdata.EndpointData) error
- func UpdateFabric(fabricID string, data *capdata.Fabric) error
- func UpdatePort(portID string, data *dmtf.Port) error
- func UpdateZone(fabricID, zoneURI string, data *model.Zone) error
- type Device
- type EvtSubPost
- type FabricHealth
- type FabricHealthData
- type FabricHealthIMData
- type HTTPHeaders
- type Health
- type HealthData
- type HealthIMData
- type PhysicalInterface
- type PortCollectionIMData
- type PortCollectionResponse
- type PortInfoIMData
- type PortInfoResponse
- type SwitchChassis
- type SwitchChassisData
- type SwitchChassisIMData
- type Users
Constants ¶
This section is empty.
Variables ¶
var PluginIntialStatus = false
PluginIntialStatus hold value to check if it's intial status request to plugin
Functions ¶
func DeleteAddressPool ¶
DeleteAddressPool deletes the AddressPool data stored in the DB
func DeleteEndpoint ¶
DeleteEndpoint deletes the endpoint data stored in the DB
func DeleteZone ¶
DeleteZone deletes the zone data stored in the DB
func DeleteZoneDomain ¶
DeleteZoneDomain deletes the ZoneToDomainDN data stored in the DB
func GetAddressPool ¶
func GetAddressPool(fabricID, oid string) (model.AddressPool, error)
GetAddressPool collects the AddressPool data belonging to a fabric from the DB
func GetAllAddressPools ¶
func GetAllAddressPools(fabricID string) (map[string]model.AddressPool, error)
GetAllAddressPools collects all the AddressPool data belonging to a fabric from the DB
func GetAllEndpoints ¶
func GetAllEndpoints(fabricID string) (map[string]capdata.EndpointData, error)
GetAllEndpoints collects all the endpoint data belonging to a fabric from the DB
func GetAllFabric ¶
GetAllFabric collects the fabric data from the DB
func GetAllSwitchChassis ¶
GetAllSwitchChassis collects all the switch chassis data from the DB
func GetAllZones ¶
GetAllZones collects the zone data from the DB
func GetEndpoints ¶
func GetEndpoints(fabricID, oid string) (capdata.EndpointData, error)
GetEndpoints collects the endpoint data belonging to a fabric from the DB
func GetSwitchChassis ¶
GetSwitchChassis collects the switch chassis data from the DB
func GetSwitchPort ¶
GetSwitchPort collects the switch-port data from the DB
func GetZoneDomain ¶
func GetZoneDomain(zoneURI string) (capdata.ACIDomainData, error)
GetZoneDomain collects the ZoneToDomainDN data from the DB
func SaveAddressPool ¶
func SaveAddressPool(fabricID, oid string, data *model.AddressPool) error
SaveAddressPool stores the AddressPool data in the DB
func SaveEndpoint ¶
func SaveEndpoint(fabricID, oid string, data *capdata.EndpointData) error
SaveEndpoint stores the endpoint data in the DB
func SaveFabric ¶
SaveFabric stores the fabric data in the DB
func SaveSwitch ¶
SaveSwitch stores the switch data in the DB
func SaveSwitchChassis ¶
SaveSwitchChassis stores the switch chassis data in the DB
func SaveSwitchPort ¶
SaveSwitchPort stores the switch-port data in the DB
func SaveZoneDomain ¶
func SaveZoneDomain(zoneURI string, data *capdata.ACIDomainData) error
SaveZoneDomain stores the ZoneToDomainDN data in the DB
func UpdateAddressPool ¶
func UpdateAddressPool(fabricID, oid string, data *model.AddressPool) error
UpdateAddressPool updates the AddressPool data stored in the DB
func UpdateDbData ¶
UpdateDbData is for updating data in the DB
func UpdateEndpoint ¶
func UpdateEndpoint(fabricID, oid string, data *capdata.EndpointData) error
UpdateEndpoint updates the endpoint data stored in the DB
func UpdateFabric ¶
UpdateFabric updates the fabric data stored in the DB
func UpdatePort ¶
UpdatePort updates the port data stored in the DB
Types ¶
type Device ¶
type Device struct { Host string `json:"ManagerAddress"` Username string `json:"UserName"` Password []byte `json:"Password"` PostBody []byte `json:"PostBody"` Location string `json:"Location"` }
Device struct definition
type EvtSubPost ¶
type EvtSubPost struct { Destination string `json:"Destination"` EventTypes []string `json:"EventTypes,omitempty"` MessageIds []string `json:"MessageIds,omitempty"` ResourceTypes []string `json:"ResourceTypes,omitempty"` HTTPHeaders []HTTPHeaders `json:"HttpHeaders"` Context string `json:"Context"` Protocol string `json:"Protocol"` }
EvtSubPost ...
type FabricHealth ¶
type FabricHealth struct { TotalCount string `json:"totalCount"` IMData []FabricHealthIMData `json:"imdata"` }
FabricHealth ...
type FabricHealthData ¶
type FabricHealthData struct {
Attributes map[string]interface{} `json:"attributes"`
}
FabricHealthData ...
type FabricHealthIMData ¶
type FabricHealthIMData struct {
FabricHealthData FabricHealthData `json:"fabricHealthTotal"`
}
FabricHealthIMData ...
type HTTPHeaders ¶
type HTTPHeaders struct {
ContentType string `json:"Content-Type"`
}
HTTPHeaders ...
type Health ¶
type Health struct { TotalCount string `json:"totalCount"` IMData []HealthIMData `json:"imdata"` }
Health ...
type HealthData ¶
type HealthData struct {
Attributes map[string]interface{} `json:"attributes"`
}
HealthData ...
type HealthIMData ¶
type HealthIMData struct {
HealthData HealthData `json:"healthInst"`
}
HealthIMData ...
type PhysicalInterface ¶
type PhysicalInterface struct {
Attributes map[string]interface{} `json:"attributes"`
}
PhysicalInterface ...
type PortCollectionIMData ¶
type PortCollectionIMData struct {
PhysicalInterface PhysicalInterface `json:"l1PhysIf"`
}
PortCollectionIMData ...
type PortCollectionResponse ¶
type PortCollectionResponse struct { TotalCount string `json:"totalCount"` IMData []PortCollectionIMData `json:"imdata"` }
PortCollectionResponse ...
type PortInfoIMData ¶
type PortInfoIMData struct {
PhysicalInterface PhysicalInterface `json:"ethpmPhysIf"`
}
PortInfoIMData ...
type PortInfoResponse ¶
type PortInfoResponse struct { TotalCount string `json:"totalCount"` IMData []PortInfoIMData `json:"imdata"` }
PortInfoResponse ...
type SwitchChassis ¶
type SwitchChassis struct { TotalCount string `json:"totalCount"` IMData []SwitchChassisIMData `json:"imdata"` }
SwitchChassis ...
type SwitchChassisData ¶
type SwitchChassisData struct {
Attributes map[string]interface{} `json:"attributes"`
}
SwitchChassisData ...
type SwitchChassisIMData ¶
type SwitchChassisIMData struct {
SwitchChassisData SwitchChassisData `json:"eqptCh"`
}
SwitchChassisIMData ...