carbon

package
v0.0.0-...-432d548 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package carbon is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilteredWorkerNodeInformer

func NewFilteredWorkerNodeInformer(client client.Client, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer

NewFilteredWorkerNodeInformer informer sample.

Types

type MockWorkerNodeInterface

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

MockWorkerNodeInterface is a mock of WorkerNodeInterface interface.

func NewMockWorkerNodeInterface

func NewMockWorkerNodeInterface(ctrl *gomock.Controller) *MockWorkerNodeInterface

NewMockWorkerNodeInterface creates a new mock instance.

func (*MockWorkerNodeInterface) Create

Create mocks base method.

func (*MockWorkerNodeInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockWorkerNodeInterface) Get

func (m *MockWorkerNodeInterface) Get(name string, options v1.GetOptions) (*spec.WorkerNode, error)

Get mocks base method.

func (*MockWorkerNodeInterface) List

List mocks base method.

func (*MockWorkerNodeInterface) Update

Update mocks base method.

func (*MockWorkerNodeInterface) Watch

Watch mocks base method.

type MockWorkerNodeInterfaceMockRecorder

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

MockWorkerNodeInterfaceMockRecorder is the mock recorder for MockWorkerNodeInterface.

func (*MockWorkerNodeInterfaceMockRecorder) Create

func (mr *MockWorkerNodeInterfaceMockRecorder) Create(arg0 interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockWorkerNodeInterfaceMockRecorder) Get

func (mr *MockWorkerNodeInterfaceMockRecorder) Get(name, options interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockWorkerNodeInterfaceMockRecorder) List

func (mr *MockWorkerNodeInterfaceMockRecorder) List(opts interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockWorkerNodeInterfaceMockRecorder) Update

func (mr *MockWorkerNodeInterfaceMockRecorder) Update(arg0 interface{}) *gomock.Call

Update indicates an expected call of Update.

func (*MockWorkerNodeInterfaceMockRecorder) Watch

func (mr *MockWorkerNodeInterfaceMockRecorder) Watch(opts interface{}) *gomock.Call

Watch indicates an expected call of Watch.

type WorkerNodeInformer

type WorkerNodeInformer interface {
	Informer() cache.SharedIndexInformer
	Lister() WorkerNodeLister
}

WorkerNodeInformer informer api

func NewWorkerNodeInformer

func NewWorkerNodeInformer(client client.Client, namespace string, resyncPeriod time.Duration) WorkerNodeInformer

NewWorkerNodeInformer create a new WorkerNodeInformer

type WorkerNodeInterface

type WorkerNodeInterface interface {
	List(opts metav1.ListOptions) (*spec.WorkerNodeList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Update(*spec.WorkerNode) (*spec.WorkerNode, error)
	Get(name string, options metav1.GetOptions) (*spec.WorkerNode, error)
	Create(*spec.WorkerNode) (*spec.WorkerNode, error)
}

WorkerNodeInterface sample workerNodeInterface impl.

func NewWorkerNodeInterface

func NewWorkerNodeInterface(client client.Client, namespace string) WorkerNodeInterface

NewWorkerNodeInterface create a workerNodeInterface impl.

type WorkerNodeLister

type WorkerNodeLister interface {
	// List lists all WorkerNodes in the indexer.
	List(selector labels.Selector) ([]*spec.WorkerNode, error)
	// WorkerNodes returns an object that can list and get WorkerNodes.
	WorkerNodes(namespace string) WorkerNodeNamespaceLister
}

WorkerNodeLister lister api

func NewWorkerNodeLister

func NewWorkerNodeLister(indexer cache.Indexer) WorkerNodeLister

NewWorkerNodeLister returns a new WorkerNodeLister.

type WorkerNodeNamespaceLister

type WorkerNodeNamespaceLister interface {
	// List lists all WorkerNodes in the indexer for a given namespace.
	List(selector labels.Selector) (ret []*spec.WorkerNode, err error)
	// Get retrieves the WorkerNode from the indexer for a given namespace and name.
	Get(name string) (*spec.WorkerNode, error)
}

WorkerNodeNamespaceLister helps list and get WorkerNodes.

func NewWorkerNodeNamespaceLister

func NewWorkerNodeNamespaceLister(ns string, indexer cache.Indexer) WorkerNodeNamespaceLister

NewWorkerNodeNamespaceLister create a lister.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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