Documentation ¶
Index ¶
- type BaseService
- func (this *BaseService) CheckClusterIsExist() (models.Result, []*models.Cluster, []*models.HostConfig)
- func (this *BaseService) CheckContainerIsExist() (models.Result, []*models.ContainerConfig)
- func (this *BaseService) CheckHostLicense() (models.Result, []*models.HostConfig)
- func (this *BaseService) CheckImageContainerOfHost(imageList []*models.ImageConfig, containerList []*models.ContainerConfig) models.Result
- func (this *BaseService) CheckImageIsExist() (models.Result, []*models.ImageConfig)
- func (this *BaseService) CheckJobIsExist() (models.Result, *models.Job)
- type FileService
- type ImageConfigService
- type ProxyService
- type RegistryService
- type RoleService
- type TaskService
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseService ¶
type BaseService struct { HostIds string ImageIds string ContainerIds string ClusterIds string JobId string HostListInCluster []*models.HostConfig IsImageVuln bool }
func (*BaseService) CheckClusterIsExist ¶
func (this *BaseService) CheckClusterIsExist() (models.Result, []*models.Cluster, []*models.HostConfig)
func (*BaseService) CheckContainerIsExist ¶
func (this *BaseService) CheckContainerIsExist() (models.Result, []*models.ContainerConfig)
func (*BaseService) CheckHostLicense ¶
func (this *BaseService) CheckHostLicense() (models.Result, []*models.HostConfig)
func (*BaseService) CheckImageContainerOfHost ¶
func (this *BaseService) CheckImageContainerOfHost(imageList []*models.ImageConfig, containerList []*models.ContainerConfig) models.Result
func (*BaseService) CheckImageIsExist ¶
func (this *BaseService) CheckImageIsExist() (models.Result, []*models.ImageConfig)
func (*BaseService) CheckJobIsExist ¶
func (this *BaseService) CheckJobIsExist() (models.Result, *models.Job)
type FileService ¶
type FileService struct { }
func (*FileService) CheckFilePost ¶
func (this *FileService) CheckFilePost(fh *multipart.FileHeader, fileType string) int
func (*FileService) CopyFile ¶
func (this *FileService) CopyFile(srcFileName string, dstFileName string) (written int64, err error)
func (*FileService) GetFileContentType ¶
func (this *FileService) GetFileContentType(file multipart.File) (string, error)
type ImageConfigService ¶
type ImageConfigService struct {
ImageConfig *models.ImageConfig
}
func (*ImageConfigService) BatchImportImage ¶
func (this *ImageConfigService) BatchImportImage() models.Result
func (*ImageConfigService) GetNamespaces ¶
func (this *ImageConfigService) GetNamespaces() models.Result
type ProxyService ¶
func (*ProxyService) ScopeProxyOperator ¶
func (this *ProxyService) ScopeProxyOperator() error
type RegistryService ¶
func (*RegistryService) Ping ¶
func (this *RegistryService) Ping() models.Result
func (*RegistryService) TypeInfos ¶
func (this *RegistryService) TypeInfos() models.Result
type RoleService ¶
func (*RoleService) CheckUserInRole ¶
func (this *RoleService) CheckUserInRole() models.Result
type TaskService ¶
func (*TaskService) SaveTaskLog ¶
func (this *TaskService) SaveTaskLog(level string)
func (*TaskService) UpdateTaskStatus ¶
func (this *TaskService) UpdateTaskStatus()
type UserService ¶
func (*UserService) ConstrictUserCreate ¶
func (this *UserService) ConstrictUserCreate() models.Result
func (*UserService) ConstrictUserModify ¶
func (this *UserService) ConstrictUserModify() models.Result
func (*UserService) ConstrictUserRemove ¶
func (this *UserService) ConstrictUserRemove() models.Result
Click to show internal directories.
Click to hide internal directories.