mocks

package
v0.0.0-...-9758eb9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	mock.Mock
}

API is an autogenerated mock type for the API type

func NewAPI

func NewAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *API

NewAPI creates a new instance of API. 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 (*API) AttachPolicies

func (_m *API) AttachPolicies(ctx context.Context, socketID string, policyUUIDs []string) ([]string, error)

AttachPolicies provides a mock function with given fields: ctx, socketID, policyUUIDs

func (*API) CreateSocket

func (_m *API) CreateSocket(ctx context.Context, socket *models.Socket) (*models.Socket, error)

CreateSocket provides a mock function with given fields: ctx, socket

func (*API) CreateTunnel

func (_m *API) CreateTunnel(ctx context.Context, socketID string) (*models.Tunnel, error)

CreateTunnel provides a mock function with given fields: ctx, socketID

func (*API) DeleteSocket

func (_m *API) DeleteSocket(ctx context.Context, socketID string) error

DeleteSocket provides a mock function with given fields: ctx, socketID

func (*API) DetachPolicies

func (_m *API) DetachPolicies(ctx context.Context, socketID string, policyUUIDs []string) ([]string, error)

DetachPolicies provides a mock function with given fields: ctx, socketID, policyUUIDs

func (*API) EXPECT

func (_m *API) EXPECT() *API_Expecter

func (*API) Evaluate

func (_m *API) Evaluate(ctx context.Context, socket *models.Socket, clientIP string, userEmail string, sessionKey string) ([]interface{}, map[string][]string, error)

Evaluate provides a mock function with given fields: ctx, socket, clientIP, userEmail, sessionKey

func (*API) GetAccessToken

func (_m *API) GetAccessToken() string

GetAccessToken provides a mock function with given fields:

func (*API) GetOrganizationInfo

func (_m *API) GetOrganizationInfo(ctx context.Context) (*models.Organization, error)

GetOrganizationInfo provides a mock function with given fields: ctx

func (*API) GetPoliciesBySocketID

func (_m *API) GetPoliciesBySocketID(socketID string) ([]models.Policy, error)

GetPoliciesBySocketID provides a mock function with given fields: socketID

func (*API) GetPolicyByName

func (_m *API) GetPolicyByName(ctx context.Context, name string) (*models.Policy, error)

GetPolicyByName provides a mock function with given fields: ctx, name

func (*API) GetSocket

func (_m *API) GetSocket(ctx context.Context, socketID string) (*models.Socket, error)

GetSocket provides a mock function with given fields: ctx, socketID

func (*API) GetSockets

func (_m *API) GetSockets(ctx context.Context) ([]models.Socket, error)

GetSockets provides a mock function with given fields: ctx

func (*API) GetTunnel

func (_m *API) GetTunnel(ctx context.Context, socketID string, tunnelID string) (*models.Tunnel, error)

GetTunnel provides a mock function with given fields: ctx, socketID, tunnelID

func (*API) GetUserID

func (_m *API) GetUserID() (string, error)

GetUserID provides a mock function with given fields:

func (*API) Login

func (_m *API) Login(email string, password string) (*models.LoginResponse, error)

Login provides a mock function with given fields: email, password

func (*API) ServerOrgCertificate

func (_m *API) ServerOrgCertificate(ctx context.Context, name string, csr []byte) ([]byte, error)

ServerOrgCertificate provides a mock function with given fields: ctx, name, csr

func (*API) SignSSHKey

func (_m *API) SignSSHKey(ctx context.Context, socketID string, key []byte) (string, string, error)

SignSSHKey provides a mock function with given fields: ctx, socketID, key

func (*API) SignSshOrgCertificate

func (_m *API) SignSshOrgCertificate(ctx context.Context, socketID string, sessionID string, userEmail string, ticket []byte, publicKey []byte) ([]byte, error)

SignSshOrgCertificate provides a mock function with given fields: ctx, socketID, sessionID, userEmail, ticket, publicKey

func (*API) StartRefreshAccessTokenJob

func (_m *API) StartRefreshAccessTokenJob(ctx context.Context)

StartRefreshAccessTokenJob provides a mock function with given fields: ctx

func (*API) UpdateSession

func (_m *API) UpdateSession(update models.SessionUpdate) error

UpdateSession provides a mock function with given fields: update

func (*API) UpdateSocket

func (_m *API) UpdateSocket(ctx context.Context, socketID string, socket models.Socket) error

UpdateSocket provides a mock function with given fields: ctx, socketID, socket

func (*API) UploadRecording

func (_m *API) UploadRecording(content []byte, socketID string, sessionKey string, recordingID string) error

