luci: Index | Files

package apiservers

import ""

Package apiservers implements gRPC APIs exposed by Scheduler service.


Package Files

admin.go doc.go scheduler.go

type AdminServer Uses

type AdminServer struct {

    Engine     engine.EngineInternal
    Catalog    catalog.Catalog
    AdminGroup string

AdminServer implements internal.admin.Admin API.

func (*AdminServer) GetDebugJobState Uses

func (s *AdminServer) GetDebugJobState(ctx context.Context, r *schedulerpb.JobRef) (resp *internal.DebugJobState, err error)

GetDebugJobState implements the corresponding RPC method.

type SchedulerServer Uses

type SchedulerServer struct {

    Engine  engine.Engine
    Catalog catalog.Catalog

SchedulerServer implements scheduler.Scheduler API.

func (*SchedulerServer) AbortInvocation Uses

func (s *SchedulerServer) AbortInvocation(ctx context.Context, in *scheduler.InvocationRef) (*empty.Empty, error)

func (*SchedulerServer) AbortJob Uses

func (s *SchedulerServer) AbortJob(ctx context.Context, in *scheduler.JobRef) (*empty.Empty, error)

func (*SchedulerServer) EmitTriggers Uses

func (s *SchedulerServer) EmitTriggers(ctx context.Context, in *scheduler.EmitTriggersRequest) (*empty.Empty, error)

func (*SchedulerServer) GetInvocation Uses

func (s *SchedulerServer) GetInvocation(ctx context.Context, in *scheduler.InvocationRef) (*scheduler.Invocation, error)

func (*SchedulerServer) GetInvocations Uses

func (s *SchedulerServer) GetInvocations(ctx context.Context, in *scheduler.InvocationsRequest) (*scheduler.InvocationsReply, error)

func (*SchedulerServer) GetJobs Uses

func (s *SchedulerServer) GetJobs(ctx context.Context, in *scheduler.JobsRequest) (*scheduler.JobsReply, error)

GetJobs fetches all jobs satisfying JobsRequest and visibility ACLs.

func (*SchedulerServer) PauseJob Uses

func (s *SchedulerServer) PauseJob(ctx context.Context, in *scheduler.JobRef) (*empty.Empty, error)

func (*SchedulerServer) ResumeJob Uses

func (s *SchedulerServer) ResumeJob(ctx context.Context, in *scheduler.JobRef) (*empty.Empty, error)

Package apiservers imports 19 packages (graph) and is imported by 2 packages. Updated 2021-01-21. Refresh now. Tools for package owners.