Documentation ¶
Index ¶
- func CheckJobPermission(ctx context.Context, resourceId string) (*models.Job, error)
- func CheckJobsPermission(ctx context.Context, resourceIds []string) ([]*models.Job, error)
- func Serve(cfg *config.Config)
- type Controller
- func (c *Controller) ExtractJobs(ctx context.Context)
- func (c *Controller) GetJobLength() int32
- func (c *Controller) HandleJob(ctx context.Context, jobId string, cb func()) error
- func (c *Controller) HandleJobs(ctx context.Context)
- func (c *Controller) IsRunningExceed() bool
- func (c *Controller) Serve(ctx context.Context)
- func (c *Controller) UpdateWorkingJobs(ctx context.Context) error
- type Processor
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckJobPermission ¶ added in v0.2.3
func CheckJobsPermission ¶ added in v0.2.3
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(hostname string) *Controller
func (*Controller) ExtractJobs ¶
func (c *Controller) ExtractJobs(ctx context.Context)
func (*Controller) GetJobLength ¶
func (c *Controller) GetJobLength() int32
func (*Controller) HandleJob ¶
func (c *Controller) HandleJob(ctx context.Context, jobId string, cb func()) error
func (*Controller) HandleJobs ¶
func (c *Controller) HandleJobs(ctx context.Context)
func (*Controller) IsRunningExceed ¶
func (c *Controller) IsRunningExceed() bool
func (*Controller) Serve ¶
func (c *Controller) Serve(ctx context.Context)
func (*Controller) UpdateWorkingJobs ¶ added in v0.2.3
func (c *Controller) UpdateWorkingJobs(ctx context.Context) error
type Processor ¶
func NewProcessor ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CreateJob ¶
func (p *Server) CreateJob(ctx context.Context, req *pb.CreateJobRequest) (*pb.CreateJobResponse, error)
func (*Server) DescribeJobs ¶
func (p *Server) DescribeJobs(ctx context.Context, req *pb.DescribeJobsRequest) (*pb.DescribeJobsResponse, error)
Click to show internal directories.
Click to hide internal directories.