cluster

package
v0.16.7 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 (*Client) AllHostnames

func (_mock *Client) AllHostnames(context1 context.Context) ([]hostname.ActiveHostname, error)

AllHostnames provides a mock function for the type Client

func (*Client) AttestationQuote added in v0.16.0

func (_m *Client) AttestationQuote(ctx context.Context, lID v1.LeaseID, service string, podIndex uint, requestBody []byte) ([]byte, int, error)

func (*Client) ConnectHostnameToDeployment

func (_mock *Client) ConnectHostnameToDeployment(ctx context.Context, directive hostname.ConnectToDeploymentDirective) error

ConnectHostnameToDeployment provides a mock function for the type Client

func (*Client) DeclareHostname

func (_mock *Client) DeclareHostname(ctx context.Context, lID v1.LeaseID, host string, serviceName string, externalPort uint32) error

DeclareHostname provides a mock function for the type Client

func (*Client) DeclareIP

func (_mock *Client) DeclareIP(ctx context.Context, lID v1.LeaseID, serviceName string, port uint32, externalPort uint32, proto v2beta3.ServiceProtocol, sharingKey string, overwrite bool) error

DeclareIP provides a mock function for the type Client

func (*Client) Deploy

func (_mock *Client) Deploy(ctx context.Context, deployment v1beta3.IDeployment) error

Deploy provides a mock function for the type Client

func (*Client) Deployments

func (_mock *Client) Deployments(context1 context.Context) ([]v1beta3.IDeployment, error)

Deployments provides a mock function for the type Client

func (*Client) DetectTEEPlatform added in v0.16.0

func (_m *Client) DetectTEEPlatform(_ context.Context) v1beta3.TEEPlatform

AttestationQuote provides a mock function for the type Client

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) Exec

func (_mock *Client) Exec(ctx context.Context, lID v1.LeaseID, service string, podIndex uint, cmd []string, stdin io.Reader, stdout io.Writer, stderr io.Writer, tty bool, tsq remotecommand.TerminalSizeQueue) (v1beta3.ExecResult, error)

Exec provides a mock function for the type Client

func (*Client) ForwardedPortStatus

func (_mock *Client) ForwardedPortStatus(context1 context.Context, leaseID v1.LeaseID) (map[string][]rest.ForwardedPortStatus, error)

ForwardedPortStatus provides a mock function for the type Client

func (*Client) GetDeclaredIPs

func (_mock *Client) GetDeclaredIPs(ctx context.Context, leaseID v1.LeaseID) ([]v2beta2.ProviderLeasedIPSpec, error)

GetDeclaredIPs provides a mock function for the type Client

func (*Client) GetHostnameDeploymentConnections

func (_mock *Client) GetHostnameDeploymentConnections(ctx context.Context) ([]hostname.LeaseIDConnection, error)

GetHostnameDeploymentConnections provides a mock function for the type Client

func (*Client) GetManifestGroup

func (_mock *Client) GetManifestGroup(context1 context.Context, leaseID v1.LeaseID) (bool, v2beta2.ManifestGroup, error)

GetManifestGroup provides a mock function for the type Client

func (*Client) KubeVersion

func (_mock *Client) KubeVersion() (*version.Info, error)

KubeVersion provides a mock function for the type Client

func (*Client) LeaseEvents

func (_mock *Client) LeaseEvents(context1 context.Context, leaseID v1.LeaseID, s string, b bool) (v1beta3.EventsWatcher, error)

LeaseEvents provides a mock function for the type Client

func (*Client) LeaseIDs added in v0.16.7

func (_mock *Client) LeaseIDs(context1 context.Context) ([]v1.LeaseID, error)

LeaseIDs provides a mock function for the type Client

func (*Client) LeaseLogs

func (_mock *Client) LeaseLogs(context1 context.Context, leaseID v1.LeaseID, s string, b bool, n *int64) ([]*v1beta3.ServiceLog, error)

LeaseLogs provides a mock function for the type Client

func (*Client) LeaseStatus

func (_mock *Client) LeaseStatus(context1 context.Context, leaseID v1.LeaseID) (map[string]*rest.ServiceStatus, error)

LeaseStatus provides a mock function for the type Client

func (*Client) ObserveHostnameState

func (_mock *Client) ObserveHostnameState(ctx context.Context) (<-chan hostname.ResourceEvent, error)

ObserveHostnameState provides a mock function for the type Client

func (*Client) ObserveIPState

func (_mock *Client) ObserveIPState(ctx context.Context) (<-chan ip.ResourceEvent, error)

ObserveIPState provides a mock function for the type Client

func (*Client) PurgeDeclaredHostname

func (_mock *Client) PurgeDeclaredHostname(ctx context.Context, lID v1.LeaseID, hostname1 string) error

PurgeDeclaredHostname provides a mock function for the type Client

func (*Client) PurgeDeclaredHostnames

func (_mock *Client) PurgeDeclaredHostnames(ctx context.Context, lID v1.LeaseID) error

PurgeDeclaredHostnames provides a mock function for the type Client

func (*Client) PurgeDeclaredIP

func (_mock *Client) PurgeDeclaredIP(ctx context.Context, lID v1.LeaseID, serviceName string, externalPort uint32, proto v2beta3.ServiceProtocol) error

PurgeDeclaredIP provides a mock function for the type Client

func (*Client) PurgeDeclaredIPs

func (_mock *Client) PurgeDeclaredIPs(ctx context.Context, lID v1.LeaseID) error

PurgeDeclaredIPs provides a mock function for the type Client

func (*Client) RemoveHostnameFromDeployment

func (_mock *Client) RemoveHostnameFromDeployment(ctx context.Context, hostname1 string, leaseID v1.LeaseID, allowMissing bool) error

RemoveHostnameFromDeployment provides a mock function for the type Client

func (*Client) ServiceStatus

func (_mock *Client) ServiceStatus(context1 context.Context, leaseID v1.LeaseID, s string) (*rest.ServiceStatus, error)

ServiceStatus provides a mock function for the type Client

func (*Client) TeardownLease

func (_mock *Client) TeardownLease(context1 context.Context, leaseID v1.LeaseID) error

TeardownLease provides a mock function for the type Client

type Client_AllHostnames_Call

type Client_AllHostnames_Call struct {
	*mock.Call
}

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

func (*Client_AllHostnames_Call) Return

func (*Client_AllHostnames_Call) Run

func (*Client_AllHostnames_Call) RunAndReturn

type Client_ConnectHostnameToDeployment_Call

type Client_ConnectHostnameToDeployment_Call struct {
	*mock.Call
}

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

func (*Client_ConnectHostnameToDeployment_Call) Return

func (*Client_ConnectHostnameToDeployment_Call) Run

func (*Client_ConnectHostnameToDeployment_Call) RunAndReturn

type Client_DeclareHostname_Call