UploadRecording provides a mock function with given fields: content, socketID, sessionKey, recordingID

type API_AttachPolicies_Call

type API_AttachPolicies_Call struct {
	*mock.Call
}

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

func (*API_AttachPolicies_Call) Return

func (*API_AttachPolicies_Call) Run

func (_c *API_AttachPolicies_Call) Run(run func(ctx context.Context, socketID string, policyUUIDs []string)) *API_AttachPolicies_Call

func (*API_AttachPolicies_Call) RunAndReturn

type API_CreateSocket_Call

type API_CreateSocket_Call struct {
	*mock.Call
}

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

func (*API_CreateSocket_Call) Return

func (*API_CreateSocket_Call) Run

func (_c *API_CreateSocket_Call) Run(run func(ctx context.Context, socket *models.Socket)) *API_CreateSocket_Call

func (*API_CreateSocket_Call) RunAndReturn

type API_CreateTunnel_Call

type API_CreateTunnel_Call struct {
	*mock.Call
}

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

func (*API_CreateTunnel_Call) Return

func (*API_CreateTunnel_Call) Run

func (_c *API_CreateTunnel_Call) Run(run func(ctx context.Context, socketID string)) *API_CreateTunnel_Call

func (*API_CreateTunnel_Call) RunAndReturn

type API_DeleteSocket_Call

type API_DeleteSocket_Call struct {
	*mock.Call
}

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

func (*API_DeleteSocket_Call) Return

func (*API_DeleteSocket_Call) Run

func (_c *API_DeleteSocket_Call) Run(run func(ctx context.Context, socketID string)) *API_DeleteSocket_Call

func (*API_DeleteSocket_Call) RunAndReturn

type API_DetachPolicies_Call

type API_DetachPolicies_Call struct {
	*mock.Call
}

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

func (*API_DetachPolicies_Call) Return

func (*API_DetachPolicies_Call) Run

func (_c *API_DetachPolicies_Call) Run(run func(ctx context.Context, socketID string, policyUUIDs []string)) *API_DetachPolicies_Call

func (*API_DetachPolicies_Call) RunAndReturn

type API_Evaluate_Call

type API_Evaluate_Call struct {
	*mock.Call
}

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

func (*API_Evaluate_Call) Return

func (_c *API_Evaluate_Call) Return(allowedActions []interface{}, info map[string][]string, err error) *API_Evaluate_Call

func (*API_Evaluate_Call) Run

func (_c *API_Evaluate_Call) Run(run func(ctx context.Context, socket *models.Socket, clientIP string, userEmail string, sessionKey string)) *API_Evaluate_Call

func (*API_Evaluate_Call) RunAndReturn

func (_c *API_Evaluate_Call) RunAndReturn(run func(context.Context, *models.Socket, string, string, string) ([]interface{}, map[string][]string, error)) *API_Evaluate_Call

type API_Expecter

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

func (*API_Expecter) AttachPolicies

func (_e *API_Expecter) AttachPolicies(ctx interface{}, socketID interface{}, policyUUIDs interface{}) *API_AttachPolicies_Call

AttachPolicies is a helper method to define mock.On call

  • ctx context.Context
  • socketID string
  • policyUUIDs []string

func (*API_Expecter) CreateSocket

func (_e *API_Expecter) CreateSocket(ctx interface{}, socket interface{}) *API_CreateSocket_Call

CreateSocket is a helper method to define mock.On call

  • ctx context.Context
  • socket *models.Socket

func (*API_Expecter) CreateTunnel

func (_e *API_Expecter) CreateTunnel(ctx interface{}, socketID interface{}) *API_CreateTunnel_Call

CreateTunnel is a helper method to define mock.On call

  • ctx context.Context
  • socketID string

func (*API_Expecter) DeleteSocket

func (_e *API_Expecter) DeleteSocket(ctx interface{}, socketID interface{}) *API_DeleteSocket_Call

DeleteSocket is a helper method to define mock.On call

  • ctx context.Context
  • socketID string

func (*API_Expecter) DetachPolicies

func (_e *API_Expecter) DetachPolicies(ctx interface{}, socketID interface{}, policyUUIDs interface{}) *API_DetachPolicies_Call

DetachPolicies is a helper method to define mock.On call

  • ctx context.Context
  • socketID string
  • policyUUIDs []string

func (*API_Expecter) Evaluate

func (_e *API_Expecter) Evaluate(ctx interface{}, socket interface{}, clientIP interface{}, userEmail interface{}, sessionKey interface{}) *API_Evaluate_Call

Evaluate is a helper method to define mock.On call

  • ctx context.Context
  • socket *models.Socket
  • clientIP string
  • userEmail string
  • sessionKey string

