app

package
v0.0.0-...-a5e107f Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFoundation

type MockFoundation struct {
	mock.Mock
}

MockFoundation is an autogenerated mock type for the Foundation type

func NewMockFoundation

func NewMockFoundation(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockFoundation

NewMockFoundation creates a new instance of MockFoundation. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockFoundation) CurrentUser

func (_m *MockFoundation) CurrentUser() (*user.User, error)

CurrentUser provides a mock function with given fields:

func (*MockFoundation) DryRun

func (_m *MockFoundation) DryRun() bool

DryRun provides a mock function with given fields:

func (*MockFoundation) EXPECT

func (*MockFoundation) ExecCommand

func (_m *MockFoundation) ExecCommand(ctx context.Context, name string, args []string) app.Command

ExecCommand provides a mock function with given fields: ctx, name, args

func (*MockFoundation) Fs

func (_m *MockFoundation) Fs() afero.Fs

Fs provides a mock function with given fields:

func (*MockFoundation) HttpClient

func (_m *MockFoundation) HttpClient() app.HttpClient

HttpClient provides a mock function with given fields:

func (*MockFoundation) Logger

func (_m *MockFoundation) Logger() *zap.SugaredLogger

Logger provides a mock function with given fields:

func (*MockFoundation) LookupEnvVar

func (_m *MockFoundation) LookupEnvVar(key string) (string, bool)

LookupEnvVar provides a mock function with given fields: key

func (*MockFoundation) User

func (_m *MockFoundation) User(username string) (*user.User, error)

User provides a mock function with given fields: username

func (*MockFoundation) UserGroup

func (_m *MockFoundation) UserGroup(u *user.User) (*user.Group, error)

UserGroup provides a mock function with given fields: u

func (*MockFoundation) UserHomeDir

func (_m *MockFoundation) UserHomeDir() (string, error)

UserHomeDir provides a mock function with given fields:

func (*MockFoundation) VegetaAttacker

func (_m *MockFoundation) VegetaAttacker() app.VegetaAttacker

VegetaAttacker provides a mock function with given fields:

func (*MockFoundation) VegetaMetrics

func (_m *MockFoundation) VegetaMetrics() app.VegetaMetrics

VegetaMetrics provides a mock function with given fields:

type MockFoundation_CurrentUser_Call

type MockFoundation_CurrentUser_Call struct {
	*mock.Call
}

MockFoundation_CurrentUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CurrentUser'

func (*MockFoundation_CurrentUser_Call) Return

func (*MockFoundation_CurrentUser_Call) Run

func (*MockFoundation_CurrentUser_Call) RunAndReturn

type MockFoundation_DryRun_Call

type MockFoundation_DryRun_Call struct {
	*mock.Call
}

MockFoundation_DryRun_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DryRun'

func (*MockFoundation_DryRun_Call) Return

func (*MockFoundation_DryRun_Call) Run

func (*MockFoundation_DryRun_Call) RunAndReturn

func (_c *MockFoundation_DryRun_Call) RunAndReturn(run func() bool) *MockFoundation_DryRun_Call

type MockFoundation_ExecCommand_Call

type MockFoundation_ExecCommand_Call struct {
	*mock.Call
}

MockFoundation_ExecCommand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecCommand'

func (*MockFoundation_ExecCommand_Call) Return

func (*MockFoundation_ExecCommand_Call) Run

func (*MockFoundation_ExecCommand_Call) RunAndReturn

type MockFoundation_Expecter

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

func (*MockFoundation_Expecter) CurrentUser

CurrentUser is a helper method to define mock.On call

func (*MockFoundation_Expecter) DryRun

DryRun is a helper method to define mock.On call

func (*MockFoundation_Expecter) ExecCommand

func (_e *MockFoundation_Expecter) ExecCommand(ctx interface{}, name interface{}, args interface{}) *MockFoundation_ExecCommand_Call

ExecCommand is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • args []string

func (*MockFoundation_Expecter) Fs

Fs is a helper method to define mock.On call

func (*MockFoundation_Expecter) HttpClient

HttpClient is a helper method to define mock.On call

func (*MockFoundation_Expecter) Logger

Logger is a helper method to define mock.On call

func (*MockFoundation_Expecter) LookupEnvVar