type Client_DeclareHostname_Call struct {
	*mock.Call
}

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

func (*Client_DeclareHostname_Call) Return

func (*Client_DeclareHostname_Call) Run

func (_c *Client_DeclareHostname_Call) Run(run func(ctx context.Context, lID v1.LeaseID, host string, serviceName string, externalPort uint32)) *Client_DeclareHostname_Call

func (*Client_DeclareHostname_Call) RunAndReturn

func (_c *Client_DeclareHostname_Call) RunAndReturn(run func(ctx context.Context, lID v1.LeaseID, host string, serviceName string, externalPort uint32) error) *Client_DeclareHostname_Call

type Client_DeclareIP_Call

type Client_DeclareIP_Call struct {
	*mock.Call
}

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

func (*Client_DeclareIP_Call) Return

func (*Client_DeclareIP_Call) Run

func (_c *Client_DeclareIP_Call) Run(run func(ctx context.Context, lID v1.LeaseID, serviceName string, port uint32, externalPort uint32, proto v2beta3.ServiceProtocol, sharingKey string, overwrite bool)) *Client_DeclareIP_Call

func (*Client_DeclareIP_Call) RunAndReturn

func (_c *Client_DeclareIP_Call) RunAndReturn(run func(ctx context.Context, lID v1.LeaseID, serviceName string, port uint32, externalPort uint32, proto v2beta3.ServiceProtocol, sharingKey string, overwrite bool) error) *Client_DeclareIP_Call

type Client_Deploy_Call

type Client_Deploy_Call struct {
	*mock.Call
}

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

func (*Client_Deploy_Call) Return

func (_c *Client_Deploy_Call) Return(err error) *Client_Deploy_Call

func (*Client_Deploy_Call) Run

func (_c *Client_Deploy_Call) Run(run func(ctx context.Context, deployment v1beta3.IDeployment)) *Client_Deploy_Call

func (*Client_Deploy_Call) RunAndReturn

func (_c *Client_Deploy_Call) RunAndReturn(run func(ctx context.Context, deployment v1beta3.IDeployment) error) *Client_Deploy_Call

type Client_Deployments_Call

type Client_Deployments_Call struct {
	*mock.Call
}

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

func (*Client_Deployments_Call) Return

func (_c *Client_Deployments_Call) Return(iDeployments []v1beta3.IDeployment, err error) *Client_Deployments_Call

func (*Client_Deployments_Call) Run

func (_c *Client_Deployments_Call) Run(run func(context1 context.Context)) *Client_Deployments_Call

func (*Client_Deployments_Call) RunAndReturn

func (_c *Client_Deployments_Call) RunAndReturn(run func(context1 context.Context) ([]v1beta3.IDeployment, error)) *Client_Deployments_Call

type Client_Exec_Call

type Client_Exec_Call struct {
	*mock.Call
}

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

func (*Client_Exec_Call) Return

func (_c *Client_Exec_Call) Return(execResult v1beta3.ExecResult, err error) *Client_Exec_Call

func (*Client_Exec_Call) Run

func (_c *Client_Exec_Call) Run(run func(ctx context.Context, lID v1.LeaseID, service string, podIndex uint, cmd []string, stdin io.Reader, stdout io.Writer, stderr io.Writer, tty bool, tsq remotecommand.TerminalSizeQueue)) *Client_Exec_Call

func (*Client_Exec_Call) RunAndReturn

func (_c *Client_Exec_Call) RunAndReturn(run func(ctx context.Context, lID v1.LeaseID, service string, podIndex uint, cmd []string, stdin io.Reader, stdout io.Writer, stderr io.Writer, tty bool, tsq remotecommand.TerminalSizeQueue) (v1beta3.ExecResult, error)) *Client_Exec_Call

type Client_Expecter

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

func (*Client_Expecter) AllHostnames

func (_e *Client_Expecter) AllHostnames(context1 interface{}) *Client_AllHostnames_Call

AllHostnames is a helper method to define mock.On call

  • context1 context.Context

func (*Client_Expecter) ConnectHostnameToDeployment

func (_e *Client_Expecter) ConnectHostnameToDeployment(ctx interface{}, directive interface{}) *Client_ConnectHostnameToDeployment_Call

ConnectHostnameToDeployment is a helper method to define mock.On call

  • ctx context.Context
  • directive hostname.ConnectToDeploymentDirective

func (*Client_Expecter) DeclareHostname

func (_e *Client_Expecter) DeclareHostname(ctx interface{}, lID interface{}, host interface{}, serviceName interface{}, externalPort interface{}) *Client_DeclareHostname_Call

DeclareHostname is a helper method to define mock.On call

  • ctx context.Context
  • lID v1.LeaseID
  • host string
  • serviceName string
  • externalPort uint32

func (*Client_Expecter) DeclareIP

func (_e *Client_Expecter) DeclareIP(ctx interface{}, lID interface{}, serviceName interface{}, port interface{}, externalPort interface{}, proto interface{}, sharingKey interface{}, overwrite interface{}) *Client_DeclareIP_Call

DeclareIP is a helper method to define mock.On call

  • ctx context.Context
  • lID v1.LeaseID
  • serviceName string
  • port uint32
  • externalPort uint32
  • proto v2beta3.ServiceProtocol
  • sharingKey string
  • overwrite bool

func (*Client_Expecter) Deploy

func (_e *Client_Expecter) Deploy(ctx interface{}, deployment interface{}) *Client_Deploy_Call

Deploy is a helper method to define mock.On call

  • ctx context.Context
  • deployment v1beta3.IDeployment

func (*Client_Expecter) Deployments

func (_e *Client_Expecter) Deployments(context1 interface{}) *Client_Deployments_Call

Deployments is a helper method to define mock.On call

  • context1 context.Context

func (*Client_Expecter) Exec

func (_e *Client_Expecter) Exec(ctx interface{}, lID interface{}, service interface{}, podIndex interface{}, cmd interface{}, stdin interface{}, stdout interface{}, stderr interface{}, tty interface{}, tsq interface{}) *Client_Exec_Call

Exec is a helper method to define mock.On call

  • ctx context.Context
  • lID v1.LeaseID
  • service string
  • podIndex uint
  • cmd []string
  • stdin io.Reader
  • stdout io.Writer
  • stderr io.Writer
  • tty bool
  • tsq remotecommand.TerminalSizeQueue

func (*Client_Expecter) ForwardedPortStatus

func (_e *Client_Expecter) ForwardedPortStatus(context1 interface{}, leaseID interface{}) *Client_ForwardedPortStatus_Call

ForwardedPortStatus is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID

func (*Client_Expecter) GetDeclaredIPs

func (_e *Client_Expecter) GetDeclaredIPs(ctx interface{}, leaseID interface{}) *Client_GetDeclaredIPs_Call

