handle

package
v0.0.0-...-81c02da Latest Latest
Warning

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

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

Documentation

Overview

Package handle ...

Package handle ...

Package handle ...

Package handle ...

Package handle ...

Package handle ...

Package handle ...

Package handle ...

Package handle ...

Package handle ...

Package handle ...

Package handle ...

Package handle ...

Package handle ...

Package handle ...

Index

Constants

View Source
const (
	// AuthTokenHeader holds the key of X-Auth-Token header
	AuthTokenHeader = "X-Auth-Token"
)

Variables

This section is empty.

Functions

func AggMethodNotAllowed

func AggMethodNotAllowed(ctx iris.Context)

AggMethodNotAllowed holds builds reponse for the unallowed http operation on Aggregation Service URLs and returns 405 error.

func AggregateMethodNotAllowed

func AggregateMethodNotAllowed(ctx iris.Context)

AggregateMethodNotAllowed holds builds reponse for the unallowed http operation on Aggregate URLs and returns 405 error.

func AsMethodNotAllowed

func AsMethodNotAllowed(ctx iris.Context)

AsMethodNotAllowed holds Method to throw 405 Method not allowed on Account Service URLs

func ChassisMethodNotAllowed

func ChassisMethodNotAllowed(ctx iris.Context)

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

func CompositionServiceMethodNotAllowed

func CompositionServiceMethodNotAllowed(ctx iris.Context)

CompositionServiceMethodNotAllowed holds builds reponse for the unallowed http operation on Systems URLs and returns 405 error.

func EvtMethodNotAllowed

func EvtMethodNotAllowed(ctx iris.Context)

EvtMethodNotAllowed holds builds reponse for the unallowed http operation on Events URLs and returns 405 error.

func FabricsMethodNotAllowed

func FabricsMethodNotAllowed(ctx iris.Context)

FabricsMethodNotAllowed holds builds reponse for the unallowed http operation on Fabrics URLs and returns 405 error.

func GetMetadata

func GetMetadata(ctx iris.Context)

GetMetadata build response body and headers for the GET operation on /redfish/v1/$metadata

func GetOdata

func GetOdata(ctx iris.Context)

GetOdata builds response body and headers for /redfish/v1/odata

func GetVersion

func GetVersion(ctx iris.Context)

GetVersion is an API handler method, which build the response body and headers for /redfish API

func LicenseMethodNotAllowed

func LicenseMethodNotAllowed(ctx iris.Context)

LicenseMethodNotAllowed holds builds reponse for the unallowed http operation on License URLs and returns 405 error.

func ManagersMethodNotAllowed

func ManagersMethodNotAllowed(ctx iris.Context)

ManagersMethodNotAllowed holds builds reponse for the unallowed http operation on Managers URLs and returns 405 error.

func MethodNotAllowed

func MethodNotAllowed(ctx iris.Context)

MethodNotAllowed fills status code and status message for MethodNotAllowed responses

func RegMethodNotAllowed

func RegMethodNotAllowed(ctx iris.Context)

RegMethodNotAllowed holds builds reponse for the unallowed http operation on Registries URLs and returns 405 error.

func RoleMethodNotAllowed

func RoleMethodNotAllowed(ctx iris.Context)

RoleMethodNotAllowed holds builds response for the unallowed http operation on Role URLs and returns 405 error.

func SRMethodNotAllowed

func SRMethodNotAllowed(ctx iris.Context)

SRMethodNotAllowed holds builds response for the unallowed http operation on service root URLs and returns 405 error.

func SsMethodNotAllowed

func SsMethodNotAllowed(ctx iris.Context)

SsMethodNotAllowed holds builds reponse for the unallowed http operation on Session Service URLs and returns 405 error.

func SystemsMethodInvalidURI

func SystemsMethodInvalidURI(ctx iris.Context)

SystemsMethodInvalidURI holds builds reponse for the invalid url operation on Systems URLs and returns 404 error.

func SystemsMethodNotAllowed

func SystemsMethodNotAllowed(ctx iris.Context)

SystemsMethodNotAllowed holds builds reponse for the unallowed http operation on Systems URLs and returns 405 error.

func TsMethodNotAllowed

func TsMethodNotAllowed(ctx iris.Context)

TsMethodNotAllowed holds builds reponse for the unallowed http operation on Task Service URLs and returns 405 error.

func UpdateServiceMethodNotAllowed

func UpdateServiceMethodNotAllowed(ctx iris.Context)

UpdateServiceMethodNotAllowed holds builds reponse for the unallowed http operation on Update Service URLs and returns 405 error.

Types

type AccountRPCs

AccountRPCs defines all the RPC methods in account service

func (*AccountRPCs) CreateAccount

func (a *AccountRPCs) CreateAccount(ctx iris.Context)

CreateAccount defines the CreateAccount iris handler. The method extract the session token, and necessary request parameters and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*AccountRPCs) DeleteAccount

func (a *AccountRPCs) DeleteAccount(ctx iris.Context)

DeleteAccount defines the DeleteAccount iris handler. The method extract the session token, and necessary request parameters and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*AccountRPCs) GetAccount

func (a *AccountRPCs) GetAccount(ctx iris.Context)

GetAccount defines the GetAccount iris handler. The method extract the session token, and necessary request parameters and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*AccountRPCs) GetAccountService

