Documentation ¶
Index ¶
- Constants
- Variables
- func CreateConsoleProbe() *corev1.Probe
- func GetAlivePods(pods []*corev1.Pod) []*corev1.Pod
- func HostnameOrDie() string
- func IsPodUnschedulable(pod *corev1.Pod) bool
- type AttachVolumeRequest
- type BackupListResponse
- type BackupVolume
- type Controller
- type CreateBackupRequest
- type CreateSnapshotRequest
- type CreateSnapshotResponse
- type LonghornClient
- func (c *LonghornClient) AttachVolume(name, nodeID string) error
- func (c *LonghornClient) CreateBackup(volumeName, snapshotName string) error
- func (c *LonghornClient) CreateSnapshot(name string) (*CreateSnapshotResponse, error)
- func (c *LonghornClient) CreateVolume(machine *api.VirtualMachine, image *api.MachineImage) error
- func (c *LonghornClient) DeleteVolume(name string) error
- func (c *LonghornClient) GetBackup(volumeName, snapshotName string) (*BackupVolume, error)
- func (c *LonghornClient) GetBackupList(volumeName string) (*BackupListResponse, error)
- func (c *LonghornClient) GetVolume(name string) (*LonghornVolume, error)
- type LonghornVolume
- type VirtualMachineController
Constants ¶
View Source
const DockerContextDir = "/workspace"
Variables ¶
View Source
var Privileged = true
Functions ¶
func CreateConsoleProbe ¶ added in v0.2.0
func HostnameOrDie ¶
func HostnameOrDie() string
func IsPodUnschedulable ¶
Types ¶
type AttachVolumeRequest ¶ added in v0.2.0
type AttachVolumeRequest struct {
NodeID string `json:"hostId"`
}
type BackupListResponse ¶ added in v0.2.0
type BackupListResponse struct {
Items []*BackupVolume `json:"data"`
}
type BackupVolume ¶ added in v0.2.0
type Controller ¶ added in v0.2.0
type CreateBackupRequest ¶ added in v0.2.0
type CreateBackupRequest struct {
SnapshotName string `json:"name"`
}
type CreateSnapshotRequest ¶ added in v0.2.0
type CreateSnapshotRequest struct{}
type CreateSnapshotResponse ¶ added in v0.2.0
type LonghornClient ¶ added in v0.2.0
type LonghornClient struct {
// contains filtered or unexported fields
}
func NewLonghornClient ¶ added in v0.2.0
func NewLonghornClient(endpoint, accessKey, secretKey string, insecureSkipVerify bool) *LonghornClient
func (*LonghornClient) AttachVolume ¶ added in v0.2.0
func (c *LonghornClient) AttachVolume(name, nodeID string) error
func (*LonghornClient) CreateBackup ¶ added in v0.2.0
func (c *LonghornClient) CreateBackup(volumeName, snapshotName string) error
func (*LonghornClient) CreateSnapshot ¶ added in v0.2.0
func (c *LonghornClient) CreateSnapshot(name string) (*CreateSnapshotResponse, error)
func (*LonghornClient) CreateVolume ¶ added in v0.2.0
func (c *LonghornClient) CreateVolume(machine *api.VirtualMachine, image *api.MachineImage) error
func (*LonghornClient) DeleteVolume ¶ added in v0.2.0
func (c *LonghornClient) DeleteVolume(name string) error
func (*LonghornClient) GetBackup ¶ added in v0.2.0
func (c *LonghornClient) GetBackup(volumeName, snapshotName string) (*BackupVolume, error)
func (*LonghornClient) GetBackupList ¶ added in v0.2.0
func (c *LonghornClient) GetBackupList(volumeName string) (*BackupListResponse, error)
func (*LonghornClient) GetVolume ¶ added in v0.2.0
func (c *LonghornClient) GetVolume(name string) (*LonghornVolume, error)
type LonghornVolume ¶ added in v0.2.0
type LonghornVolume struct { Name string `json:"name"` Frontend string `json:"frontend"` Size string `json:"size"` BaseImage string `json:"baseImage"` NumberOfReplicas int `json:"numberOfReplicas"` StaleReplicaTimeout int `json:"staleReplicaTimeout"` Robustness string `json:"robustness"` State string `json:"state"` Controllers []Controller `json:"controllers"` }
type VirtualMachineController ¶
type VirtualMachineController struct {
// contains filtered or unexported fields
}
func NewVirtualMachineController ¶
func NewVirtualMachineController( vmClient vmclientset.Interface, kubeClient kubernetes.Interface, podInformer coreinformers.PodInformer, jobInformer batchinformers.JobInformer, svcInformer coreinformers.ServiceInformer, pvInformer coreinformers.PersistentVolumeInformer, pvcInformer coreinformers.PersistentVolumeClaimInformer, nodeInformer coreinformers.NodeInformer, machineInformer vminformers.VirtualMachineInformer, credInformer vminformers.CredentialInformer, settingInformer vminformers.SettingInformer, machineImageInformer vminformers.MachineImageInformer, bridgeIface string, noResourceLimits bool, ) *VirtualMachineController
func (*VirtualMachineController) Run ¶
func (ctrl *VirtualMachineController) Run()
Click to show internal directories.
Click to hide internal directories.