func (_e *MockFoundation_Expecter) LookupEnvVar(key interface{}) *MockFoundation_LookupEnvVar_Call

LookupEnvVar is a helper method to define mock.On call

  • key string

func (*MockFoundation_Expecter) User

func (_e *MockFoundation_Expecter) User(username interface{}) *MockFoundation_User_Call

User is a helper method to define mock.On call

  • username string

func (*MockFoundation_Expecter) UserGroup

func (_e *MockFoundation_Expecter) UserGroup(u interface{}) *MockFoundation_UserGroup_Call

UserGroup is a helper method to define mock.On call

  • u *user.User

func (*MockFoundation_Expecter) UserHomeDir

UserHomeDir is a helper method to define mock.On call

func (*MockFoundation_Expecter) VegetaAttacker

VegetaAttacker is a helper method to define mock.On call

func (*MockFoundation_Expecter) VegetaMetrics

VegetaMetrics is a helper method to define mock.On call

type MockFoundation_Fs_Call

type MockFoundation_Fs_Call struct {
	*mock.Call
}

MockFoundation_Fs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fs'

func (*MockFoundation_Fs_Call) Return

func (*MockFoundation_Fs_Call) Run

func (_c *MockFoundation_Fs_Call) Run(run func()) *MockFoundation_Fs_Call

func (*MockFoundation_Fs_Call) RunAndReturn

func (_c *MockFoundation_Fs_Call) RunAndReturn(run func() afero.Fs) *MockFoundation_Fs_Call

type MockFoundation_HttpClient_Call

type MockFoundation_HttpClient_Call struct {
	*mock.Call
}

MockFoundation_HttpClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HttpClient'

func (*MockFoundation_HttpClient_Call) Return

func (*MockFoundation_HttpClient_Call) Run

func (*MockFoundation_HttpClient_Call) RunAndReturn

type MockFoundation_Logger_Call

type MockFoundation_Logger_Call struct {
	*mock.Call
}

MockFoundation_Logger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Logger'

func (*MockFoundation_Logger_Call) Return

func (*MockFoundation_Logger_Call) Run

func (*MockFoundation_Logger_Call) RunAndReturn

type MockFoundation_LookupEnvVar_Call

type MockFoundation_LookupEnvVar_Call struct {
	*mock.Call
}

MockFoundation_LookupEnvVar_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LookupEnvVar'

func (*MockFoundation_LookupEnvVar_Call) Return

func (*MockFoundation_LookupEnvVar_Call) Run

func (*MockFoundation_LookupEnvVar_Call) RunAndReturn

type MockFoundation_UserGroup_Call

type MockFoundation_UserGroup_Call struct {
	*mock.Call
}

MockFoundation_UserGroup_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserGroup'

func (*MockFoundation_UserGroup_Call) Return

func (*MockFoundation_UserGroup_Call) Run

func (*MockFoundation_UserGroup_Call) RunAndReturn

type MockFoundation_UserHomeDir_Call

type MockFoundation_UserHomeDir_Call struct {
	*mock.Call
}

MockFoundation_UserHomeDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserHomeDir'

func (*MockFoundation_UserHomeDir_Call) Return

func (*MockFoundation_UserHomeDir_Call) Run

func (*MockFoundation_UserHomeDir_Call) RunAndReturn

type MockFoundation_User_Call

type MockFoundation_User_Call struct {
	*mock.Call
}

MockFoundation_User_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'User'

func (*MockFoundation_User_Call) Return

func (*MockFoundation_User_Call) Run

func (_c *MockFoundation_User_Call) Run(run func(username string)) *MockFoundation_User_Call

func (*MockFoundation_User_Call) RunAndReturn

func (_c *MockFoundation_User_Call) RunAndReturn(run func(string) (*user.User, error)) *MockFoundation_User_Call

type MockFoundation_VegetaAttacker_Call

type MockFoundation_VegetaAttacker_Call struct {
	*mock.Call
}

MockFoundation_VegetaAttacker_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VegetaAttacker'

func (*MockFoundation_VegetaAttacker_Call) Return

func (*MockFoundation_VegetaAttacker_Call) Run

func (*MockFoundation_VegetaAttacker_Call) RunAndReturn

type MockFoundation_VegetaMetrics_Call

