Documentation
¶
Overview ¶
Package projectpg stores Projects and their API keys in PostgreSQL. It implements projects.Storage and projects.Reader.
Index ¶
- type Store
- func (s *Store) APIKeyDigestExists(ctx context.Context, digest [sha256.Size]byte) (bool, error)
- func (s *Store) ArchiveProject(ctx context.Context, id string) (projects.Project, error)
- func (s *Store) CreateProject(ctx context.Context, project projects.NewProject) (projects.Project, error)
- func (s *Store) GetProject(ctx context.Context, id string) (projects.Binding, error)
- func (s *Store) ListAPIKeys(ctx context.Context, projectID string, query projects.ListQuery) (projects.KeyPage, error)
- func (s *Store) ListProjects(ctx context.Context, query projects.ListQuery) (projects.Page, error)
- func (s *Store) RenameProject(ctx context.Context, id, name string) (projects.Project, error)
- func (s *Store) ResolveAPIKey(ctx context.Context, digest [sha256.Size]byte) (projects.KeyBinding, error)
- func (s *Store) RevokeAPIKey(ctx context.Context, projectID, keyID string) error
- func (s *Store) WithKeyIssuance(ctx context.Context, projectID string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) APIKeyDigestExists ¶
func (*Store) ArchiveProject ¶
func (*Store) CreateProject ¶
func (*Store) GetProject ¶
func (*Store) ListAPIKeys ¶
func (*Store) ListProjects ¶
func (*Store) RenameProject ¶
func (*Store) ResolveAPIKey ¶
func (*Store) RevokeAPIKey ¶
func (*Store) WithKeyIssuance ¶
Click to show internal directories.
Click to hide internal directories.