Documentation
¶
Index ¶
- type RoleApiService
- func (s *RoleApiService) AddScopeToRole(ctx context.Context, roleIDStr string, scopes []string) (openapi.ImplResponse, error)
- func (s *RoleApiService) CreateRole(ctx context.Context, newRole openapi.Role) (openapi.ImplResponse, error)
- func (s *RoleApiService) DeleteRole(ctx context.Context, roleIDStr string) (openapi.ImplResponse, error)
- func (s *RoleApiService) GetRole(ctx context.Context, roleIDStr string) (openapi.ImplResponse, error)
- func (s *RoleApiService) ListRoles(ctx context.Context, limit int32, offset int32) (openapi.ImplResponse, error)
- func (s *RoleApiService) ListScopesForRole(ctx context.Context, roleIDStr string, limit int32, offset int32) (openapi.ImplResponse, error)
- func (s *RoleApiService) RemoveScopeFromRole(ctx context.Context, roleIDStr string, scopeIDStr string) (openapi.ImplResponse, error)
- func (s *RoleApiService) UpdateRole(ctx context.Context, roleIDStr string, newRole openapi.Role) (openapi.ImplResponse, error)
- type RoleMock
- func (s *RoleMock) CreateRole(_ context.Context, _ openapi.Role) (openapi.ImplResponse, error)
- func (s *RoleMock) DeleteRole(_ context.Context, _ string, _ openapi.Role) (openapi.ImplResponse, error)
- func (s *RoleMock) GetRole(_ context.Context, _ string) (openapi.ImplResponse, error)
- func (s *RoleMock) ListRoles(_ context.Context, _ int32, _ int32) (openapi.ImplResponse, error)
- func (s *RoleMock) UpdateRole(_ context.Context, _ string, _ openapi.Role) (openapi.ImplResponse, error)
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 (*RoleMock) DeleteRole ¶
Click to show internal directories.
Click to hide internal directories.