Documentation ¶
Index ¶
- type ListOptions
- type PolicyColl
- type RoleBindingColl
- func (c *RoleBindingColl) BulkCreate(objs []*models.RoleBinding) error
- func (c *RoleBindingColl) Create(obj *models.RoleBinding) error
- func (c *RoleBindingColl) Delete(name string, projectName string) error
- func (c *RoleBindingColl) DeleteByRole(roleName string, projectName string) error
- func (c *RoleBindingColl) DeleteByRoles(roleNames []string, projectName string) error
- func (c *RoleBindingColl) DeleteMany(names []string, projectName string, userID string) error
- func (c *RoleBindingColl) EnsureIndex(ctx context.Context) error
- func (c *RoleBindingColl) GetCollectionName() string
- func (c *RoleBindingColl) List(opts ...*ListOptions) ([]*models.RoleBinding, error)
- func (c *RoleBindingColl) ListBy(projectName, uid string) ([]*models.RoleBinding, error)
- func (c *RoleBindingColl) UpdateOrCreate(obj *models.RoleBinding) error
- type RoleColl
- func (c *RoleColl) Create(obj *models.Role) error
- func (c *RoleColl) Delete(name string, projectName string) error
- func (c *RoleColl) DeleteMany(names []string, projectName string) error
- func (c *RoleColl) EnsureIndex(ctx context.Context) error
- func (c *RoleColl) Get(ns, name string) (*models.Role, bool, error)
- func (c *RoleColl) GetCollectionName() string
- func (c *RoleColl) List() ([]*models.Role, error)
- func (c *RoleColl) ListBy(projectName string) ([]*models.Role, error)
- func (c *RoleColl) ListBySpaceAndName(projectName string, name string) ([]*models.Role, error)
- func (c *RoleColl) UpdateOrCreate(obj *models.Role) error
- func (c *RoleColl) UpdateRole(obj *models.Role) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListOptions ¶ added in v1.7.0
type ListOptions struct {
RoleName, RoleNamespace string
}
type PolicyColl ¶ added in v1.7.0
type PolicyColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewPolicyColl ¶ added in v1.7.0
func NewPolicyColl() *PolicyColl
func (*PolicyColl) EnsureIndex ¶ added in v1.7.0
func (c *PolicyColl) EnsureIndex(ctx context.Context) error
func (*PolicyColl) GetCollectionName ¶ added in v1.7.0
func (c *PolicyColl) GetCollectionName() string
func (*PolicyColl) UpdateOrCreate ¶ added in v1.7.0
func (c *PolicyColl) UpdateOrCreate(obj *models.Policy) error
type RoleBindingColl ¶
type RoleBindingColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewRoleBindingColl ¶
func NewRoleBindingColl() *RoleBindingColl
func (*RoleBindingColl) BulkCreate ¶ added in v1.7.0
func (c *RoleBindingColl) BulkCreate(objs []*models.RoleBinding) error
func (*RoleBindingColl) Create ¶
func (c *RoleBindingColl) Create(obj *models.RoleBinding) error
func (*RoleBindingColl) Delete ¶ added in v1.7.0
func (c *RoleBindingColl) Delete(name string, projectName string) error
func (*RoleBindingColl) DeleteByRole ¶ added in v1.7.0
func (c *RoleBindingColl) DeleteByRole(roleName string, projectName string) error
func (*RoleBindingColl) DeleteByRoles ¶ added in v1.7.0
func (c *RoleBindingColl) DeleteByRoles(roleNames []string, projectName string) error
func (*RoleBindingColl) DeleteMany ¶ added in v1.7.0
func (c *RoleBindingColl) DeleteMany(names []string, projectName string, userID string) error
func (*RoleBindingColl) EnsureIndex ¶
func (c *RoleBindingColl) EnsureIndex(ctx context.Context) error
func (*RoleBindingColl) GetCollectionName ¶
func (c *RoleBindingColl) GetCollectionName() string
func (*RoleBindingColl) List ¶
func (c *RoleBindingColl) List(opts ...*ListOptions) ([]*models.RoleBinding, error)
func (*RoleBindingColl) ListBy ¶ added in v1.7.0
func (c *RoleBindingColl) ListBy(projectName, uid string) ([]*models.RoleBinding, error)
func (*RoleBindingColl) UpdateOrCreate ¶ added in v1.7.0
func (c *RoleBindingColl) UpdateOrCreate(obj *models.RoleBinding) error
type RoleColl ¶
type RoleColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewRoleColl ¶
func NewRoleColl() *RoleColl
func (*RoleColl) DeleteMany ¶ added in v1.7.0
func (*RoleColl) GetCollectionName ¶
func (*RoleColl) ListBySpaceAndName ¶ added in v1.8.0
func (*RoleColl) UpdateOrCreate ¶ added in v1.7.0
Click to show internal directories.
Click to hide internal directories.