GetDeclaredIPs is a helper method to define mock.On call

  • ctx context.Context
  • leaseID v1.LeaseID

func (*Client_Expecter) GetHostnameDeploymentConnections

func (_e *Client_Expecter) GetHostnameDeploymentConnections(ctx interface{}) *Client_GetHostnameDeploymentConnections_Call

GetHostnameDeploymentConnections is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) GetManifestGroup

func (_e *Client_Expecter) GetManifestGroup(context1 interface{}, leaseID interface{}) *Client_GetManifestGroup_Call

GetManifestGroup is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID

func (*Client_Expecter) KubeVersion

func (_e *Client_Expecter) KubeVersion() *Client_KubeVersion_Call

KubeVersion is a helper method to define mock.On call

func (*Client_Expecter) LeaseEvents

func (_e *Client_Expecter) LeaseEvents(context1 interface{}, leaseID interface{}, s interface{}, b interface{}) *Client_LeaseEvents_Call

LeaseEvents is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID
  • s string
  • b bool

func (*Client_Expecter) LeaseIDs added in v0.16.7

func (_e *Client_Expecter) LeaseIDs(context1 interface{}) *Client_LeaseIDs_Call

LeaseIDs is a helper method to define mock.On call

  • context1 context.Context

func (*Client_Expecter) LeaseLogs

func (_e *Client_Expecter) LeaseLogs(context1 interface{}, leaseID interface{}, s interface{}, b interface{}, n interface{}) *Client_LeaseLogs_Call

LeaseLogs is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID
  • s string
  • b bool
  • n *int64

func (*Client_Expecter) LeaseStatus

func (_e *Client_Expecter) LeaseStatus(context1 interface{}, leaseID interface{}) *Client_LeaseStatus_Call

LeaseStatus is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID

func (*Client_Expecter) ObserveHostnameState

func (_e *Client_Expecter) ObserveHostnameState(ctx interface{}) *Client_ObserveHostnameState_Call

ObserveHostnameState is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) ObserveIPState

func (_e *Client_Expecter) ObserveIPState(ctx interface{}) *Client_ObserveIPState_Call

ObserveIPState is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) PurgeDeclaredHostname

func (_e *Client_Expecter) PurgeDeclaredHostname(ctx interface{}, lID interface{}, hostname1 interface{}) *Client_PurgeDeclaredHostname_Call

PurgeDeclaredHostname is a helper method to define mock.On call

  • ctx context.Context
  • lID v1.LeaseID
  • hostname1 string

func (*Client_Expecter) PurgeDeclaredHostnames

func (_e *Client_Expecter) PurgeDeclaredHostnames(ctx interface{}, lID interface{}) *Client_PurgeDeclaredHostnames_Call

PurgeDeclaredHostnames is a helper method to define mock.On call

  • ctx context.Context
  • lID v1.LeaseID

func (*Client_Expecter) PurgeDeclaredIP

func (_e *Client_Expecter) PurgeDeclaredIP(ctx interface{}, lID interface{}, serviceName interface{}, externalPort interface{}, proto interface{}) *Client_PurgeDeclaredIP_Call

PurgeDeclaredIP is a helper method to define mock.On call

  • ctx context.Context
  • lID v1.LeaseID
  • serviceName string
  • externalPort uint32
  • proto v2beta3.ServiceProtocol

func (*Client_Expecter) PurgeDeclaredIPs

func (_e *Client_Expecter) PurgeDeclaredIPs(ctx interface{}, lID interface{}) *Client_PurgeDeclaredIPs_Call

PurgeDeclaredIPs is a helper method to define mock.On call

  • ctx context.Context
  • lID v1.LeaseID

func (*Client_Expecter) RemoveHostnameFromDeployment

func (_e *Client_Expecter) RemoveHostnameFromDeployment(ctx interface{}, hostname1 interface{}, leaseID interface{}, allowMissing interface{}) *Client_RemoveHostnameFromDeployment_Call

RemoveHostnameFromDeployment is a helper method to define mock.On call

  • ctx context.Context
  • hostname1 string
  • leaseID v1.LeaseID
  • allowMissing bool

func (*Client_Expecter) ServiceStatus

func (_e *Client_Expecter) ServiceStatus(context1 interface{}, leaseID interface{}, s interface{}) *Client_ServiceStatus_Call

ServiceStatus is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID
  • s string

func (*Client_Expecter) TeardownLease

func (_e *Client_Expecter) TeardownLease(context1 interface{}, leaseID interface{}) *Client_TeardownLease_Call

TeardownLease is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID

type Client_ForwardedPortStatus_Call

type Client_ForwardedPortStatus_Call struct {
	*mock.Call
}

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

func (*Client_ForwardedPortStatus_Call) Return

func (_c *Client_ForwardedPortStatus_Call) Return(stringToForwardedPortStatuss map[string][]rest.ForwardedPortStatus, err error) *Client_ForwardedPortStatus_Call

func (*Client_ForwardedPortStatus_Call) Run

func (_c *Client_ForwardedPortStatus_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID)) *Client_ForwardedPortStatus_Call

func (*Client_ForwardedPortStatus_Call) RunAndReturn

func (_c *Client_ForwardedPortStatus_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID) (map[string][]rest.ForwardedPortStatus, error)) *Client_ForwardedPortStatus_Call

type Client_GetDeclaredIPs_Call

type Client_GetDeclaredIPs_Call struct {
	*mock.Call
}

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

func (*Client_GetDeclaredIPs_Call) Return

func (*Client_GetDeclaredIPs_Call) Run

func (_c *Client_GetDeclaredIPs_Call) Run(run func(ctx context.Context, leaseID v1.LeaseID)) *Client_GetDeclaredIPs_Call

func (*Client_GetDeclaredIPs_Call) RunAndReturn

func (_c *Client_GetDeclaredIPs_Call) RunAndReturn(run func(ctx context.Context, leaseID v1.LeaseID) ([]v2beta2.ProviderLeasedIPSpec, error)) *Client_GetDeclaredIPs_Call

type Client_GetHostnameDeploymentConnections_Call

type Client_GetHostnameDeploymentConnections_Call struct {
	*mock.Call
}

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

func (*Client_GetHostnameDeploymentConnections_Call) Return

func (*Client_GetHostnameDeploymentConnections_Call) Run

func (*Client_GetHostnameDeploymentConnections_Call) RunAndReturn

type Client_GetManifestGroup_Call

type Client_GetManifestGroup_Call struct {
	*mock.Call
}

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

func (*Client_GetManifestGroup_Call) Return

func (*Client_GetManifestGroup_Call) Run

func (_c *Client_GetManifestGroup_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID)) *Client_GetManifestGroup_Call

func (*Client_GetManifestGroup_Call) RunAndReturn

func (_c *Client_GetManifestGroup_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID) (bool, v2beta2.ManifestGroup, error)) *Client_GetManifestGroup_Call

