version

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// EnablePreReleases allows the installer to install pre-release versions of the operator.
	// This setting is defined at build time
	// -X github.com/storageos/kubectl-storageos/pkg/version.EnablePreReleases=true
	EnablePreReleases string

	PluginVersion string
)

Functions

func ClusterLatestSupportedURL

func ClusterLatestSupportedURL() string

func ClusterOperatorLastVersion

func ClusterOperatorLastVersion() string

func ClusterUrlByVersion

func ClusterUrlByVersion(operatorVersion string) (string, error)

func EtcdClusterLatestSupportedURL

func EtcdClusterLatestSupportedURL() string

func EtcdOperatorLatestSupportedImageURL added in v1.1.0

func EtcdOperatorLatestSupportedImageURL() string

func EtcdOperatorLatestSupportedURL

func EtcdOperatorLatestSupportedURL() string

func EtcdOperatorLatestSupportedVersion added in v1.1.0

func EtcdOperatorLatestSupportedVersion() string

func EtcdOperatorReleasesURL added in v1.4.0

func EtcdOperatorReleasesURL() string

func GetExistingEtcdOperatorVersion added in v1.2.0

func GetExistingEtcdOperatorVersion(namespace string) (string, error)

func GetExistingOperatorVersion

func GetExistingOperatorVersion(namespace string) (string, error)

func GetExistingPortalManagerVersion added in v1.4.0

func GetExistingPortalManagerVersion() (string, error)

func IsDevelop

func IsDevelop(version string) bool

func IsSupported

func IsSupported(haveVersion, wantVersion string) (bool, error)

IsSupported takes two versions, current version (haveVersion) and a minimum requirement version (wantVersion) and checks if the current version is supported by comparing it with the minimum requirement.

func LocalPathProvisionerLatestSupportVersion added in v1.2.1

func LocalPathProvisionerLatestSupportVersion() string

func OperatorImageUrlByVersion added in v1.1.0

func OperatorImageUrlByVersion(operatorVersion string) (string, error)

func OperatorLatestSupportedImageURL added in v1.1.0

func OperatorLatestSupportedImageURL() string

func OperatorLatestSupportedURL

func OperatorLatestSupportedURL() string

func OperatorLatestSupportedVersion

func OperatorLatestSupportedVersion() string

func OperatorReleasesURL added in v1.4.0

func OperatorReleasesURL() string

func PortalClientLatestSupportedURL

func PortalClientLatestSupportedURL() string

func PortalConfigLatestSupportedURL

func PortalConfigLatestSupportedURL() string

func PortalManagerLatestSupportedImageURL added in v1.1.0

func PortalManagerLatestSupportedImageURL() string

func PortalManagerLatestSupportedVersion added in v1.1.0

func PortalManagerLatestSupportedVersion() string

func PortalManagerReleasesURL added in v1.4.0

func PortalManagerReleasesURL() string

func PortalSecretLatestSupportedURL

func PortalSecretLatestSupportedURL() string

func ResourceQuotaLatestSupportedURL

func ResourceQuotaLatestSupportedURL() string

func ResourceQuotaUrlByVersion

func ResourceQuotaUrlByVersion(operatorVersion string) (string, error)

func SecretUrlByVersion

func SecretUrlByVersion(operatorVersion string) (string, error)

func SetEtcdOperatorLatestSupportedVersion added in v1.1.0

func SetEtcdOperatorLatestSupportedVersion(version string)

func SetOperatorLatestSupportedVersion

func SetOperatorLatestSupportedVersion(version string)

func SetPortalManagerLatestSupportedVersion added in v1.1.0

func SetPortalManagerLatestSupportedVersion(version string)

func VersionIsEqualTo

func VersionIsEqualTo(version, marker string) (bool, error)

func VersionIsLessThan

func VersionIsLessThan(version, marker string) (bool, error)

func VersionIsLessThanOrEqual

func VersionIsLessThanOrEqual(version, marker string) (bool, error)

Types

type GithubRelease

type GithubRelease struct {
	URL       string `json:"url,omitempty"`
	AssetsURL string `json:"assets_url,omitempty"`
	UploadURL string `json:"upload_url,omitempty"`
	HTMLURL   string `json:"html_url,omitempty"`
	ID        int    `json:"id,omitempty"`
	Author    struct {
		Login             string `json:"login,omitempty"`
		ID                int    `json:"id,omitempty"`
		NodeID            string `json:"node_id,omitempty"`
		AvatarURL         string `json:"avatar_url,omitempty"`
		GravatarID        string `json:"gravatar_id,omitempty"`
		URL               string `json:"url,omitempty"`
		HTMLURL           string `json:"html_url,omitempty"`
		FollowersURL      string `json:"followers_url,omitempty"`
		FollowingURL      string `json:"following_url,omitempty"`
		GistsURL          string `json:"gists_url,omitempty"`
		StarredURL        string `json:"starred_url,omitempty"`
		SubscriptionsURL  string `json:"subscriptions_url,omitempty"`
		OrganizationsURL  string `json:"organizations_url,omitempty"`
		ReposURL          string `json:"repos_url,omitempty"`
		EventsURL         string `json:"events_url,omitempty"`
		ReceivedEventsURL string `json:"received_events_url,omitempty"`
		Type              string `json:"type,omitempty"`
		SiteAdmin         bool   `json:"site_admin,omitempty"`
	} `json:"author,omitempty"`
	NodeID          string        `json:"node_id,omitempty"`
	TagName         string        `json:"tag_name,omitempty"`
	TargetCommitish string        `json:"target_commitish,omitempty"`
	Name            string        `json:"name,omitempty"`
	Draft           bool          `json:"draft,omitempty"`
	Prerelease      bool          `json:"prerelease,omitempty"`
	CreatedAt       time.Time     `json:"created_at,omitempty"`
	PublishedAt     time.Time     `json:"published_at,omitempty"`
	Assets          []interface{} `json:"assets,omitempty"`
	TarballURL      string        `json:"tarball_url,omitempty"`
	ZipballURL      string        `json:"zipball_url,omitempty"`
	Body            string        `json:"body,omitempty"`
}

Jump to

Keyboard shortcuts

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