capmodel

package
v0.0.0-...-a12d4bf Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package capmodel ...

Package capmodel ...

Package capmodel ...

Package capmodel ...

Package capmodel ...

Index

Constants

This section is empty.

Variables

View Source
var PluginIntialStatus = false

PluginIntialStatus hold value to check if it's intial status request to plugin

Functions

func DeleteAddressPool

func DeleteAddressPool(fabricID, oid string) error

DeleteAddressPool deletes the AddressPool data stored in the DB

func DeleteEndpoint

func DeleteEndpoint(fabricID, oid string) error

DeleteEndpoint deletes the endpoint data stored in the DB

func DeleteZone

func DeleteZone(fabricID, zoneURI string) error

DeleteZone deletes the zone data stored in the DB

func DeleteZoneDomain

func DeleteZoneDomain(zoneURI string) error

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

func GetAllFabric(pattern string) (map[string]capdata.Fabric, error)

GetAllFabric collects the fabric data from the DB

func GetAllSwitchChassis

func GetAllSwitchChassis(pattern string) (map[string]model.Chassis, error)

GetAllSwitchChassis collects all the switch chassis data from the DB

func GetAllZones

func GetAllZones(fabricID string) (map[string]model.Zone, error)

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 GetFabric

func GetFabric(fabricID string) (capdata.Fabric, error)

GetFabric collects the fabric data from the DB

func GetPort

func GetPort(portID string) (*dmtf.Port, error)

GetPort collects the port data from the DB

func GetSwitch

func GetSwitch(switchID string) (model.Switch, error)

GetSwitch collects the switch data from the DB

func GetSwitchChassis

func GetSwitchChassis(chassisID string) (model.Chassis, error)

GetSwitchChassis collects the switch chassis data from the DB

func GetSwitchPort

func GetSwitchPort(switchID string) ([]string, error)

GetSwitchPort collects the switch-port data from the DB

func GetZone

func GetZone(fabricID, zoneURI string) (model.Zone, error)

GetZone collects the zone 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

func SaveFabric(fabricID string, data *capdata.Fabric) error

SaveFabric stores the fabric data in the DB

func SavePort

func SavePort(portID string, data *dmtf.Port) error

SavePort stores the port data in the DB

func SaveSwitch

func SaveSwitch(switchID string, data *model.Switch) error

SaveSwitch stores the switch data in the DB

func SaveSwitchChassis

func SaveSwitchChassis(chassisID string, data *model.Chassis) error

SaveSwitchChassis stores the switch chassis data in the DB

func SaveSwitchPort

func SaveSwitchPort(switchID string, data []string) error

SaveSwitchPort stores the switch-port data in the DB

func SaveToDB

func SaveToDB(table, resourceID string, data interface{}) error

SaveToDB is for adding data to the DB

func SaveZone

func SaveZone(fabricID, zoneURI string, data *model.Zone) error

SaveZone stores the zone 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

func UpdateDbData(table, resourceID string, data interface{}) error

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

func UpdateFabric(fabricID string, data *capdata.Fabric) error

UpdateFabric updates the fabric data stored in the DB

func UpdatePort

func UpdatePort(portID string, data *dmtf.Port) error

UpdatePort updates the port data stored in the DB

func UpdateZone

func UpdateZone(fabricID, zoneURI string, data *model.Zone) error

UpdateZone updates the zone 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 ...

type Users

type Users struct {
	Username string `json:"Username"`
	Password string `json:"Password"`
}

Users struct definition

Jump to

Keyboard shortcuts

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