versionmanager

package
v0.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package versionmanager is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var Github = RepositoryType(1)

Functions

This section is empty.

Types

type Asset

type Asset interface {
	GetName() string
	GetDownloadUrl() string
}

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

func (m *MockAsset) GetDownloadUrl() string

GetDownloadUrl mocks base method

func (*MockAsset) GetName

func (m *MockAsset) GetName() string

GetName 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

func (*MockRelease) GetName

func (m *MockRelease) GetName() string

GetName 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

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

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

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

func (*MockgithubRepositoryServiceInterface) GetLatestRelease

GetLatestRelease mocks base method

func (*MockgithubRepositoryServiceInterface) GetReleaseByTag

GetReleaseByTag mocks base method

func (*MockgithubRepositoryServiceInterface) ListReleases

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 Release

type Release interface {
	GetName() string
	GetAssetByName(name string) (Asset, error)
}

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 NewVersion(desiredVersion string) (*Version, error)

func (Version) Equal

func (version Version) Equal(other *coreVersion, precision versionPrecision) bool

func (*Version) GetAsset

func (version *Version) GetAsset() (f *osFile.File, err error)

func (Version) Higher

func (version Version) Higher(other *coreVersion, precision versionPrecision) bool

func (*Version) String

func (version *Version) String() string

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)

Jump to

Keyboard shortcuts

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