Documentation ¶
Index ¶
- Constants
- type AccessGrant
- type Account
- type AccountRequest
- type AppliedLimitClass
- type BandwidthClass
- type BandwidthLimitJournalEntry
- type BaseLimitClass
- type Config
- type Environment
- type Frontend
- type InviteToken
- type LimitAction
- type LimitClass
- func (lc LimitClass) GetBackendMode() sdk.BackendMode
- func (lc LimitClass) GetEnvironments() int
- func (lc LimitClass) GetLimitAction() LimitAction
- func (lc LimitClass) GetLimitClassId() int
- func (lc LimitClass) GetPeriodMinutes() int
- func (lc LimitClass) GetReservedShares() int
- func (lc LimitClass) GetRxBytes() int64
- func (lc LimitClass) GetShares() int
- func (lc LimitClass) GetTotalBytes() int64
- func (lc LimitClass) GetTxBytes() int64
- func (lc LimitClass) GetUniqueNames() int
- func (lc LimitClass) IsGlobal() bool
- func (lc LimitClass) IsScoped() bool
- func (lc LimitClass) String() string
- type LimitScope
- type Model
- type PasswordResetRequest
- type PermissionMode
- type ResourceCountClass
- type Share
- type Store
- func (str *Store) ApplyLimitClass(lc *AppliedLimitClass, trx *sqlx.Tx) (int, error)
- 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) CreateAccountRequest(ar *AccountRequest, tx *sqlx.Tx) (int, error)
- func (str *Store) CreateBandwidthLimitJournalEntry(j *BandwidthLimitJournalEntry, trx *sqlx.Tx) (int, error)
- func (str *Store) CreateEnvironment(accountId int, i *Environment, tx *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) CreateLimitClass(lc *LimitClass, trx *sqlx.Tx) (int, 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) DeleteAccessGrantsForShare(shrId int, tx *sqlx.Tx) error
- func (str *Store) DeleteAccessGrantsForShareAndAccount(shrId, acctId int, tx *sqlx.Tx) error
- func (str *Store) DeleteAccountRequest(id int, tx *sqlx.Tx) error
- func (str *Store) DeleteBandwidthLimitJournalEntryForGlobal(acctId int, trx *sqlx.Tx) error
- func (str *Store) DeleteBandwidthLimitJournalEntryForLimitClass(acctId int, lcId int, trx *sqlx.Tx) error
- func (str *Store) DeleteEnvironment(id int, tx *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) 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) FindAllBandwidthLimitJournal(trx *sqlx.Tx) ([]*BandwidthLimitJournalEntry, error)
- func (str *Store) FindAllLatestBandwidthLimitJournal(trx *sqlx.Tx) ([]*BandwidthLimitJournalEntry, error)
- func (str *Store) FindAllLatestBandwidthLimitJournalForAccount(acctId int, trx *sqlx.Tx) ([]*BandwidthLimitJournalEntry, error)
- func (str *Store) FindAllShares(tx *sqlx.Tx) ([]*Share, error)
- func (str *Store) FindAppliedLimitClassesForAccount(acctId int, trx *sqlx.Tx) ([]*LimitClass, 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) FindLatestBandwidthLimitJournal(acctId int, trx *sqlx.Tx) (*BandwidthLimitJournalEntry, error)
- func (str *Store) FindLatestBandwidthLimitJournalForGlobal(acctId int, trx *sqlx.Tx) (*BandwidthLimitJournalEntry, error)
- func (str *Store) FindLatestBandwidthLimitJournalForLimitClass(acctId, lcId int, trx *sqlx.Tx) (*BandwidthLimitJournalEntry, error)
- func (str *Store) FindPasswordResetRequestWithToken(token string, tx *sqlx.Tx) (*PasswordResetRequest, error)
- func (str *Store) FindPublicFrontends(tx *sqlx.Tx) ([]*Frontend, error)
- func (str *Store) FindShareWithToken(shrToken string, tx *sqlx.Tx) (*Share, error)
- func (str *Store) FindShareWithTokenEvenIfDeleted(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) GetLimitClass(lcId int, trx *sqlx.Tx) (*LimitClass, error)
- func (str *Store) GetShare(id int, tx *sqlx.Tx) (*Share, error)
- func (str *Store) IsBandwidthLimitJournalEmpty(acctId int, trx *sqlx.Tx) (bool, error)
- func (str *Store) IsBandwidthLimitJournalEmptyForGlobal(acctId int, trx *sqlx.Tx) (bool, error)
- func (str *Store) IsBandwidthLimitJournalEmptyForLimitClass(acctId, lcId int, trx *sqlx.Tx) (bool, error)
- func (str *Store) LimitCheckLock(acctId int, trx *sqlx.Tx) 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 ¶
View Source
const Unlimited = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessGrant ¶ added in v0.4.26
type AccountRequest ¶
type AppliedLimitClass ¶ added in v0.4.31
type BandwidthClass ¶ added in v0.4.31
type BandwidthClass interface { BaseLimitClass IsScoped() bool GetBackendMode() sdk.BackendMode GetPeriodMinutes() int GetRxBytes() int64 GetTxBytes() int64 GetTotalBytes() int64 GetLimitAction() LimitAction }
type BandwidthLimitJournalEntry ¶ added in v0.4.31
type BaseLimitClass ¶ added in v0.4.31
type Environment ¶
type InviteToken ¶
type LimitAction ¶ added in v0.4.0
type LimitAction string
const ( LimitLimitAction LimitAction = "limit" WarningLimitAction LimitAction = "warning" )
type LimitClass ¶ added in v0.4.31
type LimitClass struct { Model BackendMode *sdk.BackendMode Environments int UniqueNames int PeriodMinutes int RxBytes int64 TxBytes int64 TotalBytes int64 LimitAction LimitAction }
func (LimitClass) GetBackendMode ¶ added in v0.4.31
func (lc LimitClass) GetBackendMode() sdk.BackendMode
func (LimitClass) GetEnvironments ¶ added in v0.4.31
func (lc LimitClass) GetEnvironments() int
func (LimitClass) GetLimitAction ¶ added in v0.4.31
func (lc LimitClass) GetLimitAction() LimitAction
func (LimitClass) GetLimitClassId ¶ added in v0.4.31
func (lc LimitClass) GetLimitClassId() int
func (LimitClass) GetPeriodMinutes ¶ added in v0.4.31
func (lc LimitClass) GetPeriodMinutes() int
func (LimitClass) GetReservedShares ¶ added in v0.4.31
func (lc LimitClass) GetReservedShares() int
func (LimitClass) GetRxBytes ¶ added in v0.4.31
func (lc LimitClass) GetRxBytes() int64
func (LimitClass) GetShares ¶ added in v0.4.31
func (lc LimitClass) GetShares() int
func (LimitClass) GetTotalBytes ¶ added in v0.4.31
func (lc LimitClass) GetTotalBytes() int64
func (LimitClass) GetTxBytes ¶ added in v0.4.31
func (lc LimitClass) GetTxBytes() int64
func (LimitClass) GetUniqueNames ¶ added in v0.4.31
func (lc LimitClass) GetUniqueNames() int
func (LimitClass) IsGlobal ¶ added in v0.4.31
func (lc LimitClass) IsGlobal() bool
func (LimitClass) IsScoped ¶ added in v0.4.31
func (lc LimitClass) IsScoped() bool
func (LimitClass) String ¶ added in v0.4.31
func (lc LimitClass) String() string
type LimitScope ¶ added in v0.4.31
type LimitScope string
const ( AccountLimitScope LimitScope = "account" EnvironmentLimitScope LimitScope = "environment" )
type PasswordResetRequest ¶
type PermissionMode ¶ added in v0.4.26
type PermissionMode string
const ( OpenPermissionMode PermissionMode = "open" ClosedPermissionMode PermissionMode = "closed" )
type ResourceCountClass ¶ added in v0.4.31
type ResourceCountClass interface { BaseLimitClass GetEnvironments() int GetUniqueNames() int }
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ApplyLimitClass ¶ added in v0.4.31
func (*Store) CheckAccessGrantForShareAndAccount ¶ added in v0.4.26
func (*Store) CreateAccessGrant ¶ added in v0.4.26
func (*Store) CreateAccountRequest ¶
func (*Store) CreateBandwidthLimitJournalEntry ¶ added in v0.4.31
func (*Store) CreateEnvironment ¶
func (*Store) CreateEphemeralEnvironment ¶
func (*Store) CreateFrontend ¶
func (*Store) CreateGlobalFrontend ¶
func (*Store) CreateInviteTokens ¶
func (str *Store) CreateInviteTokens(inviteTokens []*InviteToken, tx *sqlx.Tx) error
func (*Store) CreateLimitClass ¶ added in v0.4.31
func (*Store) CreatePasswordResetRequest ¶
func (*Store) CreateShare ¶
func (*Store) DeleteAccessGrantsForShare ¶ added in v0.4.26
func (*Store) DeleteAccessGrantsForShareAndAccount ¶ added in v0.4.26
func (*Store) DeleteAccountRequest ¶
func (*Store) DeleteBandwidthLimitJournalEntryForGlobal ¶ added in v0.4.31
func (*Store) DeleteBandwidthLimitJournalEntryForLimitClass ¶ added in v0.4.31
func (*Store) DeleteMultipleAccountRequests ¶
func (*Store) DeleteMultiplePasswordResetRequests ¶
func (*Store) DeletePasswordResetRequest ¶
func (*Store) DeletePasswordResetRequestsByAccountId ¶ added in v0.4.25
func (*Store) FindAccountRequestWithEmail ¶
func (*Store) FindAccountRequestWithToken ¶
func (*Store) FindAccountWithEmail ¶
func (*Store) FindAccountWithEmailAndDeleted ¶ added in v0.4.0
func (*Store) FindAccountWithToken ¶
func (*Store) FindAllBandwidthLimitJournal ¶ added in v0.4.31
func (str *Store) FindAllBandwidthLimitJournal(trx *sqlx.Tx) ([]*BandwidthLimitJournalEntry, error)
func (*Store) FindAllLatestBandwidthLimitJournal ¶ added in v0.4.31
func (str *Store) FindAllLatestBandwidthLimitJournal(trx *sqlx.Tx) ([]*BandwidthLimitJournalEntry, error)
func (*Store) FindAllLatestBandwidthLimitJournalForAccount ¶ added in v0.4.31
func (*Store) FindAllShares ¶ added in v0.4.0
func (*Store) FindAppliedLimitClassesForAccount ¶ added in v0.4.31
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) FindLatestBandwidthLimitJournal ¶ added in v0.4.31
func (*Store) FindLatestBandwidthLimitJournalForGlobal ¶ added in v0.4.31
func (*Store) FindLatestBandwidthLimitJournalForLimitClass ¶ added in v0.4.31
func (*Store) FindPasswordResetRequestWithToken ¶
func (*Store) FindPublicFrontends ¶
func (*Store) FindShareWithToken ¶
func (*Store) FindShareWithTokenEvenIfDeleted ¶ added in v0.4.31
func (*Store) FindShareWithZIdAndDeleted ¶ added in v0.4.0
func (*Store) FindSharesForEnvironment ¶
func (*Store) GetAccountRequest ¶
func (*Store) GetEnvironment ¶
func (*Store) GetLimitClass ¶ added in v0.4.31
func (*Store) IsBandwidthLimitJournalEmpty ¶ added in v0.4.31
func (*Store) IsBandwidthLimitJournalEmptyForGlobal ¶ added in v0.4.31
func (*Store) IsBandwidthLimitJournalEmptyForLimitClass ¶ added in v0.4.31
func (*Store) LimitCheckLock ¶ added in v0.4.31
func (*Store) ShareWithTokenExists ¶ added in v0.4.25
Source Files ¶
Click to show internal directories.
Click to hide internal directories.