kubecluster

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: AGPL-3.0 Imports: 21 Imported by: 1 module, 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 (*Client) AP

func (*Client) CM

func (*Client) CNPG

func (c *Client) CNPG() cnpg.ClientInterface

func (*Client) Core

func (c *Client) Core() core.ClientInterface

func (*Client) ES

type ClientInterface

type ClientInterface interface {
	CM() certmanager.ClientInterface
	CNPG() cnpg.ClientInterface
	ES() externalsnapshotter.ClientInterface
	Core() core.ClientInterface
	AP() approverpolicy.ClientInterface
	// contains filtered or unexported methods
}

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) AP

AP provides a mock function with no fields

func (*MockClientInterface) CM

CM provides a mock function with no fields

func (*MockClientInterface) CNPG

CNPG provides a mock function with no fields

func (*MockClientInterface) CloneClusterFromBackup added in v0.0.13

func (_m *MockClientInterface) CloneClusterFromBackup(ctx *contexts.Context, namespace string, existingClusterName string, newClusterName string, backup *v1.Backup, opts clonedcluster.CloneClusterOptions) (clonedcluster.ClonedClusterInterface, error)

CloneClusterFromBackup provides a mock function with given fields: ctx, namespace, existingClusterName, newClusterName, backup, opts

func (*MockClientInterface) ClonePVC

ClonePVC provides a mock function with given fields: ctx, namespace, pvcName, opts

func (*MockClientInterface) ClonePVCGroup added in v0.0.15

ClonePVCGroup provides a mock function with given fields: ctx, namespace, selector, opts

func (*MockClientInterface) Core

Core provides a mock function with no fields

func (*MockClientInterface) CreateBackupToolInstance

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

func (*MockClientInterface) CreateCRPForCertificate

CreateCRPForCertificate provides a mock function with given fields: ctx, cert, opts

func (*MockClientInterface) CreateClusterBackup added in v0.0.13

func (_m *MockClientInterface) CreateClusterBackup(ctx *contexts.Context, namespace string, existingClusterName string, opts clonedcluster.CloneClusterOptions) (*v1.Backup, error)

CreateClusterBackup provides a mock function with given fields: ctx, namespace, existingClusterName, opts

func (*MockClientInterface) ES

ES provides a mock function with no fields

func (*MockClientInterface) EXPECT

func (*MockClientInterface) NewClusterUserCert

NewClusterUserCert provides a mock function with given fields: ctx, namespace, username, issuerRef, clusterName, opts

func (*MockClientInterface) NewDRVolume added in v0.0.6

func (_m *MockClientInterface) NewDRVolume(ctx *contexts.Context, namespace string, name string, configuredSize resource.Quantity, opts drvolume.DRVolumeCreateOptions) (drvolume.DRVolumeInterface, error)

NewDRVolume provides a mock function with given fields: ctx, namespace, name, configuredSize, opts

type MockClientInterface_AP_Call

type MockClientInterface_AP_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_AP_Call) Return

func (*MockClientInterface_AP_Call) Run

func (*MockClientInterface_AP_Call) RunAndReturn

type MockClientInterface_CM_Call

type MockClientInterface_CM_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_CM_Call) Return

func (*MockClientInterface_CM_Call) Run

func (*MockClientInterface_CM_Call) RunAndReturn

type MockClientInterface_CNPG_Call

type MockClientInterface_CNPG_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_CNPG_Call) Return

func (*MockClientInterface_CNPG_Call) Run

func (*MockClientInterface_CNPG_Call) RunAndReturn

type MockClientInterface_CloneClusterFromBackup_Call added in v0.0.13

type MockClientInterface_CloneClusterFromBackup_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_CloneClusterFromBackup_Call) Return added in v0.0.13

func (*MockClientInterface_CloneClusterFromBackup_Call) Run added in v0.0.13

type MockClientInterface_ClonePVCGroup_Call added in v0.0.15

type MockClientInterface_ClonePVCGroup_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_ClonePVCGroup_Call) Return added in v0.0.15

func (*MockClientInterface_ClonePVCGroup_Call) Run added in v0.0.15

type MockClientInterface_ClonePVC_Call

type MockClientInterface_ClonePVC_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_ClonePVC_Call) Return

func (*MockClientInterface_ClonePVC_Call) Run

type MockClientInterface_Core_Call

type MockClientInterface_Core_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_Core_Call) Return

func (*MockClientInterface_Core_Call) Run

func (*MockClientInterface_Core_Call) RunAndReturn

type MockClientInterface_CreateBackupToolInstance_Call

type MockClientInterface_CreateBackupToolInstance_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_CreateBackupToolInstance_Call) Run

type MockClientInterface_CreateCRPForCertificate_Call

type MockClientInterface_CreateCRPForCertificate_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_CreateCRPForCertificate_Call) Return

type MockClientInterface_CreateClusterBackup_Call added in v0.0.13

type MockClientInterface_CreateClusterBackup_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_CreateClusterBackup_Call) Return added in v0.0.13

func (*MockClientInterface_CreateClusterBackup_Call) Run added in v0.0.13

func (*MockClientInterface_CreateClusterBackup_Call) RunAndReturn added in v0.0.13

type MockClientInterface_ES_Call

type MockClientInterface_ES_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_ES_Call) Return

func (*MockClientInterface_ES_Call) Run

