Documentation ¶
Overview ¶
Copyright 2019 The Fossul Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019 The Fossul Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019 The Fossul Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019 The Fossul Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019 The Fossul Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019 The Fossul Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2019 The Fossul Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func AddVirtualMachineDisk(namespace, accessWithinCluster, diskName, pvcName string) error
- func CreateBackupCustomResource(...) error
- func CreatePersistentVolumeClaimFromSnapshot(pvcName, pvcSize, snapshotName, namespace, storageClassName, ... string) error
- func CreatePersistentVolumeClaimFromSnapshotWithModes(pvcName, pvcSize, snapshotName, namespace, storageClassName, ... string, ...) error
- func CreateSnapshot(...) error
- func CreateVirtualMachineSnapshot(namespace, accessWithinCluster, vmName string) error
- func DeleteBackupCustomResource(accessWithinCluster, namespace, crName string) error
- func DeletePersistentVolumeClaim(pvcName, namespace, accessWithinCluster string, timeoutSeconds int) error
- func DeleteSnapshot(name, namespace, accessWithinCluster string) error
- func DeleteVirtualMachineDisk(namespace, accessWithinCluster, diskName string) error
- func DeleteVirtualMachineSnapshot(namespace, accessWithinCluster, snapshotName string) error
- func ExecuteCommand(podName, containerName, namespace, accessWithinCluster string, args ...string) util.Result
- func ExecuteCommandWithStdout(podName, containerName, namespace, accessWithinCluster string, args ...string) (util.Result, string)
- func FreezeVirtualMachine(namespace, accessWithinCluster, vmName string, unfreezeTimeout time.Duration) error
- func GeneratePersistentVolumeClaimVolumeName(pvcName string) *v1.PersistentVolumeClaimVolumeSource
- func GetBackupCustomResource(accessWithinCluster, namespace, crName string) (*unstructured.Unstructured, error)
- func GetDeployment(namespace, deploymentName, accessWithinCluster string) (*apps.Deployment, error)
- func GetDeploymentConfig(namespace, deploymentConfigName, accessWithinCluster string) (*apps.DeploymentConfig, error)
- func GetDeploymentConfigScaleInteger(namespace, deploymentConfigName, accessWithinCluster string) (int32, error)
- func GetDeploymentScaleInteger(namespace, deploymentName, accessWithinCluster string) (*int32, error)
- func GetGlusterVolumePath(pvName, accessWithinCluster string) (string, error)
- func GetOwner(namespace, service, accessWithinCluster string) (string, string, error)
- func GetPersistentVolume(pvName, accessWithinCluster string) (*v1.PersistentVolume, error)
- func GetPersistentVolumeClaim(namespace, pvcName, accessWithinCluster string) (*v1.PersistentVolumeClaim, error)
- func GetPersistentVolumeName(namespace, pvcName, accessWithinCluster string) (string, error)
- func GetPod(podName, namespace, accessWithinCluster string) (*v1.Pod, error)
- func GetPodByName(namespace, podName, accessWithinCluster string) (string, error)
- func GetPodContainer(podName, namespace, accessWithinCluster string) (string, error)
- func GetPodIp(namespace, podName, accessWithinCluster string) (string, error)
- func GetPodName(namespace, podSelector, accessWithinCluster string) (string, error)
- func GetReplicationController(rcName, namespace, accessWithinCluster string) (*v1.ReplicationController, error)
- func GetSnapshot(name, namespace, accessWithinCluster string) (*snapshotv1.VolumeSnapshot, error)
- func GetSnapshotHandle(contentName *string, namespace string, accessWithinCluster string) (string, error)
- func GetStorageClassProvisionerName(storageClassName, accessWithinCluster string) (string, error)
- func GetVirtualMachine(namespace, accessWithinCluster, vmName string) (*virtv1.VirtualMachine, error)
- func GetVolumeSnapshotClassName(storageDriverName, accessWithinCluster string) (string, error)
- func IsRemoteCommand(arg string) bool
- func ListBackupCustomResources(accessWithinCluster, namespace string) (*unstructured.UnstructuredList, error)
- func ListPersistentVolumeClaims(namespace, accessWithinCluster string) (*v1.PersistentVolumeClaimList, error)
- func ListSnapshots(namespace, accessWithinCluster string) (*snapshotv1.VolumeSnapshotList, error)
- func ListVirtualMachineSnapshots(namespace, accessWithinCluster, vmName string) (*snapshotv1.VirtualMachineSnapshotList, error)
- func ListVirtualMachines(namespace, accessWithinCluster string) (*virtv1.VirtualMachineInstanceList, error)
- func PauseVirtualMachine(namespace, accessWithinCluster, vmName string, unfreezeTimeout time.Duration) error
- func ScaleDownDeployment(namespace, deploymentConfigName, accessWithinCluster string, size int32, t int) error
- func ScaleDownDeploymentConfig(namespace, deploymentConfigName, accessWithinCluster string, size int32, t int) error
- func ScaleUpDeployment(namespace, deploymentConfigName, accessWithinCluster string, size int32, t int) error
- func ScaleUpDeploymentConfig(namespace, deploymentConfigName, accessWithinCluster string, size int32, t int) error
- func StartVirtualMachine(namespace, accessWithinCluster, vmName string) error
- func StopVirtualMachine(namespace, accessWithinCluster, vmName string) error
- func UnFreezeVirtualMachine(namespace, accessWithinCluster, vmName string, unfreezeTimeout time.Duration) error
- func UnPauseVirtualMachine(namespace, accessWithinCluster, vmName string, unfreezeTimeout time.Duration) error
- func UpdateBackupCustomResource(accessWithinCluster, namespace, crName, op, specKey, specValue string) error
- func UpdateDeploymentConfigVolume(...) error
- func UpdateDeploymentVolume(pvcName, restorePvcName, namespace, deploymentName, accessWithinCluster string) error
- func UpdateVirtualMachineDisk(namespace, accessWithinCluster, vmName, diskName, pvcName string) error
- func UpdateVirtualMachineVolumeSource(namespace, accessWithinCluster, vmName, pvcName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddVirtualMachineDisk ¶
func CreatePersistentVolumeClaimFromSnapshotWithModes ¶
func CreatePersistentVolumeClaimFromSnapshotWithModes(pvcName, pvcSize, snapshotName, namespace, storageClassName, accessWithinCluster string, accessModes []v1.PersistentVolumeAccessMode, volumeMode *v1.PersistentVolumeMode) error
func CreateSnapshot ¶
func DeleteSnapshot ¶
func ExecuteCommand ¶
func FreezeVirtualMachine ¶
func GeneratePersistentVolumeClaimVolumeName ¶
func GeneratePersistentVolumeClaimVolumeName(pvcName string) *v1.PersistentVolumeClaimVolumeSource
func GetBackupCustomResource ¶
func GetBackupCustomResource(accessWithinCluster, namespace, crName string) (*unstructured.Unstructured, error)
func GetDeployment ¶
func GetDeployment(namespace, deploymentName, accessWithinCluster string) (*apps.Deployment, error)
func GetDeploymentConfig ¶
func GetDeploymentConfig(namespace, deploymentConfigName, accessWithinCluster string) (*apps.DeploymentConfig, error)
func GetGlusterVolumePath ¶
func GetPersistentVolume ¶
func GetPersistentVolume(pvName, accessWithinCluster string) (*v1.PersistentVolume, error)
func GetPersistentVolumeClaim ¶
func GetPersistentVolumeClaim(namespace, pvcName, accessWithinCluster string) (*v1.PersistentVolumeClaim, error)
func GetPersistentVolumeName ¶
func GetPodByName ¶
func GetPodContainer ¶
func GetPodName ¶
func GetReplicationController ¶
func GetReplicationController(rcName, namespace, accessWithinCluster string) (*v1.ReplicationController, error)
func GetSnapshot ¶
func GetSnapshot(name, namespace, accessWithinCluster string) (*snapshotv1.VolumeSnapshot, error)
func GetSnapshotHandle ¶
func GetVirtualMachine ¶
func GetVirtualMachine(namespace, accessWithinCluster, vmName string) (*virtv1.VirtualMachine, error)
func IsRemoteCommand ¶
func ListBackupCustomResources ¶
func ListBackupCustomResources(accessWithinCluster, namespace string) (*unstructured.UnstructuredList, error)
func ListPersistentVolumeClaims ¶
func ListPersistentVolumeClaims(namespace, accessWithinCluster string) (*v1.PersistentVolumeClaimList, error)
func ListSnapshots ¶
func ListSnapshots(namespace, accessWithinCluster string) (*snapshotv1.VolumeSnapshotList, error)
func ListVirtualMachineSnapshots ¶
func ListVirtualMachineSnapshots(namespace, accessWithinCluster, vmName string) (*snapshotv1.VirtualMachineSnapshotList, error)
func ListVirtualMachines ¶
func ListVirtualMachines(namespace, accessWithinCluster string) (*virtv1.VirtualMachineInstanceList, error)
func PauseVirtualMachine ¶
func ScaleDownDeployment ¶
func ScaleUpDeployment ¶
func ScaleUpDeploymentConfig ¶
func StartVirtualMachine ¶
func StopVirtualMachine ¶
func UnFreezeVirtualMachine ¶
func UnPauseVirtualMachine ¶
func UpdateDeploymentVolume ¶
Types ¶
This section is empty.