rpc

package
v0.0.0-...-8d2fcc7 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

SimepleUpdate is an rpc handler, it gets involked during POST on UpdateService API actions (/Actions/UpdateService.SimpleUpdate)

func (*Updater) StartUpdate

StartUpdate is an rpc handler, it gets involked during POST on UpdateService API actions (/Actions/UpdateService.StartUpdate)

Jump to

Keyboard shortcuts

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