Documentation
¶
Index ¶
- type BunAppDatastore
- func (datastore *BunAppDatastore) CreateNullApplication(ctx context.Context, nullApplication *models.NullApplication) error
- func (datastore *BunAppDatastore) CreateNullApplicationService(ctx context.Context, nullApplicationSvc *models.NullApplicationService) error
- func (datastore *BunAppDatastore) GetAllAppSvc(ctx context.Context) ([]*models.NullApplicationService, error)
- func (datastore *BunAppDatastore) GetApplicationByID(ctx context.Context, id int64) (*models.NullApplication, error)
- func (datastore *BunAppDatastore) GetApplicationServiceByAppID(ctx context.Context, nullApplicationID int64) ([]*models.NullApplicationService, error)
- func (datastore *BunAppDatastore) GetApplicationsByOrgID(ctx context.Context, orgId int64) ([]*models.NullApplication, error)
- type BunMemberDatastore
- func (bmd *BunMemberDatastore) CreateOrUpdateUser(ctx context.Context, user *models.User) error
- func (bmd *BunMemberDatastore) CreateOrg(ctx context.Context, org *models.Org) error
- func (bmd *BunMemberDatastore) CreateResourceGroup(ctx context.Context, resourceGroup *models.ResourceGroup) error
- func (bmd *BunMemberDatastore) GetOrgByID(ctx context.Context, id int64) (*models.Org, error)
- func (bmd *BunMemberDatastore) GetOrgByOwnerId(ctx context.Context, ownerId string) ([]*models.Org, error)
- func (bmd *BunMemberDatastore) GetResourceGroupByID(ctx context.Context, id int64) (*models.ResourceGroup, error)
- func (bmd *BunMemberDatastore) GetResourceGroupByOrgID(ctx context.Context, orgID *int64) (resGroups []*models.ResourceGroup, err error)
- func (bmd *BunMemberDatastore) GetUserByEmail(ctx context.Context, email string) (*models.User, error)
- func (bmd *BunMemberDatastore) GetUserByID(ctx context.Context, id string) (*models.User, error)
- func (bmd *BunMemberDatastore) UpdateOrg(ctx context.Context, org *models.Org) error
- func (bmd *BunMemberDatastore) UpdateResourceGroup(ctx context.Context, resourceGroup *models.ResourceGroup) error
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BunAppDatastore ¶
type BunAppDatastore struct {
// contains filtered or unexported fields
}
func NewBunAppDatastore ¶
func NewBunAppDatastore(db *bun.DB) *BunAppDatastore
func (*BunAppDatastore) CreateNullApplication ¶
func (datastore *BunAppDatastore) CreateNullApplication(ctx context.Context, nullApplication *models.NullApplication) error
func (*BunAppDatastore) CreateNullApplicationService ¶
func (datastore *BunAppDatastore) CreateNullApplicationService(ctx context.Context, nullApplicationSvc *models.NullApplicationService) error
func (*BunAppDatastore) GetAllAppSvc ¶
func (datastore *BunAppDatastore) GetAllAppSvc(ctx context.Context) ([]*models.NullApplicationService, error)
func (*BunAppDatastore) GetApplicationByID ¶
func (datastore *BunAppDatastore) GetApplicationByID(ctx context.Context, id int64) (*models.NullApplication, error)
func (*BunAppDatastore) GetApplicationServiceByAppID ¶
func (datastore *BunAppDatastore) GetApplicationServiceByAppID(ctx context.Context, nullApplicationID int64) ([]*models.NullApplicationService, error)
func (*BunAppDatastore) GetApplicationsByOrgID ¶
func (datastore *BunAppDatastore) GetApplicationsByOrgID(ctx context.Context, orgId int64) ([]*models.NullApplication, error)
type BunMemberDatastore ¶
func NewBunMemberDatastore ¶
func NewBunMemberDatastore(db *bun.DB) *BunMemberDatastore
func (*BunMemberDatastore) CreateOrUpdateUser ¶
func (*BunMemberDatastore) CreateResourceGroup ¶
func (bmd *BunMemberDatastore) CreateResourceGroup(ctx context.Context, resourceGroup *models.ResourceGroup) error
func (*BunMemberDatastore) GetOrgByID ¶
func (*BunMemberDatastore) GetOrgByOwnerId ¶
func (*BunMemberDatastore) GetResourceGroupByID ¶
func (bmd *BunMemberDatastore) GetResourceGroupByID(ctx context.Context, id int64) (*models.ResourceGroup, error)
func (*BunMemberDatastore) GetResourceGroupByOrgID ¶
func (bmd *BunMemberDatastore) GetResourceGroupByOrgID(ctx context.Context, orgID *int64) (resGroups []*models.ResourceGroup, err error)
func (*BunMemberDatastore) GetUserByEmail ¶
func (*BunMemberDatastore) GetUserByID ¶
func (*BunMemberDatastore) UpdateResourceGroup ¶
func (bmd *BunMemberDatastore) UpdateResourceGroup(ctx context.Context, resourceGroup *models.ResourceGroup) error
Click to show internal directories.
Click to hide internal directories.