plugin

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package plugin is a generated GoMock package.

Package plugin implements the Kubernetes client for the resources in the plugin.flomesh.io API group

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
}

Client is the type used to represent the Kubernetes Client for the plugin.flomesh.io API group

func NewPluginController

func NewPluginController(informerCollection *informers.InformerCollection, kubeClient kubernetes.Interface, kubeController k8s.Controller, msgBroker *messaging.Broker) *Client

NewPluginController returns a plugin.Controller interface related to functionality provided by the resources in the plugin.flomesh.io API group

func (*Client) GetPluginChains

func (c *Client) GetPluginChains() []*pluginv1alpha1.PluginChain

GetPluginChains lists plugin chains

func (*Client) GetPluginConfigs

func (c *Client) GetPluginConfigs() []*pluginv1alpha1.PluginConfig

GetPluginConfigs lists plugin configs

func (*Client) GetPlugins

func (c *Client) GetPlugins() []*pluginv1alpha1.Plugin

GetPlugins lists plugins

type Controller

type Controller interface {
	// GetPlugins lists plugins
	GetPlugins() []*pluginv1alpha1.Plugin

	// GetPluginConfigs lists plugin configs
	GetPluginConfigs() []*pluginv1alpha1.PluginConfig

	// GetPluginChains lists plugin chains
	GetPluginChains() []*pluginv1alpha1.PluginChain
}

Controller is the interface for the functionality provided by the resources part of the plugin.flomesh.io API group

type MockController

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

MockController is a mock of Controller interface.

func NewMockController

func NewMockController(ctrl *gomock.Controller) *MockController

NewMockController creates a new mock instance.

func (*MockController) EXPECT

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

func (*MockController) GetPluginChains

func (m *MockController) GetPluginChains() []*v1alpha1.PluginChain

GetPluginChains mocks base method.

func (*MockController) GetPluginConfigs

func (m *MockController) GetPluginConfigs() []*v1alpha1.PluginConfig

GetPluginConfigs mocks base method.

func (*MockController) GetPlugins

func (m *MockController) GetPlugins() []*v1alpha1.Plugin

GetPlugins mocks base method.

type MockControllerMockRecorder

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

MockControllerMockRecorder is the mock recorder for MockController.

func (*MockControllerMockRecorder) GetPluginChains

func (mr *MockControllerMockRecorder) GetPluginChains() *gomock.Call

GetPluginChains indicates an expected call of GetPluginChains.

func (*MockControllerMockRecorder) GetPluginConfigs

func (mr *MockControllerMockRecorder) GetPluginConfigs() *gomock.Call

GetPluginConfigs indicates an expected call of GetPluginConfigs.

func (*MockControllerMockRecorder) GetPlugins

func (mr *MockControllerMockRecorder) GetPlugins() *gomock.Call

GetPlugins indicates an expected call of GetPlugins.

Jump to

Keyboard shortcuts

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