Documentation ¶
Overview ¶
Package clients is a generated GoMock package.
Index ¶
- Variables
- func InitClientSet(ctx context.Context) error
- func SetClientSet(clientSet WebhookResourceClient)
- type MockWebhookResourceClient
- func (m *MockWebhookResourceClient) EXPECT() *MockWebhookResourceClientMockRecorder
- func (m *MockWebhookResourceClient) GetConfigMap(namespace, name string) (*v10.ConfigMap, error)
- func (m *MockWebhookResourceClient) GetSuperglooNamespace() (string, error)
- func (m *MockWebhookResourceClient) ListMeshes(namespace string, opts clients.ListOpts) (v1.MeshList, error)
- type MockWebhookResourceClientMockRecorder
- type WebhookResourceClient
Constants ¶
This section is empty.
Variables ¶
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 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 ¶
func (m *MockWebhookResourceClient) EXPECT() *MockWebhookResourceClientMockRecorder
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