sdkversion

package
v0.0.0-...-ea0ecbd Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package sdkversion is a generated GoMock package.

Package sdkversion is a generated GoMock package.

Package sdkversion is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	fmt.GoStringer

	WithExternalStore(cacheStorage CacheStorage) Cache

	Valid(ctx context.Context) bool
	Load(ctx context.Context, versionType VersionType) []SDKVersion
	Store(ctx context.Context, versionType VersionType, sdkVersions []SDKVersion)
}

type CacheStorage

type CacheStorage interface {
	fmt.GoStringer

	Valid(ctx context.Context) bool

	Load(ctx context.Context) map[VersionType][]SDKVersion
	Store(ctx context.Context, versions map[VersionType][]SDKVersion)
}

type MockCache

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

MockCache is a mock of Cache interface.

func NewMockCache

func NewMockCache(ctrl *gomock.Controller) *MockCache

NewMockCache creates a new mock instance.

func (*MockCache) EXPECT

func (m *MockCache) EXPECT() *MockCacheMockRecorder

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

func (*MockCache) GoString

func (m *MockCache) GoString() string

GoString mocks base method.

func (*MockCache) Load

func (m *MockCache) Load(ctx context.Context, versionType VersionType) []SDKVersion

Load mocks base method.

func (*MockCache) Store

func (m *MockCache) Store(ctx context.Context, versionType VersionType, sdkVersions []SDKVersion)

Store mocks base method.

func (*MockCache) Valid

func (m *MockCache) Valid(ctx context.Context) bool

Valid mocks base method.

func (*MockCache) WithExternalStore

func (m *MockCache) WithExternalStore(cacheStorage CacheStorage) Cache

WithExternalStore mocks base method.

type MockCacheMockRecorder

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

MockCacheMockRecorder is the mock recorder for MockCache.

func (*MockCacheMockRecorder) GoString

func (mr *MockCacheMockRecorder) GoString() *gomock.Call

GoString indicates an expected call of GoString.

func (*MockCacheMockRecorder) Load

func (mr *MockCacheMockRecorder) Load(ctx, versionType any) *gomock.Call

Load indicates an expected call of Load.

func (*MockCacheMockRecorder) Store

func (mr *MockCacheMockRecorder) Store(ctx, versionType, sdkVersions any) *gomock.Call

Store indicates an expected call of Store.

func (*MockCacheMockRecorder) Valid

func (mr *MockCacheMockRecorder) Valid(ctx any) *gomock.Call

Valid indicates an expected call of Valid.

func (*MockCacheMockRecorder) WithExternalStore

func (mr *MockCacheMockRecorder) WithExternalStore(cacheStorage any) *gomock.Call

WithExternalStore indicates an expected call of WithExternalStore.

type MockCacheStorage

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

MockCacheStorage is a mock of CacheStorage interface.

func NewMockCacheStorage

func NewMockCacheStorage(ctrl *gomock.Controller) *MockCacheStorage

NewMockCacheStorage creates a new mock instance.

func (*MockCacheStorage) EXPECT

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

func (*MockCacheStorage) GoString

func (m *MockCacheStorage) GoString() string

GoString mocks base method.

func (*MockCacheStorage) Load

Load mocks base method.

func (*MockCacheStorage) Store

func (m *MockCacheStorage) Store(ctx context.Context, versions map[VersionType][]SDKVersion)

Store mocks base method.

func (*MockCacheStorage) Valid

func (m *MockCacheStorage) Valid(ctx context.Context) bool

Valid mocks base method.

type MockCacheStorageMockRecorder

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

MockCacheStorageMockRecorder is the mock recorder for MockCacheStorage.

func (*MockCacheStorageMockRecorder) GoString

func (mr *MockCacheStorageMockRecorder) GoString() *gomock.Call

GoString indicates an expected call of GoString.

func (*MockCacheStorageMockRecorder) Load

Load indicates an expected call of Load.

func (*MockCacheStorageMockRecorder) Store

func (mr *MockCacheStorageMockRecorder) Store(ctx, versions any) *gomock.Call

Store indicates an expected call of Store.

func (*MockCacheStorageMockRecorder) Valid

func (mr *MockCacheStorageMockRecorder) Valid(ctx any) *gomock.Call

Valid indicates an expected call of Valid.

type MockSDKVersions

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

MockSDKVersions is a mock of SDKVersions interface.

func NewMockSDKVersions

func NewMockSDKVersions(ctrl *gomock.Controller) *MockSDKVersions

NewMockSDKVersions creates a new mock instance.

func (*MockSDKVersions) AllVersions

func (m *MockSDKVersions) AllVersions(ctx context.Context, rebuildCache bool) ([]SDKVersion, error)

AllVersions mocks base method.

func (*MockSDKVersions) EXPECT

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

func (*MockSDKVersions) GoString

func (m *MockSDKVersions) GoString() string

GoString mocks base method.

func (*MockSDKVersions) LatestVersion

func (m *MockSDKVersions) LatestVersion(ctx context.Context, rebuildCache bool) (SDKVersion, error)

LatestVersion mocks base method.

func (*MockSDKVersions) WithCache

func (m *MockSDKVersions) WithCache(cache Cache) SDKVersions

WithCache mocks base method.

type MockSDKVersionsMockRecorder

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

MockSDKVersionsMockRecorder is the mock recorder for MockSDKVersions.

func (*MockSDKVersionsMockRecorder) AllVersions

func (mr *MockSDKVersionsMockRecorder) AllVersions(ctx, rebuildCache any) *gomock.Call

AllVersions indicates an expected call of AllVersions.

func (*MockSDKVersionsMockRecorder) GoString

func (mr *MockSDKVersionsMockRecorder) GoString() *gomock.Call

GoString indicates an expected call of GoString.

func (*MockSDKVersionsMockRecorder) LatestVersion

func (mr *MockSDKVersionsMockRecorder) LatestVersion(ctx, rebuildCache any) *gomock.Call

LatestVersion indicates an expected call of LatestVersion.

func (*MockSDKVersionsMockRecorder) WithCache

func (mr *MockSDKVersionsMockRecorder) WithCache(cache any) *gomock.Call

WithCache indicates an expected call of WithCache.

type PrintFormatOptions

type PrintFormatOptions struct {
	OutputType bool

	OutputInstalled    bool
	OutputNotInstalled bool
}

type SDKVersion

type SDKVersion struct {
	ID        string
	Type      VersionType
	Installed bool `json:"-"`
}

func (*SDKVersion) Print

func (receiver *SDKVersion) Print() string

func (*SDKVersion) PrintWithOptions

func (receiver *SDKVersion) PrintWithOptions(outType, outInstalled, outNotInstalled bool) string

type SDKVersions

type SDKVersions interface {
	fmt.GoStringer

	WithCache(cache Cache) SDKVersions

	AllVersions(ctx context.Context, rebuildCache bool) ([]SDKVersion, error)
	LatestVersion(ctx context.Context, rebuildCache bool) (SDKVersion, error)
}

type VersionType

type VersionType string
const (
	TypeStable   VersionType = "stable"
	TypeUnstable VersionType = "unstable"
	TypeArchived VersionType = "archived"
)

Jump to

Keyboard shortcuts

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