mongodb

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleBindingColl

type RoleBindingColl struct {
	*mongo.Collection
	// contains filtered or unexported fields
}

func NewRoleBindingColl

func NewRoleBindingColl() *RoleBindingColl

func (*RoleBindingColl) Create

func (c *RoleBindingColl) Create(obj *models.RoleBinding) 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() ([]*models.RoleBinding, error)

type RoleColl

type RoleColl struct {
	*mongo.Collection
	// contains filtered or unexported fields
}

func NewRoleColl

func NewRoleColl() *RoleColl

func (*RoleColl) Create

func (c *RoleColl) Create(obj *models.Role) error

func (*RoleColl) EnsureIndex

func (c *RoleColl) EnsureIndex(ctx context.Context) error

func (*RoleColl) Get

func (c *RoleColl) Get(ns, name string) (*models.Role, bool, error)

func (*RoleColl) GetCollectionName

func (c *RoleColl) GetCollectionName() string

func (*RoleColl) List

func (c *RoleColl) List() ([]*models.Role, error)

Jump to

Keyboard shortcuts

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