Documentation
¶
Index ¶
- type Repo
- func (r *Repo) CreateUserSecret(ctx context.Context, userSecret *structs.UserSecret) error
- func (r *Repo) DeleteUserSecret(ctx context.Context, token string) error
- func (r *Repo) GetLoginBySecret(ctx context.Context, secret string) (string, error)
- func (r *Repo) GetSecretByLogin(ctx context.Context, login string) (*structs.UserSecret, error)
- func (r *Repo) GetSecretBySecret(ctx context.Context, token string) (*structs.UserSecret, error)
- func (r *Repo) UpdateUserSecret(ctx context.Context, userSecret *structs.UserSecret) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) CreateUserSecret ¶
CreateUserSecret create user secret Returns repository.ErrDuplicateKey or err
func (*Repo) DeleteUserSecret ¶
DeleteUserSecret delete user secret Returns repository.ErrObjectNotFound or err
func (*Repo) GetLoginBySecret ¶
GetLoginBySecret return login by token. Returns repository.ErrObjectNotFound or err
func (*Repo) GetSecretByLogin ¶
GetSecretByLogin get secret Returns repository.ErrObjectNotFound or err
func (*Repo) GetSecretBySecret ¶
GetSecretBySecret get secret Returns repository.ErrObjectNotFound or err
func (*Repo) UpdateUserSecret ¶
UpdateUserSecret update secret Returns repository.ErrDuplicateKey or err
Click to show internal directories.
Click to hide internal directories.