Documentation ¶
Index ¶
- type Auth
- type AuthRepo
- type AuthRepoMock
- type Repositories
- type Secrets
- type SecretsRepo
- func (r *SecretsRepo) Delete(ctx context.Context, token string, id uuid.UUID) error
- func (r *SecretsRepo) Get(ctx context.Context, token string, id uuid.UUID) (*goph.Secret, []byte, error)
- func (r *SecretsRepo) List(ctx context.Context, token string) ([]*goph.Secret, error)
- func (r *SecretsRepo) Push(ctx context.Context, token, name string, kind goph.DataKind, ...) (uuid.UUID, error)
- func (r *SecretsRepo) Update(ctx context.Context, token string, id uuid.UUID, name string, ...) error
- type SecretsRepoMock
- func (m *SecretsRepoMock) Delete(ctx context.Context, token string, id uuid.UUID) error
- func (m *SecretsRepoMock) Get(ctx context.Context, token string, id uuid.UUID) (*goph.Secret, []byte, error)
- func (m *SecretsRepoMock) List(ctx context.Context, token string) ([]*goph.Secret, error)
- func (m *SecretsRepoMock) Push(ctx context.Context, token, name string, kind goph.DataKind, ...) (uuid.UUID, error)
- func (m *SecretsRepoMock) Update(ctx context.Context, token string, id uuid.UUID, name string, ...) error
- type Users
- type UsersRepo
- type UsersRepoMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRepo ¶
type AuthRepo struct {
// contains filtered or unexported fields
}
AuthRepo is facade to operations regarding authentication in Keeper.
func NewAuthRepo ¶
func NewAuthRepo(client goph.AuthClient) *AuthRepo
NewAuthRepo creates and initializes AuthRepo object.
type AuthRepoMock ¶
type Repositories ¶
Repositories is a collection of data repositories.
func New ¶
func New(conn *grpcconn.Connection) *Repositories
New creates and initializes collection of data repositories.
type Secrets ¶
type Secrets interface { Push( ctx context.Context, token, name string, kind goph.DataKind, description, payload []byte, ) (uuid.UUID, error) List(ctx context.Context, token string) ([]*goph.Secret, error) Get(ctx context.Context, token string, id uuid.UUID) (*goph.Secret, []byte, error) Update( ctx context.Context, token string, id uuid.UUID, name string, description []byte, noDescription bool, data []byte, ) error Delete(ctx context.Context, token string, id uuid.UUID) error }
type SecretsRepo ¶
type SecretsRepo struct {
// contains filtered or unexported fields
}
SecretsRepo is facade to secrets stored in Keeper.
func NewSecretsRepo ¶
func NewSecretsRepo(client goph.SecretsClient) *SecretsRepo
NewSecretsRepo creates and initializes SecretsRepo object.
func (*SecretsRepo) Get ¶
func (r *SecretsRepo) Get( ctx context.Context, token string, id uuid.UUID, ) (*goph.Secret, []byte, error)
Get downloads full user's secret.
type SecretsRepoMock ¶
type UsersRepo ¶
type UsersRepo struct {
// contains filtered or unexported fields
}
UsersRepo is facade to operations regarding Keeper.
func NewUsersRepo ¶
func NewUsersRepo(client goph.UsersClient) *UsersRepo
NewUsersRepo creates and initializes UsersRepo object.
Click to show internal directories.
Click to hide internal directories.