barmancloud

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: AGPL-3.0 Imports: 8 Imported by: ? 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 {
	// 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