func (a *AccountRPCs) GetAccountService(ctx iris.Context)

GetAccountService defines the GetAccountService iris handler. The method extract the session token and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*AccountRPCs) GetAllAccounts

func (a *AccountRPCs) GetAllAccounts(ctx iris.Context)

GetAllAccounts defines the GetAllAccounts iris handler. The method extract the session token and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*AccountRPCs) UpdateAccount

func (a *AccountRPCs) UpdateAccount(ctx iris.Context)

UpdateAccount defines the UpdateAccount iris handler. The method extract the session token, and necessary request parameters and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

type AggregatorRPCs

type AggregatorRPCs struct {
	GetAggregationServiceRPC                func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	ResetRPC                                func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	SetDefaultBootOrderRPC                  func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	AddAggregationSourceRPC                 func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	GetAllAggregationSourceRPC              func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	GetAggregationSourceRPC                 func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	UpdateAggregationSourceRPC              func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	DeleteAggregationSourceRPC              func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	CreateAggregateRPC                      func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	GetAggregateCollectionRPC               func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	GetAggregateRPC                         func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	DeleteAggregateRPC                      func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	AddElementsToAggregateRPC               func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	RemoveElementsFromAggregateRPC          func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	ResetAggregateElementsRPC               func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	SetDefaultBootOrderAggregateElementsRPC func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	GetAllConnectionMethodsRPC              func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	GetConnectionMethodRPC                  func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	GetResetActionInfoServiceRPC            func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
	GetSetDefaultBootOrderActionInfoRPC     func(context.Context, aggregatorproto.AggregatorRequest) (*aggregatorproto.AggregatorResponse, error)
}

AggregatorRPCs defines all the RPC methods in aggregator service

func (*AggregatorRPCs) AddAggregationSource

func (a *AggregatorRPCs) AddAggregationSource(ctx iris.Context)

AddAggregationSource is the handler for adding AggregationSource details

func (*AggregatorRPCs) AddElementsToAggregate

func (a *AggregatorRPCs) AddElementsToAggregate(ctx iris.Context)

AddElementsToAggregate is the handler for adding elements to an aggregate

func (*AggregatorRPCs) CreateAggregate

func (a *AggregatorRPCs) CreateAggregate(ctx iris.Context)

CreateAggregate is the handler for creating an aggregate

func (*AggregatorRPCs) DeleteAggregate

func (a *AggregatorRPCs) DeleteAggregate(ctx iris.Context)

DeleteAggregate is the handler for deleting an aggregate

func (*AggregatorRPCs) DeleteAggregationSource

func (a *AggregatorRPCs) DeleteAggregationSource(ctx iris.Context)

DeleteAggregationSource is the handler for updating AggregationSource details

func (*AggregatorRPCs) GetAggregate

func (a *AggregatorRPCs) GetAggregate(ctx iris.Context)

GetAggregate is the handler for getting an aggregate

func (*AggregatorRPCs) GetAggregateCollection

func (a *AggregatorRPCs) GetAggregateCollection(ctx iris.Context)

GetAggregateCollection is the handler for getting collection of aggregates

func (*AggregatorRPCs) GetAggregationService

func (a *AggregatorRPCs) GetAggregationService(ctx iris.Context)

GetAggregationService is the handler for getting AggregationService details

func (*AggregatorRPCs) GetAggregationSource

func (a *AggregatorRPCs) GetAggregationSource(ctx iris.Context)

GetAggregationSource is the handler for getting AggregationSource details

func (*AggregatorRPCs) GetAllAggregationSource

func (a *AggregatorRPCs) GetAllAggregationSource(ctx iris.Context)

GetAllAggregationSource is the handler for getting all AggregationSource details

func (*AggregatorRPCs) GetAllConnectionMethods

func (a *AggregatorRPCs) GetAllConnectionMethods(ctx iris.Context)

GetAllConnectionMethods is the handler for get all connection methods

func (*AggregatorRPCs) GetConnectionMethod

func (a *AggregatorRPCs) GetConnectionMethod(ctx iris.Context)

GetConnectionMethod is the handler for get connection method

func (*AggregatorRPCs) GetResetActionInfoService

func (a *AggregatorRPCs) GetResetActionInfoService(ctx iris.Context)

GetResetActionInfoService is the handler for getting GetResetActionInfoService details

func (*AggregatorRPCs) GetSetDefaultBootOrderActionInfo

func (a *AggregatorRPCs) GetSetDefaultBootOrderActionInfo(ctx iris.Context)

GetSetDefaultBootOrderActionInfo is the handler for getting GetSetDefaultBootOrderActionInfo details

func (*AggregatorRPCs) RemoveElementsFromAggregate

func (a *AggregatorRPCs) RemoveElementsFromAggregate(ctx iris.Context)

RemoveElementsFromAggregate is the handler for removing elements from an aggregate

func (*AggregatorRPCs) Reset

func (a *AggregatorRPCs) Reset(ctx iris.Context)

Reset is the handler to reset compute system from iris context will get the request and check sessiontoken and do rpc call and send response back

func (*AggregatorRPCs) ResetAggregateElements

func (a *AggregatorRPCs) ResetAggregateElements(ctx iris.Context)

