Documentation ¶
Index ¶
- type Updater
- func (a *Updater) GetFirmwareInventory(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
- func (a *Updater) GetFirmwareInventoryCollection(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
- func (a *Updater) GetSoftwareInventory(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
- func (a *Updater) GetSoftwareInventoryCollection(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
- func (a *Updater) GetUpdateService(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
- func (a *Updater) SimepleUpdate(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
- func (a *Updater) StartUpdate(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
Updater struct helps to register service
func GetUpdater ¶
func GetUpdater() *Updater
GetUpdater intializes all the required connection functions for the updater execution
func (*Updater) GetFirmwareInventory ¶
func (a *Updater) GetFirmwareInventory(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
GetFirmwareInventory is an rpc handler which is invoked during GET on firmware inventory
func (*Updater) GetFirmwareInventoryCollection ¶
func (a *Updater) GetFirmwareInventoryCollection(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
GetFirmwareInventoryCollection an rpc handler which is invoked during GET on firmware inventory collection
func (*Updater) GetSoftwareInventory ¶
func (a *Updater) GetSoftwareInventory(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
GetSoftwareInventory is an rpc handler which is invoked during GET on software inventory
func (*Updater) GetSoftwareInventoryCollection ¶
func (a *Updater) GetSoftwareInventoryCollection(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
GetSoftwareInventoryCollection is an rpc handler which is invoked during GET on software inventory collection
func (*Updater) GetUpdateService ¶
func (a *Updater) GetUpdateService(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
GetUpdateService is an rpc handler, it gets invoked during GET on UpdateService API (/redfis/v1/UpdateService/)
func (*Updater) SimepleUpdate ¶
func (a *Updater) SimepleUpdate(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
SimepleUpdate is an rpc handler, it gets involked during POST on UpdateService API actions (/Actions/UpdateService.SimpleUpdate)
func (*Updater) StartUpdate ¶
func (a *Updater) StartUpdate(ctx context.Context, req *updateproto.UpdateRequest) (*updateproto.UpdateResponse, error)
StartUpdate is an rpc handler, it gets involked during POST on UpdateService API actions (/Actions/UpdateService.StartUpdate)