base

package
v0.0.0-...-e6d3209 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

type ProxyService struct {
	TargetUrl string
	Close     bool
}

func (*ProxyService) ScopeProxyOperator

func (this *ProxyService) ScopeProxyOperator() error

type RegistryService

type RegistryService struct {
	Registry *models.Registry
}

func (*RegistryService) Ping

func (this *RegistryService) Ping() models.Result

func (*RegistryService) TypeInfos

func (this *RegistryService) TypeInfos() models.Result

type RoleService

type RoleService struct {
	Role *models.Role
}

func (*RoleService) CheckUserInRole

func (this *RoleService) CheckUserInRole() models.Result

type TaskService

type TaskService struct {
	*models.Task
	*models.Result
}

func (*TaskService) SaveTaskLog

func (this *TaskService) SaveTaskLog(level string)

func (*TaskService) UpdateTaskStatus

func (this *TaskService) UpdateTaskStatus()

type UserService

type UserService struct {
	UserId    int
	LoginName string
	IsAdmin   bool
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL