rpc

package
v0.0.0-...-7d1f1a1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SvrRpc

type SvrRpc struct {
	pb.UnimplementedByteGangsterServer
	// contains filtered or unexported fields
}

func NewSvrRpc

func NewSvrRpc(db *gorm.DB, cfg *model.CfgSchema) *SvrRpc

func (SvrRpc) AuthKb

func (sv SvrRpc) AuthKb(ctx context.Context, arg *pb.ReqSshUser) (*pb.UserKb, error)

func (SvrRpc) AuthPk

func (sv SvrRpc) AuthPk(ctx context.Context, in *pb.ReqAuthPublicKey) (*pb.User, error)

func (SvrRpc) AuthPw

func (sv SvrRpc) AuthPw(ctx context.Context, in *pb.ReqAuthPassword) (*pb.User, error)

func (SvrRpc) FetchAsset

func (sv SvrRpc) FetchAsset(ctx context.Context, arg *pb.ReqAssetsQuery) (*pb.AssetList, error)

func (SvrRpc) FetchAssetSshConfig

func (sv SvrRpc) FetchAssetSshConfig(ctx context.Context, arg *pb.ReqAssetUser) (*pb.ResSshConnCfg, error)

func (SvrRpc) Guacamole

func (sv SvrRpc) Guacamole(ctx context.Context, arg *pb.ReqToken) (*pb.ResGuacamole, error)

func (*SvrRpc) Run

func (sv *SvrRpc) Run(lis net.Listener)

func (SvrRpc) SaveLogAuth

func (sv SvrRpc) SaveLogAuth(ctx context.Context, log *pb.ReqAuthLog) (*pb.ResStatus, error)

func (SvrRpc) SaveLogSshSession

func (sv SvrRpc) SaveLogSshSession(ctx context.Context, arg *pb.ReqSshdData) (*pb.ResStatus, error)

func (SvrRpc) WebXtermSsh

func (sv SvrRpc) WebXtermSsh(c context.Context, arg *pb.ReqToken) (*pb.ResSshConnCfg, error)

Jump to

Keyboard shortcuts

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