ResetAggregateElements is the handler for resetting elements of an aggregate

func (*AggregatorRPCs) SetDefaultBootOrder

func (a *AggregatorRPCs) SetDefaultBootOrder(ctx iris.Context)

SetDefaultBootOrder is the handler to set default boot order from iris context will get the request and check sessiontoken and do rpc call and send response back

func (*AggregatorRPCs) SetDefaultBootOrderAggregateElements

func (a *AggregatorRPCs) SetDefaultBootOrderAggregateElements(ctx iris.Context)

SetDefaultBootOrderAggregateElements is the handler for SetDefaultBootOrder elements of an aggregate

func (*AggregatorRPCs) UpdateAggregationSource

func (a *AggregatorRPCs) UpdateAggregationSource(ctx iris.Context)

UpdateAggregationSource is the handler for updating AggregationSource details

type ChassisRPCs

ChassisRPCs defines all the RPC methods in system service

func (*ChassisRPCs) CreateChassis

func (chassis *ChassisRPCs) CreateChassis(ctx iris.Context)

CreateChassis creates a new chassis

func (*ChassisRPCs) DeleteChassis

func (chassis *ChassisRPCs) DeleteChassis(ctx iris.Context)

DeleteChassis deletes a chassis

func (*ChassisRPCs) GetChassis

func (chassis *ChassisRPCs) GetChassis(ctx iris.Context)

GetChassis defines the GetChassisResource iris handler. The method extract the session token,uuid and request url and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*ChassisRPCs) GetChassisCollection

func (chassis *ChassisRPCs) GetChassisCollection(ctx iris.Context)

GetChassisCollection fetches all Chassis

func (*ChassisRPCs) GetChassisResource

func (chassis *ChassisRPCs) GetChassisResource(ctx iris.Context)

GetChassisResource defines the GetChassisResource iris handler. The method extract the session token,uuid and request url and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*ChassisRPCs) UpdateChassis

func (chassis *ChassisRPCs) UpdateChassis(ctx iris.Context)

UpdateChassis updates an existing chassis

type CompositionServiceRPCs

type CompositionServiceRPCs struct {
	GetCompositionServiceRPC      func(req compositionserviceproto.GetCompositionServiceRequest) (*compositionserviceproto.CompositionServiceResponse, error)
	GetResourceBlockCollectionRPC func(req compositionserviceproto.GetCompositionResourceRequest) (*compositionserviceproto.CompositionServiceResponse, error)
	GetResourceBlockRPC           func(req compositionserviceproto.GetCompositionResourceRequest) (*compositionserviceproto.CompositionServiceResponse, error)
	CreateResourceBlockRPC        func(req compositionserviceproto.CreateCompositionResourceRequest) (*compositionserviceproto.CompositionServiceResponse, error)
	DeleteResourceBlockRPC        func(req compositionserviceproto.DeleteCompositionResourceRequest) (*compositionserviceproto.CompositionServiceResponse, error)
	GetResourceZoneCollectionRPC  func(req compositionserviceproto.GetCompositionResourceRequest) (*compositionserviceproto.CompositionServiceResponse, error)
	GetResourceZoneRPC            func(req compositionserviceproto.GetCompositionResourceRequest) (*compositionserviceproto.CompositionServiceResponse, error)
	CreateResourceZoneRPC         func(req compositionserviceproto.CreateCompositionResourceRequest) (*compositionserviceproto.CompositionServiceResponse, error)
	DeleteResourceZoneRPC         func(req compositionserviceproto.DeleteCompositionResourceRequest) (*compositionserviceproto.CompositionServiceResponse, error)
	ComposeRPC                    func(req compositionserviceproto.ComposeRequest) (*compositionserviceproto.CompositionServiceResponse, error)
	GetActivePoolRPC              func(req compositionserviceproto.GetCompositionResourceRequest) (*compositionserviceproto.CompositionServiceResponse, error)
	GetFreePoolRPC                func(req compositionserviceproto.GetCompositionResourceRequest) (*compositionserviceproto.CompositionServiceResponse, error)
	GetCompositionReservationsRPC func(req compositionserviceproto.GetCompositionResourceRequest) (*compositionserviceproto.CompositionServiceResponse, error)
}

CompositionServiceRPCs defines all the RPC methods in compositon service

func (*CompositionServiceRPCs) Compose

func (cs *CompositionServiceRPCs) Compose(ctx iris.Context)

Compose Action for compose system and decompose system

func (*CompositionServiceRPCs) CreateResourceBlock

func (cs *CompositionServiceRPCs) CreateResourceBlock(ctx iris.Context)

CreateResourceBlock Create the Resource Block Instance

func (*CompositionServiceRPCs) CreateResourceZone

func (cs *CompositionServiceRPCs) CreateResourceZone(ctx iris.Context)

CreateResourceZone create Resource zone Instance

func (*CompositionServiceRPCs) DeleteResourceBlock

func (cs *CompositionServiceRPCs) DeleteResourceBlock(ctx iris.Context)

DeleteResourceBlock Remove Resource Block Instance

func (*CompositionServiceRPCs) DeleteResourceZone

func (cs *CompositionServiceRPCs) DeleteResourceZone(ctx iris.Context)

DeleteResourceZone remove Resource zone Instance

func (*CompositionServiceRPCs) GetActivePool

