Documentation ¶
Index ¶
- type AccessGrant
- type Account
- type AccountLimitJournal
- type AccountRequest
- type Config
- type Environment
- type EnvironmentLimitJournal
- type Frontend
- type InviteToken
- type LimitJournalAction
- type Model
- type PasswordResetRequest
- type PermissionMode
- type Share
- type ShareLimitJournal
- type Store
- func (str *Store) Begin() (*sqlx.Tx, error)
- func (str *Store) CheckAccessGrantForShareAndAccount(shrId, acctId int, tx *sqlx.Tx) (int, error)
- func (str *Store) Close() error
- func (str *Store) CreateAccessGrant(shareId, accountId int, tx *sqlx.Tx) (int, error)
- func (str *Store) CreateAccount(a *Account, tx *sqlx.Tx) (int, error)
- func (str *Store) CreateAccountLimitJournal(j *AccountLimitJournal, trx *sqlx.Tx) (int, error)
- func (str *Store) CreateAccountRequest(ar *AccountRequest, tx *sqlx.Tx) (int, error)
- func (str *Store) CreateEnvironment(accountId int, i *Environment, tx *sqlx.Tx) (int, error)
- func (str *Store) CreateEnvironmentLimitJournal(j *EnvironmentLimitJournal, trx *sqlx.Tx) (int, error)
- func (str *Store) CreateEphemeralEnvironment(i *Environment, tx *sqlx.Tx) (int, error)
- func (str *Store) CreateFrontend(envId int, f *Frontend, tx *sqlx.Tx) (int, error)
- func (str *Store) CreateGlobalFrontend(f *Frontend, tx *sqlx.Tx) (int, error)
- func (str *Store) CreateInviteTokens(inviteTokens []*InviteToken, tx *sqlx.Tx) error
- func (str *Store) CreatePasswordResetRequest(prr *PasswordResetRequest, tx *sqlx.Tx) (int, error)
- func (str *Store) CreateShare(envId int, shr *Share, tx *sqlx.Tx) (int, error)
- func (str *Store) CreateShareLimitJournal(j *ShareLimitJournal, trx *sqlx.Tx) (int, error)
- func (str *Store) DeleteAccessGrantsForShare(shrId int, tx *sqlx.Tx) error
- func (str *Store) DeleteAccessGrantsForShareAndAccount(shrId, acctId int, tx *sqlx.Tx) error
- func (str *Store) DeleteAccountLimitJournalForAccount(acctId int, trx *sqlx.Tx) error
- func (str *Store) DeleteAccountRequest(id int, tx *sqlx.Tx) error
- func (str *Store) DeleteEnvironment(id int, tx *sqlx.Tx) error
- func (str *Store) DeleteEnvironmentLimitJournalForEnvironment(envId int, trx *sqlx.Tx) error
- func (str *Store) DeleteFrontend(id int, tx *sqlx.Tx) error
- func (str *Store) DeleteInviteToken(id int, tx *sqlx.Tx) error
- func (str *Store) DeleteMultipleAccountRequests(ids []int, tx *sqlx.Tx) error
- func (str *Store) DeleteMultiplePasswordResetRequests(ids []int, tx *sqlx.Tx) error
- func (str *Store) DeletePasswordResetRequest(id int, tx *sqlx.Tx) error
- func (str *Store) DeletePasswordResetRequestsByAccountId(accountId int, tx *sqlx.Tx) error
- func (str *Store) DeleteShare(id int, tx *sqlx.Tx) error
- func (str *Store) DeleteShareLimitJournalForShare(shrId int, trx *sqlx.Tx) error
- func (str *Store) FindAccountRequestWithEmail(email string, tx *sqlx.Tx) (*AccountRequest, error)
- func (str *Store) FindAccountRequestWithToken(token string, tx *sqlx.Tx) (*AccountRequest, error)
- func (str *Store) FindAccountWithEmail(email string, tx *sqlx.Tx) (*Account, error)
- func (str *Store) FindAccountWithEmailAndDeleted(email string, tx *sqlx.Tx) (*Account, error)
- func (str *Store) FindAccountWithToken(token string, tx *sqlx.Tx) (*Account, error)
- func (str *Store) FindAllLatestAccountLimitJournal(trx *sqlx.Tx) ([]*AccountLimitJournal, error)
- func (str *Store) FindAllLatestEnvironmentLimitJournal(trx *sqlx.Tx) ([]*EnvironmentLimitJournal, error)
- func (str *Store) FindAllLatestShareLimitJournal(trx *sqlx.Tx) ([]*ShareLimitJournal, error)
- func (str *Store) FindAllShares(tx *sqlx.Tx) ([]*Share, error)
- func (str *Store) FindEnvironmentForAccount(envZId string, accountId int, tx *sqlx.Tx) (*Environment, error)
- func (str *Store) FindEnvironmentsForAccount(accountId int, tx *sqlx.Tx) ([]*Environment, error)
- func (str *Store) FindExpiredAccountRequests(before time.Time, limit int, tx *sqlx.Tx) ([]*AccountRequest, error)
- func (str *Store) FindExpiredPasswordResetRequests(before time.Time, limit int, tx *sqlx.Tx) ([]*PasswordResetRequest, error)
- func (str *Store) FindFrontendPubliclyNamed(publicName string, tx *sqlx.Tx) (*Frontend, error)
- func (str *Store) FindFrontendWithToken(token string, tx *sqlx.Tx) (*Frontend, error)
- func (str *Store) FindFrontendWithZId(zId string, tx *sqlx.Tx) (*Frontend, error)
- func (str *Store) FindFrontendsForEnvironment(envId int, tx *sqlx.Tx) ([]*Frontend, error)
- func (str *Store) FindFrontendsForPrivateShare(shrId int, tx *sqlx.Tx) ([]*Frontend, error)
- func (str *Store) FindInviteTokenByToken(token string, tx *sqlx.Tx) (*InviteToken, error)
- func (str *Store) FindLatestAccountLimitJournal(acctId int, trx *sqlx.Tx) (*AccountLimitJournal, error)
- func (str *Store) FindLatestEnvironmentLimitJournal(envId int, trx *sqlx.Tx) (*EnvironmentLimitJournal, error)
- func (str *Store) FindLatestShareLimitJournal(shrId int, trx *sqlx.Tx) (*ShareLimitJournal, error)
- func (str *Store) FindPasswordResetRequestWithToken(token string, tx *sqlx.Tx) (*PasswordResetRequest, error)
- func (str *Store) FindPublicFrontends(tx *sqlx.Tx) ([]*Frontend, error)
- func (str *Store) FindSelectedLatestEnvironmentLimitJournal(envIds []int, trx *sqlx.Tx) ([]*EnvironmentLimitJournal, error)
- func (str *Store) FindSelectedLatestShareLimitjournal(shrIds []int, trx *sqlx.Tx) ([]*ShareLimitJournal, error)
- func (str *Store) FindShareWithToken(shrToken string, tx *sqlx.Tx) (*Share, error)
- func (str *Store) FindShareWithZIdAndDeleted(zId string, tx *sqlx.Tx) (*Share, error)
- func (str *Store) FindSharesForEnvironment(envId int, tx *sqlx.Tx) ([]*Share, error)
- func (str *Store) GetAccount(id int, tx *sqlx.Tx) (*Account, error)
- func (str *Store) GetAccountRequest(id int, tx *sqlx.Tx) (*AccountRequest, error)
- func (str *Store) GetEnvironment(id int, tx *sqlx.Tx) (*Environment, error)
- func (str *Store) GetFrontend(id int, tx *sqlx.Tx) (*Frontend, error)
- func (str *Store) GetShare(id int, tx *sqlx.Tx) (*Share, error)
- func (str *Store) IsAccountLimitJournalEmpty(acctId int, trx *sqlx.Tx) (bool, error)
- func (str *Store) IsEnvironmentLimitJournalEmpty(envId int, trx *sqlx.Tx) (bool, error)
- func (str *Store) IsShareLimitJournalEmpty(shrId int, trx *sqlx.Tx) (bool, error)
- func (str *Store) ShareWithTokenExists(shrToken string, tx *sqlx.Tx) (bool, error)
- func (str *Store) UpdateAccount(a *Account, tx *sqlx.Tx) (int, error)
- func (str *Store) UpdateFrontend(fe *Frontend, tx *sqlx.Tx) error
- func (str *Store) UpdateShare(shr *Share, tx *sqlx.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessGrant ¶ added in v0.4.26
type AccountLimitJournal ¶ added in v0.4.0
type AccountLimitJournal struct { Model AccountId int RxBytes int64 TxBytes int64 Action LimitJournalAction }
type AccountRequest ¶
type Environment ¶
type EnvironmentLimitJournal ¶ added in v0.4.0
type EnvironmentLimitJournal struct { Model EnvironmentId int RxBytes int64 TxBytes int64 Action LimitJournalAction }
type InviteToken ¶
type LimitJournalAction ¶ added in v0.4.0
type LimitJournalAction string
const ( LimitAction LimitJournalAction = "limit" WarningAction LimitJournalAction = "warning" ClearAction LimitJournalAction = "clear" )
type PasswordResetRequest ¶
type PermissionMode ¶ added in v0.4.26
type PermissionMode string
const ( OpenPermissionMode PermissionMode = "open" ClosedPermissionMode PermissionMode = "closed" )
type ShareLimitJournal ¶ added in v0.4.0
type ShareLimitJournal struct {}
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CheckAccessGrantForShareAndAccount ¶ added in v0.4.26
func (*Store) CreateAccessGrant ¶ added in v0.4.26
func (*Store) CreateAccountLimitJournal ¶ added in v0.4.0
func (*Store) CreateAccountRequest ¶
func (*Store) CreateEnvironment ¶
func (*Store) CreateEnvironmentLimitJournal ¶ added in v0.4.0
func (*Store) CreateEphemeralEnvironment ¶
func (*Store) CreateFrontend ¶
func (*Store) CreateGlobalFrontend ¶
func (*Store) CreateInviteTokens ¶
func (str *Store) CreateInviteTokens(inviteTokens []*InviteToken, tx *sqlx.Tx) error
func (*Store) CreatePasswordResetRequest ¶
func (*Store) CreateShare ¶
func (*Store) CreateShareLimitJournal ¶ added in v0.4.0
func (*Store) DeleteAccessGrantsForShare ¶ added in v0.4.26
func (*Store) DeleteAccessGrantsForShareAndAccount ¶ added in v0.4.26
func (*Store) DeleteAccountLimitJournalForAccount ¶ added in v0.4.0
func (*Store) DeleteAccountRequest ¶
func (*Store) DeleteEnvironmentLimitJournalForEnvironment ¶ added in v0.4.0
func (*Store) DeleteMultipleAccountRequests ¶
func (*Store) DeleteMultiplePasswordResetRequests ¶
func (*Store) DeletePasswordResetRequest ¶
func (*Store) DeletePasswordResetRequestsByAccountId ¶ added in v0.4.25
func (*Store) DeleteShareLimitJournalForShare ¶ added in v0.4.0
func (*Store) FindAccountRequestWithEmail ¶
func (*Store) FindAccountRequestWithToken ¶
func (*Store) FindAccountWithEmail ¶
func (*Store) FindAccountWithEmailAndDeleted ¶ added in v0.4.0
func (*Store) FindAccountWithToken ¶
func (*Store) FindAllLatestAccountLimitJournal ¶ added in v0.4.0
func (str *Store) FindAllLatestAccountLimitJournal(trx *sqlx.Tx) ([]*AccountLimitJournal, error)
func (*Store) FindAllLatestEnvironmentLimitJournal ¶ added in v0.4.0
func (str *Store) FindAllLatestEnvironmentLimitJournal(trx *sqlx.Tx) ([]*EnvironmentLimitJournal, error)
func (*Store) FindAllLatestShareLimitJournal ¶ added in v0.4.0
func (str *Store) FindAllLatestShareLimitJournal(trx *sqlx.Tx) ([]*ShareLimitJournal, error)
func (*Store) FindAllShares ¶ added in v0.4.0
func (*Store) FindEnvironmentForAccount ¶
func (*Store) FindEnvironmentsForAccount ¶
func (*Store) FindExpiredAccountRequests ¶
func (*Store) FindExpiredPasswordResetRequests ¶
func (*Store) FindFrontendPubliclyNamed ¶
func (*Store) FindFrontendWithToken ¶
func (*Store) FindFrontendWithZId ¶
func (*Store) FindFrontendsForEnvironment ¶
func (*Store) FindFrontendsForPrivateShare ¶ added in v0.4.0
func (*Store) FindInviteTokenByToken ¶ added in v0.4.0
func (*Store) FindLatestAccountLimitJournal ¶ added in v0.4.0
func (*Store) FindLatestEnvironmentLimitJournal ¶ added in v0.4.0
func (*Store) FindLatestShareLimitJournal ¶ added in v0.4.0
func (*Store) FindPasswordResetRequestWithToken ¶
func (*Store) FindPublicFrontends ¶
func (*Store) FindSelectedLatestEnvironmentLimitJournal ¶ added in v0.4.0
func (*Store) FindSelectedLatestShareLimitjournal ¶ added in v0.4.0
func (*Store) FindShareWithToken ¶
func (*Store) FindShareWithZIdAndDeleted ¶ added in v0.4.0
func (*Store) FindSharesForEnvironment ¶
func (*Store) GetAccountRequest ¶
func (*Store) GetEnvironment ¶
func (*Store) IsAccountLimitJournalEmpty ¶ added in v0.4.0
func (*Store) IsEnvironmentLimitJournalEmpty ¶ added in v0.4.0
func (*Store) IsShareLimitJournalEmpty ¶ added in v0.4.0
func (*Store) ShareWithTokenExists ¶ added in v0.4.25
Source Files ¶
Click to show internal directories.
Click to hide internal directories.