version_management

package
v0.34.0-dev0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSyncerCliBuildInformation

func CreateSyncerCliBuildInformation(minimalCliVersion *semver.Version) *version2.CliBuildInformation

func IsValidToSync

func IsValidToSync(ctx context.Context, plugin version2.CliVersionHandler, syncerMinimalVersion *semver.Version) (bool, error)

Types

type Compatibility

type Compatibility int
const (
	CompatibilityUnknown Compatibility = iota
	NotSupported
	Deprecated
	Supported
)

type CompatibilityInformation

type CompatibilityInformation struct {
	Compatibility        Compatibility
	DeprecatedWarningMsg *string
	SupportedVersions    string
}

func IsCompatibleWithRaitoCloud

func IsCompatibleWithRaitoCloud(config *target.BaseConfig) (CompatibilityInformation, error)

type DeprecatedVersionGqlResponse

type DeprecatedVersionGqlResponse struct {
	DeprecatedVersions string  `json:"deprecatedVersions"`
	Msg                *string `json:"msg"`
}

type IncompatiblePluginVersionError

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

func (IncompatiblePluginVersionError) Error

type QueryResponse

type QueryResponse struct {
	SupportedVersions  string                        `json:"supportedVersions"`
	DeprecatedVersions *DeprecatedVersionGqlResponse `json:"deprecatedVersions"`
}

type Response

type Response struct {
	Response QueryResponse `json:"SupportedCLIVersion"`
}

type SupportedRaitoCloudVersions

type SupportedRaitoCloudVersions struct {
	SupportedVersions    *semver.Constraints
	DeprecatedVersions   *semver.Constraints
	DeprecatedVersionMsg *string
}

Jump to

Keyboard shortcuts

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