Documentation ¶
Index ¶
- Constants
- type AddContainerJob
- type ContainerAPIService
- func (srv *ContainerAPIService) Create(req *api.AddContainerRequest) (*api.AddContainerResponse, error)
- func (srv *ContainerAPIService) Delete(id string) (*api.ApiResponse, error)
- func (srv *ContainerAPIService) GetById(id string) (*api.GetContainerByIdResponse, error)
- func (srv *ContainerAPIService) List() (*api.ListContainersResponse, error)
- func (srv *ContainerAPIService) Update(req *api.UpdateContainerRequest) (*api.ApiResponse, error)
- type DBConnection
- type JobAPIService
- type JobService
Constants ¶
View Source
const ( AddContainerType = "add-container" ContainerType = "container" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddContainerJob ¶
type ContainerAPIService ¶
type ContainerAPIService struct { DB DBConnection Commander *openvzcmd.POCCommanderStub }
func NewContainerAPIService ¶
func NewContainerAPIService(db DBConnection, cmd *openvzcmd.POCCommanderStub) *ContainerAPIService
func (*ContainerAPIService) Create ¶
func (srv *ContainerAPIService) Create(req *api.AddContainerRequest) (*api.AddContainerResponse, error)
func (*ContainerAPIService) Delete ¶
func (srv *ContainerAPIService) Delete(id string) (*api.ApiResponse, error)
func (*ContainerAPIService) GetById ¶
func (srv *ContainerAPIService) GetById(id string) (*api.GetContainerByIdResponse, error)
func (*ContainerAPIService) List ¶
func (srv *ContainerAPIService) List() (*api.ListContainersResponse, error)
func (*ContainerAPIService) Update ¶
func (srv *ContainerAPIService) Update(req *api.UpdateContainerRequest) (*api.ApiResponse, error)
type DBConnection ¶
type JobAPIService ¶
type JobAPIService struct { DB DBConnection Commander *openvzcmd.POCCommanderStub }
func NewJobAPIService ¶
func NewJobAPIService(db DBConnection, cmd *openvzcmd.POCCommanderStub) *JobAPIService
func (*JobAPIService) GetById ¶
func (srv *JobAPIService) GetById(id string) (*api.GetJobByIdResponse, error)
type JobService ¶
type JobService struct { DB DBConnection Commander *openvzcmd.POCCommanderStub }
func NewJobService ¶
func NewJobService(db DBConnection, cmd *openvzcmd.POCCommanderStub) *JobService
func (*JobService) ConsumeJobs ¶
func (j *JobService) ConsumeJobs(jobInterval time.Duration)
Click to show internal directories.
Click to hide internal directories.