api

package
v0.0.0-...-d723c4e Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonNameFromContext

func CommonNameFromContext(ctx context.Context) (string, error)

CommonNameFromContext gets the common name from peer certificates in the context -- this is the username Note that for local development, this is set in the gencerts binary.

Types

type Server

type Server struct {
	jogv1.UnimplementedJobServiceServer
	// contains filtered or unexported fields
}

Server is the implementation of the grpc JobServiceServer

func NewServer

func NewServer(manager *job.Manager, log *zap.SugaredLogger) *Server

func (Server) Output

Output streams the output of a job

func (Server) Start

Start starts a new job

func (Server) Status

Status gets the status of a job

func (Server) Stop

Stop stops a job

Jump to

Keyboard shortcuts

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