type Client_KubeVersion_Call

type Client_KubeVersion_Call struct {
	*mock.Call
}

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

func (*Client_KubeVersion_Call) Return

func (*Client_KubeVersion_Call) Run

func (_c *Client_KubeVersion_Call) Run(run func()) *Client_KubeVersion_Call

func (*Client_KubeVersion_Call) RunAndReturn

func (_c *Client_KubeVersion_Call) RunAndReturn(run func() (*version.Info, error)) *Client_KubeVersion_Call

type Client_LeaseEvents_Call

type Client_LeaseEvents_Call struct {
	*mock.Call
}

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

func (*Client_LeaseEvents_Call) Return

func (*Client_LeaseEvents_Call) Run

func (_c *Client_LeaseEvents_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID, s string, b bool)) *Client_LeaseEvents_Call

func (*Client_LeaseEvents_Call) RunAndReturn

func (_c *Client_LeaseEvents_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID, s string, b bool) (v1beta3.EventsWatcher, error)) *Client_LeaseEvents_Call

type Client_LeaseIDs_Call added in v0.16.7

type Client_LeaseIDs_Call struct {
	*mock.Call
}

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

func (*Client_LeaseIDs_Call) Return added in v0.16.7

func (_c *Client_LeaseIDs_Call) Return(leaseIDs []v1.LeaseID, err error) *Client_LeaseIDs_Call

func (*Client_LeaseIDs_Call) Run added in v0.16.7

func (_c *Client_LeaseIDs_Call) Run(run func(context1 context.Context)) *Client_LeaseIDs_Call

func (*Client_LeaseIDs_Call) RunAndReturn added in v0.16.7

func (_c *Client_LeaseIDs_Call) RunAndReturn(run func(context1 context.Context) ([]v1.LeaseID, error)) *Client_LeaseIDs_Call

type Client_LeaseLogs_Call

type Client_LeaseLogs_Call struct {
	*mock.Call
}

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

func (*Client_LeaseLogs_Call) Return

func (_c *Client_LeaseLogs_Call) Return(serviceLogs []*v1beta3.ServiceLog, err error) *Client_LeaseLogs_Call

func (*Client_LeaseLogs_Call) Run

func (_c *Client_LeaseLogs_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID, s string, b bool, n *int64)) *Client_LeaseLogs_Call

func (*Client_LeaseLogs_Call) RunAndReturn

func (_c *Client_LeaseLogs_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID, s string, b bool, n *int64) ([]*v1beta3.ServiceLog, error)) *Client_LeaseLogs_Call

type Client_LeaseStatus_Call

type Client_LeaseStatus_Call struct {
	*mock.Call
}

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

func (*Client_LeaseStatus_Call) Return

func (_c *Client_LeaseStatus_Call) Return(stringToServiceStatus map[string]*rest.ServiceStatus, err error) *Client_LeaseStatus_Call

func (*Client_LeaseStatus_Call) Run

func (_c *Client_LeaseStatus_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID)) *Client_LeaseStatus_Call

func (*Client_LeaseStatus_Call) RunAndReturn

func (_c *Client_LeaseStatus_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID) (map[string]*rest.ServiceStatus, error)) *Client_LeaseStatus_Call

type Client_ObserveHostnameState_Call

type Client_ObserveHostnameState_Call struct {
	*mock.Call
}

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

func (*Client_ObserveHostnameState_Call) Return

func (*Client_ObserveHostnameState_Call) Run

func (*Client_ObserveHostnameState_Call) RunAndReturn

type Client_ObserveIPState_Call

type Client_ObserveIPState_Call struct {
	*mock.Call
}

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

func (*Client_ObserveIPState_Call) Return

func (_c *Client_ObserveIPState_Call) Return(resourceEventCh <-chan ip.ResourceEvent, err error) *Client_ObserveIPState_Call

func (*Client_ObserveIPState_Call) Run

func (*Client_ObserveIPState_Call) RunAndReturn

func (_c *Client_ObserveIPState_Call) RunAndReturn(run func(ctx context.Context) (<-chan ip.ResourceEvent, error)) *Client_ObserveIPState_Call

type Client_PurgeDeclaredHostname_Call

type Client_PurgeDeclaredHostname_Call struct {
	*mock.Call
}

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

func (*Client_PurgeDeclaredHostname_Call) Return

func (*Client_PurgeDeclaredHostname_Call) Run

func (_c *Client_PurgeDeclaredHostname_Call) Run(run func(ctx context.Context, lID v1.LeaseID, hostname1 string)) *Client_PurgeDeclaredHostname_Call

func (*Client_PurgeDeclaredHostname_Call) RunAndReturn

func (_c *Client_PurgeDeclaredHostname_Call) RunAndReturn(run func(ctx context.Context, lID v1.LeaseID, hostname1 string) error) *Client_PurgeDeclaredHostname_Call

type Client_PurgeDeclaredHostnames_Call

type Client_PurgeDeclaredHostnames_Call struct {
	*mock.Call
}

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

func (*Client_PurgeDeclaredHostnames_Call) Return

func (*Client_PurgeDeclaredHostnames_Call) Run

func (*Client_PurgeDeclaredHostnames_Call) RunAndReturn

func (_c *Client_PurgeDeclaredHostnames_Call) RunAndReturn(run func(ctx context.Context, lID v1.LeaseID) error) *Client_PurgeDeclaredHostnames_Call

type Client_PurgeDeclaredIP_Call

type Client_PurgeDeclaredIP_Call struct {
	*mock.Call
}

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

func (*Client_PurgeDeclaredIP_Call) Return

func (*Client_PurgeDeclaredIP_Call) Run

func (_c *Client_PurgeDeclaredIP_Call) Run(run func(ctx context.Context, lID v1.LeaseID, serviceName string, externalPort uint32, proto v2beta3.ServiceProtocol)) *Client_PurgeDeclaredIP_Call

func (*Client_PurgeDeclaredIP_Call) RunAndReturn

func (_c *Client_PurgeDeclaredIP_Call) RunAndReturn(run func(ctx context.Context, lID v1.LeaseID, serviceName string, externalPort uint32, proto v2beta3.ServiceProtocol) error) *Client_PurgeDeclaredIP_Call

type Client_PurgeDeclaredIPs_Call

type Client_PurgeDeclaredIPs_Call struct {
	*mock.Call
}

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

func (*Client_PurgeDeclaredIPs_Call) Return

func (*Client_PurgeDeclaredIPs_Call) Run

func (_c *Client_PurgeDeclaredIPs_Call) Run(run func(ctx context.Context, lID v1.LeaseID)) *Client_PurgeDeclaredIPs_Call

func (*Client_PurgeDeclaredIPs_Call) RunAndReturn

func (_c *Client_PurgeDeclaredIPs_Call) RunAndReturn(run func(ctx context.Context, lID v1.LeaseID) error) *Client_PurgeDeclaredIPs_Call

