projectassignment

package
v0.0.0-...-d288915 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const UnassignedProjectID = "(unassigned)"

Variables

This section is empty.

Functions

func AuthorizeProjectAssignment

func AuthorizeProjectAssignment(ctx context.Context, authorizer engine.Authorizer,
	subjects, oldProjects, newProjects []string, isUpdateRequest bool) error

func NewInvalidCreateRequestError

func NewInvalidCreateRequestError() error

func NewProjectsMissingError

func NewProjectsMissingError(projectsMissing []string) error

func NewProjectsUnauthorizedForAssignmentError

func NewProjectsUnauthorizedForAssignmentError(projectsUnauthorized, subjectsUnauthorized []string) error

Types

type InvalidCreateRequest

type InvalidCreateRequest struct{}

InvalidCreateRequest occurs when a create request contains original projects when it should only contain new projects.

func (*InvalidCreateRequest) Error

func (e *InvalidCreateRequest) Error() string

type ProjectsMissingError

type ProjectsMissingError struct {
	// contains filtered or unexported fields
}

ProjectsMissingError occurs when some of the projects in the project diff did not exist.

func (*ProjectsMissingError) Error

func (e *ProjectsMissingError) Error() string

type ProjectsUnauthorizedForAssignmentErr

type ProjectsUnauthorizedForAssignmentErr struct {
	// contains filtered or unexported fields
}

ProjectsUnauthorizedForAssignmentErr occurs when some of the projects in the project diff were not authorized for a specific set of subjects.

func (*ProjectsUnauthorizedForAssignmentErr) Error

Jump to

Keyboard shortcuts

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