Documentation ¶
Index ¶
- Constants
- Variables
- func DefaultMountClusterImageDir(clusterName string) string
- func Format(platform v1.Platform) string
- func GetCPUVariantByInfo(os, arch, variant, model string) string
- func GetDefaultPlatform() v1.Platform
- func GetMountClusterImagePlatformDir(clusterName string, platform v1.Platform) string
- func Matched(src, dest v1.Platform) bool
- func Normalize(platform v1.Platform) v1.Platform
- func NormalizeArch(arch, variant string) (string, string)
- func Parse(specifier string) (v1.Platform, error)
- func ParsePlatforms(v string) ([]*v1.Platform, error)
Constants ¶
View Source
const ( ARM = "arm" ARM64 = "arm64" AMD = "amd64" UNKNOWN = "unknown" WINDOWS = "windows" DARWIN = "darwin" LINUX = "linux" )
Variables ¶
View Source
var ( ErrUnknown = errors.New("unknown") // used internally to represent a missed mapping. ErrInvalidArgument = errors.New("invalid argument") ErrNotFound = errors.New("not found") ErrNotSupport = errors.New("not support") ErrNotImplemented = errors.New("not implemented") // represents not supported and unimplemented )
Functions ¶
func GetCPUVariantByInfo ¶
GetCPUVariantByInfo get 'Cpu architecture', 'model name' from /proc/cpuinfo
func GetDefaultPlatform ¶
func NormalizeArch ¶
NormalizeArch normalizes the architecture.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.