barmancloud

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: AGPL-3.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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(config *rest.Config) (*Client, error)

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

type MockClientInterface struct {
	mock.Mock
}

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 (*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

type MockClientInterface_GetObjectStore_Call struct {
	*mock.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 (*MockClientInterface_GetObjectStore_Call) Run

func (*MockClientInterface_GetObjectStore_Call) RunAndReturn

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.

Jump to

Keyboard shortcuts

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