package
0.0.2
Repository: https://github.com/thekubeworld/k8devel.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

CompareFiles will compare two files, byte by byte to see if they are equal Args: fileone - first file to compare filetwo - second file to compare Returns: bool and error.
CreateTempFile will create temporary file Args: dirname - dir name filename - file name Returns: filename as string or error.
DetectConcurrencyPolicy is a helper for users use only Allow, Forbid and Replace instead of require them to manage k8s.io/api/batch/v1/types.go Args: allow, forbid, replace Returns: batch.AllowConcurrent, batch.ForbidConcurrent, batch.ReplaceConcurrent.
DetectContainerPortProtocol is a helper for users to use TCP or UDP words instead of require them to manage k8s.io/api/core/v1.
DetectContainerRestartPolicy is a helper for users to more friendly words like: onfailure, never or always instead of require them to manage k8s.io/api/core/v1.
DetectImagePullPolicy is a helper for users to use more friendly words like: always, ifnotpresent or never instead to require them to manage k8s.io/api/core/v1.
LimitType is a helper for users to specify the limit type as string: "Pod", "Container" or "PersistentVolumeClaim" in a namespace Args: string - pod, container or persistentvolumeclaim Returns: v1.LimitType (v1.LimitTypePod, v1.LimitTypeContainer, v1.LimitTypePersistentVolumeClaim, or error) .
DetectVolumeAccessModes is a helper for users use access mode as: rox, rwo, rwx, readonlymany, readwritemany, readwriteonce Remember: ROX - ReadOnlyMany - can be mounted in read-only mode to many hosts RWO - ReadWriteOnce - can be mounted in read/write mode to exactly 1 host RWX - ReadWriteMany - can be mounted in read/write mode to many hosts Args: string - rox, rwo, rwx, readonlymany, readwritemany, readwriteonce Returns: v1.PersistentVolumeAccessMode (v1.ReadOnlyMany, v1.ReadWriteMany, v1.ReadWriteOnce) or error.
DetectVolumeMode is a helper for users use mode as: persistentvolumeblock or block persistentvolumefilesystem or filesystem Args: string - persistentvolumeblock or block persistentvolumefilesystem or filesystem Returns: v1.PersistentVolumeMode or error.
DiffCommand will diff two files Args: fileone filtwo Returns: bytes from the file or error.
DownloadFile will download a file specified as temporary file Args: url - url to be download Returns: path as string or error.
GenerateRandomString will generate a random string Args: number of chars to be generated modeString lower or all Returns: random string.
GetResourceList returns a ResourceList with the specified cpu and memory or disk resource values.