func (*API_Expecter) GetAccessToken

func (_e *API_Expecter) GetAccessToken() *API_GetAccessToken_Call

GetAccessToken is a helper method to define mock.On call

func (*API_Expecter) GetOrganizationInfo

func (_e *API_Expecter) GetOrganizationInfo(ctx interface{}) *API_GetOrganizationInfo_Call

GetOrganizationInfo is a helper method to define mock.On call

  • ctx context.Context

func (*API_Expecter) GetPoliciesBySocketID

func (_e *API_Expecter) GetPoliciesBySocketID(socketID interface{}) *API_GetPoliciesBySocketID_Call

GetPoliciesBySocketID is a helper method to define mock.On call

  • socketID string

func (*API_Expecter) GetPolicyByName

func (_e *API_Expecter) GetPolicyByName(ctx interface{}, name interface{}) *API_GetPolicyByName_Call

GetPolicyByName is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*API_Expecter) GetSocket

func (_e *API_Expecter) GetSocket(ctx interface{}, socketID interface{}) *API_GetSocket_Call

GetSocket is a helper method to define mock.On call

  • ctx context.Context
  • socketID string

func (*API_Expecter) GetSockets

func (_e *API_Expecter) GetSockets(ctx interface{}) *API_GetSockets_Call

GetSockets is a helper method to define mock.On call

  • ctx context.Context

func (*API_Expecter) GetTunnel

func (_e *API_Expecter) GetTunnel(ctx interface{}, socketID interface{}, tunnelID interface{}) *API_GetTunnel_Call

GetTunnel is a helper method to define mock.On call

  • ctx context.Context
  • socketID string
  • tunnelID string

func (*API_Expecter) GetUserID

func (_e *API_Expecter) GetUserID() *API_GetUserID_Call

GetUserID is a helper method to define mock.On call

func (*API_Expecter) Login

func (_e *API_Expecter) Login(email interface{}, password interface{}) *API_Login_Call

Login is a helper method to define mock.On call

  • email string
  • password string

func (*API_Expecter) ServerOrgCertificate

func (_e *API_Expecter) ServerOrgCertificate(ctx interface{}, name interface{}, csr interface{}) *API_ServerOrgCertificate_Call

ServerOrgCertificate is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • csr []byte

func (*API_Expecter) SignSSHKey

func (_e *API_Expecter) SignSSHKey(ctx interface{}, socketID interface{}, key interface{}) *API_SignSSHKey_Call

SignSSHKey is a helper method to define mock.On call

  • ctx context.Context
  • socketID string
  • key []byte

func (*API_Expecter) SignSshOrgCertificate

func (_e *API_Expecter) SignSshOrgCertificate(ctx interface{}, socketID interface{}, sessionID interface{}, userEmail interface{}, ticket interface{}, publicKey interface{}) *API_SignSshOrgCertificate_Call

SignSshOrgCertificate is a helper method to define mock.On call

  • ctx context.Context
  • socketID string
  • sessionID string
  • userEmail string
  • ticket []byte
  • publicKey []byte

func (*API_Expecter) StartRefreshAccessTokenJob

func (_e *API_Expecter) StartRefreshAccessTokenJob(ctx interface{}) *API_StartRefreshAccessTokenJob_Call

StartRefreshAccessTokenJob is a helper method to define mock.On call

  • ctx context.Context

func (*API_Expecter) UpdateSession

func (_e *API_Expecter) UpdateSession(update interface{}) *API_UpdateSession_Call

UpdateSession is a helper method to define mock.On call

  • update models.SessionUpdate

func (*API_Expecter) UpdateSocket

func (_e *API_Expecter) UpdateSocket(ctx interface{}, socketID interface{}, socket interface{}) *API_UpdateSocket_Call

UpdateSocket is a helper method to define mock.On call

  • ctx context.Context
  • socketID string
  • socket models.Socket

func (*API_Expecter) UploadRecording

func (_e *API_Expecter) UploadRecording(content interface{}, socketID interface{}, sessionKey interface{}, recordingID interface{}) *API_UploadRecording_Call

UploadRecording is a helper method to define mock.On call

  • content []byte
  • socketID string
  • sessionKey string
  • recordingID string

type API_GetAccessToken_Call

type API_GetAccessToken_Call struct {
	*mock.Call
}

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

func (*API_GetAccessToken_Call) Return

func (*API_GetAccessToken_Call) Run

func (_c *API_GetAccessToken_Call) Run(run func()) *API_GetAccessToken_Call

func (*API_GetAccessToken_Call) RunAndReturn

