Documentation ¶
Index ¶
- Variables
- type Accounts
- type DB
- func (db *DB) Close() error
- func (db *DB) CreateAccount(ctx context.Context, auth *pb.Auth) error
- func (db *DB) CreateSecrets(ctx context.Context, auth *pb.Auth, secrets []*pb.Secret) error
- func (db *DB) DeleteSecrets(ctx context.Context, auth *pb.Auth, secrets []*pb.Secret) error
- func (db *DB) GetByName(ctx context.Context, username string) (*pb.Auth, error)
- func (db *DB) ListSecrets(ctx context.Context, auth *pb.Auth) ([]*pb.Secret, error)
- func (db *DB) UpdateSecrets(ctx context.Context, auth *pb.Auth, secrets []*pb.Secret) error
- type Secrets
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAccountExists = errors.New("user account already exists") ErrAccountNotFound = errors.New("user account not found") )
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CreateSecrets ¶
func (*DB) DeleteSecrets ¶
func (*DB) ListSecrets ¶
type Secrets ¶
type Secrets interface { CreateSecrets(ctx context.Context, auth *pb.Auth, secrets []*pb.Secret) error DeleteSecrets(ctx context.Context, auth *pb.Auth, secrets []*pb.Secret) error UpdateSecrets(ctx context.Context, auth *pb.Auth, secrets []*pb.Secret) error ListSecrets(ctx context.Context, auth *pb.Auth) ([]*pb.Secret, error) }
Click to show internal directories.
Click to hide internal directories.