caphandler

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: 27 Imported by: 0

Documentation

Overview

Package caphandler ...

Package caphandler ...

Package caphandler ...

Package caphandler ...

Package caphandler ...

Package caphandler ...

Package caphandler ...

Package caphandler ...

Package caphandler ...

Package caphandler ..

Package caphandler ...

Package caphandler ...

Package caphandler ...

Package caphandler ...

Index

Constants

This section is empty.

Variables

View Source
var (
	// In Channel
	In chan<- interface{}
	// Out Channel
	Out <-chan interface{}
)

Functions

func ChassisMethodNotAllowed

func ChassisMethodNotAllowed(ctx iris.Context)

ChassisMethodNotAllowed holds builds reponse for the unallowed http operation on Chassis URLs and returns 405 error.

func CreateAddressPool

func CreateAddressPool(ctx iris.Context)

CreateAddressPool stores the given addresspool against given fabric

func CreateApplicationProfile

func CreateApplicationProfile(name string, tenant string, description string, fvApattr aciModels.ApplicationProfileAttributes) (*aciModels.ApplicationProfile, error)

CreateApplicationProfile creates Application profiles using APIC

func CreateDefaultZone

func CreateDefaultZone(zone model.Zone) (interface{}, int)

CreateDefaultZone creates a zone of type 'Default'

func CreateEndpoint

func CreateEndpoint(ctx iris.Context)

CreateEndpoint : created endpoints under given fabric

func CreateEventSubscription

func CreateEventSubscription(ctx iris.Context)

CreateEventSubscription : Subscribes for events

func CreateSession

func CreateSession(ctx iris.Context)

CreateSession is used to create session for odimra to interact with plugin

func CreateVRF

func CreateVRF(name string, tenant string, description string, fvCtxattr aciModels.VRFAttributes) (*aciModels.VRF, error)

CreateVRF creates VRF's using APIC

func CreateZone

func CreateZone(ctx iris.Context)

CreateZone default function called for creation of any type of zone

func CreateZoneOfZones

func CreateZoneOfZones(uri string, fabricID string, zone model.Zone) (string, interface{}, int, *capdata.ACIDomainData)

CreateZoneOfZones takes the request to create zone of zones and translates to create application profiles and VRFs

func DeleteAddressPoolInfo

func DeleteAddressPoolInfo(ctx iris.Context)

DeleteAddressPoolInfo stores the given addresspool against given fabric

func DeleteEndpointInfo

func DeleteEndpointInfo(ctx iris.Context)

DeleteEndpointInfo : deletes endpoints under given fabric

func DeleteEventSubscription

func DeleteEventSubscription(ctx iris.Context)

DeleteEventSubscription : Delete subscription

func DeleteZone

func DeleteZone(ctx iris.Context)

DeleteZone deletes the zone from the resource

func GetAddressPoolCollection

func GetAddressPoolCollection(ctx iris.Context)

GetAddressPoolCollection fetches the addresspool which are linked to that fabric

func GetAddressPoolInfo

func GetAddressPoolInfo(ctx iris.Context)

GetAddressPoolInfo fetches the addresspool info for given addresspool id

func GetChassis

func GetChassis(ctx iris.Context)

GetChassis collects retrives the specific chassis details which is managed by plugin

func GetChassisCollection

func GetChassisCollection(ctx iris.Context)

GetChassisCollection collects all the chassis details which are managed by plugin

func GetEndpointCollection

func GetEndpointCollection(ctx iris.Context)

GetEndpointCollection : Fetches details of the given resource from the device

func GetEndpointInfo

func GetEndpointInfo(ctx iris.Context)

GetEndpointInfo : gets endpoints under given fabric

func GetFabricData

func GetFabricData(ctx iris.Context)

GetFabricData fetches the fabric information

func GetFabricResource

func GetFabricResource(ctx iris.Context)

GetFabricResource : Fetches details of the given resource from the device

func GetManagersCollection

func GetManagersCollection(ctx iris.Context)

GetManagersCollection Fetches details of the manager collection

func GetManagersInfo

func GetManagersInfo(ctx iris.Context)

GetManagersInfo Fetches details of the given manager info

func GetPluginStartup

func GetPluginStartup(ctx iris.Context)

GetPluginStartup ...

func GetPluginStatus

func GetPluginStatus(ctx iris.Context)

GetPluginStatus defines the GetPluginStatus iris handler. and returns status

func GetPortCollection

func GetPortCollection(ctx iris.Context)

GetPortCollection fetches the ports which are linked to that switch

func GetPortInfo

func GetPortInfo(ctx iris.Context)

GetPortInfo fetches the port info for given port id

func GetSwitchCollection

func GetSwitchCollection(ctx iris.Context)

GetSwitchCollection fetches the switches which are linked to that fabric

func GetSwitchInfo

func GetSwitchInfo(ctx iris.Context)

GetSwitchInfo fetches the switch info for given swith id

func GetTaskMonitor

func GetTaskMonitor(ctx iris.Context)

GetTaskMonitor ...

func GetTaskService

func GetTaskService(ctx iris.Context)

GetTaskService ...

func GetZone

func GetZone(ctx iris.Context)

GetZone returns a specific zone present under a fabric

func GetZones

func GetZones(ctx iris.Context)

GetZones returns the collection of zones present under a fabric

func PatchPort

func PatchPort(ctx iris.Context)

PatchPort Update the given port with provied information

func RedfishEvents

func RedfishEvents(ctx iris.Context)

RedfishEvents receives the subscribed events from the south bound system Then it will send the received data and ip to publish method

func TokenValidation

func TokenValidation(token string) bool

TokenValidation validates sent token with the list of plugin generated tokens

func UpdateZoneData

func UpdateZoneData(ctx iris.Context)

UpdateZoneData provides patch operation on Zone

func Validate

func Validate(ctx iris.Context)

Validate does Basic authentication with device and returns UUID of device in response

Types

type TokenMap

type TokenMap struct {
	Token    string
	LastUsed time.Time
}

TokenMap is used to define the plugin generated tokens

Jump to

Keyboard shortcuts

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