wsHandler

package
v4.12.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleImageGetReq

func HandleImageGetReq(req *protos.ImageGetReq, hctx wsHelpers.HandlerContext) ([]*protos.ImageGetResp, error)

func HandleImageListReq

func HandleImageListReq(req *protos.ImageListReq, hctx wsHelpers.HandlerContext) ([]*protos.ImageListResp, error)

func HandleLogReadReq

func HandleLogReadReq(req *protos.LogReadReq, hctx wsHelpers.HandlerContext) ([]*protos.LogReadResp, error)

func HandleNotificationDismissReq added in v4.0.2

func HandleNotificationDismissReq(req *protos.NotificationDismissReq, hctx wsHelpers.HandlerContext) ([]*protos.NotificationDismissResp, error)

func HandleNotificationReq added in v4.0.2

func HandleNotificationReq(req *protos.NotificationReq, hctx wsHelpers.HandlerContext) ([]*protos.NotificationResp, error)

func HandlePiquantVersionListReq

func HandlePiquantVersionListReq(req *protos.PiquantVersionListReq, hctx wsHelpers.HandlerContext) ([]*protos.PiquantVersionListResp, error)

TODO: need to query versions from github container registry or something similar???

func HandleQuantCombineListGetReq

func HandleQuantCombineListGetReq(req *protos.QuantCombineListGetReq, hctx wsHelpers.HandlerContext) ([]*protos.QuantCombineListGetResp, error)

Anyone can retrieve a quant z-stack if they have quant messaging permissions

func HandleQuantCombineListWriteReq

func HandleQuantCombineListWriteReq(req *protos.QuantCombineListWriteReq, hctx wsHelpers.HandlerContext) ([]*protos.QuantCombineListWriteResp, error)

Anyone can save a quant z-stack if they have quant messaging permissions

func HandleQuantGetReq

func HandleQuantGetReq(req *protos.QuantGetReq, hctx wsHelpers.HandlerContext) ([]*protos.QuantGetResp, error)

func HandleQuantListReq

func HandleQuantListReq(req *protos.QuantListReq, hctx wsHelpers.HandlerContext) ([]*protos.QuantListResp, error)

func HandleRunTestReq

func HandleRunTestReq(req *protos.RunTestReq, hctx wsHelpers.HandlerContext) ([]*protos.RunTestResp, error)

func HandleScanEntryReq

func HandleScanEntryReq(req *protos.ScanEntryReq, hctx wsHelpers.HandlerContext) ([]*protos.ScanEntryResp, error)

func HandleScanGetReq added in v4.7.0

func HandleScanGetReq(req *protos.ScanGetReq, hctx wsHelpers.HandlerContext) ([]*protos.ScanGetResp, error)

func HandleScanListReq

func HandleScanListReq(req *protos.ScanListReq, hctx wsHelpers.HandlerContext) ([]*protos.ScanListResp, error)

func HandleScanUploadReq

func HandleScanUploadReq(req *protos.ScanUploadReq, hctx wsHelpers.HandlerContext) ([]*protos.ScanUploadResp, error)

NOTE: before this is sent, we expect the PUT /scan endpoint to have been called and a zip uploaded already

The same parameters passed there (scan id & file name) must be used with this request otherwise we
won't look up the zip correctly and fail.

func HandleSelectedScanEntriesWriteReq

func HandleSelectedScanEntriesWriteReq(req *protos.SelectedScanEntriesWriteReq, hctx wsHelpers.HandlerContext) ([]*protos.SelectedScanEntriesWriteResp, error)

Allowing user to save multiple scans worth of entry indexes in one message

func HandleSpectrumReq

func HandleSpectrumReq(req *protos.SpectrumReq, hctx wsHelpers.HandlerContext) ([]*protos.SpectrumResp, error)

func HandleTagCreateReq

func HandleTagCreateReq(req *protos.TagCreateReq, hctx wsHelpers.HandlerContext) ([]*protos.TagCreateResp, error)

func HandleTagDeleteReq

func HandleTagDeleteReq(req *protos.TagDeleteReq, hctx wsHelpers.HandlerContext) ([]*protos.TagDeleteResp, error)

func HandleTagListReq

func HandleTagListReq(req *protos.TagListReq, hctx wsHelpers.HandlerContext) ([]*protos.TagListResp, error)

func HandleUserAddRoleReq

func HandleUserAddRoleReq(req *protos.UserAddRoleReq, hctx wsHelpers.HandlerContext) ([]*protos.UserAddRoleResp, error)

///////////////////////////////////////////////////////////////////// Managing a users roles

func HandleUserGroupReq

func HandleUserGroupReq(req *protos.UserGroupReq, hctx wsHelpers.HandlerContext) ([]*protos.UserGroupResp, error)

Getting an individual user group - this should only be allowed for PIXLISE_ADMIN permissioned users, or group admins

func HandleUserListReq

func HandleUserListReq(req *protos.UserListReq, hctx wsHelpers.HandlerContext) ([]*protos.UserListResp, error)

///////////////////////////////////////////////////////////////////// Listing users from Auth0

func HandleUserRoleListReq

func HandleUserRoleListReq(req *protos.UserRoleListReq, hctx wsHelpers.HandlerContext) ([]*protos.UserRoleListResp, error)

///////////////////////////////////////////////////////////////////// Getting all user roles

func HandleUserRolesListReq

func HandleUserRolesListReq(req *protos.UserRolesListReq, hctx wsHelpers.HandlerContext) ([]*protos.UserRolesListResp, error)

///////////////////////////////////////////////////////////////////// Getting a users roles

func PublishExpressionToZenodo

func PublishExpressionToZenodo(id string, output string, metadata *protos.DOIMetadata, mongo *mongo.Database, zenodoURI string, zenodoToken string) (*protos.ZenodoPublishResponse, error)

func PublishModuleToZenodo

func PublishModuleToZenodo(module *protos.DataModule, metadata *protos.DOIMetadata, zenodoURI string, zenodoToken string) (*protos.ZenodoPublishResponse, error)

Types

type IdOnly

type IdOnly struct {
	Id string `bson:"_id"`
}

Jump to

Keyboard shortcuts

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