func (cs *CompositionServiceRPCs) GetActivePool(ctx iris.Context)

GetActivePool Active Resource Block Instance collection

func (*CompositionServiceRPCs) GetCompositionReservations

func (cs *CompositionServiceRPCs) GetCompositionReservations(ctx iris.Context)

GetCompositionReservations Compose action reservation collection

func (*CompositionServiceRPCs) GetCompositionService

func (cs *CompositionServiceRPCs) GetCompositionService(ctx iris.Context)

GetCompositionService fetches all composition service

func (*CompositionServiceRPCs) GetFreePool

func (cs *CompositionServiceRPCs) GetFreePool(ctx iris.Context)

GetFreePool Free Resource Block instance collection

func (*CompositionServiceRPCs) GetResourceBlock

func (cs *CompositionServiceRPCs) GetResourceBlock(ctx iris.Context)

GetResourceBlock get the Resource Block Instance

func (*CompositionServiceRPCs) GetResourceBlockCollection

func (cs *CompositionServiceRPCs) GetResourceBlockCollection(ctx iris.Context)

GetResourceBlockCollection fetch the Resource Blocks Instance collection

func (*CompositionServiceRPCs) GetResourceZone

func (cs *CompositionServiceRPCs) GetResourceZone(ctx iris.Context)

GetResourceZone get the Resource zone Instance

func (*CompositionServiceRPCs) GetResourceZoneCollection

func (cs *CompositionServiceRPCs) GetResourceZoneCollection(ctx iris.Context)

GetResourceZoneCollection fetch the Resource zones Instance collection

type EventsRPCs

type EventsRPCs struct {
	GetEventServiceRPC                 func(context.Context, eventsproto.EventSubRequest) (*eventsproto.EventSubResponse, error)
	CreateEventSubscriptionRPC         func(context.Context, eventsproto.EventSubRequest) (*eventsproto.EventSubResponse, error)
	SubmitTestEventRPC                 func(context.Context, eventsproto.EventSubRequest) (*eventsproto.EventSubResponse, error)
	GetEventSubscriptionRPC            func(context.Context, eventsproto.EventRequest) (*eventsproto.EventSubResponse, error)
	DeleteEventSubscriptionRPC         func(context.Context, eventsproto.EventRequest) (*eventsproto.EventSubResponse, error)
	GetEventSubscriptionsCollectionRPC func(context.Context, eventsproto.EventRequest) (*eventsproto.EventSubResponse, error)
}

EventsRPCs defines all the RPC methods in Events service

func (*EventsRPCs) CreateEventSubscription

func (e *EventsRPCs) CreateEventSubscription(ctx iris.Context)

CreateEventSubscription is the handler for creating event subscription

func (*EventsRPCs) DeleteEventSubscription

func (e *EventsRPCs) DeleteEventSubscription(ctx iris.Context)

DeleteEventSubscription is the handler for getting event subscription

func (*EventsRPCs) GetEventService

func (e *EventsRPCs) GetEventService(ctx iris.Context)

GetEventService is the handler to get the Event Service details.

func (*EventsRPCs) GetEventSubscription

func (e *EventsRPCs) GetEventSubscription(ctx iris.Context)

GetEventSubscription is the handler for getting event subscription

func (*EventsRPCs) GetEventSubscriptionsCollection

func (e *EventsRPCs) GetEventSubscriptionsCollection(ctx iris.Context)

GetEventSubscriptionsCollection is the handler for getting event subscriptions collection

func (*EventsRPCs) SubmitTestEvent

func (e *EventsRPCs) SubmitTestEvent(ctx iris.Context)

SubmitTestEvent is the handler to submit test event

type FabricRPCs

type FabricRPCs struct {
	GetFabricResourceRPC    func(context.Context, fabricsproto.FabricRequest) (*fabricsproto.FabricResponse, error)
	UpdateFabricResourceRPC func(context.Context, fabricsproto.FabricRequest) (*fabricsproto.FabricResponse, error)
	DeleteFabricResourceRPC func(context.Context, fabricsproto.FabricRequest) (*fabricsproto.FabricResponse, error)
}

FabricRPCs defines all the RPC methods in fabric service

func (*FabricRPCs) DeleteFabricResource

func (f *FabricRPCs) DeleteFabricResource(ctx iris.Context)

DeleteFabricResource defines the DeleteFabricResource iris handler. This method is used for deleting requested fabric resource

func (*FabricRPCs) GetFabric

func (f *FabricRPCs) GetFabric(ctx iris.Context)

GetFabric defines the GetFabric iris handler. The method extracts given Fabric Resource

func (*FabricRPCs) GetFabricAddressPool

func (f *FabricRPCs) GetFabricAddressPool(ctx iris.Context)

GetFabricAddressPool defines the GetFabricAddressPool iris handler. The method extracts given Fabric Resource

func (*FabricRPCs) GetFabricAddressPoolCollection

func (f *FabricRPCs) GetFabricAddressPoolCollection(ctx iris.Context)

GetFabricAddressPoolCollection defines the GetFabricAddressPoolCollection iris handler. The method extracts given Fabric Resource

func (*FabricRPCs) GetFabricCollection

func (f *FabricRPCs) GetFabricCollection(ctx iris.Context)

