daemon

package
v0.0.0-...-87fd372 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NilRequestInputError indicates that the received request was nil.
	NilRequestInputError = status.Error(codes.InvalidArgument, "request cannot be nil")
)

Functions

func TranslateError

func TranslateError(err error) error

Types

type Handler

type Handler struct {
	grpc.UnimplementedJobServiceServer
	// contains filtered or unexported fields
}

Handler handles incoming requests to the Daemon gRPC server.

func NewHandler

func NewHandler(svc JobService, getter TenantGetter) *Handler

NewHandler returns new Handler.

func (*Handler) Get

func (h *Handler) Get(ctx context.Context, req *grpc.GetRequest) (*grpc.GetResponse, error)

func (*Handler) Ping

func (*Handler) Run

func (h *Handler) Run(ctx context.Context, req *grpc.RunRequest) (*grpc.RunResponse, error)

func (*Handler) Stop

func (h *Handler) Stop(ctx context.Context, req *grpc.StopRequest) (*grpc.StopResponse, error)

func (*Handler) StreamLogs

func (h *Handler) StreamLogs(req *grpc.StreamLogsRequest, gstream grpc.JobService_StreamLogsServer) error

type JobService

JobService provides full functionality to manged Jobs.

type TenantGetter

type TenantGetter interface {
	GetJobTenant(in repo.GetJobTenantInput) (repo.GetJobTenantOutput, error)
}

TenantGetter provides functionality to get Job's tenant information.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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