Documentation ¶
Index ¶
- type Store
- func (db *Store) BatchGet(ctx context.Context, ids []apiproject.ProjectID) (map[apiproject.ProjectID]*apiproject.Project, error)
- func (db *Store) Create(ctx context.Context, aname apiaccount.AccountName, id apiproject.ProjectID, ...) (apiproject.ProjectID, error)
- func (db *Store) Get(ctx context.Context, id apiproject.ProjectID) (*apiproject.Project, error)
- func (db *Store) Setup(ctx context.Context) error
- func (db *Store) Teardown(ctx context.Context) error
- func (db *Store) Update(ctx context.Context, id apiproject.ProjectID, d *apiproject.ProjectSettings) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct { DB *gorm.DB AccountsStore accountsstore.Store NoAccounts bool }
func (*Store) BatchGet ¶
func (db *Store) BatchGet(ctx context.Context, ids []apiproject.ProjectID) (map[apiproject.ProjectID]*apiproject.Project, error)
func (*Store) Create ¶
func (db *Store) Create( ctx context.Context, aname apiaccount.AccountName, id apiproject.ProjectID, d *apiproject.ProjectSettings, ) (apiproject.ProjectID, error)
func (*Store) Get ¶
func (db *Store) Get(ctx context.Context, id apiproject.ProjectID) (*apiproject.Project, error)
func (*Store) Update ¶
func (db *Store) Update( ctx context.Context, id apiproject.ProjectID, d *apiproject.ProjectSettings, ) error
Click to show internal directories.
Click to hide internal directories.