func (*MockClientInterface_ES_Call) RunAndReturn

type MockClientInterface_Expecter

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

func (*MockClientInterface_Expecter) AP

AP is a helper method to define mock.On call

func (*MockClientInterface_Expecter) CM

CM is a helper method to define mock.On call

func (*MockClientInterface_Expecter) CNPG

CNPG is a helper method to define mock.On call

func (*MockClientInterface_Expecter) CloneClusterFromBackup added in v0.0.13

func (_e *MockClientInterface_Expecter) CloneClusterFromBackup(ctx interface{}, namespace interface{}, existingClusterName interface{}, newClusterName interface{}, backup interface{}, opts interface{}) *MockClientInterface_CloneClusterFromBackup_Call

CloneClusterFromBackup is a helper method to define mock.On call

  • ctx *contexts.Context
  • namespace string
  • existingClusterName string
  • newClusterName string
  • backup *v1.Backup
  • opts clonedcluster.CloneClusterOptions

func (*MockClientInterface_Expecter) ClonePVC

func (_e *MockClientInterface_Expecter) ClonePVC(ctx interface{}, namespace interface{}, pvcName interface{}, opts interface{}) *MockClientInterface_ClonePVC_Call

ClonePVC is a helper method to define mock.On call

  • ctx *contexts.Context
  • namespace string
  • pvcName string
  • opts clonepvc.ClonePVCOptions

func (*MockClientInterface_Expecter) ClonePVCGroup added in v0.0.15

func (_e *MockClientInterface_Expecter) ClonePVCGroup(ctx interface{}, namespace interface{}, selector interface{}, opts interface{}) *MockClientInterface_ClonePVCGroup_Call

ClonePVCGroup is a helper method to define mock.On call

  • ctx *contexts.Context
  • namespace string
  • selector metav1.LabelSelector
  • opts clonepvc.ClonePVCGroupOptions

func (*MockClientInterface_Expecter) Core

Core is a helper method to define mock.On call

func (*MockClientInterface_Expecter) CreateBackupToolInstance

func (_e *MockClientInterface_Expecter) CreateBackupToolInstance(ctx interface{}, namespace interface{}, instance interface{}, opts interface{}) *MockClientInterface_CreateBackupToolInstance_Call

CreateBackupToolInstance is a helper method to define mock.On call

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

func (*MockClientInterface_Expecter) CreateCRPForCertificate

func (_e *MockClientInterface_Expecter) CreateCRPForCertificate(ctx interface{}, cert interface{}, opts interface{}) *MockClientInterface_CreateCRPForCertificate_Call

CreateCRPForCertificate is a helper method to define mock.On call

  • ctx *contexts.Context
  • cert *certmanagerv1.Certificate
  • opts createcrpforcertificate.CreateCRPForCertificateOpts

func (*MockClientInterface_Expecter) CreateClusterBackup added in v0.0.13

func (_e *MockClientInterface_Expecter) CreateClusterBackup(ctx interface{}, namespace interface{}, existingClusterName interface{}, opts interface{}) *MockClientInterface_CreateClusterBackup_Call

CreateClusterBackup is a helper method to define mock.On call

  • ctx *contexts.Context
  • namespace string
  • existingClusterName string
  • opts clonedcluster.CloneClusterOptions

func (*MockClientInterface_Expecter) ES

ES is a helper method to define mock.On call

func (*MockClientInterface_Expecter) NewClusterUserCert

func (_e *MockClientInterface_Expecter) NewClusterUserCert(ctx interface{}, namespace interface{}, username interface{}, issuerRef interface{}, clusterName interface{}, opts interface{}) *MockClientInterface_NewClusterUserCert_Call

NewClusterUserCert is a helper method to define mock.On call

  • ctx *contexts.Context
  • namespace string
  • username string
  • issuerRef apismetav1.IssuerReference
  • clusterName string
  • opts clusterusercert.NewClusterUserCertOpts

func (*MockClientInterface_Expecter) NewDRVolume added in v0.0.6

func (_e *MockClientInterface_Expecter) NewDRVolume(ctx interface{}, namespace interface{}, name interface{}, configuredSize interface{}, opts interface{}) *MockClientInterface_NewDRVolume_Call

NewDRVolume is a helper method to define mock.On call

  • ctx *contexts.Context
  • namespace string
  • name string
  • configuredSize resource.Quantity
  • opts drvolume.DRVolumeCreateOptions

type MockClientInterface_NewClusterUserCert_Call

type MockClientInterface_NewClusterUserCert_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_NewClusterUserCert_Call) Run

type MockClientInterface_NewDRVolume_Call added in v0.0.6

type MockClientInterface_NewDRVolume_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_NewDRVolume_Call) Return added in v0.0.6

func (*MockClientInterface_NewDRVolume_Call) Run added in v0.0.6

Directories

Path Synopsis
composite
primatives
approverpolicy/gen/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
approverpolicy/gen/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
approverpolicy/gen/clientset/versioned/typed/policy/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
approverpolicy/gen/clientset/versioned/typed/policy/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
barmancloud/gen/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
barmancloud/gen/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
barmancloud/gen/clientset/versioned/typed/api/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
barmancloud/gen/clientset/versioned/typed/api/v1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
cnpg/gen/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
cnpg/gen/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
cnpg/gen/clientset/versioned/typed/api/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
cnpg/gen/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