GetFabricCollection defines the GetFabricCollection iris handler. The method extracts given Fabric Resource

func (*FabricRPCs) GetFabricEndPointCollection

func (f *FabricRPCs) GetFabricEndPointCollection(ctx iris.Context)

GetFabricEndPointCollection defines the GetFabricEndPointCollection iris handler. The method extracts given Fabric Resource

func (*FabricRPCs) GetFabricEndPoints

func (f *FabricRPCs) GetFabricEndPoints(ctx iris.Context)

GetFabricEndPoints defines the GetFabricEndPoints iris handler. The method extracts given Fabric Resource

func (*FabricRPCs) GetFabricSwitch

func (f *FabricRPCs) GetFabricSwitch(ctx iris.Context)

GetFabricSwitch defines the GetFabricSwitch iris handler. The method extracts given Fabric Resource

func (*FabricRPCs) GetFabricSwitchCollection

func (f *FabricRPCs) GetFabricSwitchCollection(ctx iris.Context)

GetFabricSwitchCollection defines the GetFabricSwitchCollection iris handler. The method extracts given Fabric Resource

func (*FabricRPCs) GetFabricZone

func (f *FabricRPCs) GetFabricZone(ctx iris.Context)

GetFabricZone defines the GetFabricZone iris handler. The method extracts given Fabric Resource

func (*FabricRPCs) GetFabricZoneCollection

func (f *FabricRPCs) GetFabricZoneCollection(ctx iris.Context)

GetFabricZoneCollection defines the GetFabricZoneCollection iris handler. The method extracts given Fabric Resource

func (*FabricRPCs) GetSwitchPort

func (f *FabricRPCs) GetSwitchPort(ctx iris.Context)

GetSwitchPort defines the GetSwitchPort iris handler. The method extracts given Fabric Resource

func (*FabricRPCs) GetSwitchPortCollection

func (f *FabricRPCs) GetSwitchPortCollection(ctx iris.Context)

GetSwitchPortCollection defines the GetSwitchPortCollection iris handler. The method extracts given Fabric Resource

func (*FabricRPCs) UpdateFabricResource

func (f *FabricRPCs) UpdateFabricResource(ctx iris.Context)

UpdateFabricResource defines the UpdateFabricResource iris handler. The method updates if Fabric Resource exists else creates new one.

type LicenseRPCs

type LicenseRPCs struct {
	GetLicenseServiceRPC     func(ctx context.Context, req licenseproto.GetLicenseServiceRequest) (*licenseproto.GetLicenseResponse, error)
	GetLicenseCollectionRPC  func(ctx context.Context, req licenseproto.GetLicenseRequest) (*licenseproto.GetLicenseResponse, error)
	GetLicenseResourceRPC    func(ctx context.Context, req licenseproto.GetLicenseResourceRequest) (*licenseproto.GetLicenseResponse, error)
	InstallLicenseServiceRPC func(ctx context.Context, req licenseproto.InstallLicenseRequest) (*licenseproto.GetLicenseResponse, error)
}

LicenseRPCs defines all the RPC methods in license service

func (*LicenseRPCs) GetLicenseCollection

func (lcns *LicenseRPCs) GetLicenseCollection(ctx iris.Context)

GetLicenseCollection fetches all licenses

func (*LicenseRPCs) GetLicenseResource

func (lcns *LicenseRPCs) GetLicenseResource(ctx iris.Context)

GetLicenseResource fetches license resource

func (*LicenseRPCs) GetLicenseService

func (lcns *LicenseRPCs) GetLicenseService(ctx iris.Context)

GetLicenseService returns license service response

func (*LicenseRPCs) InstallLicenseService

func (lcns *LicenseRPCs) InstallLicenseService(ctx iris.Context)

InstallLicenseService installs license

type ManagersRPCs

type ManagersRPCs struct {
	GetManagersCollectionRPC      func(ctx context.Context, req managersproto.ManagerRequest) (*managersproto.ManagerResponse, error)
	GetManagersRPC                func(ctx context.Context, req managersproto.ManagerRequest) (*managersproto.ManagerResponse, error)
	GetManagersResourceRPC        func(ctx context.Context, req managersproto.ManagerRequest) (*managersproto.ManagerResponse, error)
	VirtualMediaInsertRPC         func(ctx context.Context, req managersproto.ManagerRequest) (*managersproto.ManagerResponse, error)
	VirtualMediaEjectRPC          func(ctx context.Context, req managersproto.ManagerRequest) (*managersproto.ManagerResponse, error)
	GetRemoteAccountServiceRPC    func(ctx context.Context, req managersproto.ManagerRequest) (*managersproto.ManagerResponse, error)
	CreateRemoteAccountServiceRPC func(ctx context.Context, req managersproto.ManagerRequest) (*managersproto.ManagerResponse, error)
	UpdateRemoteAccountServiceRPC func(ctx context.Context, req managersproto.ManagerRequest) (*managersproto.ManagerResponse, error)
	DeleteRemoteAccountServiceRPC func(ctx context.Context, req managersproto.ManagerRequest) (*managersproto.ManagerResponse, error)
}

ManagersRPCs defines all the RPC methods in account service

func (*ManagersRPCs) CreateRemoteAccountService

func (mgr *ManagersRPCs) CreateRemoteAccountService(ctx iris.Context)

