Documentation ¶
Overview ¶
Package config is a generated GoMock package.
Package config implements the Kubernetes client for the resources in the multiclusterservice.openservicemesh.io API group
Index ¶
- type Controller
- type MockController
- func (m *MockController) EXPECT() *MockControllerMockRecorder
- func (m *MockController) GetMultiClusterService(arg0, arg1 string) *v1alpha2.MultiClusterService
- func (m *MockController) GetMultiClusterServiceByServiceAccount(arg0, arg1 string) []v1alpha2.MultiClusterService
- func (m *MockController) ListMultiClusterServices() []v1alpha2.MultiClusterService
- type MockControllerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { ListMultiClusterServices() []configv1alpha2.MultiClusterService GetMultiClusterService(name, namespace string) *configv1alpha2.MultiClusterService GetMultiClusterServiceByServiceAccount(serviceAccount, namespace string) []configv1alpha2.MultiClusterService }
Controller is the interface for the functionality provided by the resources part of the multiclusterservice.openservicemesh.io API group
func NewConfigController ¶
func NewConfigController(kubeConfig *rest.Config, kubeController k8s.Controller, stop chan struct{}, msgBroker *messaging.Broker) (Controller, error)
NewConfigController returns a config.Controller struct related to functionality provided by the resources in the config.openservicemesh.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 ¶
func (m *MockController) EXPECT() *MockControllerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockController) GetMultiClusterService ¶
func (m *MockController) GetMultiClusterService(arg0, arg1 string) *v1alpha2.MultiClusterService
GetMultiClusterService mocks base method.
func (*MockController) GetMultiClusterServiceByServiceAccount ¶
func (m *MockController) GetMultiClusterServiceByServiceAccount(arg0, arg1 string) []v1alpha2.MultiClusterService
GetMultiClusterServiceByServiceAccount mocks base method.
func (*MockController) ListMultiClusterServices ¶
func (m *MockController) ListMultiClusterServices() []v1alpha2.MultiClusterService
ListMultiClusterServices mocks base method.
type MockControllerMockRecorder ¶
type MockControllerMockRecorder struct {
// contains filtered or unexported fields
}
MockControllerMockRecorder is the mock recorder for MockController.
func (*MockControllerMockRecorder) GetMultiClusterService ¶
func (mr *MockControllerMockRecorder) GetMultiClusterService(arg0, arg1 interface{}) *gomock.Call
GetMultiClusterService indicates an expected call of GetMultiClusterService.
func (*MockControllerMockRecorder) GetMultiClusterServiceByServiceAccount ¶
func (mr *MockControllerMockRecorder) GetMultiClusterServiceByServiceAccount(arg0, arg1 interface{}) *gomock.Call
GetMultiClusterServiceByServiceAccount indicates an expected call of GetMultiClusterServiceByServiceAccount.
func (*MockControllerMockRecorder) ListMultiClusterServices ¶
func (mr *MockControllerMockRecorder) ListMultiClusterServices() *gomock.Call
ListMultiClusterServices indicates an expected call of ListMultiClusterServices.