exec

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package exec is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	Execute(command string) (string, error)
	ExecutePrivileged(command string) (string, error)
}

type Exec

type Exec struct{}

func (*Exec) Execute

func (e *Exec) Execute(command string) (string, error)

func (*Exec) ExecutePrivileged

func (e *Exec) ExecutePrivileged(command string) (string, error)

type MockAPI

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

MockAPI is a mock of API interface.

func NewMockAPI

func NewMockAPI(ctrl *gomock.Controller) *MockAPI

NewMockAPI creates a new mock instance.

func (*MockAPI) EXPECT

func (m *MockAPI) EXPECT() *MockAPIMockRecorder

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

func (*MockAPI) Execute

func (m *MockAPI) Execute(arg0 string) (string, error)

Execute mocks base method.

func (*MockAPI) ExecutePrivileged

func (m *MockAPI) ExecutePrivileged(arg0 string) (string, error)

ExecutePrivileged mocks base method.

type MockAPIMockRecorder

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

MockAPIMockRecorder is the mock recorder for MockAPI.

func (*MockAPIMockRecorder) Execute

func (mr *MockAPIMockRecorder) Execute(arg0 interface{}) *gomock.Call

Execute indicates an expected call of Execute.

func (*MockAPIMockRecorder) ExecutePrivileged

func (mr *MockAPIMockRecorder) ExecutePrivileged(arg0 interface{}) *gomock.Call

ExecutePrivileged indicates an expected call of ExecutePrivileged.

Jump to

Keyboard shortcuts

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