func (_c *API_GetAccessToken_Call) RunAndReturn(run func() string) *API_GetAccessToken_Call

type API_GetOrganizationInfo_Call

type API_GetOrganizationInfo_Call struct {
	*mock.Call
}

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

func (*API_GetOrganizationInfo_Call) Return

func (*API_GetOrganizationInfo_Call) Run

func (*API_GetOrganizationInfo_Call) RunAndReturn

type API_GetPoliciesBySocketID_Call

type API_GetPoliciesBySocketID_Call struct {
	*mock.Call
}

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

func (*API_GetPoliciesBySocketID_Call) Return

func (*API_GetPoliciesBySocketID_Call) Run

func (*API_GetPoliciesBySocketID_Call) RunAndReturn

type API_GetPolicyByName_Call

type API_GetPolicyByName_Call struct {
	*mock.Call
}

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

func (*API_GetPolicyByName_Call) Return

func (*API_GetPolicyByName_Call) Run

func (*API_GetPolicyByName_Call) RunAndReturn

type API_GetSocket_Call

type API_GetSocket_Call struct {
	*mock.Call
}

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

func (*API_GetSocket_Call) Return

func (_c *API_GetSocket_Call) Return(_a0 *models.Socket, _a1 error) *API_GetSocket_Call

func (*API_GetSocket_Call) Run

func (_c *API_GetSocket_Call) Run(run func(ctx context.Context, socketID string)) *API_GetSocket_Call

func (*API_GetSocket_Call) RunAndReturn

func (_c *API_GetSocket_Call) RunAndReturn(run func(context.Context, string) (*models.Socket, error)) *API_GetSocket_Call

type API_GetSockets_Call

type API_GetSockets_Call struct {
	*mock.Call
}

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

func (*API_GetSockets_Call) Return

func (_c *API_GetSockets_Call) Return(_a0 []models.Socket, _a1 error) *API_GetSockets_Call

func (*API_GetSockets_Call) Run

func (_c *API_GetSockets_Call) Run(run func(ctx context.Context)) *API_GetSockets_Call

func (*API_GetSockets_Call) RunAndReturn

func (_c *API_GetSockets_Call) RunAndReturn(run func(context.Context) ([]models.Socket, error)) *API_GetSockets_Call

type API_GetTunnel_Call

type API_GetTunnel_Call struct {
	*mock.Call
}

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

func (*API_GetTunnel_Call) Return

func (_c *API_GetTunnel_Call) Return(_a0 *models.Tunnel, _a1 error) *API_GetTunnel_Call

func (*API_GetTunnel_Call) Run

func (_c *API_GetTunnel_Call) Run(run func(ctx context.Context, socketID string, tunnelID string)) *API_GetTunnel_Call

func (*API_GetTunnel_Call) RunAndReturn

type API_GetUserID_Call

type API_GetUserID_Call struct {
	*mock.Call
}

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

func (*API_GetUserID_Call) Return

func (_c *API_GetUserID_Call) Return(_a0 string, _a1 error) *API_GetUserID_Call

func (*API_GetUserID_Call) Run

func (_c *API_GetUserID_Call) Run(run func()) *API_GetUserID_Call

func (*API_GetUserID_Call) RunAndReturn

func (_c *API_GetUserID_Call) RunAndReturn(run func() (string, error)) *API_GetUserID_Call

type API_Login_Call

type API_Login_Call struct {
	*mock.Call
}

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

func (*API_Login_Call) Return

func (_c *API_Login_Call) Return(_a0 *models.LoginResponse, _a1 error) *API_Login_Call

func (*API_Login_Call) Run

func (_c *API_Login_Call) Run(run func(email string, password string)) *API_Login_Call

func (*API_Login_Call) RunAndReturn

func (_c *API_Login_Call) RunAndReturn(run func(string, string) (*models.LoginResponse, error)) *API_Login_Call

type API_ServerOrgCertificate_Call

type API_ServerOrgCertificate_Call struct {
	*mock.Call
}

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

func (*API_ServerOrgCertificate_Call) Return

func (*API_ServerOrgCertificate_Call) Run

func (*API_ServerOrgCertificate_Call) RunAndReturn

type API_SignSSHKey_Call

type API_SignSSHKey_Call struct {
	*mock.Call
}

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

func (*API_SignSSHKey_Call) Return

func (_c *API_SignSSHKey_Call) Return(_a0 string, _a1 string, _a2 error) *API_SignSSHKey_Call

func (*API_SignSSHKey_Call) Run

func (_c *API_SignSSHKey_Call) Run(run func(ctx context.Context, socketID string, key []byte)) *API_SignSSHKey_Call

