Documentation ¶
Index ¶
- type ReplicaSetService
- func (rs *ReplicaSetService) CommitContainer(name string, spec models.ContainerCommit) (imageName string, err error)
- func (rs *ReplicaSetService) DeleteContainer(name string) error
- func (rs *ReplicaSetService) DeleteContainerForUpdate(name string) error
- func (rs *ReplicaSetService) ExecuteContainer(name string, exec *models.ContainerExecute) (resp *string, err error)
- func (rs *ReplicaSetService) GetContainerHistory(name string) ([]*models.ContainerHistoryItem, error)
- func (rs *ReplicaSetService) GetContainerInfo(name string) (info models.EtcdContainerInfo, err error)
- func (rs *ReplicaSetService) PatchContainer(name string, spec *models.PatchRequest) (id, newContainerName string, err error)
- func (rs *ReplicaSetService) RestartContainer(name string) (id, newContainerName string, err error)
- func (rs *ReplicaSetService) RollbackContainer(name string, spec *models.RollbackRequest) (string, error)
- func (rs *ReplicaSetService) RunGpuContainer(spec *models.ContainerRun) (id, containerName string, err error)
- func (rs *ReplicaSetService) StartupContainer(name string) error
- func (rs *ReplicaSetService) StopContainer(name string, restoreGpu, restorePort, isLatest bool) error
- type VolumeService
- func (vs *VolumeService) CreateVolume(spec *models.VolumeCreate) (resp volume.Volume, err error)
- func (vs *VolumeService) DeleteVolume(name string, isLatest, deleteRecord bool) error
- func (vs *VolumeService) GetVolumeHistory(name string) ([]*models.VolumeHistoryItem, error)
- func (vs *VolumeService) GetVolumeInfo(name string) (info models.EtcdVolumeInfo, err error)
- func (vs *VolumeService) PatchVolumeSize(name string, spec *models.VolumeSize) (resp volume.Volume, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReplicaSetService ¶
type ReplicaSetService struct{}
func (*ReplicaSetService) CommitContainer ¶
func (rs *ReplicaSetService) CommitContainer(name string, spec models.ContainerCommit) (imageName string, err error)
func (*ReplicaSetService) DeleteContainer ¶
func (rs *ReplicaSetService) DeleteContainer(name string) error
func (*ReplicaSetService) DeleteContainerForUpdate ¶
func (rs *ReplicaSetService) DeleteContainerForUpdate(name string) error
func (*ReplicaSetService) ExecuteContainer ¶
func (rs *ReplicaSetService) ExecuteContainer(name string, exec *models.ContainerExecute) (resp *string, err error)
func (*ReplicaSetService) GetContainerHistory ¶
func (rs *ReplicaSetService) GetContainerHistory(name string) ([]*models.ContainerHistoryItem, error)
func (*ReplicaSetService) GetContainerInfo ¶
func (rs *ReplicaSetService) GetContainerInfo(name string) (info models.EtcdContainerInfo, err error)
func (*ReplicaSetService) PatchContainer ¶
func (rs *ReplicaSetService) PatchContainer(name string, spec *models.PatchRequest) (id, newContainerName string, err error)
func (*ReplicaSetService) RestartContainer ¶
func (rs *ReplicaSetService) RestartContainer(name string) (id, newContainerName string, err error)
RestartContainer will reapply gpu and port, but the logic for applying port is in the runContainer function
func (*ReplicaSetService) RollbackContainer ¶
func (rs *ReplicaSetService) RollbackContainer(name string, spec *models.RollbackRequest) (string, error)
func (*ReplicaSetService) RunGpuContainer ¶
func (rs *ReplicaSetService) RunGpuContainer(spec *models.ContainerRun) (id, containerName string, err error)
RunGpuContainer just sets the parameters, the real run a container is in the `runContainer`
func (*ReplicaSetService) StartupContainer ¶
func (rs *ReplicaSetService) StartupContainer(name string) error
func (*ReplicaSetService) StopContainer ¶
func (rs *ReplicaSetService) StopContainer(name string, restoreGpu, restorePort, isLatest bool) error
type VolumeService ¶
type VolumeService struct{}
func (*VolumeService) CreateVolume ¶
func (vs *VolumeService) CreateVolume(spec *models.VolumeCreate) (resp volume.Volume, err error)
func (*VolumeService) DeleteVolume ¶
func (vs *VolumeService) DeleteVolume(name string, isLatest, deleteRecord bool) error
DeleteVolume deletes a specific version of volume or the latest version of volume. If deleteRecord is true, etcd info about this volume and VolumeVersionMap record are deleted.
func (*VolumeService) GetVolumeHistory ¶
func (vs *VolumeService) GetVolumeHistory(name string) ([]*models.VolumeHistoryItem, error)
func (*VolumeService) GetVolumeInfo ¶
func (vs *VolumeService) GetVolumeInfo(name string) (info models.EtcdVolumeInfo, err error)
func (*VolumeService) PatchVolumeSize ¶
func (vs *VolumeService) PatchVolumeSize(name string, spec *models.VolumeSize) (resp volume.Volume, err error)
Click to show internal directories.
Click to hide internal directories.