Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func DiffSpecs(a, b *User) string
 - func EqualSpecs(spec, atlas *User) bool
 - type AtlasUsers
 - func (dus *AtlasUsers) Create(ctx context.Context, au *User) error
 - func (dus *AtlasUsers) Delete(ctx context.Context, db, projectID, username string) error
 - func (dus *AtlasUsers) Get(ctx context.Context, db, projectID, username string) (*User, error)
 - func (dus *AtlasUsers) Update(ctx context.Context, au *User) error
 
- type AtlasUsersService
 - type User
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var ( // ErrorNotFound is returned when an database user was not found ErrorNotFound = errors.New("database user not found") )
Functions ¶
func EqualSpecs ¶
EqualSpecs returns true if the given users have the same specs
Types ¶
type AtlasUsers ¶
type AtlasUsers struct {
	// contains filtered or unexported fields
}
    func NewAtlasUsers ¶
func NewAtlasUsers(api admin.DatabaseUsersApi) *AtlasUsers
func (*AtlasUsers) Delete ¶
func (dus *AtlasUsers) Delete(ctx context.Context, db, projectID, username string) error
type AtlasUsersService ¶
 Click to show internal directories. 
   Click to hide internal directories.