releaseinfo

package
v0.0.0-...-2caf503 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsComponentNotFound

func IsComponentNotFound(err error) bool

IsComponentNotFound asserts componentNotFoundError.

func IsInternalServerError

func IsInternalServerError(err error) bool

IsInternalServerError asserts internalServerError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotAuthorized

func IsNotAuthorized(err error) bool

IsNotAuthorized asserts notAuthorizedError.

func IsVersionNotFound

func IsVersionNotFound(err error) bool

IsVersionNotFound asserts versionNotFoundError.

Types

type Config

type Config struct {
	ClientWrapper *client.Wrapper
}

type ReleaseData

type ReleaseData struct {
	Version           string
	K8sVersion        string
	K8sVersionEOLDate string
	IsK8sVersionEOL   bool
}

type ReleaseInfo

type ReleaseInfo struct {
	// contains filtered or unexported fields
}

ReleaseInfo is an utility data structure for collecting common information about a GS release version.

func New

func New(c Config) (*ReleaseInfo, error)

func (*ReleaseInfo) GetReleaseData

func (ri *ReleaseInfo) GetReleaseData(version string) (ReleaseData, error)

GetReleaseData fetches release information such as Kubernetes version status, based on a given GS release version.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL