admincouchsvc

package
v1.0.21 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(repo repository.Repo) *Service

func (*Service) ChangeUserPassword

func (s *Service) ChangeUserPassword(ctx context.Context, instanceId, username, newPassword string) error

func (*Service) DeleteUser

func (s *Service) DeleteUser(ctx context.Context, instanceId, username string) error

func (*Service) GetUserDatabaseAccess

func (s *Service) GetUserDatabaseAccess(ctx context.Context, instanceId, username string) ([]string, error)

func (*Service) GrantDatabaseAccess

func (s *Service) GrantDatabaseAccess(ctx context.Context, instanceId, dbName, username string) error

func (*Service) ListDatabases

func (s *Service) ListDatabases(ctx context.Context, instanceId string) ([]string, error)

func (*Service) ListUsers

func (s *Service) ListUsers(ctx context.Context, instanceId string) ([]couchdb.UserListEntry, error)

func (*Service) RevokeDatabaseAccess

func (s *Service) RevokeDatabaseAccess(ctx context.Context, instanceId, dbName, username string) error

Jump to

Keyboard shortcuts

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