Documentation ¶
Index ¶
- func AvailableRawCapacity(hfClientset hfClientset.Interface, capacity hfv1.CMSStruct, ...) *hfv1.CMSStruct
- func EnsureVMNotReady(hfClientset hfClientset.Interface, vmLister hfListers.VirtualMachineLister, ...) error
- func GenKeyPair() (string, string, error)
- func GenerateResourceName(prefix string, input string, hashlength int) string
- func GetHTTPErrorCode(httpStatus int) string
- func GetReleaseNamespace() string
- func MaxVMCountsRaw(hfClientset hfClientset.Interface, vmTemplates map[string]int, ...) int
- func RandStringRunes(n int) string
- func ResourceVersionAtLeast(curr, min string) bool
- func ReturnHTTPContent(w http.ResponseWriter, r *http.Request, httpStatus int, messageType string, ...)
- func ReturnHTTPMessage(w http.ResponseWriter, r *http.Request, httpStatus int, messageType string, ...)
- func ReturnHTTPRaw(w http.ResponseWriter, r *http.Request, content string)
- func StringInSlice(a string, list []string) bool
- func UniqueStringSlice(stringSlice []string) []string
- func VerifySession(sLister hfListers.SessionLister, s *hfv1.Session) error
- func VerifyVM(vmLister hfListers.VirtualMachineLister, vm *hfv1.VirtualMachine) error
- func VerifyVMClaim(vmClaimLister hfListers.VirtualMachineClaimLister, ...) error
- func VerifyVMDeleted(vmLister hfListers.VirtualMachineLister, vm *hfv1.VirtualMachine) error
- func VerifyVMSet(vmSetLister hfListers.VirtualMachineSetLister, vms *hfv1.VirtualMachineSet) error
- type HTTPContent
- type HTTPMessage
- type Maximus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableRawCapacity ¶
func AvailableRawCapacity(hfClientset hfClientset.Interface, capacity hfv1.CMSStruct, virtualMachines []hfv1.VirtualMachine, ctx context.Context) *hfv1.CMSStruct
func EnsureVMNotReady ¶
func EnsureVMNotReady(hfClientset hfClientset.Interface, vmLister hfListers.VirtualMachineLister, vmName string, ctx context.Context) error
func GenKeyPair ¶
func GenerateResourceName ¶
func GetHTTPErrorCode ¶
func GetReleaseNamespace ¶ added in v1.0.0
func GetReleaseNamespace() string
func MaxVMCountsRaw ¶
func RandStringRunes ¶
func ResourceVersionAtLeast ¶
borrowed from longhorn
func ReturnHTTPContent ¶
func ReturnHTTPMessage ¶
func ReturnHTTPRaw ¶
func ReturnHTTPRaw(w http.ResponseWriter, r *http.Request, content string)
func StringInSlice ¶ added in v0.1.8
func UniqueStringSlice ¶
func VerifySession ¶ added in v0.1.8
func VerifySession(sLister hfListers.SessionLister, s *hfv1.Session) error
func VerifyVM ¶
func VerifyVM(vmLister hfListers.VirtualMachineLister, vm *hfv1.VirtualMachine) error
func VerifyVMClaim ¶
func VerifyVMClaim(vmClaimLister hfListers.VirtualMachineClaimLister, vmc *hfv1.VirtualMachineClaim) error
func VerifyVMDeleted ¶
func VerifyVMDeleted(vmLister hfListers.VirtualMachineLister, vm *hfv1.VirtualMachine) error
func VerifyVMSet ¶
func VerifyVMSet(vmSetLister hfListers.VirtualMachineSetLister, vms *hfv1.VirtualMachineSet) error
Types ¶
type HTTPContent ¶
type HTTPMessage ¶
Click to show internal directories.
Click to hide internal directories.