Documentation ¶
Index ¶
- type AclService
- type BackupService
- func (bs BackupService) Create(b models.Backup) (models.Backup, error)
- func (bs BackupService) Delete(id uint) error
- func (bs BackupService) Find(skip uint, limit uint) ([]models.Backup, error)
- func (bs BackupService) FindById(id uint) (models.Backup, error)
- func (bs BackupService) Update(b models.Backup) (models.Backup, error)
- type Cipher
- type GroupService
- type KeystoreService
- type SnapshotService
- func (s SnapshotService) Failed(agentId, backupId uint, errMessage error) (models.Snapshot, error)
- func (s SnapshotService) FailedExistSnapshot(snapshotId uint, errMessage error) (models.Snapshot, error)
- func (s SnapshotService) Find(input dto.FindSnapshotQuery) (dto.SnapshotWithTotal, error)
- func (s SnapshotService) Snap(agentId, backupId uint, objName string, size uint, body io.Reader) (models.Snapshot, error)
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AclService ¶
type AclService struct {
// contains filtered or unexported fields
}
func NewAclService ¶
func NewAclService(db *database.Database, groupService groupService) *AclService
func (AclService) HasDefaultRules ¶
func (a AclService) HasDefaultRules() bool
type BackupService ¶
type BackupService struct {
// contains filtered or unexported fields
}
func NewBackupService ¶
func NewBackupService(db *database.Database) *BackupService
func (BackupService) Delete ¶
func (bs BackupService) Delete(id uint) error
type GroupService ¶
type GroupService struct {
// contains filtered or unexported fields
}
func NewGroupService ¶
func NewGroupService(db *database.Database) *GroupService
func (GroupService) Create ¶
func (g GroupService) Create(input dto.CreateGroupInput) (models.Group, error)
func (GroupService) CreateDefaultGroup ¶
func (g GroupService) CreateDefaultGroup() (models.Group, error)
func (GroupService) Exist ¶
func (g GroupService) Exist(id uint) bool
func (*GroupService) HasDefaultGroup ¶
func (g *GroupService) HasDefaultGroup() bool
type KeystoreService ¶
type KeystoreService struct {
// contains filtered or unexported fields
}
func NewKeystoreService ¶
func NewKeystoreService(db *database.Database, cipherKey string) *KeystoreService
func (KeystoreService) Create ¶
func (s KeystoreService) Create(c models.Credential) (models.Credential, error)
func (KeystoreService) Delete ¶
func (s KeystoreService) Delete(key string) error
func (KeystoreService) Get ¶
func (s KeystoreService) Get(key string) (models.Credential, error)
type SnapshotService ¶
type SnapshotService struct {
// contains filtered or unexported fields
}
func (SnapshotService) FailedExistSnapshot ¶
func (SnapshotService) Find ¶
func (s SnapshotService) Find(input dto.FindSnapshotQuery) (dto.SnapshotWithTotal, error)
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(db *database.Database, groupService groupUserService) *UserService
func (UserService) Create ¶
func (u UserService) Create(input dto.CreateUserInput) (models.User, error)
func (UserService) FindByEmail ¶
func (u UserService) FindByEmail(email string) (models.User, error)
func (UserService) SetLoggedTime ¶
func (u UserService) SetLoggedTime(userId uint, t time.Time) error
Click to show internal directories.
Click to hide internal directories.