clients

package
v0.3.25 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package clients is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var Codecs = serializer.NewCodecFactory(scheme)

Used for serializing and deserializing the types added in the below addToScheme function.

NOTE: Codecs will not work for our CRD types (we would have to deserialize to v1.Resource and then unmarshal the Spec map[string]interface{})

Functions

func InitClientSet

func InitClientSet(ctx context.Context) error

func SetClientSet

func SetClientSet(clientSet WebhookResourceClient)

Types

type MockWebhookResourceClient

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

MockWebhookResourceClient is a mock of WebhookResourceClient interface

func NewMockWebhookResourceClient

func NewMockWebhookResourceClient(ctrl *gomock.Controller) *MockWebhookResourceClient

NewMockWebhookResourceClient creates a new mock instance

func (*MockWebhookResourceClient) EXPECT

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

func (*MockWebhookResourceClient) GetConfigMap

func (m *MockWebhookResourceClient) GetConfigMap(namespace, name string) (*v10.ConfigMap, error)

GetConfigMap mocks base method

func (*MockWebhookResourceClient) GetSuperglooNamespace added in v0.3.16

func (m *MockWebhookResourceClient) GetSuperglooNamespace() (string, error)

GetSuperglooNamespace mocks base method

func (*MockWebhookResourceClient) ListMeshes

func (m *MockWebhookResourceClient) ListMeshes(namespace string, opts clients.ListOpts) (v1.MeshList, error)

ListMeshes mocks base method

type MockWebhookResourceClientMockRecorder

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

MockWebhookResourceClientMockRecorder is the mock recorder for MockWebhookResourceClient

func (*MockWebhookResourceClientMockRecorder) GetConfigMap

func (mr *MockWebhookResourceClientMockRecorder) GetConfigMap(namespace, name interface{}) *gomock.Call

GetConfigMap indicates an expected call of GetConfigMap

func (*MockWebhookResourceClientMockRecorder) GetSuperglooNamespace added in v0.3.16

func (mr *MockWebhookResourceClientMockRecorder) GetSuperglooNamespace() *gomock.Call

GetSuperglooNamespace indicates an expected call of GetSuperglooNamespace

func (*MockWebhookResourceClientMockRecorder) ListMeshes

func (mr *MockWebhookResourceClientMockRecorder) ListMeshes(namespace, opts interface{}) *gomock.Call

ListMeshes indicates an expected call of ListMeshes

type WebhookResourceClient

type WebhookResourceClient interface {
	ListMeshes(namespace string, opts clients.ListOpts) (v1.MeshList, error)
	GetConfigMap(namespace, name string) (*corev1.ConfigMap, error)
	GetSuperglooNamespace() (string, error)
}

Exposes only the methods that are actually used. Used to generate mocks.

func GetClientSet

func GetClientSet() WebhookResourceClient

Jump to

Keyboard shortcuts

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