type MockFoundation_VegetaMetrics_Call struct {
	*mock.Call
}

MockFoundation_VegetaMetrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VegetaMetrics'

func (*MockFoundation_VegetaMetrics_Call) Return

func (*MockFoundation_VegetaMetrics_Call) Run

func (*MockFoundation_VegetaMetrics_Call) RunAndReturn

type MockVegetaAttacker

type MockVegetaAttacker struct {
	mock.Mock
}

MockVegetaAttacker is an autogenerated mock type for the VegetaAttacker type

func NewMockVegetaAttacker

func NewMockVegetaAttacker(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockVegetaAttacker

NewMockVegetaAttacker creates a new instance of MockVegetaAttacker. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockVegetaAttacker) Attack

func (_m *MockVegetaAttacker) Attack(targeter vegeta.Targeter, rate vegeta.ConstantPacer, duration time.Duration, name string) <-chan *vegeta.Result

Attack provides a mock function with given fields: targeter, rate, duration, name

func (*MockVegetaAttacker) EXPECT

type MockVegetaAttacker_Attack_Call

type MockVegetaAttacker_Attack_Call struct {
	*mock.Call
}

MockVegetaAttacker_Attack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Attack'

func (*MockVegetaAttacker_Attack_Call) Return

func (*MockVegetaAttacker_Attack_Call) Run

func (*MockVegetaAttacker_Attack_Call) RunAndReturn

type MockVegetaAttacker_Expecter

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

func (*MockVegetaAttacker_Expecter) Attack

func (_e *MockVegetaAttacker_Expecter) Attack(targeter interface{}, rate interface{}, duration interface{}, name interface{}) *MockVegetaAttacker_Attack_Call

Attack is a helper method to define mock.On call

  • targeter vegeta.Targeter
  • rate vegeta.ConstantPacer
  • duration time.Duration
  • name string

type MockVegetaMetrics

type MockVegetaMetrics struct {
	mock.Mock
}

MockVegetaMetrics is an autogenerated mock type for the VegetaMetrics type

func NewMockVegetaMetrics

func NewMockVegetaMetrics(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockVegetaMetrics

NewMockVegetaMetrics creates a new instance of MockVegetaMetrics. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockVegetaMetrics) Add

func (_m *MockVegetaMetrics) Add(r *vegeta.Result)

Add provides a mock function with given fields: r

func (*MockVegetaMetrics) Close

func (_m *MockVegetaMetrics) Close()

Close provides a mock function with given fields:

func (*MockVegetaMetrics) EXPECT

func (*MockVegetaMetrics) Metrics

func (_m *MockVegetaMetrics) Metrics() *vegeta.Metrics

Metrics provides a mock function with given fields:

type MockVegetaMetrics_Add_Call

type MockVegetaMetrics_Add_Call struct {
	*mock.Call
}

MockVegetaMetrics_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*MockVegetaMetrics_Add_Call) Return

func (*MockVegetaMetrics_Add_Call) Run

func (*MockVegetaMetrics_Add_Call) RunAndReturn

type MockVegetaMetrics_Close_Call

type MockVegetaMetrics_Close_Call struct {
	*mock.Call
}

MockVegetaMetrics_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*MockVegetaMetrics_Close_Call) Return

func (*MockVegetaMetrics_Close_Call) Run

func (*MockVegetaMetrics_Close_Call) RunAndReturn

func (_c *MockVegetaMetrics_Close_Call) RunAndReturn(run func()) *MockVegetaMetrics_Close_Call

type MockVegetaMetrics_Expecter

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

func (*MockVegetaMetrics_Expecter) Add

Add is a helper method to define mock.On call

  • r *vegeta.Result

func (*MockVegetaMetrics_Expecter) Close

Close is a helper method to define mock.On call

func (*MockVegetaMetrics_Expecter) Metrics

Metrics is a helper method to define mock.On call

type MockVegetaMetrics_Metrics_Call

type MockVegetaMetrics_Metrics_Call struct {
	*mock.Call
}

MockVegetaMetrics_Metrics_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Metrics'

func (*MockVegetaMetrics_Metrics_Call) Return

func (*MockVegetaMetrics_Metrics_Call) Run

func (*MockVegetaMetrics_Metrics_Call) RunAndReturn

Jump to

Keyboard shortcuts

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