Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: retriever.go
Generated by this command:
mockgen -source=retriever.go -package=version -destination=./retriever_mock.go
Package version is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: version.go
Generated by this command:
mockgen -source=version.go -package=version -destination=./version_mock.go
Package version is a generated GoMock package.
Index ¶
Constants ¶
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 ¶
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 ¶
func (m *MockRetriever) EXPECT() *MockRetrieverMockRecorder
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 ¶
func (m *MockRosaVersion) EXPECT() *MockRosaVersionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockRosaVersionMockRecorder ¶
type MockRosaVersionMockRecorder struct {
// contains filtered or unexported fields
}
MockRosaVersionMockRecorder is the mock recorder for MockRosaVersion.
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 ¶
func NewRosaVersion ¶
func NewRosaVersion() (RosaVersion, error)