Documentation ¶
Index ¶
- type AppService
- func (s *AppService) CreateApp(info *req.AppUpsertReq) error
- func (s *AppService) DeleteApp(id int64) error
- func (s *AppService) FindOneById(id int64) (*dvmodel.App, error)
- func (s *AppService) FindOneByNameAndVersion(name, version string) (*dvmodel.App, error)
- func (s *AppService) GetUploadTmpDir(workDir string) string
- func (s *AppService) PageList(keyword string, page, pageSize int) (*res.PageableData[*dvmodel.App], error)
- func (s *AppService) UpdateApp(id int64, info *req.AppUpsertReq) error
- type ExplorerService
- type GroupService
- func (s *GroupService) CreateGroup(info *req.GroupUpsertReq) error
- func (s *GroupService) DeleteGroup(id int64) error
- func (s *GroupService) FindOneById(id int64, preloads ...string) (*dvmodel.Group, error)
- func (s *GroupService) PageList(keyword string, page, pageSize int) (*res.PageableData[*dvmodel.Group], error)
- func (s *GroupService) UpdateGroup(id int64, info *req.GroupUpsertReq) error
- type HostService
- func (s *HostService) CreateHost(info *req.HostUpsertReq) error
- func (s *HostService) DeleteHost(id int64) error
- func (s *HostService) FindAll() ([]*dvRes.HostBasicRes, error)
- func (s *HostService) FindOneById(id int64) (*dvmodel.Host, error)
- func (s *HostService) FindOneByIp(ip string) (*dvmodel.Host, error)
- func (s *HostService) PageList(keyword string, page, pageSize int) (*res.PageableData[*dvmodel.Host], error)
- func (s *HostService) SshConnectTest(params *req.SshConnectTestParams) (connectSuccess bool)
- func (s *HostService) UpdateHost(id int64, info *req.HostUpsertReq) error
- type ScriptService
- func (s *ScriptService) CreateScript(info *req.ScriptUpsertReq) error
- func (s *ScriptService) DeleteScript(id int64) error
- func (s *ScriptService) FindOneById(id int64) (*dvmodel.Script, error)
- func (s *ScriptService) FindOneByNameAndVersion(name, version string) (*dvmodel.Script, error)
- func (s *ScriptService) PageList(keyword string, page, pageSize int) (*res.PageableData[*dvmodel.Script], error)
- func (s *ScriptService) UpdateScript(id int64, info *req.ScriptUpsertReq) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppService ¶
type AppService struct { }
func GetAppService ¶
func GetAppService() *AppService
func (*AppService) CreateApp ¶
func (s *AppService) CreateApp(info *req.AppUpsertReq) error
func (*AppService) DeleteApp ¶
func (s *AppService) DeleteApp(id int64) error
func (*AppService) FindOneById ¶
func (s *AppService) FindOneById(id int64) (*dvmodel.App, error)
func (*AppService) FindOneByNameAndVersion ¶
func (s *AppService) FindOneByNameAndVersion(name, version string) (*dvmodel.App, error)
func (*AppService) GetUploadTmpDir ¶
func (s *AppService) GetUploadTmpDir(workDir string) string
func (*AppService) PageList ¶
func (s *AppService) PageList(keyword string, page, pageSize int) (*res.PageableData[*dvmodel.App], error)
func (*AppService) UpdateApp ¶
func (s *AppService) UpdateApp(id int64, info *req.AppUpsertReq) error
type ExplorerService ¶
type ExplorerService struct { }
func GetExplorerService ¶
func GetExplorerService() *ExplorerService
func (*ExplorerService) ListEntries ¶
func (s *ExplorerService) ListEntries(parentDir, keyword string) ([]*dvRes.ExplorerEntry, error)
type GroupService ¶
type GroupService struct { }
func GetGroupService ¶
func GetGroupService() *GroupService
func (*GroupService) CreateGroup ¶
func (s *GroupService) CreateGroup(info *req.GroupUpsertReq) error
func (*GroupService) DeleteGroup ¶
func (s *GroupService) DeleteGroup(id int64) error
func (*GroupService) FindOneById ¶
func (*GroupService) PageList ¶
func (s *GroupService) PageList(keyword string, page, pageSize int) (*res.PageableData[*dvmodel.Group], error)
func (*GroupService) UpdateGroup ¶
func (s *GroupService) UpdateGroup(id int64, info *req.GroupUpsertReq) error
type HostService ¶
type HostService struct { }
func GetHostService ¶
func GetHostService() *HostService
func (*HostService) CreateHost ¶
func (s *HostService) CreateHost(info *req.HostUpsertReq) error
func (*HostService) DeleteHost ¶
func (s *HostService) DeleteHost(id int64) error
func (*HostService) FindAll ¶
func (s *HostService) FindAll() ([]*dvRes.HostBasicRes, error)
func (*HostService) FindOneById ¶
func (s *HostService) FindOneById(id int64) (*dvmodel.Host, error)
func (*HostService) FindOneByIp ¶
func (s *HostService) FindOneByIp(ip string) (*dvmodel.Host, error)
func (*HostService) PageList ¶
func (s *HostService) PageList(keyword string, page, pageSize int) (*res.PageableData[*dvmodel.Host], error)
func (*HostService) SshConnectTest ¶
func (s *HostService) SshConnectTest(params *req.SshConnectTestParams) (connectSuccess bool)
func (*HostService) UpdateHost ¶
func (s *HostService) UpdateHost(id int64, info *req.HostUpsertReq) error
type ScriptService ¶
type ScriptService struct { }
func GetScriptService ¶
func GetScriptService() *ScriptService
func (*ScriptService) CreateScript ¶
func (s *ScriptService) CreateScript(info *req.ScriptUpsertReq) error
func (*ScriptService) DeleteScript ¶
func (s *ScriptService) DeleteScript(id int64) error
func (*ScriptService) FindOneById ¶
func (s *ScriptService) FindOneById(id int64) (*dvmodel.Script, error)
func (*ScriptService) FindOneByNameAndVersion ¶
func (s *ScriptService) FindOneByNameAndVersion(name, version string) (*dvmodel.Script, error)
func (*ScriptService) PageList ¶
func (s *ScriptService) PageList(keyword string, page, pageSize int) (*res.PageableData[*dvmodel.Script], error)
func (*ScriptService) UpdateScript ¶
func (s *ScriptService) UpdateScript(id int64, info *req.ScriptUpsertReq) error
Click to show internal directories.
Click to hide internal directories.