Help us shape the future of Go! Take the 2026 Go Developer Survey

roles

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package roles contains the logic for managing user roles within a Minder project

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleService

type RoleService interface {
	// CreateRoleAssignment assigns a user a role on a project
	CreateRoleAssignment(ctx context.Context, qtx db.Querier, authzClient authz.Client,
		targetProject uuid.UUID, subject auth.Identity, authzRole authz.Role) (*pb.RoleAssignment, error)

	// UpdateRoleAssignment updates the users role on a project
	UpdateRoleAssignment(ctx context.Context, qtx db.Querier, authzClient authz.Client, idClient auth.Resolver,
		targetProject uuid.UUID, subject string, authzRole authz.Role) (*pb.RoleAssignment, error)

	// RemoveRoleAssignment removes the role assignment for the user on a project
	RemoveRoleAssignment(ctx context.Context, qtx db.Querier, authzClient authz.Client, idClient auth.Resolver,
		targetProject uuid.UUID, subject string, roleToRemove authz.Role) (*pb.RoleAssignment, error)
}

RoleService encapsulates the methods to manage user role assignments

func NewRoleService

func NewRoleService() RoleService

NewRoleService creates a new instance of RoleService

Directories

Path Synopsis
Package mock_roles is a generated GoMock package.
Package mock_roles is a generated GoMock package.

Jump to

Keyboard shortcuts

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