{"modulePath":"github.com/SovereignCloudStack/cluster-stack-operator","version":"v0.5.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package kubernetesversion\n\nPackage kubernetesversion contains important structs and method for kubernetes version.\n\n## Variables\n\n```go\nvar (\n\t// ErrInvalidFormat is used for invalid format.\n\tErrInvalidFormat = errors.New(\"invalid format\")\n\n\t// ErrInvalidMajorVersion is used for invalid major version.\n\tErrInvalidMajorVersion = errors.New(\"invalid major version\")\n\n\t// ErrInvalidMinorVersion is used for invalid minor version.\n\tErrInvalidMinorVersion = errors.New(\"invalid minor version\")\n)\n```\n\n## Types\n\n```go\ntype KubernetesVersion struct {\n\tMajor int\n\tMinor int\n}\n```\nKubernetesVersion contains major and minor version.\n\n```go\nfunc New(majorStr, minorStr string) (KubernetesVersion, error)\n```\nNew returns a kubernetes version from specified major and minor version.\n\n```go\nfunc NewFromString(str string) (KubernetesVersion, error)\n```\nNewFromString returns a kubernetes version from a specified input.\n\n```go\nfunc (kv KubernetesVersion) String() string\n```\n\n```go\nfunc (kv KubernetesVersion) StringWithDot() string\n```\nStringWithDot returns the Kubernetes version in the format \\\u003cmajor\u003e.\\\u003cminor\u003e, e.g. 1.27.\n\n```go\nfunc (kv KubernetesVersion) Validate() error\n```\nValidate validates a kubernetes version.\n\n","path":"github.com/SovereignCloudStack/cluster-stack-operator/pkg/kubernetesversion","name":"kubernetesversion","synopsis":"Package kubernetesversion contains important structs and method for kubernetes version.","isRedistributable":true}