type Client_RemoveHostnameFromDeployment_Call

type Client_RemoveHostnameFromDeployment_Call struct {
	*mock.Call
}

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

func (*Client_RemoveHostnameFromDeployment_Call) Return

func (*Client_RemoveHostnameFromDeployment_Call) Run

func (_c *Client_RemoveHostnameFromDeployment_Call) Run(run func(ctx context.Context, hostname1 string, leaseID v1.LeaseID, allowMissing bool)) *Client_RemoveHostnameFromDeployment_Call

func (*Client_RemoveHostnameFromDeployment_Call) RunAndReturn

func (_c *Client_RemoveHostnameFromDeployment_Call) RunAndReturn(run func(ctx context.Context, hostname1 string, leaseID v1.LeaseID, allowMissing bool) error) *Client_RemoveHostnameFromDeployment_Call

type Client_ServiceStatus_Call

type Client_ServiceStatus_Call struct {
	*mock.Call
}

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

func (*Client_ServiceStatus_Call) Return

func (_c *Client_ServiceStatus_Call) Return(serviceStatus *rest.ServiceStatus, err error) *Client_ServiceStatus_Call

func (*Client_ServiceStatus_Call) Run

func (_c *Client_ServiceStatus_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID, s string)) *Client_ServiceStatus_Call

func (*Client_ServiceStatus_Call) RunAndReturn

func (_c *Client_ServiceStatus_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID, s string) (*rest.ServiceStatus, error)) *Client_ServiceStatus_Call

type Client_TeardownLease_Call

type Client_TeardownLease_Call struct {
	*mock.Call
}

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

func (*Client_TeardownLease_Call) Return

func (*Client_TeardownLease_Call) Run

func (_c *Client_TeardownLease_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID)) *Client_TeardownLease_Call

func (*Client_TeardownLease_Call) RunAndReturn

func (_c *Client_TeardownLease_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID) error) *Client_TeardownLease_Call

type Cluster

type Cluster struct {
	mock.Mock
}

Cluster is an autogenerated mock type for the Cluster type

func NewCluster

func NewCluster(t interface {
	mock.TestingT
	Cleanup(func())
}) *Cluster

NewCluster creates a new instance of Cluster. 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 (*Cluster) EXPECT

func (_m *Cluster) EXPECT() *Cluster_Expecter

func (*Cluster) Reserve

func (_mock *Cluster) Reserve(orderID v1.OrderID, resourceGroup v1beta4.ResourceGroup) (v1beta3.Reservation, error)

Reserve provides a mock function for the type Cluster

func (*Cluster) Unreserve

func (_mock *Cluster) Unreserve(orderID v1.OrderID) error

Unreserve provides a mock function for the type Cluster

type Cluster_Expecter

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

func (*Cluster_Expecter) Reserve

func (_e *Cluster_Expecter) Reserve(orderID interface{}, resourceGroup interface{}) *Cluster_Reserve_Call

Reserve is a helper method to define mock.On call

  • orderID v1.OrderID
  • resourceGroup v1beta4.ResourceGroup

func (*Cluster_Expecter) Unreserve

func (_e *Cluster_Expecter) Unreserve(orderID interface{}) *Cluster_Unreserve_Call

Unreserve is a helper method to define mock.On call

  • orderID v1.OrderID

type Cluster_Reserve_Call

type Cluster_Reserve_Call struct {
	*mock.Call
}

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

func (*Cluster_Reserve_Call) Return

func (_c *Cluster_Reserve_Call) Return(reservation v1beta3.Reservation, err error) *Cluster_Reserve_Call

func (*Cluster_Reserve_Call) Run

func (_c *Cluster_Reserve_Call) Run(run func(orderID v1.OrderID, resourceGroup v1beta4.ResourceGroup)) *Cluster_Reserve_Call

func (*Cluster_Reserve_Call) RunAndReturn

func (_c *Cluster_Reserve_Call) RunAndReturn(run func(orderID v1.OrderID, resourceGroup v1beta4.ResourceGroup) (v1beta3.Reservation, error)) *Cluster_Reserve_Call

type Cluster_Unreserve_Call

type Cluster_Unreserve_Call struct {
	*mock.Call
}

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

func (*Cluster_Unreserve_Call) Return

func (*Cluster_Unreserve_Call) Run

func (_c *Cluster_Unreserve_Call) Run(run func(orderID v1.OrderID)) *Cluster_Unreserve_Call

func (*Cluster_Unreserve_Call) RunAndReturn

func (_c *Cluster_Unreserve_Call) RunAndReturn(run func(orderID v1.OrderID) error) *Cluster_Unreserve_Call

type ReadClient

type ReadClient struct {
	mock.Mock
}

ReadClient is an autogenerated mock type for the ReadClient type

func NewReadClient

func NewReadClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReadClient

NewReadClient creates a new instance of ReadClient. 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 (*ReadClient) AllHostnames

func (_mock *ReadClient) AllHostnames(context1 context.Context) ([]hostname.ActiveHostname, error)

AllHostnames provides a mock function for the type ReadClient

func (*ReadClient) EXPECT

func (_m *ReadClient) EXPECT() *ReadClient_Expecter

func (*ReadClient) ForwardedPortStatus

func (_mock *ReadClient) ForwardedPortStatus(context1 context.Context, leaseID v1.LeaseID) (map[string][]rest.ForwardedPortStatus, error)

ForwardedPortStatus provides a mock function for the type ReadClient

func (*ReadClient) GetDeclaredIPs

func (_mock *ReadClient) GetDeclaredIPs(ctx context.Context, leaseID v1.LeaseID) ([]v2beta2.ProviderLeasedIPSpec, error)

GetDeclaredIPs provides a mock function for the type ReadClient

func (*ReadClient) GetHostnameDeploymentConnections

func (_mock *ReadClient) GetHostnameDeploymentConnections(ctx context.Context) ([]hostname.LeaseIDConnection, error)

GetHostnameDeploymentConnections provides a mock function for the type ReadClient

func (*ReadClient) GetManifestGroup

func (_mock *ReadClient) GetManifestGroup(context1 context.Context, leaseID v1.LeaseID) (bool, v2beta2.ManifestGroup, error)

GetManifestGroup provides a mock function for the type ReadClient

func (*ReadClient) LeaseEvents

func (_mock *ReadClient) LeaseEvents(context1 context.Context, leaseID v1.LeaseID, s string, b bool) (v1beta3.EventsWatcher, error)

LeaseEvents provides a mock function for the type ReadClient

func (*ReadClient) LeaseLogs

func (_mock *ReadClient) LeaseLogs(context1 context.Context, leaseID v1.LeaseID, s string, b bool, n *int64) ([]*v1beta3.ServiceLog, error)

