Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthZProvider authz.AuthZProviderType[JobAuthZ]
AuthZProvider is the authz registry for Notebooks, Shells, and Commands.
Functions ¶
This section is empty.
Types ¶
type JobAuthZ ¶
type JobAuthZ interface { // FilterJobs returns a list of jobs that the user is authorized to view. FilterJobs( ctx context.Context, curUser model.User, jobs []*jobv1.Job, ) ([]*jobv1.Job, error) // CanControlJobQueue returns an error if the user is not authorized to manipulate the // job queue. CanControlJobQueue( ctx context.Context, curUser *model.User, ) (permErr error, err error) }
JobAuthZ describes authz methods for jobs.
type JobAuthZBasic ¶
type JobAuthZBasic struct{}
JobAuthZBasic is basic OSS controls.
func (*JobAuthZBasic) CanControlJobQueue ¶
func (a *JobAuthZBasic) CanControlJobQueue( ctx context.Context, curUser *model.User, ) (permErr error, err error)
CanControlJobQueue returns an error if the user is not authorized to manipulate the job queue.
type JobAuthZPermissive ¶
type JobAuthZPermissive struct{}
JobAuthZPermissive is permissive OSS controls.
func (*JobAuthZPermissive) CanControlJobQueue ¶
func (a *JobAuthZPermissive) CanControlJobQueue( ctx context.Context, curUser *model.User, ) (permErr error, err error)
CanControlJobQueue returns an error if the user is not authorized to manipulate the job queue.
type JobAuthZRBAC ¶
type JobAuthZRBAC struct{}
JobAuthZRBAC is basic OSS controls.
func (*JobAuthZRBAC) CanControlJobQueue ¶
func (a *JobAuthZRBAC) CanControlJobQueue( ctx context.Context, curUser *model.User, ) (permErr error, err error)
CanControlJobQueue returns an error if the user is not authorized to manipulate the job queue.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.