func (*API_SignSSHKey_Call) RunAndReturn

func (_c *API_SignSSHKey_Call) RunAndReturn(run func(context.Context, string, []byte) (string, string, error)) *API_SignSSHKey_Call

type API_SignSshOrgCertificate_Call

type API_SignSshOrgCertificate_Call struct {
	*mock.Call
}

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

func (*API_SignSshOrgCertificate_Call) Return

func (*API_SignSshOrgCertificate_Call) Run

func (_c *API_SignSshOrgCertificate_Call) Run(run func(ctx context.Context, socketID string, sessionID string, userEmail string, ticket []byte, publicKey []byte)) *API_SignSshOrgCertificate_Call

func (*API_SignSshOrgCertificate_Call) RunAndReturn

type API_StartRefreshAccessTokenJob_Call

type API_StartRefreshAccessTokenJob_Call struct {
	*mock.Call
}

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

func (*API_StartRefreshAccessTokenJob_Call) Return

func (*API_StartRefreshAccessTokenJob_Call) Run

func (*API_StartRefreshAccessTokenJob_Call) RunAndReturn

type API_UpdateSession_Call

type API_UpdateSession_Call struct {
	*mock.Call
}

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

func (*API_UpdateSession_Call) Return

func (*API_UpdateSession_Call) Run

func (*API_UpdateSession_Call) RunAndReturn

type API_UpdateSocket_Call

type API_UpdateSocket_Call struct {
	*mock.Call
}

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

func (*API_UpdateSocket_Call) Return

func (*API_UpdateSocket_Call) Run

func (_c *API_UpdateSocket_Call) Run(run func(ctx context.Context, socketID string, socket models.Socket)) *API_UpdateSocket_Call

func (*API_UpdateSocket_Call) RunAndReturn

type API_UploadRecording_Call

type API_UploadRecording_Call struct {
	*mock.Call
}

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

func (*API_UploadRecording_Call) Return

func (*API_UploadRecording_Call) Run

func (_c *API_UploadRecording_Call) Run(run func(content []byte, socketID string, sessionKey string, recordingID string)) *API_UploadRecording_Call

func (*API_UploadRecording_Call) RunAndReturn

type Discover

type Discover struct {
	mock.Mock
}

Discover is an autogenerated mock type for the Discover type

func NewDiscover

func NewDiscover(t mockConstructorTestingTNewDiscover) *Discover

NewDiscover creates a new instance of Discover. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Discover) EXPECT

func (_m *Discover) EXPECT() *Discover_Expecter

func (*Discover) Find

func (_m *Discover) Find(ctx context.Context, cfg config.Config, state discover.DiscoverState) ([]models.Socket, error)

Find provides a mock function with given fields: ctx, cfg, state

func (*Discover) Name

func (_m *Discover) Name() string

Name provides a mock function with given fields:

func (*Discover) SkipRun

func (_m *Discover) SkipRun(ctx context.Context, cfg config.Config, state discover.DiscoverState) bool

SkipRun provides a mock function with given fields: ctx, cfg, state

type Discover_Expecter

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

func (*Discover_Expecter) Find

func (_e *Discover_Expecter) Find(ctx interface{}, cfg interface{}, state interface{}) *Discover_Find_Call

Find is a helper method to define mock.On call

  • ctx context.Context
  • cfg config.Config
  • state discover.DiscoverState

func (*Discover_Expecter) Name

Name is a helper method to define mock.On call

func (*Discover_Expecter) SkipRun

func (_e *Discover_Expecter) SkipRun(ctx interface{}, cfg interface{}, state interface{}) *Discover_SkipRun_Call

SkipRun is a helper method to define mock.On call

  • ctx context.Context
  • cfg config.Config
  • state discover.DiscoverState

type Discover_Find_Call

type Discover_Find_Call struct {
	*mock.Call
}

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

func (*Discover_Find_Call) Return

func (_c *Discover_Find_Call) Return(_a0 []models.Socket, _a1 error) *Discover_Find_Call

func (*Discover_Find_Call) Run

type Discover_Name_Call

type Discover_Name_Call struct {
	*mock.Call
}

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

func (*Discover_Name_Call) Return

func (_c *Discover_Name_Call) Return(_a0 string) *Discover_Name_Call

func (*Discover_Name_Call) Run

func (_c *Discover_Name_Call) Run(run func()) *Discover_Name_Call

type Discover_SkipRun_Call

type Discover_SkipRun_Call struct {
	*mock.Call
}

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

func (*Discover_SkipRun_Call) Return

func (*Discover_SkipRun_Call) Run

Jump to

Keyboard shortcuts

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