package store import ( "context" "errors" bootnodezap "github.com/hanzoai/bootnode/zap/gen" ) // ProjectStore persists per-org Project rows. type ProjectStore struct { base BaseClient } // NewProjectStore builds the per-tenant project store. func NewProjectStore(b BaseClient) *ProjectStore { return &ProjectStore{base: b} } // Create inserts a Project. // // TODO(bootnode-port): port from bootnode/api/auth_keys.py:create_project func (s *ProjectStore) Create(ctx context.Context, p bootnodezap.Project) error { _ = ctx _ = p return errors.New("store.ProjectStore.Create: not implemented") } // Get reads one project by id. // // TODO(bootnode-port): port from bootnode/api/auth_keys.py:get_project func (s *ProjectStore) Get(ctx context.Context, orgID, id string) (bootnodezap.Project, error) { _ = ctx _ = orgID _ = id return bootnodezap.Project{}, ErrNotFound } // List returns every project for an org. // // TODO(bootnode-port): port from bootnode/api/auth_keys.py:list_projects func (s *ProjectStore) List(ctx context.Context, orgID string) ([]bootnodezap.Project, error) { _ = ctx _ = orgID return nil, errors.New("store.ProjectStore.List: not implemented") }