version

package
v1.2.40 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package version is a generated GoMock package.

Package version is a generated GoMock package.

Index

Constants

View Source
const (
	DownloadLatestMirrorFolder = "https://mirror.openshift.com/pub/openshift-v4/clients/rosa/latest/"

	ConsoleLatestFolder = "https://console.redhat.com/openshift/downloads#tool-rosa"
)

Variables

This section is empty.

Functions

func ShouldRunCheck

func ShouldRunCheck(cmd *cobra.Command) bool

Types

type MockRetriever

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

MockRetriever is a mock of Retriever interface.

func NewMockRetriever

func NewMockRetriever(ctrl *gomock.Controller) *MockRetriever

NewMockRetriever creates a new mock instance.

func (*MockRetriever) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRetriever) RetrieveLatestVersionFromMirror

func (m *MockRetriever) RetrieveLatestVersionFromMirror() (*version.Version, error)

RetrieveLatestVersionFromMirror mocks base method.

func (*MockRetriever) RetrievePossibleVersionsFromCache

func (m *MockRetriever) RetrievePossibleVersionsFromCache() ([]string, bool)

RetrievePossibleVersionsFromCache mocks base method.

func (*MockRetriever) RetrievePossibleVersionsFromMirror

func (m *MockRetriever) RetrievePossibleVersionsFromMirror() ([]string, error)

RetrievePossibleVersionsFromMirror mocks base method.

type MockRetrieverMockRecorder

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

MockRetrieverMockRecorder is the mock recorder for MockRetriever.

func (*MockRetrieverMockRecorder) RetrieveLatestVersionFromMirror

func (mr *MockRetrieverMockRecorder) RetrieveLatestVersionFromMirror() *gomock.Call

RetrieveLatestVersionFromMirror indicates an expected call of RetrieveLatestVersionFromMirror.

func (*MockRetrieverMockRecorder) RetrievePossibleVersionsFromCache

func (mr *MockRetrieverMockRecorder) RetrievePossibleVersionsFromCache() *gomock.Call

RetrievePossibleVersionsFromCache indicates an expected call of RetrievePossibleVersionsFromCache.

func (*MockRetrieverMockRecorder) RetrievePossibleVersionsFromMirror

func (mr *MockRetrieverMockRecorder) RetrievePossibleVersionsFromMirror() *gomock.Call

RetrievePossibleVersionsFromMirror indicates an expected call of RetrievePossibleVersionsFromMirror.

type MockRosaVersion

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

MockRosaVersion is a mock of RosaVersion interface.

func NewMockRosaVersion

func NewMockRosaVersion(ctrl *gomock.Controller) *MockRosaVersion

NewMockRosaVersion creates a new mock instance.

func (*MockRosaVersion) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRosaVersion) IsLatest

func (m *MockRosaVersion) IsLatest(latestVersion string) (*version.Version, bool, error)

IsLatest mocks base method.

type MockRosaVersionMockRecorder

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

MockRosaVersionMockRecorder is the mock recorder for MockRosaVersion.

func (*MockRosaVersionMockRecorder) IsLatest

func (mr *MockRosaVersionMockRecorder) IsLatest(latestVersion any) *gomock.Call

IsLatest indicates an expected call of IsLatest.

type Retriever

type Retriever interface {
	RetrieveLatestVersionFromMirror() (*goVer.Version, error)
	RetrievePossibleVersionsFromCache() ([]string, bool)
	RetrievePossibleVersionsFromMirror() ([]string, error)
}

func NewRetriever

func NewRetriever(spec RetrieverSpec) Retriever

type RetrieverSpec

type RetrieverSpec struct {
	Logger *logrus.Logger
	Client clients.HTTPClient
	Cache  cache.RosaCacheService
}

type RosaVersion

type RosaVersion interface {
	IsLatest(latestVersion string) (*goVer.Version, bool, error)
}

func NewRosaVersion

func NewRosaVersion() (RosaVersion, error)

Jump to

Keyboard shortcuts

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