Documentation
¶
Index ¶
- type Client
- type ClientInterface
- type MockClientInterface
- type MockClientInterface_Expecter
- type MockClientInterface_GetObjectStore_Call
- func (_c *MockClientInterface_GetObjectStore_Call) Return(_a0 *v1.ObjectStore, _a1 error) *MockClientInterface_GetObjectStore_Call
- func (_c *MockClientInterface_GetObjectStore_Call) Run(run func(ctx *contexts.Context, namespace string, name string)) *MockClientInterface_GetObjectStore_Call
- func (_c *MockClientInterface_GetObjectStore_Call) RunAndReturn(run func(*contexts.Context, string, string) (*v1.ObjectStore, error)) *MockClientInterface_GetObjectStore_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetObjectStore ¶
func (bcc *Client) GetObjectStore(ctx *contexts.Context, namespace, name string) (*barmancloudv1.ObjectStore, error)
type ClientInterface ¶
type ClientInterface interface {
GetObjectStore(ctx *contexts.Context, namespace, name string) (*barmancloudv1.ObjectStore, error)
}
ClientInterface exposes the subset of the barman-cloud plugin API (barmancloud.cnpg.io) that the backup tool needs. Currently this is limited to reading ObjectStore resources so that a cloned cluster can reference the same WAL archive as its source.
type MockClientInterface ¶
MockClientInterface is an autogenerated mock type for the ClientInterface type
func NewMockClientInterface ¶
func NewMockClientInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockClientInterface
NewMockClientInterface creates a new instance of MockClientInterface. 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 (*MockClientInterface) EXPECT ¶
func (_m *MockClientInterface) EXPECT() *MockClientInterface_Expecter
func (*MockClientInterface) GetObjectStore ¶
func (_m *MockClientInterface) GetObjectStore(ctx *contexts.Context, namespace string, name string) (*v1.ObjectStore, error)
GetObjectStore provides a mock function with given fields: ctx, namespace, name
type MockClientInterface_Expecter ¶
type MockClientInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClientInterface_Expecter) GetObjectStore ¶
func (_e *MockClientInterface_Expecter) GetObjectStore(ctx interface{}, namespace interface{}, name interface{}) *MockClientInterface_GetObjectStore_Call
GetObjectStore is a helper method to define mock.On call
- ctx *contexts.Context
- namespace string
- name string
type MockClientInterface_GetObjectStore_Call ¶
MockClientInterface_GetObjectStore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetObjectStore'
func (*MockClientInterface_GetObjectStore_Call) Return ¶
func (_c *MockClientInterface_GetObjectStore_Call) Return(_a0 *v1.ObjectStore, _a1 error) *MockClientInterface_GetObjectStore_Call
func (*MockClientInterface_GetObjectStore_Call) Run ¶
func (_c *MockClientInterface_GetObjectStore_Call) Run(run func(ctx *contexts.Context, namespace string, name string)) *MockClientInterface_GetObjectStore_Call
func (*MockClientInterface_GetObjectStore_Call) RunAndReturn ¶
func (_c *MockClientInterface_GetObjectStore_Call) RunAndReturn(run func(*contexts.Context, string, string) (*v1.ObjectStore, error)) *MockClientInterface_GetObjectStore_Call
Directories
¶
| Path | Synopsis |
|---|---|
|
gen
|
|
|
clientset/versioned/fake
This package has the automatically generated fake clientset.
|
This package has the automatically generated fake clientset. |
|
clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
|
This package contains the scheme of the automatically generated clientset. |
|
clientset/versioned/typed/api/v1
This package has the automatically generated typed clients.
|
This package has the automatically generated typed clients. |
|
clientset/versioned/typed/api/v1/fake
Package fake has the automatically generated clients.
|
Package fake has the automatically generated clients. |