backuptoolinstance

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackupToolInstance

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

func (*BackupToolInstance) Delete

func (b *BackupToolInstance) Delete(ctx *contexts.Context) (err error)

func (*BackupToolInstance) GetGRPCClient

func (b *BackupToolInstance) GetGRPCClient(ctx *contexts.Context, searchDomains ...string) (clients.ClientInterface, error)

func (*BackupToolInstance) GetPod

func (b *BackupToolInstance) GetPod() *corev1.Pod

func (*BackupToolInstance) GetService

func (b *BackupToolInstance) GetService() *corev1.Service

type BackupToolInstanceInterface

type BackupToolInstanceInterface interface {
	GetPod() *corev1.Pod

	GetService() *corev1.Service
	GetGRPCClient(ctx *contexts.Context, searchDomains ...string) (clients.ClientInterface, error)
	Delete(ctx *contexts.Context) error
	// contains filtered or unexported methods
}

type CreateBackupToolInstanceOptions

type CreateBackupToolInstanceOptions struct {
	NamePrefix         string                       `yaml:"namePrefix,omitempty"`
	Volumes            []core.SingleContainerVolume `yaml:"volumes,omitempty"`
	CleanupTimeout     helpers.MaxWaitTime          `yaml:"cleanupTimeout,omitempty"`
	ServiceType        corev1.ServiceType           `yaml:"serviceType,omitempty"`
	PodWaitTimeout     helpers.MaxWaitTime          `yaml:"podWaitTimeout,omitempty"`
	ServiceWaitTimeout helpers.MaxWaitTime          `yaml:"serviceWaitTimeout,omitempty"`
}

type MockBackupToolInstanceInterface

type MockBackupToolInstanceInterface struct {
	mock.Mock
}

MockBackupToolInstanceInterface is an autogenerated mock type for the BackupToolInstanceInterface type

func NewMockBackupToolInstanceInterface

func NewMockBackupToolInstanceInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBackupToolInstanceInterface

NewMockBackupToolInstanceInterface creates a new instance of MockBackupToolInstanceInterface. 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 (*MockBackupToolInstanceInterface) Delete

Delete provides a mock function with given fields: ctx

func (*MockBackupToolInstanceInterface) EXPECT

func (*MockBackupToolInstanceInterface) GetGRPCClient

func (_m *MockBackupToolInstanceInterface) GetGRPCClient(ctx *contexts.Context, searchDomains ...string) (clients.ClientInterface, error)

GetGRPCClient provides a mock function with given fields: ctx, searchDomains

func (*MockBackupToolInstanceInterface) GetPod

func (_m *MockBackupToolInstanceInterface) GetPod() *v1.Pod

GetPod provides a mock function with no fields

func (*MockBackupToolInstanceInterface) GetService

func (_m *MockBackupToolInstanceInterface) GetService() *v1.Service

GetService provides a mock function with no fields

type MockBackupToolInstanceInterface_Delete_Call

type MockBackupToolInstanceInterface_Delete_Call struct {
	*mock.Call
}

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

func (*MockBackupToolInstanceInterface_Delete_Call) Return

func (*MockBackupToolInstanceInterface_Delete_Call) Run

func (*MockBackupToolInstanceInterface_Delete_Call) RunAndReturn

type MockBackupToolInstanceInterface_Expecter

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

func (*MockBackupToolInstanceInterface_Expecter) Delete

Delete is a helper method to define mock.On call

  • ctx *contexts.Context

func (*MockBackupToolInstanceInterface_Expecter) GetGRPCClient

func (_e *MockBackupToolInstanceInterface_Expecter) GetGRPCClient(ctx interface{}, searchDomains ...interface{}) *MockBackupToolInstanceInterface_GetGRPCClient_Call

GetGRPCClient is a helper method to define mock.On call

  • ctx *contexts.Context
  • searchDomains ...string

func (*MockBackupToolInstanceInterface_Expecter) GetPod

GetPod is a helper method to define mock.On call

func (*MockBackupToolInstanceInterface_Expecter) GetService

GetService is a helper method to define mock.On call