LeaseLogs provides a mock function for the type ReadClient

func (*ReadClient) LeaseStatus

func (_mock *ReadClient) LeaseStatus(context1 context.Context, leaseID v1.LeaseID) (map[string]*rest.ServiceStatus, error)

LeaseStatus provides a mock function for the type ReadClient

func (*ReadClient) ObserveHostnameState

func (_mock *ReadClient) ObserveHostnameState(ctx context.Context) (<-chan hostname.ResourceEvent, error)

ObserveHostnameState provides a mock function for the type ReadClient

func (*ReadClient) ObserveIPState

func (_mock *ReadClient) ObserveIPState(ctx context.Context) (<-chan ip.ResourceEvent, error)

ObserveIPState provides a mock function for the type ReadClient

func (*ReadClient) ServiceStatus

func (_mock *ReadClient) ServiceStatus(context1 context.Context, leaseID v1.LeaseID, s string) (*rest.ServiceStatus, error)

ServiceStatus provides a mock function for the type ReadClient

type ReadClient_AllHostnames_Call

type ReadClient_AllHostnames_Call struct {
	*mock.Call
}

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

func (*ReadClient_AllHostnames_Call) Return

func (*ReadClient_AllHostnames_Call) Run

func (*ReadClient_AllHostnames_Call) RunAndReturn

type ReadClient_Expecter

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

func (*ReadClient_Expecter) AllHostnames

func (_e *ReadClient_Expecter) AllHostnames(context1 interface{}) *ReadClient_AllHostnames_Call

AllHostnames is a helper method to define mock.On call

  • context1 context.Context

func (*ReadClient_Expecter) ForwardedPortStatus

func (_e *ReadClient_Expecter) ForwardedPortStatus(context1 interface{}, leaseID interface{}) *ReadClient_ForwardedPortStatus_Call

ForwardedPortStatus is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID

func (*ReadClient_Expecter) GetDeclaredIPs

func (_e *ReadClient_Expecter) GetDeclaredIPs(ctx interface{}, leaseID interface{}) *ReadClient_GetDeclaredIPs_Call

GetDeclaredIPs is a helper method to define mock.On call

  • ctx context.Context
  • leaseID v1.LeaseID

func (*ReadClient_Expecter) GetHostnameDeploymentConnections

func (_e *ReadClient_Expecter) GetHostnameDeploymentConnections(ctx interface{}) *ReadClient_GetHostnameDeploymentConnections_Call

GetHostnameDeploymentConnections is a helper method to define mock.On call

  • ctx context.Context

func (*ReadClient_Expecter) GetManifestGroup

func (_e *ReadClient_Expecter) GetManifestGroup(context1 interface{}, leaseID interface{}) *ReadClient_GetManifestGroup_Call

GetManifestGroup is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID

func (*ReadClient_Expecter) LeaseEvents

func (_e *ReadClient_Expecter) LeaseEvents(context1 interface{}, leaseID interface{}, s interface{}, b interface{}) *ReadClient_LeaseEvents_Call

LeaseEvents is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID
  • s string
  • b bool

func (*ReadClient_Expecter) LeaseLogs

func (_e *ReadClient_Expecter) LeaseLogs(context1 interface{}, leaseID interface{}, s interface{}, b interface{}, n interface{}) *ReadClient_LeaseLogs_Call

LeaseLogs is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID
  • s string
  • b bool
  • n *int64

func (*ReadClient_Expecter) LeaseStatus

func (_e *ReadClient_Expecter) LeaseStatus(context1 interface{}, leaseID interface{}) *ReadClient_LeaseStatus_Call

LeaseStatus is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID

func (*ReadClient_Expecter) ObserveHostnameState

func (_e *ReadClient_Expecter) ObserveHostnameState(ctx interface{}) *ReadClient_ObserveHostnameState_Call

ObserveHostnameState is a helper method to define mock.On call

  • ctx context.Context

func (*ReadClient_Expecter) ObserveIPState

func (_e *ReadClient_Expecter) ObserveIPState(ctx interface{}) *ReadClient_ObserveIPState_Call

ObserveIPState is a helper method to define mock.On call

  • ctx context.Context

func (*ReadClient_Expecter) ServiceStatus

func (_e *ReadClient_Expecter) ServiceStatus(context1 interface{}, leaseID interface{}, s interface{}) *ReadClient_ServiceStatus_Call

ServiceStatus is a helper method to define mock.On call

  • context1 context.Context
  • leaseID v1.LeaseID
  • s string

type ReadClient_ForwardedPortStatus_Call

type ReadClient_ForwardedPortStatus_Call struct {
	*mock.Call
}

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

func (*ReadClient_ForwardedPortStatus_Call) Return

func (_c *ReadClient_ForwardedPortStatus_Call) Return(stringToForwardedPortStatuss map[string][]rest.ForwardedPortStatus, err error) *ReadClient_ForwardedPortStatus_Call

func (*ReadClient_ForwardedPortStatus_Call) Run

func (_c *ReadClient_ForwardedPortStatus_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID)) *ReadClient_ForwardedPortStatus_Call

func (*ReadClient_ForwardedPortStatus_Call) RunAndReturn

func (_c *ReadClient_ForwardedPortStatus_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID) (map[string][]rest.ForwardedPortStatus, error)) *ReadClient_ForwardedPortStatus_Call

type ReadClient_GetDeclaredIPs_Call

type ReadClient_GetDeclaredIPs_Call struct {
	*mock.Call
}

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

func (*ReadClient_GetDeclaredIPs_Call) Return

func (*ReadClient_GetDeclaredIPs_Call) Run

func (_c *ReadClient_GetDeclaredIPs_Call) Run(run func(ctx context.Context, leaseID v1.LeaseID)) *ReadClient_GetDeclaredIPs_Call

func (*ReadClient_GetDeclaredIPs_Call) RunAndReturn

func (_c *ReadClient_GetDeclaredIPs_Call) RunAndReturn(run func(ctx context.Context, leaseID v1.LeaseID) ([]v2beta2.ProviderLeasedIPSpec, error)) *ReadClient_GetDeclaredIPs_Call

type ReadClient_GetHostnameDeploymentConnections_Call

type ReadClient_GetHostnameDeploymentConnections_Call struct {
	*mock.Call
}

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

func (*ReadClient_GetHostnameDeploymentConnections_Call) Return

func (*ReadClient_GetHostnameDeploymentConnections_Call) Run

func (*ReadClient_GetHostnameDeploymentConnections_Call) RunAndReturn

type ReadClient_GetManifestGroup_Call

type ReadClient_GetManifestGroup_Call struct {
	*mock.Call
}

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

func (*ReadClient_GetManifestGroup_Call) Return

func (*ReadClient_GetManifestGroup_Call) Run

func (_c *ReadClient_GetManifestGroup_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID)) *ReadClient_GetManifestGroup_Call