CreateRemoteAccountService defines the CreateRemoteAccountService iris handler. This method extract the session token,uuid,request payload and url and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*ManagersRPCs) DeleteRemoteAccountService

func (mgr *ManagersRPCs) DeleteRemoteAccountService(ctx iris.Context)

DeleteRemoteAccountService defines the DeleteRemoteAccountService iris handler. This method extract the session token,uuid and url and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*ManagersRPCs) GetManager

func (mgr *ManagersRPCs) GetManager(ctx iris.Context)

GetManager fetches computer managers details

func (*ManagersRPCs) GetManagersCollection

func (mgr *ManagersRPCs) GetManagersCollection(ctx iris.Context)

GetManagersCollection fetches all managers

func (*ManagersRPCs) GetManagersResource

func (mgr *ManagersRPCs) GetManagersResource(ctx iris.Context)

GetManagersResource defines the GetManagersResource iris handler. The method extract the session token,uuid and request url and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*ManagersRPCs) GetRemoteAccountService

func (mgr *ManagersRPCs) GetRemoteAccountService(ctx iris.Context)

GetRemoteAccountService defines the GetRemoteAccountService iris handler. This method extract the session token,uuid and request url and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*ManagersRPCs) UpdateRemoteAccountService

func (mgr *ManagersRPCs) UpdateRemoteAccountService(ctx iris.Context)

UpdateRemoteAccountService defines the UpdateRemoteAccountService iris handler. This method extract the session token,uuid,request payload and url and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*ManagersRPCs) VirtualMediaEject

func (mgr *ManagersRPCs) VirtualMediaEject(ctx iris.Context)

VirtualMediaEject defines the eject virtual media iris handler The method extract the session token,uuid and request url and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*ManagersRPCs) VirtualMediaInsert

func (mgr *ManagersRPCs) VirtualMediaInsert(ctx iris.Context)

VirtualMediaInsert defines the Insert virtual media iris handler The method extract the session token,uuid and request url and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

type Registry

type Registry struct {
	Auth func(context.Context, string, []string, []string) (errResponse.RPC, error)
}

Registry defines Auth which helps with authorization

func (*Registry) GetMessageRegistryFile

func (r *Registry) GetMessageRegistryFile(ctx iris.Context)

GetMessageRegistryFile this is to retreve the message registry file itself.

func (*Registry) GetMessageRegistryFileID

func (r *Registry) GetMessageRegistryFileID(ctx iris.Context)

GetMessageRegistryFileID this is for giving deatiled information about the file and its locations.

func (*Registry) GetRegistryFileCollection

func (r *Registry) GetRegistryFileCollection(ctx iris.Context)

GetRegistryFileCollection is show available collection of registry files.

type RoleRPCs

RoleRPCs defines all the RPC methods in role

func (*RoleRPCs) DeleteRole

func (r *RoleRPCs) DeleteRole(ctx iris.Context)

DeleteRole ...

func (*RoleRPCs) GetAllRoles

func (r *RoleRPCs) GetAllRoles(ctx iris.Context)

GetAllRoles defines the GetAllRoles iris handler. The method extract the session token and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*RoleRPCs) GetRole

func (r *RoleRPCs) GetRole(ctx iris.Context)

GetRole defines the GetRole iris handler. The method extract the session token, and necessary request parameters and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*RoleRPCs) UpdateRole

func (r *RoleRPCs) UpdateRole(ctx iris.Context)

UpdateRole defines the UpdateRole iris handler. The method extract the session token, and necessary request parameters and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

type ServiceRoot

type ServiceRoot struct {
	// contains filtered or unexported fields
}

ServiceRoot defines getService function

func InitServiceRoot

func InitServiceRoot() ServiceRoot

InitServiceRoot func returns ServiceRoot

func (*ServiceRoot) GetServiceRoot

func (s *ServiceRoot) GetServiceRoot(ctx iris.Context)

GetServiceRoot builds response body and headers for /redfish/v1

type SessionRPCs

type SessionRPCs struct {
	CreateSessionRPC        func(context.Context, sessionproto.SessionCreateRequest) (*sessionproto.SessionCreateResponse, error)
	DeleteSessionRPC        func(context.Context, string, string) (*sessionproto.SessionResponse, error)
	GetSessionRPC           func(context.Context, string, string) (*sessionproto.SessionResponse, error)
	GetAllActiveSessionsRPC func(context.Context, string, string) (*sessionproto.SessionResponse, error)
	GetSessionServiceRPC    func(context.Context) (*sessionproto.SessionResponse, error)
}

SessionRPCs defines all the RPC methods in session service

func (*SessionRPCs) CreateSession

func (s *SessionRPCs) CreateSession(ctx iris.Context)

CreateSession defines the Create session iris handler This method extracts the user name and password create a rpc request and send a request to session micro service and feed the response to iris

func (*SessionRPCs) DeleteSession

func (s *SessionRPCs) DeleteSession(ctx iris.Context)

DeleteSession defines the Delete session iris handler This method extracts the sessionid and sessiontoken create a rpc request and send a request to session micro service and feed the response to iris

func (*SessionRPCs) GetAllActiveSessions

func (s *SessionRPCs) GetAllActiveSessions(ctx iris.Context)

