customroles

package
v2.6.0 Latest Latest
Warning

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

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

Documentation

Index

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) Delete

func (s *CustomRoles) Delete(ctx context.Context, projectID string, roleName string) 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

Jump to

Keyboard shortcuts

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