Documentation ¶
Index ¶
- func Client() *gitea.Client
- type AuthServiceImpl
- type DispatcherMachineServiceImpl
- func (i *DispatcherMachineServiceImpl) FindByServerNodeMachineSign(machineSign string) entity.DispatcherMachine
- func (i *DispatcherMachineServiceImpl) Save(dispatcherMachine *entity.DispatcherMachine)
- func (i *DispatcherMachineServiceImpl) SetAlias(req *dto.CommonMachineSetAliasReq) bool
- func (i *DispatcherMachineServiceImpl) SetTags(req *dto.DispatcherMachineSetTagsReq) bool
- type DispatcherOnlineServiceImpl
- type DispatcherTagServiceImpl
- type EnvironmentComponentServiceImpl
- type EnvironmentComponentVersionServiceImpl
- func (i *EnvironmentComponentVersionServiceImpl) Delete(ecVersionKey string) error
- func (i *EnvironmentComponentVersionServiceImpl) QueryList(belongEnvironmentComponentKey string) (error, []dto.EnvironmentComponentVersionReq)
- func (i *EnvironmentComponentVersionServiceImpl) Save(been *dto.EnvironmentComponentVersionReq) (error, dto.EnvironmentComponentVersionReq)
- type FileResourceServiceImpl
- type OperatePlatformServiceImpl
- type ServerNodeServiceImpl
- type TaskServiceImpl
- type TimerServiceImpl
- type UserServiceImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthServiceImpl ¶
type AuthServiceImpl struct {
// contains filtered or unexported fields
}
func NewAuthServiceImpl ¶
func NewAuthServiceImpl() *AuthServiceImpl
func (*AuthServiceImpl) CheckToken ¶
func (i *AuthServiceImpl) CheckToken(jwtTokenStr string) bool
func (*AuthServiceImpl) GenerateJwtTokenStr ¶
func (i *AuthServiceImpl) GenerateJwtTokenStr(userKey string) string
type DispatcherMachineServiceImpl ¶
type DispatcherMachineServiceImpl struct {
// contains filtered or unexported fields
}
func NewDispatcherMachineServiceImpl ¶
func NewDispatcherMachineServiceImpl() *DispatcherMachineServiceImpl
func (*DispatcherMachineServiceImpl) FindByServerNodeMachineSign ¶
func (i *DispatcherMachineServiceImpl) FindByServerNodeMachineSign(machineSign string) entity.DispatcherMachine
func (*DispatcherMachineServiceImpl) Save ¶
func (i *DispatcherMachineServiceImpl) Save(dispatcherMachine *entity.DispatcherMachine)
func (*DispatcherMachineServiceImpl) SetAlias ¶
func (i *DispatcherMachineServiceImpl) SetAlias(req *dto.CommonMachineSetAliasReq) bool
func (*DispatcherMachineServiceImpl) SetTags ¶
func (i *DispatcherMachineServiceImpl) SetTags(req *dto.DispatcherMachineSetTagsReq) bool
type DispatcherOnlineServiceImpl ¶
type DispatcherOnlineServiceImpl struct {
// contains filtered or unexported fields
}
func NewDispatcherOnlineServiceImpl ¶
func NewDispatcherOnlineServiceImpl() *DispatcherOnlineServiceImpl
func (*DispatcherOnlineServiceImpl) ClearAllOffline ¶
func (i *DispatcherOnlineServiceImpl) ClearAllOffline()
func (*DispatcherOnlineServiceImpl) DeleteByOnlineKey ¶
func (i *DispatcherOnlineServiceImpl) DeleteByOnlineKey(onlineKey string)
func (*DispatcherOnlineServiceImpl) Save ¶
func (i *DispatcherOnlineServiceImpl) Save(dispatcherOnline *entity.DispatcherOnline)
type DispatcherTagServiceImpl ¶
type DispatcherTagServiceImpl struct {
// contains filtered or unexported fields
}
func NewDispatcherTagServiceImpl ¶
func NewDispatcherTagServiceImpl() *DispatcherTagServiceImpl
func (*DispatcherTagServiceImpl) Delete ¶
func (i *DispatcherTagServiceImpl) Delete(tagKey string)
func (*DispatcherTagServiceImpl) List ¶
func (i *DispatcherTagServiceImpl) List() []dto.DispatcherTagSaveReq
func (*DispatcherTagServiceImpl) Save ¶
func (i *DispatcherTagServiceImpl) Save(tagSaveReq *dto.DispatcherTagSaveReq)
type EnvironmentComponentServiceImpl ¶
type EnvironmentComponentServiceImpl struct {
// contains filtered or unexported fields
}
func NewEnvironmentComponentServiceImpl ¶
func NewEnvironmentComponentServiceImpl() *EnvironmentComponentServiceImpl
func (*EnvironmentComponentServiceImpl) Delete ¶
func (i *EnvironmentComponentServiceImpl) Delete(key string) error
func (*EnvironmentComponentServiceImpl) QueryList ¶
func (i *EnvironmentComponentServiceImpl) QueryList() (error, []dto.EnvironmentComponentReq)
func (*EnvironmentComponentServiceImpl) Save ¶
func (i *EnvironmentComponentServiceImpl) Save(environmentComponentReq *dto.EnvironmentComponentReq) (error, dto.EnvironmentComponentReq)
type EnvironmentComponentVersionServiceImpl ¶
type EnvironmentComponentVersionServiceImpl struct {
// contains filtered or unexported fields
}
func NewEnvironmentComponentVersionServiceImpl ¶
func NewEnvironmentComponentVersionServiceImpl() *EnvironmentComponentVersionServiceImpl
func (*EnvironmentComponentVersionServiceImpl) Delete ¶
func (i *EnvironmentComponentVersionServiceImpl) Delete(ecVersionKey string) error
func (*EnvironmentComponentVersionServiceImpl) QueryList ¶
func (i *EnvironmentComponentVersionServiceImpl) QueryList(belongEnvironmentComponentKey string) (error, []dto.EnvironmentComponentVersionReq)
func (*EnvironmentComponentVersionServiceImpl) Save ¶
func (i *EnvironmentComponentVersionServiceImpl) Save(been *dto.EnvironmentComponentVersionReq) (error, dto.EnvironmentComponentVersionReq)
type FileResourceServiceImpl ¶
type FileResourceServiceImpl struct {
// contains filtered or unexported fields
}
func NewFileResourceServiceImpl ¶
func NewFileResourceServiceImpl() *FileResourceServiceImpl
type OperatePlatformServiceImpl ¶
type OperatePlatformServiceImpl struct {
// contains filtered or unexported fields
}
func NewOperatePlatformServiceImpl ¶
func NewOperatePlatformServiceImpl() *OperatePlatformServiceImpl
func (*OperatePlatformServiceImpl) GetAll ¶
func (i *OperatePlatformServiceImpl) GetAll() ([]dto.OperatePlatformReq, error)
type ServerNodeServiceImpl ¶
type ServerNodeServiceImpl struct {
// contains filtered or unexported fields
}
func NewServerNodeServiceImpl ¶
func NewServerNodeServiceImpl() *ServerNodeServiceImpl
func (*ServerNodeServiceImpl) QueryAllNodeInfo ¶
func (i *ServerNodeServiceImpl) QueryAllNodeInfo() []dto.ServerNodeResp
func (*ServerNodeServiceImpl) RefreshActiveTime ¶
func (i *ServerNodeServiceImpl) RefreshActiveTime()
func (*ServerNodeServiceImpl) RegisterServerNode ¶
func (i *ServerNodeServiceImpl) RegisterServerNode()
func (*ServerNodeServiceImpl) UpdateAlias ¶
func (i *ServerNodeServiceImpl) UpdateAlias(machineSign, newAlias string)
type TaskServiceImpl ¶
type TaskServiceImpl struct{}
func NewTaskServiceImpl ¶
func NewTaskServiceImpl() *TaskServiceImpl
type TimerServiceImpl ¶
type TimerServiceImpl struct {
// contains filtered or unexported fields
}
func NewTimerServiceImpl ¶
func NewTimerServiceImpl() *TimerServiceImpl
func (*TimerServiceImpl) StartTimer ¶
func (i *TimerServiceImpl) StartTimer()
type UserServiceImpl ¶
type UserServiceImpl struct {
// contains filtered or unexported fields
}
func NewUserServiceImpl ¶
func NewUserServiceImpl(passwordSecretKey string) *UserServiceImpl
func (*UserServiceImpl) CheckPassword ¶
func (i *UserServiceImpl) CheckPassword(number, password string) (bool, entity.User)
func (*UserServiceImpl) CountByNumber ¶
func (i *UserServiceImpl) CountByNumber(number string) int
func (*UserServiceImpl) Create ¶
func (i *UserServiceImpl) Create(number, password string) (error, entity.User)
func (*UserServiceImpl) SelfRepair ¶
func (i *UserServiceImpl) SelfRepair()
lr user self repair, If the User table in the database is empty, then an User is automatically created randomly and the information is displayed in the console.
Source Files ¶
- auth_service_impl.go
- dispatcher_machine_service_impl.go
- dispatcher_online_service_impl.go
- dispatcher_tag_service_impl.go
- environment_component_service_impl.go
- environment_component_version_dependency_relation_service_impl.go
- environment_component_version_service_impl.go
- file_resource_service_impl.go
- git_service_impl_gitea.go
- operate_platform_service_impl.go
- server_node_service_impl.go
- task_service_impl.go
- timer_service_impl.go
- user_service_impl.go
Click to show internal directories.
Click to hide internal directories.