Documentation ¶
Index ¶
- type CustomRole
- type CustomRoleService
- type CustomRoles
- func (s *CustomRoles) Create(ctx context.Context, projectID string, role CustomRole) error
- func (s *CustomRoles) Delete(ctx context.Context, projectID string, roleName string) error
- func (s *CustomRoles) Get(ctx context.Context, projectID string, roleName string) (CustomRole, error)
- func (s *CustomRoles) List(ctx context.Context, projectID string) ([]CustomRole, error)
- func (s *CustomRoles) Update(ctx context.Context, projectID string, roleName string, role CustomRole) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomRole ¶
type CustomRole struct {
*akov2.CustomRole
}
func NewCustomRole ¶
func NewCustomRole(role *akov2.CustomRole) CustomRole
type CustomRoleService ¶
type CustomRoleService interface { Get(ctx context.Context, projectID string, roleName string) (CustomRole, error) List(ctx context.Context, projectID string) ([]CustomRole, error) Create(ctx context.Context, projectID string, role CustomRole) error Update(ctx context.Context, projectID string, roleName string, role CustomRole) error Delete(ctx context.Context, projectID string, roleName string) error }
type CustomRoles ¶
type CustomRoles struct {
// contains filtered or unexported fields
}
func NewCustomRoles ¶
func NewCustomRoles(api admin.CustomDatabaseRolesApi) *CustomRoles
func (*CustomRoles) Create ¶
func (s *CustomRoles) Create(ctx context.Context, projectID string, role CustomRole) error
func (*CustomRoles) Get ¶
func (s *CustomRoles) Get(ctx context.Context, projectID string, roleName string) (CustomRole, error)
func (*CustomRoles) List ¶
func (s *CustomRoles) List(ctx context.Context, projectID string) ([]CustomRole, error)
func (*CustomRoles) Update ¶
func (s *CustomRoles) Update(ctx context.Context, projectID string, roleName string, role CustomRole) error
Click to show internal directories.
Click to hide internal directories.