func (*ReadClient_GetManifestGroup_Call) RunAndReturn

func (_c *ReadClient_GetManifestGroup_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID) (bool, v2beta2.ManifestGroup, error)) *ReadClient_GetManifestGroup_Call

type ReadClient_LeaseEvents_Call

type ReadClient_LeaseEvents_Call struct {
	*mock.Call
}

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

func (*ReadClient_LeaseEvents_Call) Return

func (*ReadClient_LeaseEvents_Call) Run

func (_c *ReadClient_LeaseEvents_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID, s string, b bool)) *ReadClient_LeaseEvents_Call

func (*ReadClient_LeaseEvents_Call) RunAndReturn

func (_c *ReadClient_LeaseEvents_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID, s string, b bool) (v1beta3.EventsWatcher, error)) *ReadClient_LeaseEvents_Call

type ReadClient_LeaseLogs_Call

type ReadClient_LeaseLogs_Call struct {
	*mock.Call
}

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

func (*ReadClient_LeaseLogs_Call) Return

func (*ReadClient_LeaseLogs_Call) Run

func (_c *ReadClient_LeaseLogs_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID, s string, b bool, n *int64)) *ReadClient_LeaseLogs_Call

func (*ReadClient_LeaseLogs_Call) RunAndReturn

func (_c *ReadClient_LeaseLogs_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID, s string, b bool, n *int64) ([]*v1beta3.ServiceLog, error)) *ReadClient_LeaseLogs_Call

type ReadClient_LeaseStatus_Call

type ReadClient_LeaseStatus_Call struct {
	*mock.Call
}

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

func (*ReadClient_LeaseStatus_Call) Return

func (_c *ReadClient_LeaseStatus_Call) Return(stringToServiceStatus map[string]*rest.ServiceStatus, err error) *ReadClient_LeaseStatus_Call

func (*ReadClient_LeaseStatus_Call) Run

func (_c *ReadClient_LeaseStatus_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID)) *ReadClient_LeaseStatus_Call

func (*ReadClient_LeaseStatus_Call) RunAndReturn

func (_c *ReadClient_LeaseStatus_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID) (map[string]*rest.ServiceStatus, error)) *ReadClient_LeaseStatus_Call

type ReadClient_ObserveHostnameState_Call

type ReadClient_ObserveHostnameState_Call struct {
	*mock.Call
}

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

func (*ReadClient_ObserveHostnameState_Call) Return

func (*ReadClient_ObserveHostnameState_Call) Run

func (*ReadClient_ObserveHostnameState_Call) RunAndReturn

type ReadClient_ObserveIPState_Call

type ReadClient_ObserveIPState_Call struct {
	*mock.Call
}

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

func (*ReadClient_ObserveIPState_Call) Return

func (_c *ReadClient_ObserveIPState_Call) Return(resourceEventCh <-chan ip.ResourceEvent, err error) *ReadClient_ObserveIPState_Call

func (*ReadClient_ObserveIPState_Call) Run

func (*ReadClient_ObserveIPState_Call) RunAndReturn

type ReadClient_ServiceStatus_Call

type ReadClient_ServiceStatus_Call struct {
	*mock.Call
}

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

func (*ReadClient_ServiceStatus_Call) Return

func (_c *ReadClient_ServiceStatus_Call) Return(serviceStatus *rest.ServiceStatus, err error) *ReadClient_ServiceStatus_Call

func (*ReadClient_ServiceStatus_Call) Run

func (_c *ReadClient_ServiceStatus_Call) Run(run func(context1 context.Context, leaseID v1.LeaseID, s string)) *ReadClient_ServiceStatus_Call

func (*ReadClient_ServiceStatus_Call) RunAndReturn

func (_c *ReadClient_ServiceStatus_Call) RunAndReturn(run func(context1 context.Context, leaseID v1.LeaseID, s string) (*rest.ServiceStatus, error)) *ReadClient_ServiceStatus_Call

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

NewService creates a new instance of Service. 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 (*Service) Close

func (_mock *Service) Close() error

Close provides a mock function for the type Service

func (*Service) Done

func (_mock *Service) Done() <-chan struct{}

Done provides a mock function for the type Service

func (*Service) EXPECT

func (_m *Service) EXPECT() *Service_Expecter

func (*Service) FindActiveLease

func (_mock *Service) FindActiveLease(ctx context.Context, owner types.Address, dseq uint64, gseq uint32) (bool, v1.LeaseID, v2beta2.ManifestGroup, error)

FindActiveLease provides a mock function for the type Service

func (*Service) HostnameService

func (_mock *Service) HostnameService() v1beta3.HostnameServiceClient

HostnameService provides a mock function for the type Service

func (*Service) Ready

func (_mock *Service) Ready() <-chan struct{}

Ready provides a mock function for the type Service

func (*Service) Reserve

func (_mock *Service) Reserve(orderID v1.OrderID, resourceGroup v1beta4.ResourceGroup) (v1beta3.Reservation, error)

Reserve provides a mock function for the type Service

func (*Service) Status

func (_mock *Service) Status(context1 context.Context) (*rest.ClusterStatus, error)

Status provides a mock function for the type Service

func (*Service) StatusV1

func (_mock *Service) StatusV1(context1 context.Context) (*v10.ClusterStatus, error)

StatusV1 provides a mock function for the type Service

func (*Service) TransferHostname

func (_mock *Service) TransferHostname(ctx context.Context, leaseID v1.LeaseID, hostname string, serviceName string, externalPort uint32) error

TransferHostname provides a mock function for the type Service

func (*Service) Unreserve

func (_mock *Service) Unreserve(orderID v1.OrderID) error

Unreserve provides a mock function for the type Service

type Service_Close_Call

type Service_Close_Call struct {
	*mock.Call
}

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

func (*Service_Close_Call) Return

func (_c *Service_Close_Call) Return(err error) *Service_Close_Call

func (*Service_Close_Call) Run

func (_c *Service_Close_Call) Run(run func()) *Service_Close_Call

func (*Service_Close_Call) RunAndReturn

func (_c *Service_Close_Call) RunAndReturn(run func() error) *Service_Close_Call

type Service_Done_Call

type Service_Done_Call struct {
	*mock.Call
}

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

func (*Service_Done_Call) Return

func (_c *Service_Done_Call) Return(valCh <-chan struct{}) *Service_Done_Call

func (*Service_Done_Call) Run

func (_c *Service_Done_Call) Run(run func()) *Service_Done_Call

func (*Service_Done_Call) RunAndReturn

func (_c *Service_Done_Call) RunAndReturn(run func() <-chan struct{}) *Service_Done_Call

type Service_Expecter

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

func (*Service_Expecter) Close

func (_e *Service_Expecter) Close() *Service_Close_Call

Close is a helper method to define mock.On call

