Documentation ¶
Overview ¶
Package versionmanager is a generated GoMock package.
Index ¶
- Variables
- type Asset
- type HugoInstaller
- type MockAsset
- type MockAssetMockRecorder
- type MockRelease
- type MockReleaseMockRecorder
- type MockRepositoryClient
- type MockRepositoryClientMockRecorder
- type MockgithubRepositoryInterface
- type MockgithubRepositoryInterfaceMockRecorder
- type MockgithubRepositoryServiceInterface
- func (m *MockgithubRepositoryServiceInterface) EXPECT() *MockgithubRepositoryServiceInterfaceMockRecorder
- func (m *MockgithubRepositoryServiceInterface) GetLatestRelease(ctx context.Context, owner, repo string) (*github.RepositoryRelease, *github.Response, error)
- func (m *MockgithubRepositoryServiceInterface) GetReleaseByTag(ctx context.Context, owner, repo, tag string) (*github.RepositoryRelease, *github.Response, error)
- func (m *MockgithubRepositoryServiceInterface) ListReleases(ctx context.Context, owner, repo string, opts *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)
- type MockgithubRepositoryServiceInterfaceMockRecorder
- func (mr *MockgithubRepositoryServiceInterfaceMockRecorder) GetLatestRelease(ctx, owner, repo interface{}) *gomock.Call
- func (mr *MockgithubRepositoryServiceInterfaceMockRecorder) GetReleaseByTag(ctx, owner, repo, tag interface{}) *gomock.Call
- func (mr *MockgithubRepositoryServiceInterfaceMockRecorder) ListReleases(ctx, owner, repo, opts interface{}) *gomock.Call
- type Release
- type RepositoryClient
- type RepositoryType
- type Version
- type VersionManager
Constants ¶
This section is empty.
Variables ¶
var Github = RepositoryType(1)
Functions ¶
This section is empty.
Types ¶
type HugoInstaller ¶
type HugoInstaller struct {
// contains filtered or unexported fields
}
type MockAsset ¶
type MockAsset struct {
// contains filtered or unexported fields
}
MockAsset is a mock of Asset interface
func NewMockAsset ¶
func NewMockAsset(ctrl *gomock.Controller) *MockAsset
NewMockAsset creates a new mock instance
func (*MockAsset) EXPECT ¶
func (m *MockAsset) EXPECT() *MockAssetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAsset) GetDownloadUrl ¶
GetDownloadUrl mocks base method
type MockAssetMockRecorder ¶
type MockAssetMockRecorder struct {
// contains filtered or unexported fields
}
MockAssetMockRecorder is the mock recorder for MockAsset
func (*MockAssetMockRecorder) GetDownloadUrl ¶
func (mr *MockAssetMockRecorder) GetDownloadUrl() *gomock.Call
GetDownloadUrl indicates an expected call of GetDownloadUrl
func (*MockAssetMockRecorder) GetName ¶
func (mr *MockAssetMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName
type MockRelease ¶
type MockRelease struct {
// contains filtered or unexported fields
}
MockRelease is a mock of Release interface
func NewMockRelease ¶
func NewMockRelease(ctrl *gomock.Controller) *MockRelease
NewMockRelease creates a new mock instance
func (*MockRelease) EXPECT ¶
func (m *MockRelease) EXPECT() *MockReleaseMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRelease) GetAssetByName ¶
func (m *MockRelease) GetAssetByName(name string) (Asset, error)
GetAssetByName mocks base method
type MockReleaseMockRecorder ¶
type MockReleaseMockRecorder struct {
// contains filtered or unexported fields
}
MockReleaseMockRecorder is the mock recorder for MockRelease
func (*MockReleaseMockRecorder) GetAssetByName ¶
func (mr *MockReleaseMockRecorder) GetAssetByName(name interface{}) *gomock.Call
GetAssetByName indicates an expected call of GetAssetByName
func (*MockReleaseMockRecorder) GetName ¶
func (mr *MockReleaseMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName
type MockRepositoryClient ¶
type MockRepositoryClient struct {
// contains filtered or unexported fields
}
MockRepositoryClient is a mock of RepositoryClient interface
func NewMockRepositoryClient ¶
func NewMockRepositoryClient(ctrl *gomock.Controller) *MockRepositoryClient
NewMockRepositoryClient creates a new mock instance
func (*MockRepositoryClient) EXPECT ¶
func (m *MockRepositoryClient) EXPECT() *MockRepositoryClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRepositoryClient) GetLatestRelease ¶
func (m *MockRepositoryClient) GetLatestRelease() (Release, error)
GetLatestRelease mocks base method
func (*MockRepositoryClient) GetPreviousRelease ¶
func (m *MockRepositoryClient) GetPreviousRelease(tag string) (Release, error)
GetPreviousRelease mocks base method
func (*MockRepositoryClient) GetReleaseByTag ¶
func (m *MockRepositoryClient) GetReleaseByTag(tag string) (Release, error)
GetReleaseByTag mocks base method
type MockRepositoryClientMockRecorder ¶
type MockRepositoryClientMockRecorder struct {
// contains filtered or unexported fields
}
MockRepositoryClientMockRecorder is the mock recorder for MockRepositoryClient
func (*MockRepositoryClientMockRecorder) GetLatestRelease ¶
func (mr *MockRepositoryClientMockRecorder) GetLatestRelease() *gomock.Call
GetLatestRelease indicates an expected call of GetLatestRelease
func (*MockRepositoryClientMockRecorder) GetPreviousRelease ¶
func (mr *MockRepositoryClientMockRecorder) GetPreviousRelease(tag interface{}) *gomock.Call
GetPreviousRelease indicates an expected call of GetPreviousRelease
func (*MockRepositoryClientMockRecorder) GetReleaseByTag ¶
func (mr *MockRepositoryClientMockRecorder) GetReleaseByTag(tag interface{}) *gomock.Call
GetReleaseByTag indicates an expected call of GetReleaseByTag
type MockgithubRepositoryInterface ¶
type MockgithubRepositoryInterface struct {
// contains filtered or unexported fields
}
MockgithubRepositoryInterface is a mock of githubRepositoryInterface interface
func NewMockgithubRepositoryInterface ¶
func NewMockgithubRepositoryInterface(ctrl *gomock.Controller) *MockgithubRepositoryInterface
NewMockgithubRepositoryInterface creates a new mock instance
func (*MockgithubRepositoryInterface) EXPECT ¶
func (m *MockgithubRepositoryInterface) EXPECT() *MockgithubRepositoryInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockgithubRepositoryInterfaceMockRecorder ¶
type MockgithubRepositoryInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockgithubRepositoryInterfaceMockRecorder is the mock recorder for MockgithubRepositoryInterface
type MockgithubRepositoryServiceInterface ¶
type MockgithubRepositoryServiceInterface struct {
// contains filtered or unexported fields
}
MockgithubRepositoryServiceInterface is a mock of githubRepositoryServiceInterface interface
func NewMockgithubRepositoryServiceInterface ¶
func NewMockgithubRepositoryServiceInterface(ctrl *gomock.Controller) *MockgithubRepositoryServiceInterface
NewMockgithubRepositoryServiceInterface creates a new mock instance
func (*MockgithubRepositoryServiceInterface) EXPECT ¶
func (m *MockgithubRepositoryServiceInterface) EXPECT() *MockgithubRepositoryServiceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockgithubRepositoryServiceInterface) GetLatestRelease ¶
func (m *MockgithubRepositoryServiceInterface) GetLatestRelease(ctx context.Context, owner, repo string) (*github.RepositoryRelease, *github.Response, error)
GetLatestRelease mocks base method
func (*MockgithubRepositoryServiceInterface) GetReleaseByTag ¶
func (m *MockgithubRepositoryServiceInterface) GetReleaseByTag(ctx context.Context, owner, repo, tag string) (*github.RepositoryRelease, *github.Response, error)
GetReleaseByTag mocks base method
func (*MockgithubRepositoryServiceInterface) ListReleases ¶
func (m *MockgithubRepositoryServiceInterface) ListReleases(ctx context.Context, owner, repo string, opts *github.ListOptions) ([]*github.RepositoryRelease, *github.Response, error)
ListReleases mocks base method
type MockgithubRepositoryServiceInterfaceMockRecorder ¶
type MockgithubRepositoryServiceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockgithubRepositoryServiceInterfaceMockRecorder is the mock recorder for MockgithubRepositoryServiceInterface
func (*MockgithubRepositoryServiceInterfaceMockRecorder) GetLatestRelease ¶
func (mr *MockgithubRepositoryServiceInterfaceMockRecorder) GetLatestRelease(ctx, owner, repo interface{}) *gomock.Call
GetLatestRelease indicates an expected call of GetLatestRelease
func (*MockgithubRepositoryServiceInterfaceMockRecorder) GetReleaseByTag ¶
func (mr *MockgithubRepositoryServiceInterfaceMockRecorder) GetReleaseByTag(ctx, owner, repo, tag interface{}) *gomock.Call
GetReleaseByTag indicates an expected call of GetReleaseByTag
func (*MockgithubRepositoryServiceInterfaceMockRecorder) ListReleases ¶
func (mr *MockgithubRepositoryServiceInterfaceMockRecorder) ListReleases(ctx, owner, repo, opts interface{}) *gomock.Call
ListReleases indicates an expected call of ListReleases
type RepositoryClient ¶
type RepositoryClient interface { GetLatestRelease() (Release, error) GetReleaseByTag(tag string) (Release, error) GetPreviousRelease(tag string) (Release, error) }
func NewRepositoryService ¶
func NewRepositoryService(repoType RepositoryType, organisation string, repository string, username string, password string) RepositoryClient
type RepositoryType ¶
type RepositoryType int
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
func NewVersion ¶
func (Version) Equal ¶
func (version Version) Equal(other *coreVersion, precision versionPrecision) bool
type VersionManager ¶
type VersionManager struct {
// contains filtered or unexported fields
}
func NewVersionManager ¶
func NewVersionManager(installDirectory string) (*VersionManager, error)
func (*VersionManager) GetExecPath ¶
func (manager *VersionManager) GetExecPath(desiredVersion string) (execPath string, version string, err error)