Documentation ¶
Index ¶
- type APIClientRequester
- func (_m *APIClientRequester) AttachPoliciesToSocket(ctx context.Context, policyIDs []string, socketID string) error
- func (_m *APIClientRequester) AttachPolicyToSocket(ctx context.Context, policyID string, socketID string) error
- func (_m *APIClientRequester) Authenticate(ctx context.Context, opts ...auth.Option) error
- func (_m *APIClientRequester) Connector(ctx context.Context, id string) (*client.Connector, error)
- func (_m *APIClientRequester) ConnectorToken(ctx context.Context, connectorID string, tokenID string) (*client.ConnectorToken, error)
- func (_m *APIClientRequester) ConnectorTokens(ctx context.Context, connectorID string) (*client.ConnectorTokens, error)
- func (_m *APIClientRequester) Connectors(ctx context.Context) ([]client.Connector, error)
- func (_m *APIClientRequester) CreateConnector(ctx context.Context, in *client.Connector) (*client.Connector, error)
- func (_m *APIClientRequester) CreateConnectorToken(ctx context.Context, in *client.ConnectorToken) (*client.ConnectorToken, error)
- func (_m *APIClientRequester) CreatePolicy(ctx context.Context, in *client.Policy) (*client.Policy, error)
- func (_m *APIClientRequester) CreateSocket(ctx context.Context, in *client.Socket) (*client.Socket, error)
- func (_m *APIClientRequester) DeleteConnector(ctx context.Context, id string) error
- func (_m *APIClientRequester) DeleteConnectorToken(ctx context.Context, connectorID string, tokenID string) error
- func (_m *APIClientRequester) DeletePolicy(ctx context.Context, id string) error
- func (_m *APIClientRequester) DeleteSocket(ctx context.Context, idOrName string) error
- func (_m *APIClientRequester) EXPECT() *APIClientRequester_Expecter
- func (_m *APIClientRequester) Policies(ctx context.Context) ([]client.Policy, error)
- func (_m *APIClientRequester) PoliciesByNames(ctx context.Context, names ...string) ([]client.Policy, error)
- func (_m *APIClientRequester) Policy(ctx context.Context, id string) (*client.Policy, error)
- func (_m *APIClientRequester) RemovePoliciesFromSocket(ctx context.Context, policyIDs []string, socketID string) error
- func (_m *APIClientRequester) RemovePolicyFromSocket(ctx context.Context, policyID string, socketID string) error
- func (_m *APIClientRequester) SignSocketKey(ctx context.Context, idOrName string, in *client.SocketKeyToSign) (*client.SignedSocketKey, error)
- func (_m *APIClientRequester) Socket(ctx context.Context, idOrName string) (*client.Socket, error)
- func (_m *APIClientRequester) SocketConnectors(ctx context.Context, idOrName string) (*client.SocketConnectors, error)
- func (_m *APIClientRequester) SocketUpstreamConfigs(ctx context.Context, idOrName string) (*client.SocketUpstreamConfigs, error)
- func (_m *APIClientRequester) Sockets(ctx context.Context) ([]client.Socket, error)
- func (_m *APIClientRequester) TokenClaims() (jwt.MapClaims, error)
- func (_m *APIClientRequester) UpdateConnector(ctx context.Context, in *client.Connector) (*client.Connector, error)
- func (_m *APIClientRequester) UpdatePolicy(ctx context.Context, id string, in *client.Policy) (*client.Policy, error)
- func (_m *APIClientRequester) UpdateSocket(ctx context.Context, idOrName string, in *client.Socket) (*client.Socket, error)
- type APIClientRequester_AttachPoliciesToSocket_Call
- func (_c *APIClientRequester_AttachPoliciesToSocket_Call) Return(err error) *APIClientRequester_AttachPoliciesToSocket_Call
- func (_c *APIClientRequester_AttachPoliciesToSocket_Call) Run(run func(ctx context.Context, policyIDs []string, socketID string)) *APIClientRequester_AttachPoliciesToSocket_Call
- func (_c *APIClientRequester_AttachPoliciesToSocket_Call) RunAndReturn(run func(context.Context, []string, string) error) *APIClientRequester_AttachPoliciesToSocket_Call
- type APIClientRequester_AttachPolicyToSocket_Call
- func (_c *APIClientRequester_AttachPolicyToSocket_Call) Return(err error) *APIClientRequester_AttachPolicyToSocket_Call
- func (_c *APIClientRequester_AttachPolicyToSocket_Call) Run(run func(ctx context.Context, policyID string, socketID string)) *APIClientRequester_AttachPolicyToSocket_Call
- func (_c *APIClientRequester_AttachPolicyToSocket_Call) RunAndReturn(run func(context.Context, string, string) error) *APIClientRequester_AttachPolicyToSocket_Call
- type APIClientRequester_Authenticate_Call
- func (_c *APIClientRequester_Authenticate_Call) Return(_a0 error) *APIClientRequester_Authenticate_Call
- func (_c *APIClientRequester_Authenticate_Call) Run(run func(ctx context.Context, opts ...auth.Option)) *APIClientRequester_Authenticate_Call
- func (_c *APIClientRequester_Authenticate_Call) RunAndReturn(run func(context.Context, ...auth.Option) error) *APIClientRequester_Authenticate_Call
- type APIClientRequester_ConnectorToken_Call
- func (_c *APIClientRequester_ConnectorToken_Call) Return(out *client.ConnectorToken, err error) *APIClientRequester_ConnectorToken_Call
- func (_c *APIClientRequester_ConnectorToken_Call) Run(run func(ctx context.Context, connectorID string, tokenID string)) *APIClientRequester_ConnectorToken_Call
- func (_c *APIClientRequester_ConnectorToken_Call) RunAndReturn(run func(context.Context, string, string) (*client.ConnectorToken, error)) *APIClientRequester_ConnectorToken_Call
- type APIClientRequester_ConnectorTokens_Call
- func (_c *APIClientRequester_ConnectorTokens_Call) Return(out *client.ConnectorTokens, err error) *APIClientRequester_ConnectorTokens_Call
- func (_c *APIClientRequester_ConnectorTokens_Call) Run(run func(ctx context.Context, connectorID string)) *APIClientRequester_ConnectorTokens_Call
- func (_c *APIClientRequester_ConnectorTokens_Call) RunAndReturn(run func(context.Context, string) (*client.ConnectorTokens, error)) *APIClientRequester_ConnectorTokens_Call
- type APIClientRequester_Connector_Call
- func (_c *APIClientRequester_Connector_Call) Return(out *client.Connector, err error) *APIClientRequester_Connector_Call
- func (_c *APIClientRequester_Connector_Call) Run(run func(ctx context.Context, id string)) *APIClientRequester_Connector_Call
- func (_c *APIClientRequester_Connector_Call) RunAndReturn(run func(context.Context, string) (*client.Connector, error)) *APIClientRequester_Connector_Call
- type APIClientRequester_Connectors_Call
- func (_c *APIClientRequester_Connectors_Call) Return(out []client.Connector, err error) *APIClientRequester_Connectors_Call
- func (_c *APIClientRequester_Connectors_Call) Run(run func(ctx context.Context)) *APIClientRequester_Connectors_Call
- func (_c *APIClientRequester_Connectors_Call) RunAndReturn(run func(context.Context) ([]client.Connector, error)) *APIClientRequester_Connectors_Call
- type APIClientRequester_CreateConnectorToken_Call
- func (_c *APIClientRequester_CreateConnectorToken_Call) Return(out *client.ConnectorToken, err error) *APIClientRequester_CreateConnectorToken_Call
- func (_c *APIClientRequester_CreateConnectorToken_Call) Run(run func(ctx context.Context, in *client.ConnectorToken)) *APIClientRequester_CreateConnectorToken_Call
- func (_c *APIClientRequester_CreateConnectorToken_Call) RunAndReturn(...) *APIClientRequester_CreateConnectorToken_Call
- type APIClientRequester_CreateConnector_Call
- func (_c *APIClientRequester_CreateConnector_Call) Return(out *client.Connector, err error) *APIClientRequester_CreateConnector_Call
- func (_c *APIClientRequester_CreateConnector_Call) Run(run func(ctx context.Context, in *client.Connector)) *APIClientRequester_CreateConnector_Call
- func (_c *APIClientRequester_CreateConnector_Call) RunAndReturn(run func(context.Context, *client.Connector) (*client.Connector, error)) *APIClientRequester_CreateConnector_Call
- type APIClientRequester_CreatePolicy_Call
- func (_c *APIClientRequester_CreatePolicy_Call) Return(out *client.Policy, err error) *APIClientRequester_CreatePolicy_Call
- func (_c *APIClientRequester_CreatePolicy_Call) Run(run func(ctx context.Context, in *client.Policy)) *APIClientRequester_CreatePolicy_Call
- func (_c *APIClientRequester_CreatePolicy_Call) RunAndReturn(run func(context.Context, *client.Policy) (*client.Policy, error)) *APIClientRequester_CreatePolicy_Call
- type APIClientRequester_CreateSocket_Call
- func (_c *APIClientRequester_CreateSocket_Call) Return(out *client.Socket, err error) *APIClientRequester_CreateSocket_Call
- func (_c *APIClientRequester_CreateSocket_Call) Run(run func(ctx context.Context, in *client.Socket)) *APIClientRequester_CreateSocket_Call
- func (_c *APIClientRequester_CreateSocket_Call) RunAndReturn(run func(context.Context, *client.Socket) (*client.Socket, error)) *APIClientRequester_CreateSocket_Call
- type APIClientRequester_DeleteConnectorToken_Call
- func (_c *APIClientRequester_DeleteConnectorToken_Call) Return(err error) *APIClientRequester_DeleteConnectorToken_Call
- func (_c *APIClientRequester_DeleteConnectorToken_Call) Run(run func(ctx context.Context, connectorID string, tokenID string)) *APIClientRequester_DeleteConnectorToken_Call
- func (_c *APIClientRequester_DeleteConnectorToken_Call) RunAndReturn(run func(context.Context, string, string) error) *APIClientRequester_DeleteConnectorToken_Call
- type APIClientRequester_DeleteConnector_Call
- func (_c *APIClientRequester_DeleteConnector_Call) Return(err error) *APIClientRequester_DeleteConnector_Call
- func (_c *APIClientRequester_DeleteConnector_Call) Run(run func(ctx context.Context, id string)) *APIClientRequester_DeleteConnector_Call
- func (_c *APIClientRequester_DeleteConnector_Call) RunAndReturn(run func(context.Context, string) error) *APIClientRequester_DeleteConnector_Call
- type APIClientRequester_DeletePolicy_Call
- func (_c *APIClientRequester_DeletePolicy_Call) Return(err error) *APIClientRequester_DeletePolicy_Call
- func (_c *APIClientRequester_DeletePolicy_Call) Run(run func(ctx context.Context, id string)) *APIClientRequester_DeletePolicy_Call
- func (_c *APIClientRequester_DeletePolicy_Call) RunAndReturn(run func(context.Context, string) error) *APIClientRequester_DeletePolicy_Call
- type APIClientRequester_DeleteSocket_Call
- func (_c *APIClientRequester_DeleteSocket_Call) Return(err error) *APIClientRequester_DeleteSocket_Call
- func (_c *APIClientRequester_DeleteSocket_Call) Run(run func(ctx context.Context, idOrName string)) *APIClientRequester_DeleteSocket_Call
- func (_c *APIClientRequester_DeleteSocket_Call) RunAndReturn(run func(context.Context, string) error) *APIClientRequester_DeleteSocket_Call
- type APIClientRequester_Expecter
- func (_e *APIClientRequester_Expecter) AttachPoliciesToSocket(ctx interface{}, policyIDs interface{}, socketID interface{}) *APIClientRequester_AttachPoliciesToSocket_Call
- func (_e *APIClientRequester_Expecter) AttachPolicyToSocket(ctx interface{}, policyID interface{}, socketID interface{}) *APIClientRequester_AttachPolicyToSocket_Call
- func (_e *APIClientRequester_Expecter) Authenticate(ctx interface{}, opts ...interface{}) *APIClientRequester_Authenticate_Call
- func (_e *APIClientRequester_Expecter) Connector(ctx interface{}, id interface{}) *APIClientRequester_Connector_Call
- func (_e *APIClientRequester_Expecter) ConnectorToken(ctx interface{}, connectorID interface{}, tokenID interface{}) *APIClientRequester_ConnectorToken_Call
- func (_e *APIClientRequester_Expecter) ConnectorTokens(ctx interface{}, connectorID interface{}) *APIClientRequester_ConnectorTokens_Call
- func (_e *APIClientRequester_Expecter) Connectors(ctx interface{}) *APIClientRequester_Connectors_Call
- func (_e *APIClientRequester_Expecter) CreateConnector(ctx interface{}, in interface{}) *APIClientRequester_CreateConnector_Call
- func (_e *APIClientRequester_Expecter) CreateConnectorToken(ctx interface{}, in interface{}) *APIClientRequester_CreateConnectorToken_Call
- func (_e *APIClientRequester_Expecter) CreatePolicy(ctx interface{}, in interface{}) *APIClientRequester_CreatePolicy_Call
- func (_e *APIClientRequester_Expecter) CreateSocket(ctx interface{}, in interface{}) *APIClientRequester_CreateSocket_Call
- func (_e *APIClientRequester_Expecter) DeleteConnector(ctx interface{}, id interface{}) *APIClientRequester_DeleteConnector_Call
- func (_e *APIClientRequester_Expecter) DeleteConnectorToken(ctx interface{}, connectorID interface{}, tokenID interface{}) *APIClientRequester_DeleteConnectorToken_Call
- func (_e *APIClientRequester_Expecter) DeletePolicy(ctx interface{}, id interface{}) *APIClientRequester_DeletePolicy_Call
- func (_e *APIClientRequester_Expecter) DeleteSocket(ctx interface{}, idOrName interface{}) *APIClientRequester_DeleteSocket_Call
- func (_e *APIClientRequester_Expecter) Policies(ctx interface{}) *APIClientRequester_Policies_Call
- func (_e *APIClientRequester_Expecter) PoliciesByNames(ctx interface{}, names ...interface{}) *APIClientRequester_PoliciesByNames_Call
- func (_e *APIClientRequester_Expecter) Policy(ctx interface{}, id interface{}) *APIClientRequester_Policy_Call
- func (_e *APIClientRequester_Expecter) RemovePoliciesFromSocket(ctx interface{}, policyIDs interface{}, socketID interface{}) *APIClientRequester_RemovePoliciesFromSocket_Call
- func (_e *APIClientRequester_Expecter) RemovePolicyFromSocket(ctx interface{}, policyID interface{}, socketID interface{}) *APIClientRequester_RemovePolicyFromSocket_Call
- func (_e *APIClientRequester_Expecter) SignSocketKey(ctx interface{}, idOrName interface{}, in interface{}) *APIClientRequester_SignSocketKey_Call
- func (_e *APIClientRequester_Expecter) Socket(ctx interface{}, idOrName interface{}) *APIClientRequester_Socket_Call
- func (_e *APIClientRequester_Expecter) SocketConnectors(ctx interface{}, idOrName interface{}) *APIClientRequester_SocketConnectors_Call
- func (_e *APIClientRequester_Expecter) SocketUpstreamConfigs(ctx interface{}, idOrName interface{}) *APIClientRequester_SocketUpstreamConfigs_Call
- func (_e *APIClientRequester_Expecter) Sockets(ctx interface{}) *APIClientRequester_Sockets_Call
- func (_e *APIClientRequester_Expecter) TokenClaims() *APIClientRequester_TokenClaims_Call
- func (_e *APIClientRequester_Expecter) UpdateConnector(ctx interface{}, in interface{}) *APIClientRequester_UpdateConnector_Call
- func (_e *APIClientRequester_Expecter) UpdatePolicy(ctx interface{}, id interface{}, in interface{}) *APIClientRequester_UpdatePolicy_Call
- func (_e *APIClientRequester_Expecter) UpdateSocket(ctx interface{}, idOrName interface{}, in interface{}) *APIClientRequester_UpdateSocket_Call
- type APIClientRequester_PoliciesByNames_Call
- func (_c *APIClientRequester_PoliciesByNames_Call) Return(out []client.Policy, err error) *APIClientRequester_PoliciesByNames_Call
- func (_c *APIClientRequester_PoliciesByNames_Call) Run(run func(ctx context.Context, names ...string)) *APIClientRequester_PoliciesByNames_Call
- func (_c *APIClientRequester_PoliciesByNames_Call) RunAndReturn(run func(context.Context, ...string) ([]client.Policy, error)) *APIClientRequester_PoliciesByNames_Call
- type APIClientRequester_Policies_Call
- func (_c *APIClientRequester_Policies_Call) Return(out []client.Policy, err error) *APIClientRequester_Policies_Call
- func (_c *APIClientRequester_Policies_Call) Run(run func(ctx context.Context)) *APIClientRequester_Policies_Call
- func (_c *APIClientRequester_Policies_Call) RunAndReturn(run func(context.Context) ([]client.Policy, error)) *APIClientRequester_Policies_Call
- type APIClientRequester_Policy_Call
- func (_c *APIClientRequester_Policy_Call) Return(out *client.Policy, err error) *APIClientRequester_Policy_Call
- func (_c *APIClientRequester_Policy_Call) Run(run func(ctx context.Context, id string)) *APIClientRequester_Policy_Call
- func (_c *APIClientRequester_Policy_Call) RunAndReturn(run func(context.Context, string) (*client.Policy, error)) *APIClientRequester_Policy_Call
- type APIClientRequester_RemovePoliciesFromSocket_Call
- func (_c *APIClientRequester_RemovePoliciesFromSocket_Call) Return(err error) *APIClientRequester_RemovePoliciesFromSocket_Call
- func (_c *APIClientRequester_RemovePoliciesFromSocket_Call) Run(run func(ctx context.Context, policyIDs []string, socketID string)) *APIClientRequester_RemovePoliciesFromSocket_Call
- func (_c *APIClientRequester_RemovePoliciesFromSocket_Call) RunAndReturn(run func(context.Context, []string, string) error) *APIClientRequester_RemovePoliciesFromSocket_Call
- type APIClientRequester_RemovePolicyFromSocket_Call
- func (_c *APIClientRequester_RemovePolicyFromSocket_Call) Return(err error) *APIClientRequester_RemovePolicyFromSocket_Call
- func (_c *APIClientRequester_RemovePolicyFromSocket_Call) Run(run func(ctx context.Context, policyID string, socketID string)) *APIClientRequester_RemovePolicyFromSocket_Call
- func (_c *APIClientRequester_RemovePolicyFromSocket_Call) RunAndReturn(run func(context.Context, string, string) error) *APIClientRequester_RemovePolicyFromSocket_Call
- type APIClientRequester_SignSocketKey_Call
- func (_c *APIClientRequester_SignSocketKey_Call) Return(out *client.SignedSocketKey, err error) *APIClientRequester_SignSocketKey_Call
- func (_c *APIClientRequester_SignSocketKey_Call) Run(run func(ctx context.Context, idOrName string, in *client.SocketKeyToSign)) *APIClientRequester_SignSocketKey_Call
- func (_c *APIClientRequester_SignSocketKey_Call) RunAndReturn(...) *APIClientRequester_SignSocketKey_Call
- type APIClientRequester_SocketConnectors_Call
- func (_c *APIClientRequester_SocketConnectors_Call) Return(out *client.SocketConnectors, err error) *APIClientRequester_SocketConnectors_Call
- func (_c *APIClientRequester_SocketConnectors_Call) Run(run func(ctx context.Context, idOrName string)) *APIClientRequester_SocketConnectors_Call
- func (_c *APIClientRequester_SocketConnectors_Call) RunAndReturn(run func(context.Context, string) (*client.SocketConnectors, error)) *APIClientRequester_SocketConnectors_Call
- type APIClientRequester_SocketUpstreamConfigs_Call
- func (_c *APIClientRequester_SocketUpstreamConfigs_Call) Return(out *client.SocketUpstreamConfigs, err error) *APIClientRequester_SocketUpstreamConfigs_Call
- func (_c *APIClientRequester_SocketUpstreamConfigs_Call) Run(run func(ctx context.Context, idOrName string)) *APIClientRequester_SocketUpstreamConfigs_Call
- func (_c *APIClientRequester_SocketUpstreamConfigs_Call) RunAndReturn(run func(context.Context, string) (*client.SocketUpstreamConfigs, error)) *APIClientRequester_SocketUpstreamConfigs_Call
- type APIClientRequester_Socket_Call
- func (_c *APIClientRequester_Socket_Call) Return(out *client.Socket, err error) *APIClientRequester_Socket_Call
- func (_c *APIClientRequester_Socket_Call) Run(run func(ctx context.Context, idOrName string)) *APIClientRequester_Socket_Call
- func (_c *APIClientRequester_Socket_Call) RunAndReturn(run func(context.Context, string) (*client.Socket, error)) *APIClientRequester_Socket_Call
- type APIClientRequester_Sockets_Call
- func (_c *APIClientRequester_Sockets_Call) Return(out []client.Socket, err error) *APIClientRequester_Sockets_Call
- func (_c *APIClientRequester_Sockets_Call) Run(run func(ctx context.Context)) *APIClientRequester_Sockets_Call
- func (_c *APIClientRequester_Sockets_Call) RunAndReturn(run func(context.Context) ([]client.Socket, error)) *APIClientRequester_Sockets_Call
- type APIClientRequester_TokenClaims_Call
- func (_c *APIClientRequester_TokenClaims_Call) Return(_a0 jwt.MapClaims, _a1 error) *APIClientRequester_TokenClaims_Call
- func (_c *APIClientRequester_TokenClaims_Call) Run(run func()) *APIClientRequester_TokenClaims_Call
- func (_c *APIClientRequester_TokenClaims_Call) RunAndReturn(run func() (jwt.MapClaims, error)) *APIClientRequester_TokenClaims_Call
- type APIClientRequester_UpdateConnector_Call
- func (_c *APIClientRequester_UpdateConnector_Call) Return(out *client.Connector, err error) *APIClientRequester_UpdateConnector_Call
- func (_c *APIClientRequester_UpdateConnector_Call) Run(run func(ctx context.Context, in *client.Connector)) *APIClientRequester_UpdateConnector_Call
- func (_c *APIClientRequester_UpdateConnector_Call) RunAndReturn(run func(context.Context, *client.Connector) (*client.Connector, error)) *APIClientRequester_UpdateConnector_Call
- type APIClientRequester_UpdatePolicy_Call
- func (_c *APIClientRequester_UpdatePolicy_Call) Return(out *client.Policy, err error) *APIClientRequester_UpdatePolicy_Call
- func (_c *APIClientRequester_UpdatePolicy_Call) Run(run func(ctx context.Context, id string, in *client.Policy)) *APIClientRequester_UpdatePolicy_Call
- func (_c *APIClientRequester_UpdatePolicy_Call) RunAndReturn(run func(context.Context, string, *client.Policy) (*client.Policy, error)) *APIClientRequester_UpdatePolicy_Call
- type APIClientRequester_UpdateSocket_Call
- func (_c *APIClientRequester_UpdateSocket_Call) Return(out *client.Socket, err error) *APIClientRequester_UpdateSocket_Call
- func (_c *APIClientRequester_UpdateSocket_Call) Run(run func(ctx context.Context, idOrName string, in *client.Socket)) *APIClientRequester_UpdateSocket_Call
- func (_c *APIClientRequester_UpdateSocket_Call) RunAndReturn(run func(context.Context, string, *client.Socket) (*client.Socket, error)) *APIClientRequester_UpdateSocket_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClientRequester ¶
APIClientRequester is an autogenerated mock type for the Requester type
func NewAPIClientRequester ¶
func NewAPIClientRequester(t interface { mock.TestingT Cleanup(func()) }) *APIClientRequester
NewAPIClientRequester creates a new instance of APIClientRequester. 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 (*APIClientRequester) AttachPoliciesToSocket ¶
func (_m *APIClientRequester) AttachPoliciesToSocket(ctx context.Context, policyIDs []string, socketID string) error
AttachPoliciesToSocket provides a mock function with given fields: ctx, policyIDs, socketID
func (*APIClientRequester) AttachPolicyToSocket ¶
func (_m *APIClientRequester) AttachPolicyToSocket(ctx context.Context, policyID string, socketID string) error
AttachPolicyToSocket provides a mock function with given fields: ctx, policyID, socketID
func (*APIClientRequester) Authenticate ¶ added in v1.4.30
Authenticate provides a mock function with given fields: ctx, opts
func (*APIClientRequester) Connector ¶
Connector provides a mock function with given fields: ctx, id
func (*APIClientRequester) ConnectorToken ¶ added in v1.4.18
func (_m *APIClientRequester) ConnectorToken(ctx context.Context, connectorID string, tokenID string) (*client.ConnectorToken, error)
ConnectorToken provides a mock function with given fields: ctx, connectorID, tokenID
func (*APIClientRequester) ConnectorTokens ¶
func (_m *APIClientRequester) ConnectorTokens(ctx context.Context, connectorID string) (*client.ConnectorTokens, error)
ConnectorTokens provides a mock function with given fields: ctx, connectorID
func (*APIClientRequester) Connectors ¶
Connectors provides a mock function with given fields: ctx
func (*APIClientRequester) CreateConnector ¶
func (_m *APIClientRequester) CreateConnector(ctx context.Context, in *client.Connector) (*client.Connector, error)
CreateConnector provides a mock function with given fields: ctx, in
func (*APIClientRequester) CreateConnectorToken ¶
func (_m *APIClientRequester) CreateConnectorToken(ctx context.Context, in *client.ConnectorToken) (*client.ConnectorToken, error)
CreateConnectorToken provides a mock function with given fields: ctx, in
func (*APIClientRequester) CreatePolicy ¶
func (_m *APIClientRequester) CreatePolicy(ctx context.Context, in *client.Policy) (*client.Policy, error)
CreatePolicy provides a mock function with given fields: ctx, in
func (*APIClientRequester) CreateSocket ¶
func (_m *APIClientRequester) CreateSocket(ctx context.Context, in *client.Socket) (*client.Socket, error)
CreateSocket provides a mock function with given fields: ctx, in
func (*APIClientRequester) DeleteConnector ¶
func (_m *APIClientRequester) DeleteConnector(ctx context.Context, id string) error
DeleteConnector provides a mock function with given fields: ctx, id
func (*APIClientRequester) DeleteConnectorToken ¶
func (_m *APIClientRequester) DeleteConnectorToken(ctx context.Context, connectorID string, tokenID string) error
DeleteConnectorToken provides a mock function with given fields: ctx, connectorID, tokenID
func (*APIClientRequester) DeletePolicy ¶
func (_m *APIClientRequester) DeletePolicy(ctx context.Context, id string) error
DeletePolicy provides a mock function with given fields: ctx, id
func (*APIClientRequester) DeleteSocket ¶
func (_m *APIClientRequester) DeleteSocket(ctx context.Context, idOrName string) error
DeleteSocket provides a mock function with given fields: ctx, idOrName
func (*APIClientRequester) EXPECT ¶
func (_m *APIClientRequester) EXPECT() *APIClientRequester_Expecter
func (*APIClientRequester) PoliciesByNames ¶
func (_m *APIClientRequester) PoliciesByNames(ctx context.Context, names ...string) ([]client.Policy, error)
PoliciesByNames provides a mock function with given fields: ctx, names
func (*APIClientRequester) RemovePoliciesFromSocket ¶
func (_m *APIClientRequester) RemovePoliciesFromSocket(ctx context.Context, policyIDs []string, socketID string) error
RemovePoliciesFromSocket provides a mock function with given fields: ctx, policyIDs, socketID
func (*APIClientRequester) RemovePolicyFromSocket ¶
func (_m *APIClientRequester) RemovePolicyFromSocket(ctx context.Context, policyID string, socketID string) error
RemovePolicyFromSocket provides a mock function with given fields: ctx, policyID, socketID
func (*APIClientRequester) SignSocketKey ¶
func (_m *APIClientRequester) SignSocketKey(ctx context.Context, idOrName string, in *client.SocketKeyToSign) (*client.SignedSocketKey, error)
SignSocketKey provides a mock function with given fields: ctx, idOrName, in
func (*APIClientRequester) Socket ¶
Socket provides a mock function with given fields: ctx, idOrName
func (*APIClientRequester) SocketConnectors ¶
func (_m *APIClientRequester) SocketConnectors(ctx context.Context, idOrName string) (*client.SocketConnectors, error)
SocketConnectors provides a mock function with given fields: ctx, idOrName
func (*APIClientRequester) SocketUpstreamConfigs ¶
func (_m *APIClientRequester) SocketUpstreamConfigs(ctx context.Context, idOrName string) (*client.SocketUpstreamConfigs, error)
SocketUpstreamConfigs provides a mock function with given fields: ctx, idOrName
func (*APIClientRequester) TokenClaims ¶
func (_m *APIClientRequester) TokenClaims() (jwt.MapClaims, error)
TokenClaims provides a mock function with given fields:
func (*APIClientRequester) UpdateConnector ¶
func (_m *APIClientRequester) UpdateConnector(ctx context.Context, in *client.Connector) (*client.Connector, error)
UpdateConnector provides a mock function with given fields: ctx, in
type APIClientRequester_AttachPoliciesToSocket_Call ¶
APIClientRequester_AttachPoliciesToSocket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachPoliciesToSocket'
func (*APIClientRequester_AttachPoliciesToSocket_Call) Return ¶
func (_c *APIClientRequester_AttachPoliciesToSocket_Call) Return(err error) *APIClientRequester_AttachPoliciesToSocket_Call
func (*APIClientRequester_AttachPoliciesToSocket_Call) Run ¶
func (_c *APIClientRequester_AttachPoliciesToSocket_Call) Run(run func(ctx context.Context, policyIDs []string, socketID string)) *APIClientRequester_AttachPoliciesToSocket_Call
func (*APIClientRequester_AttachPoliciesToSocket_Call) RunAndReturn ¶
func (_c *APIClientRequester_AttachPoliciesToSocket_Call) RunAndReturn(run func(context.Context, []string, string) error) *APIClientRequester_AttachPoliciesToSocket_Call
type APIClientRequester_AttachPolicyToSocket_Call ¶
APIClientRequester_AttachPolicyToSocket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AttachPolicyToSocket'
func (*APIClientRequester_AttachPolicyToSocket_Call) Return ¶
func (_c *APIClientRequester_AttachPolicyToSocket_Call) Return(err error) *APIClientRequester_AttachPolicyToSocket_Call
func (*APIClientRequester_AttachPolicyToSocket_Call) Run ¶
func (_c *APIClientRequester_AttachPolicyToSocket_Call) Run(run func(ctx context.Context, policyID string, socketID string)) *APIClientRequester_AttachPolicyToSocket_Call
func (*APIClientRequester_AttachPolicyToSocket_Call) RunAndReturn ¶
func (_c *APIClientRequester_AttachPolicyToSocket_Call) RunAndReturn(run func(context.Context, string, string) error) *APIClientRequester_AttachPolicyToSocket_Call
type APIClientRequester_Authenticate_Call ¶ added in v1.4.30
APIClientRequester_Authenticate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Authenticate'
func (*APIClientRequester_Authenticate_Call) Return ¶ added in v1.4.30
func (_c *APIClientRequester_Authenticate_Call) Return(_a0 error) *APIClientRequester_Authenticate_Call
func (*APIClientRequester_Authenticate_Call) Run ¶ added in v1.4.30
func (_c *APIClientRequester_Authenticate_Call) Run(run func(ctx context.Context, opts ...auth.Option)) *APIClientRequester_Authenticate_Call
func (*APIClientRequester_Authenticate_Call) RunAndReturn ¶ added in v1.4.30
func (_c *APIClientRequester_Authenticate_Call) RunAndReturn(run func(context.Context, ...auth.Option) error) *APIClientRequester_Authenticate_Call
type APIClientRequester_ConnectorToken_Call ¶ added in v1.4.18
APIClientRequester_ConnectorToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConnectorToken'
func (*APIClientRequester_ConnectorToken_Call) Return ¶ added in v1.4.18
func (_c *APIClientRequester_ConnectorToken_Call) Return(out *client.ConnectorToken, err error) *APIClientRequester_ConnectorToken_Call
func (*APIClientRequester_ConnectorToken_Call) Run ¶ added in v1.4.18
func (_c *APIClientRequester_ConnectorToken_Call) Run(run func(ctx context.Context, connectorID string, tokenID string)) *APIClientRequester_ConnectorToken_Call
func (*APIClientRequester_ConnectorToken_Call) RunAndReturn ¶ added in v1.4.18
func (_c *APIClientRequester_ConnectorToken_Call) RunAndReturn(run func(context.Context, string, string) (*client.ConnectorToken, error)) *APIClientRequester_ConnectorToken_Call
type APIClientRequester_ConnectorTokens_Call ¶
APIClientRequester_ConnectorTokens_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ConnectorTokens'
func (*APIClientRequester_ConnectorTokens_Call) Return ¶
func (_c *APIClientRequester_ConnectorTokens_Call) Return(out *client.ConnectorTokens, err error) *APIClientRequester_ConnectorTokens_Call
func (*APIClientRequester_ConnectorTokens_Call) Run ¶
func (_c *APIClientRequester_ConnectorTokens_Call) Run(run func(ctx context.Context, connectorID string)) *APIClientRequester_ConnectorTokens_Call
func (*APIClientRequester_ConnectorTokens_Call) RunAndReturn ¶
func (_c *APIClientRequester_ConnectorTokens_Call) RunAndReturn(run func(context.Context, string) (*client.ConnectorTokens, error)) *APIClientRequester_ConnectorTokens_Call
type APIClientRequester_Connector_Call ¶
APIClientRequester_Connector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connector'
func (*APIClientRequester_Connector_Call) Return ¶
func (_c *APIClientRequester_Connector_Call) Return(out *client.Connector, err error) *APIClientRequester_Connector_Call
func (*APIClientRequester_Connector_Call) Run ¶
func (_c *APIClientRequester_Connector_Call) Run(run func(ctx context.Context, id string)) *APIClientRequester_Connector_Call
func (*APIClientRequester_Connector_Call) RunAndReturn ¶
func (_c *APIClientRequester_Connector_Call) RunAndReturn(run func(context.Context, string) (*client.Connector, error)) *APIClientRequester_Connector_Call
type APIClientRequester_Connectors_Call ¶
APIClientRequester_Connectors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connectors'
func (*APIClientRequester_Connectors_Call) Return ¶
func (_c *APIClientRequester_Connectors_Call) Return(out []client.Connector, err error) *APIClientRequester_Connectors_Call
func (*APIClientRequester_Connectors_Call) Run ¶
func (_c *APIClientRequester_Connectors_Call) Run(run func(ctx context.Context)) *APIClientRequester_Connectors_Call
func (*APIClientRequester_Connectors_Call) RunAndReturn ¶
func (_c *APIClientRequester_Connectors_Call) RunAndReturn(run func(context.Context) ([]client.Connector, error)) *APIClientRequester_Connectors_Call
type APIClientRequester_CreateConnectorToken_Call ¶
APIClientRequester_CreateConnectorToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateConnectorToken'
func (*APIClientRequester_CreateConnectorToken_Call) Return ¶
func (_c *APIClientRequester_CreateConnectorToken_Call) Return(out *client.ConnectorToken, err error) *APIClientRequester_CreateConnectorToken_Call
func (*APIClientRequester_CreateConnectorToken_Call) Run ¶
func (_c *APIClientRequester_CreateConnectorToken_Call) Run(run func(ctx context.Context, in *client.ConnectorToken)) *APIClientRequester_CreateConnectorToken_Call
func (*APIClientRequester_CreateConnectorToken_Call) RunAndReturn ¶
func (_c *APIClientRequester_CreateConnectorToken_Call) RunAndReturn(run func(context.Context, *client.ConnectorToken) (*client.ConnectorToken, error)) *APIClientRequester_CreateConnectorToken_Call
type APIClientRequester_CreateConnector_Call ¶
APIClientRequester_CreateConnector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateConnector'
func (*APIClientRequester_CreateConnector_Call) Return ¶
func (_c *APIClientRequester_CreateConnector_Call) Return(out *client.Connector, err error) *APIClientRequester_CreateConnector_Call
func (*APIClientRequester_CreateConnector_Call) Run ¶
func (_c *APIClientRequester_CreateConnector_Call) Run(run func(ctx context.Context, in *client.Connector)) *APIClientRequester_CreateConnector_Call
func (*APIClientRequester_CreateConnector_Call) RunAndReturn ¶
func (_c *APIClientRequester_CreateConnector_Call) RunAndReturn(run func(context.Context, *client.Connector) (*client.Connector, error)) *APIClientRequester_CreateConnector_Call
type APIClientRequester_CreatePolicy_Call ¶
APIClientRequester_CreatePolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePolicy'
func (*APIClientRequester_CreatePolicy_Call) Return ¶
func (_c *APIClientRequester_CreatePolicy_Call) Return(out *client.Policy, err error) *APIClientRequester_CreatePolicy_Call
func (*APIClientRequester_CreatePolicy_Call) Run ¶
func (_c *APIClientRequester_CreatePolicy_Call) Run(run func(ctx context.Context, in *client.Policy)) *APIClientRequester_CreatePolicy_Call
func (*APIClientRequester_CreatePolicy_Call) RunAndReturn ¶
func (_c *APIClientRequester_CreatePolicy_Call) RunAndReturn(run func(context.Context, *client.Policy) (*client.Policy, error)) *APIClientRequester_CreatePolicy_Call
type APIClientRequester_CreateSocket_Call ¶
APIClientRequester_CreateSocket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSocket'
func (*APIClientRequester_CreateSocket_Call) Return ¶
func (_c *APIClientRequester_CreateSocket_Call) Return(out *client.Socket, err error) *APIClientRequester_CreateSocket_Call
func (*APIClientRequester_CreateSocket_Call) Run ¶
func (_c *APIClientRequester_CreateSocket_Call) Run(run func(ctx context.Context, in *client.Socket)) *APIClientRequester_CreateSocket_Call
func (*APIClientRequester_CreateSocket_Call) RunAndReturn ¶
func (_c *APIClientRequester_CreateSocket_Call) RunAndReturn(run func(context.Context, *client.Socket) (*client.Socket, error)) *APIClientRequester_CreateSocket_Call
type APIClientRequester_DeleteConnectorToken_Call ¶
APIClientRequester_DeleteConnectorToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteConnectorToken'
func (*APIClientRequester_DeleteConnectorToken_Call) Return ¶
func (_c *APIClientRequester_DeleteConnectorToken_Call) Return(err error) *APIClientRequester_DeleteConnectorToken_Call
func (*APIClientRequester_DeleteConnectorToken_Call) Run ¶
func (_c *APIClientRequester_DeleteConnectorToken_Call) Run(run func(ctx context.Context, connectorID string, tokenID string)) *APIClientRequester_DeleteConnectorToken_Call
func (*APIClientRequester_DeleteConnectorToken_Call) RunAndReturn ¶
func (_c *APIClientRequester_DeleteConnectorToken_Call) RunAndReturn(run func(context.Context, string, string) error) *APIClientRequester_DeleteConnectorToken_Call
type APIClientRequester_DeleteConnector_Call ¶
APIClientRequester_DeleteConnector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteConnector'
func (*APIClientRequester_DeleteConnector_Call) Return ¶
func (_c *APIClientRequester_DeleteConnector_Call) Return(err error) *APIClientRequester_DeleteConnector_Call
func (*APIClientRequester_DeleteConnector_Call) Run ¶
func (_c *APIClientRequester_DeleteConnector_Call) Run(run func(ctx context.Context, id string)) *APIClientRequester_DeleteConnector_Call
func (*APIClientRequester_DeleteConnector_Call) RunAndReturn ¶
func (_c *APIClientRequester_DeleteConnector_Call) RunAndReturn(run func(context.Context, string) error) *APIClientRequester_DeleteConnector_Call
type APIClientRequester_DeletePolicy_Call ¶
APIClientRequester_DeletePolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeletePolicy'
func (*APIClientRequester_DeletePolicy_Call) Return ¶
func (_c *APIClientRequester_DeletePolicy_Call) Return(err error) *APIClientRequester_DeletePolicy_Call
func (*APIClientRequester_DeletePolicy_Call) Run ¶
func (_c *APIClientRequester_DeletePolicy_Call) Run(run func(ctx context.Context, id string)) *APIClientRequester_DeletePolicy_Call
func (*APIClientRequester_DeletePolicy_Call) RunAndReturn ¶
func (_c *APIClientRequester_DeletePolicy_Call) RunAndReturn(run func(context.Context, string) error) *APIClientRequester_DeletePolicy_Call
type APIClientRequester_DeleteSocket_Call ¶
APIClientRequester_DeleteSocket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteSocket'
func (*APIClientRequester_DeleteSocket_Call) Return ¶
func (_c *APIClientRequester_DeleteSocket_Call) Return(err error) *APIClientRequester_DeleteSocket_Call
func (*APIClientRequester_DeleteSocket_Call) Run ¶
func (_c *APIClientRequester_DeleteSocket_Call) Run(run func(ctx context.Context, idOrName string)) *APIClientRequester_DeleteSocket_Call
func (*APIClientRequester_DeleteSocket_Call) RunAndReturn ¶
func (_c *APIClientRequester_DeleteSocket_Call) RunAndReturn(run func(context.Context, string) error) *APIClientRequester_DeleteSocket_Call
type APIClientRequester_Expecter ¶
type APIClientRequester_Expecter struct {
// contains filtered or unexported fields
}
func (*APIClientRequester_Expecter) AttachPoliciesToSocket ¶
func (_e *APIClientRequester_Expecter) AttachPoliciesToSocket(ctx interface{}, policyIDs interface{}, socketID interface{}) *APIClientRequester_AttachPoliciesToSocket_Call
AttachPoliciesToSocket is a helper method to define mock.On call
- ctx context.Context
- policyIDs []string
- socketID string
func (*APIClientRequester_Expecter) AttachPolicyToSocket ¶
func (_e *APIClientRequester_Expecter) AttachPolicyToSocket(ctx interface{}, policyID interface{}, socketID interface{}) *APIClientRequester_AttachPolicyToSocket_Call
AttachPolicyToSocket is a helper method to define mock.On call
- ctx context.Context
- policyID string
- socketID string
func (*APIClientRequester_Expecter) Authenticate ¶ added in v1.4.30
func (_e *APIClientRequester_Expecter) Authenticate(ctx interface{}, opts ...interface{}) *APIClientRequester_Authenticate_Call
Authenticate is a helper method to define mock.On call
- ctx context.Context
- opts ...auth.Option
func (*APIClientRequester_Expecter) Connector ¶
func (_e *APIClientRequester_Expecter) Connector(ctx interface{}, id interface{}) *APIClientRequester_Connector_Call
Connector is a helper method to define mock.On call
- ctx context.Context
- id string
func (*APIClientRequester_Expecter) ConnectorToken ¶ added in v1.4.18
func (_e *APIClientRequester_Expecter) ConnectorToken(ctx interface{}, connectorID interface{}, tokenID interface{}) *APIClientRequester_ConnectorToken_Call
ConnectorToken is a helper method to define mock.On call
- ctx context.Context
- connectorID string
- tokenID string
func (*APIClientRequester_Expecter) ConnectorTokens ¶
func (_e *APIClientRequester_Expecter) ConnectorTokens(ctx interface{}, connectorID interface{}) *APIClientRequester_ConnectorTokens_Call
ConnectorTokens is a helper method to define mock.On call
- ctx context.Context
- connectorID string
func (*APIClientRequester_Expecter) Connectors ¶
func (_e *APIClientRequester_Expecter) Connectors(ctx interface{}) *APIClientRequester_Connectors_Call
Connectors is a helper method to define mock.On call
- ctx context.Context
func (*APIClientRequester_Expecter) CreateConnector ¶
func (_e *APIClientRequester_Expecter) CreateConnector(ctx interface{}, in interface{}) *APIClientRequester_CreateConnector_Call
CreateConnector is a helper method to define mock.On call
- ctx context.Context
- in *client.Connector
func (*APIClientRequester_Expecter) CreateConnectorToken ¶
func (_e *APIClientRequester_Expecter) CreateConnectorToken(ctx interface{}, in interface{}) *APIClientRequester_CreateConnectorToken_Call
CreateConnectorToken is a helper method to define mock.On call
- ctx context.Context
- in *client.ConnectorToken
func (*APIClientRequester_Expecter) CreatePolicy ¶
func (_e *APIClientRequester_Expecter) CreatePolicy(ctx interface{}, in interface{}) *APIClientRequester_CreatePolicy_Call
CreatePolicy is a helper method to define mock.On call
- ctx context.Context
- in *client.Policy
func (*APIClientRequester_Expecter) CreateSocket ¶
func (_e *APIClientRequester_Expecter) CreateSocket(ctx interface{}, in interface{}) *APIClientRequester_CreateSocket_Call
CreateSocket is a helper method to define mock.On call
- ctx context.Context
- in *client.Socket
func (*APIClientRequester_Expecter) DeleteConnector ¶
func (_e *APIClientRequester_Expecter) DeleteConnector(ctx interface{}, id interface{}) *APIClientRequester_DeleteConnector_Call
DeleteConnector is a helper method to define mock.On call
- ctx context.Context
- id string
func (*APIClientRequester_Expecter) DeleteConnectorToken ¶
func (_e *APIClientRequester_Expecter) DeleteConnectorToken(ctx interface{}, connectorID interface{}, tokenID interface{}) *APIClientRequester_DeleteConnectorToken_Call
DeleteConnectorToken is a helper method to define mock.On call
- ctx context.Context
- connectorID string
- tokenID string
func (*APIClientRequester_Expecter) DeletePolicy ¶
func (_e *APIClientRequester_Expecter) DeletePolicy(ctx interface{}, id interface{}) *APIClientRequester_DeletePolicy_Call
DeletePolicy is a helper method to define mock.On call
- ctx context.Context
- id string
func (*APIClientRequester_Expecter) DeleteSocket ¶
func (_e *APIClientRequester_Expecter) DeleteSocket(ctx interface{}, idOrName interface{}) *APIClientRequester_DeleteSocket_Call
DeleteSocket is a helper method to define mock.On call
- ctx context.Context
- idOrName string
func (*APIClientRequester_Expecter) Policies ¶
func (_e *APIClientRequester_Expecter) Policies(ctx interface{}) *APIClientRequester_Policies_Call
Policies is a helper method to define mock.On call
- ctx context.Context
func (*APIClientRequester_Expecter) PoliciesByNames ¶
func (_e *APIClientRequester_Expecter) PoliciesByNames(ctx interface{}, names ...interface{}) *APIClientRequester_PoliciesByNames_Call
PoliciesByNames is a helper method to define mock.On call
- ctx context.Context
- names ...string
func (*APIClientRequester_Expecter) Policy ¶
func (_e *APIClientRequester_Expecter) Policy(ctx interface{}, id interface{}) *APIClientRequester_Policy_Call
Policy is a helper method to define mock.On call
- ctx context.Context
- id string
func (*APIClientRequester_Expecter) RemovePoliciesFromSocket ¶
func (_e *APIClientRequester_Expecter) RemovePoliciesFromSocket(ctx interface{}, policyIDs interface{}, socketID interface{}) *APIClientRequester_RemovePoliciesFromSocket_Call
RemovePoliciesFromSocket is a helper method to define mock.On call
- ctx context.Context
- policyIDs []string
- socketID string
func (*APIClientRequester_Expecter) RemovePolicyFromSocket ¶
func (_e *APIClientRequester_Expecter) RemovePolicyFromSocket(ctx interface{}, policyID interface{}, socketID interface{}) *APIClientRequester_RemovePolicyFromSocket_Call
RemovePolicyFromSocket is a helper method to define mock.On call
- ctx context.Context
- policyID string
- socketID string
func (*APIClientRequester_Expecter) SignSocketKey ¶
func (_e *APIClientRequester_Expecter) SignSocketKey(ctx interface{}, idOrName interface{}, in interface{}) *APIClientRequester_SignSocketKey_Call
SignSocketKey is a helper method to define mock.On call
- ctx context.Context
- idOrName string
- in *client.SocketKeyToSign
func (*APIClientRequester_Expecter) Socket ¶
func (_e *APIClientRequester_Expecter) Socket(ctx interface{}, idOrName interface{}) *APIClientRequester_Socket_Call
Socket is a helper method to define mock.On call
- ctx context.Context
- idOrName string
func (*APIClientRequester_Expecter) SocketConnectors ¶
func (_e *APIClientRequester_Expecter) SocketConnectors(ctx interface{}, idOrName interface{}) *APIClientRequester_SocketConnectors_Call
SocketConnectors is a helper method to define mock.On call
- ctx context.Context
- idOrName string
func (*APIClientRequester_Expecter) SocketUpstreamConfigs ¶
func (_e *APIClientRequester_Expecter) SocketUpstreamConfigs(ctx interface{}, idOrName interface{}) *APIClientRequester_SocketUpstreamConfigs_Call
SocketUpstreamConfigs is a helper method to define mock.On call
- ctx context.Context
- idOrName string
func (*APIClientRequester_Expecter) Sockets ¶
func (_e *APIClientRequester_Expecter) Sockets(ctx interface{}) *APIClientRequester_Sockets_Call
Sockets is a helper method to define mock.On call
- ctx context.Context
func (*APIClientRequester_Expecter) TokenClaims ¶
func (_e *APIClientRequester_Expecter) TokenClaims() *APIClientRequester_TokenClaims_Call
TokenClaims is a helper method to define mock.On call
func (*APIClientRequester_Expecter) UpdateConnector ¶
func (_e *APIClientRequester_Expecter) UpdateConnector(ctx interface{}, in interface{}) *APIClientRequester_UpdateConnector_Call
UpdateConnector is a helper method to define mock.On call
- ctx context.Context
- in *client.Connector
func (*APIClientRequester_Expecter) UpdatePolicy ¶
func (_e *APIClientRequester_Expecter) UpdatePolicy(ctx interface{}, id interface{}, in interface{}) *APIClientRequester_UpdatePolicy_Call
UpdatePolicy is a helper method to define mock.On call
- ctx context.Context
- id string
- in *client.Policy
func (*APIClientRequester_Expecter) UpdateSocket ¶
func (_e *APIClientRequester_Expecter) UpdateSocket(ctx interface{}, idOrName interface{}, in interface{}) *APIClientRequester_UpdateSocket_Call
UpdateSocket is a helper method to define mock.On call
- ctx context.Context
- idOrName string
- in *client.Socket
type APIClientRequester_PoliciesByNames_Call ¶
APIClientRequester_PoliciesByNames_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PoliciesByNames'
func (*APIClientRequester_PoliciesByNames_Call) Return ¶
func (_c *APIClientRequester_PoliciesByNames_Call) Return(out []client.Policy, err error) *APIClientRequester_PoliciesByNames_Call
func (*APIClientRequester_PoliciesByNames_Call) Run ¶
func (_c *APIClientRequester_PoliciesByNames_Call) Run(run func(ctx context.Context, names ...string)) *APIClientRequester_PoliciesByNames_Call
func (*APIClientRequester_PoliciesByNames_Call) RunAndReturn ¶
func (_c *APIClientRequester_PoliciesByNames_Call) RunAndReturn(run func(context.Context, ...string) ([]client.Policy, error)) *APIClientRequester_PoliciesByNames_Call
type APIClientRequester_Policies_Call ¶
APIClientRequester_Policies_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Policies'
func (*APIClientRequester_Policies_Call) Return ¶
func (_c *APIClientRequester_Policies_Call) Return(out []client.Policy, err error) *APIClientRequester_Policies_Call
func (*APIClientRequester_Policies_Call) Run ¶
func (_c *APIClientRequester_Policies_Call) Run(run func(ctx context.Context)) *APIClientRequester_Policies_Call
func (*APIClientRequester_Policies_Call) RunAndReturn ¶
func (_c *APIClientRequester_Policies_Call) RunAndReturn(run func(context.Context) ([]client.Policy, error)) *APIClientRequester_Policies_Call
type APIClientRequester_Policy_Call ¶
APIClientRequester_Policy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Policy'
func (*APIClientRequester_Policy_Call) Return ¶
func (_c *APIClientRequester_Policy_Call) Return(out *client.Policy, err error) *APIClientRequester_Policy_Call
func (*APIClientRequester_Policy_Call) Run ¶
func (_c *APIClientRequester_Policy_Call) Run(run func(ctx context.Context, id string)) *APIClientRequester_Policy_Call
func (*APIClientRequester_Policy_Call) RunAndReturn ¶
func (_c *APIClientRequester_Policy_Call) RunAndReturn(run func(context.Context, string) (*client.Policy, error)) *APIClientRequester_Policy_Call
type APIClientRequester_RemovePoliciesFromSocket_Call ¶
APIClientRequester_RemovePoliciesFromSocket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePoliciesFromSocket'
func (*APIClientRequester_RemovePoliciesFromSocket_Call) Return ¶
func (_c *APIClientRequester_RemovePoliciesFromSocket_Call) Return(err error) *APIClientRequester_RemovePoliciesFromSocket_Call
func (*APIClientRequester_RemovePoliciesFromSocket_Call) Run ¶
func (_c *APIClientRequester_RemovePoliciesFromSocket_Call) Run(run func(ctx context.Context, policyIDs []string, socketID string)) *APIClientRequester_RemovePoliciesFromSocket_Call
func (*APIClientRequester_RemovePoliciesFromSocket_Call) RunAndReturn ¶
func (_c *APIClientRequester_RemovePoliciesFromSocket_Call) RunAndReturn(run func(context.Context, []string, string) error) *APIClientRequester_RemovePoliciesFromSocket_Call
type APIClientRequester_RemovePolicyFromSocket_Call ¶
APIClientRequester_RemovePolicyFromSocket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemovePolicyFromSocket'
func (*APIClientRequester_RemovePolicyFromSocket_Call) Return ¶
func (_c *APIClientRequester_RemovePolicyFromSocket_Call) Return(err error) *APIClientRequester_RemovePolicyFromSocket_Call
func (*APIClientRequester_RemovePolicyFromSocket_Call) Run ¶
func (_c *APIClientRequester_RemovePolicyFromSocket_Call) Run(run func(ctx context.Context, policyID string, socketID string)) *APIClientRequester_RemovePolicyFromSocket_Call
func (*APIClientRequester_RemovePolicyFromSocket_Call) RunAndReturn ¶
func (_c *APIClientRequester_RemovePolicyFromSocket_Call) RunAndReturn(run func(context.Context, string, string) error) *APIClientRequester_RemovePolicyFromSocket_Call
type APIClientRequester_SignSocketKey_Call ¶
APIClientRequester_SignSocketKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignSocketKey'
func (*APIClientRequester_SignSocketKey_Call) Return ¶
func (_c *APIClientRequester_SignSocketKey_Call) Return(out *client.SignedSocketKey, err error) *APIClientRequester_SignSocketKey_Call
func (*APIClientRequester_SignSocketKey_Call) Run ¶
func (_c *APIClientRequester_SignSocketKey_Call) Run(run func(ctx context.Context, idOrName string, in *client.SocketKeyToSign)) *APIClientRequester_SignSocketKey_Call
func (*APIClientRequester_SignSocketKey_Call) RunAndReturn ¶
func (_c *APIClientRequester_SignSocketKey_Call) RunAndReturn(run func(context.Context, string, *client.SocketKeyToSign) (*client.SignedSocketKey, error)) *APIClientRequester_SignSocketKey_Call
type APIClientRequester_SocketConnectors_Call ¶
APIClientRequester_SocketConnectors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SocketConnectors'
func (*APIClientRequester_SocketConnectors_Call) Return ¶
func (_c *APIClientRequester_SocketConnectors_Call) Return(out *client.SocketConnectors, err error) *APIClientRequester_SocketConnectors_Call
func (*APIClientRequester_SocketConnectors_Call) Run ¶
func (_c *APIClientRequester_SocketConnectors_Call) Run(run func(ctx context.Context, idOrName string)) *APIClientRequester_SocketConnectors_Call
func (*APIClientRequester_SocketConnectors_Call) RunAndReturn ¶
func (_c *APIClientRequester_SocketConnectors_Call) RunAndReturn(run func(context.Context, string) (*client.SocketConnectors, error)) *APIClientRequester_SocketConnectors_Call
type APIClientRequester_SocketUpstreamConfigs_Call ¶
APIClientRequester_SocketUpstreamConfigs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SocketUpstreamConfigs'
func (*APIClientRequester_SocketUpstreamConfigs_Call) Return ¶
func (_c *APIClientRequester_SocketUpstreamConfigs_Call) Return(out *client.SocketUpstreamConfigs, err error) *APIClientRequester_SocketUpstreamConfigs_Call
func (*APIClientRequester_SocketUpstreamConfigs_Call) Run ¶
func (_c *APIClientRequester_SocketUpstreamConfigs_Call) Run(run func(ctx context.Context, idOrName string)) *APIClientRequester_SocketUpstreamConfigs_Call
func (*APIClientRequester_SocketUpstreamConfigs_Call) RunAndReturn ¶
func (_c *APIClientRequester_SocketUpstreamConfigs_Call) RunAndReturn(run func(context.Context, string) (*client.SocketUpstreamConfigs, error)) *APIClientRequester_SocketUpstreamConfigs_Call
type APIClientRequester_Socket_Call ¶
APIClientRequester_Socket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Socket'
func (*APIClientRequester_Socket_Call) Return ¶
func (_c *APIClientRequester_Socket_Call) Return(out *client.Socket, err error) *APIClientRequester_Socket_Call
func (*APIClientRequester_Socket_Call) Run ¶
func (_c *APIClientRequester_Socket_Call) Run(run func(ctx context.Context, idOrName string)) *APIClientRequester_Socket_Call
func (*APIClientRequester_Socket_Call) RunAndReturn ¶
func (_c *APIClientRequester_Socket_Call) RunAndReturn(run func(context.Context, string) (*client.Socket, error)) *APIClientRequester_Socket_Call
type APIClientRequester_Sockets_Call ¶
APIClientRequester_Sockets_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Sockets'
func (*APIClientRequester_Sockets_Call) Return ¶
func (_c *APIClientRequester_Sockets_Call) Return(out []client.Socket, err error) *APIClientRequester_Sockets_Call
func (*APIClientRequester_Sockets_Call) Run ¶
func (_c *APIClientRequester_Sockets_Call) Run(run func(ctx context.Context)) *APIClientRequester_Sockets_Call
func (*APIClientRequester_Sockets_Call) RunAndReturn ¶
func (_c *APIClientRequester_Sockets_Call) RunAndReturn(run func(context.Context) ([]client.Socket, error)) *APIClientRequester_Sockets_Call
type APIClientRequester_TokenClaims_Call ¶
APIClientRequester_TokenClaims_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TokenClaims'
func (*APIClientRequester_TokenClaims_Call) Return ¶
func (_c *APIClientRequester_TokenClaims_Call) Return(_a0 jwt.MapClaims, _a1 error) *APIClientRequester_TokenClaims_Call
func (*APIClientRequester_TokenClaims_Call) Run ¶
func (_c *APIClientRequester_TokenClaims_Call) Run(run func()) *APIClientRequester_TokenClaims_Call
func (*APIClientRequester_TokenClaims_Call) RunAndReturn ¶
func (_c *APIClientRequester_TokenClaims_Call) RunAndReturn(run func() (jwt.MapClaims, error)) *APIClientRequester_TokenClaims_Call
type APIClientRequester_UpdateConnector_Call ¶
APIClientRequester_UpdateConnector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateConnector'
func (*APIClientRequester_UpdateConnector_Call) Return ¶
func (_c *APIClientRequester_UpdateConnector_Call) Return(out *client.Connector, err error) *APIClientRequester_UpdateConnector_Call
func (*APIClientRequester_UpdateConnector_Call) Run ¶
func (_c *APIClientRequester_UpdateConnector_Call) Run(run func(ctx context.Context, in *client.Connector)) *APIClientRequester_UpdateConnector_Call
func (*APIClientRequester_UpdateConnector_Call) RunAndReturn ¶
func (_c *APIClientRequester_UpdateConnector_Call) RunAndReturn(run func(context.Context, *client.Connector) (*client.Connector, error)) *APIClientRequester_UpdateConnector_Call
type APIClientRequester_UpdatePolicy_Call ¶
APIClientRequester_UpdatePolicy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePolicy'
func (*APIClientRequester_UpdatePolicy_Call) Return ¶
func (_c *APIClientRequester_UpdatePolicy_Call) Return(out *client.Policy, err error) *APIClientRequester_UpdatePolicy_Call
func (*APIClientRequester_UpdatePolicy_Call) Run ¶
func (_c *APIClientRequester_UpdatePolicy_Call) Run(run func(ctx context.Context, id string, in *client.Policy)) *APIClientRequester_UpdatePolicy_Call
func (*APIClientRequester_UpdatePolicy_Call) RunAndReturn ¶
func (_c *APIClientRequester_UpdatePolicy_Call) RunAndReturn(run func(context.Context, string, *client.Policy) (*client.Policy, error)) *APIClientRequester_UpdatePolicy_Call
type APIClientRequester_UpdateSocket_Call ¶
APIClientRequester_UpdateSocket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateSocket'
func (*APIClientRequester_UpdateSocket_Call) Return ¶
func (_c *APIClientRequester_UpdateSocket_Call) Return(out *client.Socket, err error) *APIClientRequester_UpdateSocket_Call
func (*APIClientRequester_UpdateSocket_Call) Run ¶
func (_c *APIClientRequester_UpdateSocket_Call) Run(run func(ctx context.Context, idOrName string, in *client.Socket)) *APIClientRequester_UpdateSocket_Call
func (*APIClientRequester_UpdateSocket_Call) RunAndReturn ¶
func (_c *APIClientRequester_UpdateSocket_Call) RunAndReturn(run func(context.Context, string, *client.Socket) (*client.Socket, error)) *APIClientRequester_UpdateSocket_Call