mocks

package
v0.0.0-...-e391bab Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func (*Client) Deploy

func (_m *Client) Deploy(_a0 context.Context, _a1 types.LeaseID, _a2 *manifest.Group) error

Deploy provides a mock function with given fields: _a0, _a1, _a2

func (*Client) Deployments

func (_m *Client) Deployments(_a0 context.Context) ([]clustertypes.Deployment, error)

Deployments provides a mock function with given fields: _a0

func (*Client) Exec

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

Exec provides a mock function with given fields: ctx, lID, service, podIndex, cmd, stdin, stdout, stderr, tty, tsq

func (*Client) Inventory

func (_m *Client) Inventory(_a0 context.Context) ([]clustertypes.Node, error)

Inventory provides a mock function with given fields: _a0

func (*Client) LeaseEvents

func (_m *Client) LeaseEvents(_a0 context.Context, _a1 types.LeaseID, _a2 string, _a3 bool) (clustertypes.EventsWatcher, error)

LeaseEvents provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*Client) LeaseLogs

func (_m *Client) LeaseLogs(_a0 context.Context, _a1 types.LeaseID, _a2 string, _a3 bool, _a4 *int64) ([]*clustertypes.ServiceLog, error)

LeaseLogs provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*Client) LeaseStatus

func (_m *Client) LeaseStatus(_a0 context.Context, _a1 types.LeaseID) (*clustertypes.LeaseStatus, error)

LeaseStatus provides a mock function with given fields: _a0, _a1

func (*Client) ServiceStatus

func (_m *Client) ServiceStatus(_a0 context.Context, _a1 types.LeaseID, _a2 string) (*clustertypes.ServiceStatus, error)

ServiceStatus provides a mock function with given fields: _a0, _a1, _a2

func (*Client) TeardownLease

func (_m *Client) TeardownLease(_a0 context.Context, _a1 types.LeaseID) error

TeardownLease provides a mock function with given fields: _a0, _a1

type Cluster

type Cluster struct {
	mock.Mock
}

Cluster is an autogenerated mock type for the Cluster type

func (*Cluster) Reserve

Reserve provides a mock function with given fields: _a0, _a1

func (*Cluster) Unreserve

func (_m *Cluster) Unreserve(_a0 types.OrderID) error

Unreserve provides a mock function with given fields: _a0

type Deployment

type Deployment struct {
	mock.Mock
}

Deployment is an autogenerated mock type for the Deployment type

func (*Deployment) LeaseID

func (_m *Deployment) LeaseID() types.LeaseID

LeaseID provides a mock function with given fields:

func (*Deployment) ManifestGroup

func (_m *Deployment) ManifestGroup() manifest.Group

ManifestGroup provides a mock function with given fields:

type ReadClient

type ReadClient struct {
	mock.Mock
}

ReadClient is an autogenerated mock type for the ReadClient type

func (*ReadClient) LeaseEvents

func (_m *ReadClient) LeaseEvents(_a0 context.Context, _a1 types.LeaseID, _a2 string, _a3 bool) (cluster.EventsWatcher, error)

LeaseEvents provides a mock function with given fields: _a0, _a1, _a2, _a3

func (*ReadClient) LeaseLogs

func (_m *ReadClient) LeaseLogs(_a0 context.Context, _a1 types.LeaseID, _a2 string, _a3 bool, _a4 *int64) ([]*cluster.ServiceLog, error)

LeaseLogs provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*ReadClient) LeaseStatus

func (_m *ReadClient) LeaseStatus(_a0 context.Context, _a1 types.LeaseID) (*cluster.LeaseStatus, error)

LeaseStatus provides a mock function with given fields: _a0, _a1

func (*ReadClient) ServiceStatus

func (_m *ReadClient) ServiceStatus(_a0 context.Context, _a1 types.LeaseID, _a2 string) (*cluster.ServiceStatus, error)

ServiceStatus provides a mock function with given fields: _a0, _a1, _a2

type Reservation

type Reservation struct {
	mock.Mock
}

Reservation is an autogenerated mock type for the Reservation type

func (*Reservation) OrderID

func (_m *Reservation) OrderID() types.OrderID

OrderID provides a mock function with given fields:

func (*Reservation) Resources

func (_m *Reservation) Resources() virtenginetypes.ResourceGroup

Resources provides a mock function with given fields:

Jump to

Keyboard shortcuts

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