type MockBackupToolInstanceInterface_GetGRPCClient_Call

type MockBackupToolInstanceInterface_GetGRPCClient_Call struct {
	*mock.Call
}

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

func (*MockBackupToolInstanceInterface_GetGRPCClient_Call) Return

func (*MockBackupToolInstanceInterface_GetGRPCClient_Call) Run

func (*MockBackupToolInstanceInterface_GetGRPCClient_Call) RunAndReturn

type MockBackupToolInstanceInterface_GetPod_Call

type MockBackupToolInstanceInterface_GetPod_Call struct {
	*mock.Call
}

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

func (*MockBackupToolInstanceInterface_GetPod_Call) Return

func (*MockBackupToolInstanceInterface_GetPod_Call) Run

func (*MockBackupToolInstanceInterface_GetPod_Call) RunAndReturn

type MockBackupToolInstanceInterface_GetService_Call

type MockBackupToolInstanceInterface_GetService_Call struct {
	*mock.Call
}

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

func (*MockBackupToolInstanceInterface_GetService_Call) Return

func (*MockBackupToolInstanceInterface_GetService_Call) Run

func (*MockBackupToolInstanceInterface_GetService_Call) RunAndReturn

type MockBackupToolInstanceInterface_setPod_Call

type MockBackupToolInstanceInterface_setPod_Call struct {
	*mock.Call
}

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

func (*MockBackupToolInstanceInterface_setPod_Call) Return

func (*MockBackupToolInstanceInterface_setPod_Call) Run

func (*MockBackupToolInstanceInterface_setPod_Call) RunAndReturn

type MockBackupToolInstanceInterface_setService_Call

type MockBackupToolInstanceInterface_setService_Call struct {
	*mock.Call
}

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

func (*MockBackupToolInstanceInterface_setService_Call) Return

func (*MockBackupToolInstanceInterface_setService_Call) Run

func (*MockBackupToolInstanceInterface_setService_Call) RunAndReturn

type MockProviderInterface

type MockProviderInterface struct {
	mock.Mock
}

MockProviderInterface is an autogenerated mock type for the ProviderInterface type

func NewMockProviderInterface

func NewMockProviderInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProviderInterface

NewMockProviderInterface creates a new instance of MockProviderInterface. 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 (*MockProviderInterface) CreateBackupToolInstance

func (_m *MockProviderInterface) CreateBackupToolInstance(ctx *contexts.Context, namespace string, instance string, opts CreateBackupToolInstanceOptions) (BackupToolInstanceInterface, error)

CreateBackupToolInstance provides a mock function with given fields: ctx, namespace, instance, opts

func (*MockProviderInterface) EXPECT

type MockProviderInterface_CreateBackupToolInstance_Call

type MockProviderInterface_CreateBackupToolInstance_Call struct {
	*mock.Call
}

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

func (*MockProviderInterface_CreateBackupToolInstance_Call) Return

func (*MockProviderInterface_CreateBackupToolInstance_Call) Run

type MockProviderInterface_Expecter

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

func (*MockProviderInterface_Expecter) CreateBackupToolInstance

func (_e *MockProviderInterface_Expecter) CreateBackupToolInstance(ctx interface{}, namespace interface{}, instance interface{}, opts interface{}) *MockProviderInterface_CreateBackupToolInstance_Call

CreateBackupToolInstance is a helper method to define mock.On call

  • ctx *contexts.Context
  • namespace string
  • instance string
  • opts CreateBackupToolInstanceOptions

type Provider

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

func NewProvider

func NewProvider(coreClient core.ClientInterface) *Provider

func (*Provider) CreateBackupToolInstance

func (p *Provider) CreateBackupToolInstance(ctx *contexts.Context, namespace, instance string, opts CreateBackupToolInstanceOptions) (btInstance BackupToolInstanceInterface, err error)

type ProviderInterface

type ProviderInterface interface {
	CreateBackupToolInstance(ctx *contexts.Context, namespace, instance string, opts CreateBackupToolInstanceOptions) (btInstance BackupToolInstanceInterface, err error)
}

Jump to

Keyboard shortcuts

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