Versions in this module Expand all Collapse all v3 v3.1.0 Nov 21, 2023 Changes in this version + const AccessCodeLabel + const EnvironmentLabel + const OneTimeAccessCodeLabel + const RBACManagedLabel + const ScheduledEventLabel + const SessionLabel + const UserLabel + const VirtualMachineTemplate + func CountMachinesPerTemplateAndEnvironment(vmLister hfListers.VirtualMachineLister, template string, enviroment string) (int, error) + func CountMachinesPerTemplateAndEnvironmentAndScheduledEvent(vmLister hfListers.VirtualMachineLister, template string, enviroment string, ...) (int, error) + 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 GetLock(lockName string, cfg *rest.Config) (resourcelock.Interface, error) + func GetProtoMarshaller() protojson.MarshalOptions + func GetReleaseNamespace() string + func GetVMConfig(env *hfv1.Environment, vmt *hfv1.VirtualMachineTemplate) map[string]string + func Max(x, y 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 StringPtr(s string) *string + 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 + func VirtualMachinesUsedDuringPeriod(hfClientset hfClientset.Interface, environment string, startString string, ...) (map[time.Time]map[string]int, map[string]int, error) + type ByTime []time.Time + func (t ByTime) Len() int + func (t ByTime) Less(i, j int) bool + func (t ByTime) Swap(i, j int) + type HTTPContent struct + Content []byte + Status string + Type string + type HTTPMessage struct + Message string + Status string + Type string + type Maximus struct + AvailableCount map[string]int + func MaxAvailableDuringPeriod(hfClientset hfClientset.Interface, environment string, startString string, ...) (Maximus, error) + type Range struct + End time.Time + Start time.Time + VMMapping map[string]int Other modules containing this package github.com/hobbyfarm/gargantua