kubecluster

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: AGPL-3.0 Imports: 15 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 (*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) CloneCluster

func (_m *MockClientInterface) CloneCluster(ctx *contexts.Context, namespace string, existingClusterName string, newClusterName string, servingCertIssuerName string, clientCertIssuerName string, opts clonedcluster.CloneClusterOptions) (clonedcluster.ClonedClusterInterface, error)

CloneCluster provides a mock function with given fields: ctx, namespace, existingClusterName, newClusterName, servingCertIssuerName, clientCertIssuerName, opts

func (*MockClientInterface) ClonePVC

func (_m *MockClientInterface) ClonePVC(ctx *contexts.Context, namespace string, pvcName string, opts clonepvc.ClonePVCOptions) (*v1.PersistentVolumeClaim, error)

ClonePVC provides a mock function with given fields: ctx, namespace, pvcName, 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) ES

ES provides a mock function with no fields

func (*MockClientInterface) EXPECT

func (*MockClientInterface) NewClusterUserCert

func (_m *MockClientInterface) NewClusterUserCert(ctx *contexts.Context, namespace string, username string, issuerName string, clusterName string, opts clusterusercert.NewClusterUserCertOpts) (clusterusercert.ClusterUserCertInterface, error)

NewClusterUserCert provides a mock function with given fields: ctx, namespace, username, issuerName, clusterName, 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_CloneCluster_Call

type MockClientInterface_CloneCluster_Call struct {
	*mock.Call
}

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

func (*MockClientInterface_CloneCluster_Call) Return

func (*MockClientInterface_CloneCluster_Call) Run

func (_c *MockClientInterface_CloneCluster_Call) Run(run func(ctx *contexts.Context, namespace string, existingClusterName string, newClusterName string, servingCertIssuerName string, clientCertIssuerName string, opts clonedcluster.CloneClusterOptions)) *MockClientInterface_CloneCluster_Call

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_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) CloneCluster

func (_e *MockClientInterface_Expecter) CloneCluster(ctx interface{}, namespace interface{}, existingClusterName interface{}, newClusterName interface{}, servingCertIssuerName interface{}, clientCertIssuerName interface{}, opts interface{}) *MockClientInterface_CloneCluster_Call

CloneCluster is a helper method to define mock.On call

  • ctx *contexts.Context
  • namespace string
  • existingClusterName string
  • newClusterName string
  • servingCertIssuerName string
  • clientCertIssuerName string
  • 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) 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) 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{}, issuerName 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
  • issuerName string
  • clusterName string
  • opts clusterusercert.NewClusterUserCertOpts

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

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.
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