tarus_judge

package
v0.0.0-...-5379b69 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JudgeServiceApiAll     = "All"
	JudgeServiceApiMinimum = "Min"
)

Variables

View Source
var JudgeStatusHash string

Functions

func TransientJudge

func TransientJudge(c tarus.JudgeServiceServer, rawCtx context.Context, rawReq *TransientJudgeRequest) (resp *tarus.MakeJudgeResponse, err error)

func WithContainerEnvironment

func WithContainerEnvironment(
	c tarus.JudgeServiceServer, rawCtx context.Context, req *WithContainerRequest, cb func(rawCtx context.Context) error) (err error)

Types

type ClientAdaptor

type ClientAdaptor struct {
	tarus.UnimplementedJudgeServiceServer
	// contains filtered or unexported fields
}

func (*ClientAdaptor) BundleContainer

func (c *ClientAdaptor) BundleContainer(ctx context.Context, request *tarus.BundleContainerRequest) (*emptypb.Empty, error)

func (*ClientAdaptor) CheckContainer

func (c *ClientAdaptor) CheckContainer(ctx context.Context, request *tarus.CheckContainerRequest) (*emptypb.Empty, error)

func (*ClientAdaptor) CloneContainer

func (c *ClientAdaptor) CloneContainer(ctx context.Context, request *tarus.CloneContainerRequest) (*emptypb.Empty, error)

func (*ClientAdaptor) CompileProgram

func (*ClientAdaptor) CopyFile

func (c *ClientAdaptor) CopyFile(ctx context.Context, request *tarus.CopyFileRequest) (*emptypb.Empty, error)

func (*ClientAdaptor) CreateContainer

func (c *ClientAdaptor) CreateContainer(ctx context.Context, request *tarus.CreateContainerRequest) (*emptypb.Empty, error)

func (*ClientAdaptor) Handshake

func (*ClientAdaptor) MakeJudge

func (*ClientAdaptor) QueryJudge

func (*ClientAdaptor) RemoveContainer

func (c *ClientAdaptor) RemoveContainer(ctx context.Context, request *tarus.RemoveContainerRequest) (*emptypb.Empty, error)

type TransientJudgeRequest

type TransientJudgeRequest struct {
	ImageId string

	CompileFile string
	BinTarget   string

	*tarus.MakeJudgeRequest
}

type WithContainerRequest

type WithContainerRequest = tarus.CreateContainerRequest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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