func (*Service_Expecter) Done

func (_e *Service_Expecter) Done() *Service_Done_Call

Done is a helper method to define mock.On call

func (*Service_Expecter) FindActiveLease

func (_e *Service_Expecter) FindActiveLease(ctx interface{}, owner interface{}, dseq interface{}, gseq interface{}) *Service_FindActiveLease_Call

FindActiveLease is a helper method to define mock.On call

  • ctx context.Context
  • owner types.Address
  • dseq uint64
  • gseq uint32

func (*Service_Expecter) HostnameService

func (_e *Service_Expecter) HostnameService() *Service_HostnameService_Call

HostnameService is a helper method to define mock.On call

func (*Service_Expecter) Ready

func (_e *Service_Expecter) Ready() *Service_Ready_Call

Ready is a helper method to define mock.On call

func (*Service_Expecter) Reserve

func (_e *Service_Expecter) Reserve(orderID interface{}, resourceGroup interface{}) *Service_Reserve_Call

Reserve is a helper method to define mock.On call

  • orderID v1.OrderID
  • resourceGroup v1beta4.ResourceGroup

func (*Service_Expecter) Status

func (_e *Service_Expecter) Status(context1 interface{}) *Service_Status_Call

Status is a helper method to define mock.On call

  • context1 context.Context

func (*Service_Expecter) StatusV1

func (_e *Service_Expecter) StatusV1(context1 interface{}) *Service_StatusV1_Call

StatusV1 is a helper method to define mock.On call

  • context1 context.Context

func (*Service_Expecter) TransferHostname

func (_e *Service_Expecter) TransferHostname(ctx interface{}, leaseID interface{}, hostname interface{}, serviceName interface{}, externalPort interface{}) *Service_TransferHostname_Call

TransferHostname is a helper method to define mock.On call

  • ctx context.Context
  • leaseID v1.LeaseID
  • hostname string
  • serviceName string
  • externalPort uint32

func (*Service_Expecter) Unreserve

func (_e *Service_Expecter) Unreserve(orderID interface{}) *Service_Unreserve_Call

Unreserve is a helper method to define mock.On call

  • orderID v1.OrderID

type Service_FindActiveLease_Call

type Service_FindActiveLease_Call struct {
	*mock.Call
}

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

func (*Service_FindActiveLease_Call) Return

func (_c *Service_FindActiveLease_Call) Return(b bool, leaseID v1.LeaseID, manifestGroup v2beta2.ManifestGroup, err error) *Service_FindActiveLease_Call

func (*Service_FindActiveLease_Call) Run

func (*Service_FindActiveLease_Call) RunAndReturn

func (_c *Service_FindActiveLease_Call) RunAndReturn(run func(ctx context.Context, owner types.Address, dseq uint64, gseq uint32) (bool, v1.LeaseID, v2beta2.ManifestGroup, error)) *Service_FindActiveLease_Call

type Service_HostnameService_Call

type Service_HostnameService_Call struct {
	*mock.Call
}

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

func (*Service_HostnameService_Call) Return

func (*Service_HostnameService_Call) Run

func (*Service_HostnameService_Call) RunAndReturn

type Service_Ready_Call

type Service_Ready_Call struct {
	*mock.Call
}

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

func (*Service_Ready_Call) Return

func (_c *Service_Ready_Call) Return(valCh <-chan struct{}) *Service_Ready_Call

func (*Service_Ready_Call) Run

func (_c *Service_Ready_Call) Run(run func()) *Service_Ready_Call

func (*Service_Ready_Call) RunAndReturn

func (_c *Service_Ready_Call) RunAndReturn(run func() <-chan struct{}) *Service_Ready_Call

type Service_Reserve_Call

type Service_Reserve_Call struct {
	*mock.Call
}

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

func (*Service_Reserve_Call) Return

func (_c *Service_Reserve_Call) Return(reservation v1beta3.Reservation, err error) *Service_Reserve_Call

func (*Service_Reserve_Call) Run

func (_c *Service_Reserve_Call) Run(run func(orderID v1.OrderID, resourceGroup v1beta4.ResourceGroup)) *Service_Reserve_Call

func (*Service_Reserve_Call) RunAndReturn

func (_c *Service_Reserve_Call) RunAndReturn(run func(orderID v1.OrderID, resourceGroup v1beta4.ResourceGroup) (v1beta3.Reservation, error)) *Service_Reserve_Call

type Service_StatusV1_Call

type Service_StatusV1_Call struct {
	*mock.Call
}

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

func (*Service_StatusV1_Call) Return

func (_c *Service_StatusV1_Call) Return(clusterStatus *v10.ClusterStatus, err error) *Service_StatusV1_Call

func (*Service_StatusV1_Call) Run

func (_c *Service_StatusV1_Call) Run(run func(context1 context.Context)) *Service_StatusV1_Call

func (*Service_StatusV1_Call) RunAndReturn

func (_c *Service_StatusV1_Call) RunAndReturn(run func(context1 context.Context) (*v10.ClusterStatus, error)) *Service_StatusV1_Call

type Service_Status_Call

type Service_Status_Call struct {
	*mock.Call
}

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

func (*Service_Status_Call) Return

func (_c *Service_Status_Call) Return(clusterStatus *rest.ClusterStatus, err error) *Service_Status_Call

func (*Service_Status_Call) Run

func (_c *Service_Status_Call) Run(run func(context1 context.Context)) *Service_Status_Call

func (*Service_Status_Call) RunAndReturn

func (_c *Service_Status_Call) RunAndReturn(run func(context1 context.Context) (*rest.ClusterStatus, error)) *Service_Status_Call

type Service_TransferHostname_Call

type Service_TransferHostname_Call struct {
	*mock.Call
}

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

func (*Service_TransferHostname_Call) Return

func (*Service_TransferHostname_Call) Run

func (_c *Service_TransferHostname_Call) Run(run func(ctx context.Context, leaseID v1.LeaseID, hostname string, serviceName string, externalPort uint32)) *Service_TransferHostname_Call

func (*Service_TransferHostname_Call) RunAndReturn

func (_c *Service_TransferHostname_Call) RunAndReturn(run func(ctx context.Context, leaseID v1.LeaseID, hostname string, serviceName string, externalPort uint32) error) *Service_TransferHostname_Call

type Service_Unreserve_Call

type Service_Unreserve_Call struct {
	*mock.Call
}

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

func (*Service_Unreserve_Call) Return

func (*Service_Unreserve_Call) Run

func (_c *Service_Unreserve_Call) Run(run func(orderID v1.OrderID)) *Service_Unreserve_Call

func (*Service_Unreserve_Call) RunAndReturn

func (_c *Service_Unreserve_Call) RunAndReturn(run func(orderID v1.OrderID) error) *Service_Unreserve_Call

Directories

Path Synopsis
kube

Jump to

Keyboard shortcuts

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