role

package
v0.0.0-...-3f4516a Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleApiService

type RoleApiService struct {
	DB                 dbpgx.Querier
	DBConn             dbpgx.DBTX
	SnowflakeGenerator snowflake.IDGenerator
}

func (*RoleApiService) AddScopeToRole

func (s *RoleApiService) AddScopeToRole(ctx context.Context, roleIDStr string, scopes []string) (openapi.ImplResponse, error)

func (*RoleApiService) CreateRole

func (s *RoleApiService) CreateRole(ctx context.Context, newRole openapi.Role) (openapi.ImplResponse, error)

func (*RoleApiService) DeleteRole

func (s *RoleApiService) DeleteRole(ctx context.Context, roleIDStr string) (openapi.ImplResponse, error)

func (*RoleApiService) GetRole

func (s *RoleApiService) GetRole(ctx context.Context, roleIDStr string) (openapi.ImplResponse, error)

func (*RoleApiService) ListRoles

func (s *RoleApiService) ListRoles(ctx context.Context, limit int32, offset int32) (openapi.ImplResponse, error)

func (*RoleApiService) ListScopesForRole

func (s *RoleApiService) ListScopesForRole(ctx context.Context, roleIDStr string, limit int32, offset int32) (openapi.ImplResponse, error)

func (*RoleApiService) RemoveScopeFromRole

func (s *RoleApiService) RemoveScopeFromRole(ctx context.Context, roleIDStr string, scopeIDStr string) (openapi.ImplResponse, error)

func (*RoleApiService) UpdateRole

func (s *RoleApiService) UpdateRole(ctx context.Context, roleIDStr string, newRole openapi.Role) (openapi.ImplResponse, error)

type RoleMock

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

s *RoleMock openapi.RoleApiServicer

func (*RoleMock) CreateRole

func (s *RoleMock) CreateRole(_ context.Context, _ openapi.Role) (openapi.ImplResponse, error)

func (*RoleMock) DeleteRole

func (s *RoleMock) DeleteRole(_ context.Context, _ string, _ openapi.Role) (openapi.ImplResponse, error)

func (*RoleMock) GetRole

func (s *RoleMock) GetRole(_ context.Context, _ string) (openapi.ImplResponse, error)

func (*RoleMock) ListRoles

func (s *RoleMock) ListRoles(_ context.Context, _ int32, _ int32) (openapi.ImplResponse, error)

func (*RoleMock) UpdateRole

func (s *RoleMock) UpdateRole(_ context.Context, _ string, _ openapi.Role) (openapi.ImplResponse, error)

Jump to

Keyboard shortcuts

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