extension

package
v3.3.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package extension is a generated GoMock package.

Index

Constants

View Source
const (
	DefaultExtensionName  = "stateful.runme"
	PlatformExtensionName = "stateful.platform"
)

Variables

This section is empty.

Functions

func Install

func Install(extensionName string) error

func InstallCommand

func InstallCommand(extensionName string) string

func IsInstalled

func IsInstalled(allExtensionNames []string) (string, bool, error)

func Update

func Update(extensionName string) error

Types

type Extensioner

type Extensioner interface {
	IsInstalled() (string, bool, error)
	Install() error
	InstallCommand() string
	Update() error
}

func New added in v3.3.2

func New(isStateful bool) Extensioner

type MockExtensioner

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

MockExtensioner is a mock of Extensioner interface.

func NewMockExtensioner

func NewMockExtensioner(ctrl *gomock.Controller) *MockExtensioner

NewMockExtensioner creates a new mock instance.

func (*MockExtensioner) EXPECT

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

func (*MockExtensioner) Install

func (m *MockExtensioner) Install() error

Install mocks base method.

func (*MockExtensioner) InstallCommand added in v3.3.2

func (m *MockExtensioner) InstallCommand() string

InstallCommand mocks base method.

func (*MockExtensioner) IsInstalled

func (m *MockExtensioner) IsInstalled() (string, bool, error)

IsInstalled mocks base method.

func (*MockExtensioner) Update

func (m *MockExtensioner) Update() error

Update mocks base method.

type MockExtensionerMockRecorder

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

MockExtensionerMockRecorder is the mock recorder for MockExtensioner.

func (*MockExtensionerMockRecorder) Install

func (mr *MockExtensionerMockRecorder) Install() *gomock.Call

Install indicates an expected call of Install.

func (*MockExtensionerMockRecorder) InstallCommand added in v3.3.2

func (mr *MockExtensionerMockRecorder) InstallCommand() *gomock.Call

InstallCommand indicates an expected call of InstallCommand.

func (*MockExtensionerMockRecorder) IsInstalled

func (mr *MockExtensionerMockRecorder) IsInstalled() *gomock.Call

IsInstalled indicates an expected call of IsInstalled.

func (*MockExtensionerMockRecorder) Update

func (mr *MockExtensionerMockRecorder) Update() *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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