GetAllActiveSessions defines the GetAllActiveSession iris handler This method extracts the sessionid and sessiontoken create a rpc request and send a request to session micro service and feed the response to iris

func (*SessionRPCs) GetSession

func (s *SessionRPCs) GetSession(ctx iris.Context)

GetSession defines the Get session iris handler This method extracts the sessionid and sessiontoken create a rpc request and send a request to session micro service and feed the response to iris

func (*SessionRPCs) GetSessionService

func (s *SessionRPCs) GetSessionService(ctx iris.Context)

GetSessionService will do the rpc call to get session service

type SystemRPCs

SystemRPCs defines all the RPC methods in account service

func (*SystemRPCs) ChangeBiosSettings

func (sys *SystemRPCs) ChangeBiosSettings(ctx iris.Context)

ChangeBiosSettings is the handler to set change bios settings from iris context will get the request and check sessiontoken and do rpc call and send response back

func (*SystemRPCs) ChangeBootOrderSettings

func (sys *SystemRPCs) ChangeBootOrderSettings(ctx iris.Context)

ChangeBootOrderSettings is the handler to set change boot order settings from iris context will get the request and check sessiontoken and do rpc call and send response back

func (*SystemRPCs) ComputerSystemReset

func (sys *SystemRPCs) ComputerSystemReset(ctx iris.Context)

ComputerSystemReset resets the indivitual computer systems

func (*SystemRPCs) CreateVolume

func (sys *SystemRPCs) CreateVolume(ctx iris.Context)

CreateVolume is the handler to create a volume under storage from iris context will get the request and check sessiontoken and do rpc call and send response back

func (*SystemRPCs) DeleteVolume

func (sys *SystemRPCs) DeleteVolume(ctx iris.Context)

DeleteVolume is the handler to delete a volume under storage from iris context will get the request and check sessiontoken and do rpc call and send response back

func (*SystemRPCs) GetSystem

func (sys *SystemRPCs) GetSystem(ctx iris.Context)

GetSystem fetches computer system details

func (*SystemRPCs) GetSystemResource

func (sys *SystemRPCs) GetSystemResource(ctx iris.Context)

GetSystemResource defines the GetSystemResource iris handler. The method extract the session token,uuid and request url and creates the RPC request. After the RPC call the method will feed the response to the iris and gives out a proper response.

func (*SystemRPCs) GetSystemsCollection

func (sys *SystemRPCs) GetSystemsCollection(ctx iris.Context)

GetSystemsCollection fetches all systems

func (*SystemRPCs) ResetSecureBoot

func (sys *SystemRPCs) ResetSecureBoot(ctx iris.Context)

ResetSecureBoot shall reset the UEFI Secure Boot key databases. The `ResetAllKeysToDefault` value shall reset all UEFI Secure Boot key databases to their default values. The `DeleteAllKeys` value shall delete the content of all UEFI Secure Boot key databases. The `DeletePK` value shall delete the content of the PK Secure Boot key database.

func (*SystemRPCs) SetDefaultBootOrder

func (sys *SystemRPCs) SetDefaultBootOrder(ctx iris.Context)

SetDefaultBootOrder is the handler to set default boot order from iris context will get the request and check sessiontoken and do rpc call and send response back

func (*SystemRPCs) UpdateSecureBoot

func (sys *SystemRPCs) UpdateSecureBoot(ctx iris.Context)

UpdateSecureBoot is the handler to set change boot order settings from iris context will get the request and check session token and do rpc call and send response back

type TaskRPCs

type TaskRPCs struct {
	DeleteTaskRPC     func(ctx context.Context, req *taskproto.GetTaskRequest) (*taskproto.TaskResponse, error)
	GetTaskRPC        func(ctx context.Context, req *taskproto.GetTaskRequest) (*taskproto.TaskResponse, error)
	GetSubTasksRPC    func(ctx context.Context, req *taskproto.GetTaskRequest) (*taskproto.TaskResponse, error)
	GetSubTaskRPC     func(ctx context.Context, req *taskproto.GetTaskRequest) (*taskproto.TaskResponse, error)
	GetTaskMonitorRPC func(ctx context.Context, req *taskproto.GetTaskRequest) (*taskproto.TaskResponse, error)
	TaskCollectionRPC func(ctx context.Context, req *taskproto.GetTaskRequest) (*taskproto.TaskResponse, error)
	GetTaskServiceRPC func(ctx context.Context, req *taskproto.GetTaskRequest) (*taskproto.TaskResponse, error)
}

TaskRPCs defines all the RPC methods in task service

func (*TaskRPCs) DeleteTask

func (task *TaskRPCs) DeleteTask(ctx iris.Context)

DeleteTask deletes the task with given TaskID It takes iris context and extract auth token and TaskID from the context Create a request object in task proto request format and pass it to rpc call

func (*TaskRPCs) GetSubTask

func (task *TaskRPCs) GetSubTask(ctx iris.Context)

GetSubTask fetches sub task details It takes iris context and extract auth token, TaskID and subTasks from the context Create a request object in task proto request format and pass it to rpc call

func (*TaskRPCs) GetSubTasks

func (task *TaskRPCs) GetSubTasks(ctx iris.Context)

GetSubTasks fetches sub task collection under given umbralla tasks It takes iris context and extract auth token and TaskID from the context Create a request object in task proto request format and pass it to rpc call

func (*TaskRPCs) GetTaskMonitor

func (task *TaskRPCs) GetTaskMonitor(ctx iris.Context)

GetTaskMonitor fetches task monitor It takes iris context and extract auth token and TaskID from the context Create a request object in task proto request format and pass it to rpc call

func (*TaskRPCs) GetTaskService

func (task *TaskRPCs) GetTaskService(ctx iris.Context)

GetTaskService fetches Task Service details It takes iris context and extract auth token from the context Create a request object in task proto request format and pass it to rpc call

func (*TaskRPCs) GetTaskStatus

func (task *TaskRPCs) GetTaskStatus(ctx iris.Context)

GetTaskStatus fetches task status It takes iris context and extract auth token and TaskID from the context Create a request object in task proto request format and pass it to rpc call

func (*TaskRPCs) TaskCollection

func (task *TaskRPCs) TaskCollection(ctx iris.Context)

TaskCollection fetches all tasks available in DB It takes iris context and extract auth token from the context Create a request object in task proto request format and pass it to rpc call

type TelemetryRPCs

TelemetryRPCs used to define the service RPC function

func (*TelemetryRPCs) GetMetricDefinition

func (a *TelemetryRPCs) GetMetricDefinition(ctx iris.Context)

GetMetricDefinition is the handler for getting TelemetryService details

func (*TelemetryRPCs) GetMetricDefinitionCollection

func (a *TelemetryRPCs) GetMetricDefinitionCollection(ctx iris.Context)

GetMetricDefinitionCollection is the handler for getting TelemetryService details

func (*TelemetryRPCs) GetMetricReport

func (a *TelemetryRPCs) GetMetricReport(ctx iris.Context)

GetMetricReport is the handler for getting TelemetryService details

func (*TelemetryRPCs) GetMetricReportCollection

func (a *TelemetryRPCs) GetMetricReportCollection(ctx iris.Context)

GetMetricReportCollection is the handler for getting TelemetryService details

func (*TelemetryRPCs) GetMetricReportDefinition

func (a *TelemetryRPCs) GetMetricReportDefinition(ctx iris.Context)

GetMetricReportDefinition is the handler for getting TelemetryService details

func (*TelemetryRPCs) GetMetricReportDefinitionCollection

func (a *TelemetryRPCs) GetMetricReportDefinitionCollection(ctx iris.Context)

GetMetricReportDefinitionCollection is the handler for getting TelemetryService details

func (*TelemetryRPCs) GetTelemetryService

func (a *TelemetryRPCs) GetTelemetryService(ctx iris.Context)

GetTelemetryService is the handler for getting TelemetryService details

func (*TelemetryRPCs) GetTrigger

func (a *TelemetryRPCs) GetTrigger(ctx iris.Context)

GetTrigger is the handler for getting TelemetryService details

func (*TelemetryRPCs) GetTriggerCollection

func (a *TelemetryRPCs) GetTriggerCollection(ctx iris.Context)

GetTriggerCollection is the handler for getting TelemetryService details

func (*TelemetryRPCs) UpdateTrigger

func (a *TelemetryRPCs) UpdateTrigger(ctx iris.Context)

UpdateTrigger is the handler for getting TelemetryService details

type UpdateRPCs

type UpdateRPCs struct {
	GetUpdateServiceRPC               func(context.Context, updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
	SimpleUpdateRPC                   func(context.Context, updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
	StartUpdateRPC                    func(context.Context, updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
	GetFirmwareInventoryRPC           func(context.Context, updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
	GetFirmwareInventoryCollectionRPC func(context.Context, updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
	GetSoftwareInventoryRPC           func(context.Context, updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
	GetSoftwareInventoryCollectionRPC func(context.Context, updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
}

UpdateRPCs used to define the service RPC function

func (*UpdateRPCs) GetFirmwareInventory

func (a *UpdateRPCs) GetFirmwareInventory(ctx iris.Context)

GetFirmwareInventory is a handler for firmware inventory

func (*UpdateRPCs) GetFirmwareInventoryCollection

func (a *UpdateRPCs) GetFirmwareInventoryCollection(ctx iris.Context)

GetFirmwareInventoryCollection is a handler for firmware inventory collection

func (*UpdateRPCs) GetSoftwareInventory

func (a *UpdateRPCs) GetSoftwareInventory(ctx iris.Context)

GetSoftwareInventory is a handler for firmware inventory

func (*UpdateRPCs) GetSoftwareInventoryCollection

func (a *UpdateRPCs) GetSoftwareInventoryCollection(ctx iris.Context)

GetSoftwareInventoryCollection is a handler for software inventory collection

func (*UpdateRPCs) GetUpdateService

func (a *UpdateRPCs) GetUpdateService(ctx iris.Context)

GetUpdateService is the handler for getting UpdateService details

func (*UpdateRPCs) SimpleUpdate

func (a *UpdateRPCs) SimpleUpdate(ctx iris.Context)

SimpleUpdate is a handler for simple update action

func (*UpdateRPCs) StartUpdate

func (a *UpdateRPCs) StartUpdate(ctx iris.Context)

StartUpdate is a handler for start update action

Jump to

Keyboard shortcuts

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