Documentation
¶
Index ¶
- type Client
- func (_mock *Client) Apply(ctx context.Context, obj runtime.ApplyConfiguration, ...) error
- func (_mock *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (_mock *Client) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (_mock *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (_m *Client) EXPECT() *Client_Expecter
- func (_mock *Client) Get(ctx context.Context, key client.ObjectKey, obj client.Object, ...) error
- func (_mock *Client) GroupVersionKindFor(obj runtime.Object) (schema.GroupVersionKind, error)
- func (_mock *Client) IsObjectNamespaced(obj runtime.Object) (bool, error)
- func (_mock *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (_mock *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_mock *Client) RESTMapper() meta.RESTMapper
- func (_mock *Client) Scheme() *runtime.Scheme
- func (_mock *Client) Status() client.SubResourceWriter
- func (_mock *Client) SubResource(subResource string) client.SubResourceClient
- func (_mock *Client) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type Client_Apply_Call
- func (_c *Client_Apply_Call) Return(err error) *Client_Apply_Call
- func (_c *Client_Apply_Call) Run(run func(ctx context.Context, obj runtime.ApplyConfiguration, ...)) *Client_Apply_Call
- func (_c *Client_Apply_Call) RunAndReturn(run func(ctx context.Context, obj runtime.ApplyConfiguration, ...) error) *Client_Apply_Call
- type Client_Create_Call
- type Client_DeleteAllOf_Call
- type Client_Delete_Call
- type Client_Expecter
- func (_e *Client_Expecter) Apply(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Apply_Call
- func (_e *Client_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Create_Call
- func (_e *Client_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Delete_Call
- func (_e *Client_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *Client_DeleteAllOf_Call
- func (_e *Client_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *Client_Get_Call
- func (_e *Client_Expecter) GroupVersionKindFor(obj interface{}) *Client_GroupVersionKindFor_Call
- func (_e *Client_Expecter) IsObjectNamespaced(obj interface{}) *Client_IsObjectNamespaced_Call
- func (_e *Client_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *Client_List_Call
- func (_e *Client_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *Client_Patch_Call
- func (_e *Client_Expecter) RESTMapper() *Client_RESTMapper_Call
- func (_e *Client_Expecter) Scheme() *Client_Scheme_Call
- func (_e *Client_Expecter) Status() *Client_Status_Call
- func (_e *Client_Expecter) SubResource(subResource interface{}) *Client_SubResource_Call
- func (_e *Client_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Update_Call
- type Client_Get_Call
- type Client_GroupVersionKindFor_Call
- func (_c *Client_GroupVersionKindFor_Call) Return(groupVersionKind schema.GroupVersionKind, err error) *Client_GroupVersionKindFor_Call
- func (_c *Client_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *Client_GroupVersionKindFor_Call
- func (_c *Client_GroupVersionKindFor_Call) RunAndReturn(run func(obj runtime.Object) (schema.GroupVersionKind, error)) *Client_GroupVersionKindFor_Call
- type Client_IsObjectNamespaced_Call
- func (_c *Client_IsObjectNamespaced_Call) Return(b bool, err error) *Client_IsObjectNamespaced_Call
- func (_c *Client_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *Client_IsObjectNamespaced_Call
- func (_c *Client_IsObjectNamespaced_Call) RunAndReturn(run func(obj runtime.Object) (bool, error)) *Client_IsObjectNamespaced_Call
- type Client_List_Call
- type Client_Patch_Call
- type Client_RESTMapper_Call
- type Client_Scheme_Call
- type Client_Status_Call
- type Client_SubResource_Call
- func (_c *Client_SubResource_Call) Return(subResourceClient client.SubResourceClient) *Client_SubResource_Call
- func (_c *Client_SubResource_Call) Run(run func(subResource string)) *Client_SubResource_Call
- func (_c *Client_SubResource_Call) RunAndReturn(run func(subResource string) client.SubResourceClient) *Client_SubResource_Call
- type Client_Update_Call
- type Cluster
- func (_m *Cluster) EXPECT() *Cluster_Expecter
- func (_mock *Cluster) GetAPIReader() client.Reader
- func (_mock *Cluster) GetCache() cache.Cache
- func (_mock *Cluster) GetClient() client.Client
- func (_mock *Cluster) GetConfig() *rest.Config
- func (_mock *Cluster) GetEventRecorderFor(name string) record.EventRecorder
- func (_mock *Cluster) GetFieldIndexer() client.FieldIndexer
- func (_mock *Cluster) GetHTTPClient() *http.Client
- func (_mock *Cluster) GetRESTMapper() meta.RESTMapper
- func (_mock *Cluster) GetScheme() *runtime.Scheme
- func (_mock *Cluster) Start(ctx context.Context) error
- type Cluster_Expecter
- func (_e *Cluster_Expecter) GetAPIReader() *Cluster_GetAPIReader_Call
- func (_e *Cluster_Expecter) GetCache() *Cluster_GetCache_Call
- func (_e *Cluster_Expecter) GetClient() *Cluster_GetClient_Call
- func (_e *Cluster_Expecter) GetConfig() *Cluster_GetConfig_Call
- func (_e *Cluster_Expecter) GetEventRecorderFor(name interface{}) *Cluster_GetEventRecorderFor_Call
- func (_e *Cluster_Expecter) GetFieldIndexer() *Cluster_GetFieldIndexer_Call
- func (_e *Cluster_Expecter) GetHTTPClient() *Cluster_GetHTTPClient_Call
- func (_e *Cluster_Expecter) GetRESTMapper() *Cluster_GetRESTMapper_Call
- func (_e *Cluster_Expecter) GetScheme() *Cluster_GetScheme_Call
- func (_e *Cluster_Expecter) Start(ctx interface{}) *Cluster_Start_Call
- type Cluster_GetAPIReader_Call
- type Cluster_GetCache_Call
- type Cluster_GetClient_Call
- type Cluster_GetConfig_Call
- type Cluster_GetEventRecorderFor_Call
- func (_c *Cluster_GetEventRecorderFor_Call) Return(eventRecorder record.EventRecorder) *Cluster_GetEventRecorderFor_Call
- func (_c *Cluster_GetEventRecorderFor_Call) Run(run func(name string)) *Cluster_GetEventRecorderFor_Call
- func (_c *Cluster_GetEventRecorderFor_Call) RunAndReturn(run func(name string) record.EventRecorder) *Cluster_GetEventRecorderFor_Call
- type Cluster_GetFieldIndexer_Call
- func (_c *Cluster_GetFieldIndexer_Call) Return(fieldIndexer client.FieldIndexer) *Cluster_GetFieldIndexer_Call
- func (_c *Cluster_GetFieldIndexer_Call) Run(run func()) *Cluster_GetFieldIndexer_Call
- func (_c *Cluster_GetFieldIndexer_Call) RunAndReturn(run func() client.FieldIndexer) *Cluster_GetFieldIndexer_Call
- type Cluster_GetHTTPClient_Call
- type Cluster_GetRESTMapper_Call
- type Cluster_GetScheme_Call
- type Cluster_Start_Call
- type Manager
- func (_mock *Manager) Add(runnable manager.Runnable) error
- func (_mock *Manager) AddHealthzCheck(name string, check healthz.Checker) error
- func (_mock *Manager) AddMetricsServerExtraHandler(path string, handler http.Handler) error
- func (_mock *Manager) AddReadyzCheck(name string, check healthz.Checker) error
- func (_mock *Manager) ClusterFromContext(ctx context.Context) (cluster.Cluster, error)
- func (_m *Manager) EXPECT() *Manager_Expecter
- func (_mock *Manager) Elected() <-chan struct{}
- func (_mock *Manager) Engage(context1 context.Context, s string, cluster1 cluster.Cluster) error
- func (_mock *Manager) GetCluster(ctx context.Context, clusterName string) (cluster.Cluster, error)
- func (_mock *Manager) GetControllerOptions() config.Controller
- func (_mock *Manager) GetFieldIndexer() client.FieldIndexer
- func (_mock *Manager) GetLocalManager() manager0.Manager
- func (_mock *Manager) GetLogger() logr.Logger
- func (_mock *Manager) GetManager(ctx context.Context, clusterName string) (manager0.Manager, error)
- func (_mock *Manager) GetProvider() multicluster.Provider
- func (_mock *Manager) GetWebhookServer() webhook.Server
- func (_mock *Manager) Start(ctx context.Context) error
- type Manager_AddHealthzCheck_Call
- func (_c *Manager_AddHealthzCheck_Call) Return(err error) *Manager_AddHealthzCheck_Call
- func (_c *Manager_AddHealthzCheck_Call) Run(run func(name string, check healthz.Checker)) *Manager_AddHealthzCheck_Call
- func (_c *Manager_AddHealthzCheck_Call) RunAndReturn(run func(name string, check healthz.Checker) error) *Manager_AddHealthzCheck_Call
- type Manager_AddMetricsServerExtraHandler_Call
- func (_c *Manager_AddMetricsServerExtraHandler_Call) Return(err error) *Manager_AddMetricsServerExtraHandler_Call
- func (_c *Manager_AddMetricsServerExtraHandler_Call) Run(run func(path string, handler http.Handler)) *Manager_AddMetricsServerExtraHandler_Call
- func (_c *Manager_AddMetricsServerExtraHandler_Call) RunAndReturn(run func(path string, handler http.Handler) error) *Manager_AddMetricsServerExtraHandler_Call
- type Manager_AddReadyzCheck_Call
- func (_c *Manager_AddReadyzCheck_Call) Return(err error) *Manager_AddReadyzCheck_Call
- func (_c *Manager_AddReadyzCheck_Call) Run(run func(name string, check healthz.Checker)) *Manager_AddReadyzCheck_Call
- func (_c *Manager_AddReadyzCheck_Call) RunAndReturn(run func(name string, check healthz.Checker) error) *Manager_AddReadyzCheck_Call
- type Manager_Add_Call
- type Manager_ClusterFromContext_Call
- func (_c *Manager_ClusterFromContext_Call) Return(cluster1 cluster.Cluster, err error) *Manager_ClusterFromContext_Call
- func (_c *Manager_ClusterFromContext_Call) Run(run func(ctx context.Context)) *Manager_ClusterFromContext_Call
- func (_c *Manager_ClusterFromContext_Call) RunAndReturn(run func(ctx context.Context) (cluster.Cluster, error)) *Manager_ClusterFromContext_Call
- type Manager_Elected_Call
- type Manager_Engage_Call
- func (_c *Manager_Engage_Call) Return(err error) *Manager_Engage_Call
- func (_c *Manager_Engage_Call) Run(run func(context1 context.Context, s string, cluster1 cluster.Cluster)) *Manager_Engage_Call
- func (_c *Manager_Engage_Call) RunAndReturn(run func(context1 context.Context, s string, cluster1 cluster.Cluster) error) *Manager_Engage_Call
- type Manager_Expecter
- func (_e *Manager_Expecter) Add(runnable interface{}) *Manager_Add_Call
- func (_e *Manager_Expecter) AddHealthzCheck(name interface{}, check interface{}) *Manager_AddHealthzCheck_Call
- func (_e *Manager_Expecter) AddMetricsServerExtraHandler(path interface{}, handler interface{}) *Manager_AddMetricsServerExtraHandler_Call
- func (_e *Manager_Expecter) AddReadyzCheck(name interface{}, check interface{}) *Manager_AddReadyzCheck_Call
- func (_e *Manager_Expecter) ClusterFromContext(ctx interface{}) *Manager_ClusterFromContext_Call
- func (_e *Manager_Expecter) Elected() *Manager_Elected_Call
- func (_e *Manager_Expecter) Engage(context1 interface{}, s interface{}, cluster1 interface{}) *Manager_Engage_Call
- func (_e *Manager_Expecter) GetCluster(ctx interface{}, clusterName interface{}) *Manager_GetCluster_Call
- func (_e *Manager_Expecter) GetControllerOptions() *Manager_GetControllerOptions_Call
- func (_e *Manager_Expecter) GetFieldIndexer() *Manager_GetFieldIndexer_Call
- func (_e *Manager_Expecter) GetLocalManager() *Manager_GetLocalManager_Call
- func (_e *Manager_Expecter) GetLogger() *Manager_GetLogger_Call
- func (_e *Manager_Expecter) GetManager(ctx interface{}, clusterName interface{}) *Manager_GetManager_Call
- func (_e *Manager_Expecter) GetProvider() *Manager_GetProvider_Call
- func (_e *Manager_Expecter) GetWebhookServer() *Manager_GetWebhookServer_Call
- func (_e *Manager_Expecter) Start(ctx interface{}) *Manager_Start_Call
- type Manager_GetCluster_Call
- func (_c *Manager_GetCluster_Call) Return(cluster1 cluster.Cluster, err error) *Manager_GetCluster_Call
- func (_c *Manager_GetCluster_Call) Run(run func(ctx context.Context, clusterName string)) *Manager_GetCluster_Call
- func (_c *Manager_GetCluster_Call) RunAndReturn(run func(ctx context.Context, clusterName string) (cluster.Cluster, error)) *Manager_GetCluster_Call
- type Manager_GetControllerOptions_Call
- func (_c *Manager_GetControllerOptions_Call) Return(controller config.Controller) *Manager_GetControllerOptions_Call
- func (_c *Manager_GetControllerOptions_Call) Run(run func()) *Manager_GetControllerOptions_Call
- func (_c *Manager_GetControllerOptions_Call) RunAndReturn(run func() config.Controller) *Manager_GetControllerOptions_Call
- type Manager_GetFieldIndexer_Call
- func (_c *Manager_GetFieldIndexer_Call) Return(fieldIndexer client.FieldIndexer) *Manager_GetFieldIndexer_Call
- func (_c *Manager_GetFieldIndexer_Call) Run(run func()) *Manager_GetFieldIndexer_Call
- func (_c *Manager_GetFieldIndexer_Call) RunAndReturn(run func() client.FieldIndexer) *Manager_GetFieldIndexer_Call
- type Manager_GetLocalManager_Call
- func (_c *Manager_GetLocalManager_Call) Return(manager1 manager0.Manager) *Manager_GetLocalManager_Call
- func (_c *Manager_GetLocalManager_Call) Run(run func()) *Manager_GetLocalManager_Call
- func (_c *Manager_GetLocalManager_Call) RunAndReturn(run func() manager0.Manager) *Manager_GetLocalManager_Call
- type Manager_GetLogger_Call
- type Manager_GetManager_Call
- func (_c *Manager_GetManager_Call) Return(manager1 manager0.Manager, err error) *Manager_GetManager_Call
- func (_c *Manager_GetManager_Call) Run(run func(ctx context.Context, clusterName string)) *Manager_GetManager_Call
- func (_c *Manager_GetManager_Call) RunAndReturn(run func(ctx context.Context, clusterName string) (manager0.Manager, error)) *Manager_GetManager_Call
- type Manager_GetProvider_Call
- type Manager_GetWebhookServer_Call
- func (_c *Manager_GetWebhookServer_Call) Return(server webhook.Server) *Manager_GetWebhookServer_Call
- func (_c *Manager_GetWebhookServer_Call) Run(run func()) *Manager_GetWebhookServer_Call
- func (_c *Manager_GetWebhookServer_Call) RunAndReturn(run func() webhook.Server) *Manager_GetWebhookServer_Call
- type Manager_Start_Call
- type OpenFGAServiceClient
- func (_mock *OpenFGAServiceClient) BatchCheck(ctx context.Context, in *openfgav1.BatchCheckRequest, opts ...grpc.CallOption) (*openfgav1.BatchCheckResponse, error)
- func (_mock *OpenFGAServiceClient) Check(ctx context.Context, in *openfgav1.CheckRequest, opts ...grpc.CallOption) (*openfgav1.CheckResponse, error)
- func (_mock *OpenFGAServiceClient) CreateStore(ctx context.Context, in *openfgav1.CreateStoreRequest, opts ...grpc.CallOption) (*openfgav1.CreateStoreResponse, error)
- func (_mock *OpenFGAServiceClient) DeleteStore(ctx context.Context, in *openfgav1.DeleteStoreRequest, opts ...grpc.CallOption) (*openfgav1.DeleteStoreResponse, error)
- func (_m *OpenFGAServiceClient) EXPECT() *OpenFGAServiceClient_Expecter
- func (_mock *OpenFGAServiceClient) Expand(ctx context.Context, in *openfgav1.ExpandRequest, opts ...grpc.CallOption) (*openfgav1.ExpandResponse, error)
- func (_mock *OpenFGAServiceClient) GetStore(ctx context.Context, in *openfgav1.GetStoreRequest, opts ...grpc.CallOption) (*openfgav1.GetStoreResponse, error)
- func (_mock *OpenFGAServiceClient) ListObjects(ctx context.Context, in *openfgav1.ListObjectsRequest, opts ...grpc.CallOption) (*openfgav1.ListObjectsResponse, error)
- func (_mock *OpenFGAServiceClient) ListStores(ctx context.Context, in *openfgav1.ListStoresRequest, opts ...grpc.CallOption) (*openfgav1.ListStoresResponse, error)
- func (_mock *OpenFGAServiceClient) ListUsers(ctx context.Context, in *openfgav1.ListUsersRequest, opts ...grpc.CallOption) (*openfgav1.ListUsersResponse, error)
- func (_mock *OpenFGAServiceClient) Read(ctx context.Context, in *openfgav1.ReadRequest, opts ...grpc.CallOption) (*openfgav1.ReadResponse, error)
- func (_mock *OpenFGAServiceClient) ReadAssertions(ctx context.Context, in *openfgav1.ReadAssertionsRequest, ...) (*openfgav1.ReadAssertionsResponse, error)
- func (_mock *OpenFGAServiceClient) ReadAuthorizationModel(ctx context.Context, in *openfgav1.ReadAuthorizationModelRequest, ...) (*openfgav1.ReadAuthorizationModelResponse, error)
- func (_mock *OpenFGAServiceClient) ReadAuthorizationModels(ctx context.Context, in *openfgav1.ReadAuthorizationModelsRequest, ...) (*openfgav1.ReadAuthorizationModelsResponse, error)
- func (_mock *OpenFGAServiceClient) ReadChanges(ctx context.Context, in *openfgav1.ReadChangesRequest, opts ...grpc.CallOption) (*openfgav1.ReadChangesResponse, error)
- func (_mock *OpenFGAServiceClient) StreamedListObjects(ctx context.Context, in *openfgav1.StreamedListObjectsRequest, ...) (openfgav1.OpenFGAService_StreamedListObjectsClient, error)
- func (_mock *OpenFGAServiceClient) UpdateStore(ctx context.Context, in *openfgav1.UpdateStoreRequest, opts ...grpc.CallOption) (*openfgav1.UpdateStoreResponse, error)
- func (_mock *OpenFGAServiceClient) Write(ctx context.Context, in *openfgav1.WriteRequest, opts ...grpc.CallOption) (*openfgav1.WriteResponse, error)
- func (_mock *OpenFGAServiceClient) WriteAssertions(ctx context.Context, in *openfgav1.WriteAssertionsRequest, ...) (*openfgav1.WriteAssertionsResponse, error)
- func (_mock *OpenFGAServiceClient) WriteAuthorizationModel(ctx context.Context, in *openfgav1.WriteAuthorizationModelRequest, ...) (*openfgav1.WriteAuthorizationModelResponse, error)
- type OpenFGAServiceClient_BatchCheck_Call
- func (_c *OpenFGAServiceClient_BatchCheck_Call) Return(batchCheckResponse *openfgav1.BatchCheckResponse, err error) *OpenFGAServiceClient_BatchCheck_Call
- func (_c *OpenFGAServiceClient_BatchCheck_Call) Run(...) *OpenFGAServiceClient_BatchCheck_Call
- func (_c *OpenFGAServiceClient_BatchCheck_Call) RunAndReturn(...) *OpenFGAServiceClient_BatchCheck_Call
- type OpenFGAServiceClient_Check_Call
- func (_c *OpenFGAServiceClient_Check_Call) Return(checkResponse *openfgav1.CheckResponse, err error) *OpenFGAServiceClient_Check_Call
- func (_c *OpenFGAServiceClient_Check_Call) Run(...) *OpenFGAServiceClient_Check_Call
- func (_c *OpenFGAServiceClient_Check_Call) RunAndReturn(...) *OpenFGAServiceClient_Check_Call
- type OpenFGAServiceClient_CreateStore_Call
- func (_c *OpenFGAServiceClient_CreateStore_Call) Return(createStoreResponse *openfgav1.CreateStoreResponse, err error) *OpenFGAServiceClient_CreateStore_Call
- func (_c *OpenFGAServiceClient_CreateStore_Call) Run(...) *OpenFGAServiceClient_CreateStore_Call
- func (_c *OpenFGAServiceClient_CreateStore_Call) RunAndReturn(...) *OpenFGAServiceClient_CreateStore_Call
- type OpenFGAServiceClient_DeleteStore_Call
- func (_c *OpenFGAServiceClient_DeleteStore_Call) Return(deleteStoreResponse *openfgav1.DeleteStoreResponse, err error) *OpenFGAServiceClient_DeleteStore_Call
- func (_c *OpenFGAServiceClient_DeleteStore_Call) Run(...) *OpenFGAServiceClient_DeleteStore_Call
- func (_c *OpenFGAServiceClient_DeleteStore_Call) RunAndReturn(...) *OpenFGAServiceClient_DeleteStore_Call
- type OpenFGAServiceClient_Expand_Call
- func (_c *OpenFGAServiceClient_Expand_Call) Return(expandResponse *openfgav1.ExpandResponse, err error) *OpenFGAServiceClient_Expand_Call
- func (_c *OpenFGAServiceClient_Expand_Call) Run(...) *OpenFGAServiceClient_Expand_Call
- func (_c *OpenFGAServiceClient_Expand_Call) RunAndReturn(...) *OpenFGAServiceClient_Expand_Call
- type OpenFGAServiceClient_Expecter
- func (_e *OpenFGAServiceClient_Expecter) BatchCheck(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_BatchCheck_Call
- func (_e *OpenFGAServiceClient_Expecter) Check(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Check_Call
- func (_e *OpenFGAServiceClient_Expecter) CreateStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_CreateStore_Call
- func (_e *OpenFGAServiceClient_Expecter) DeleteStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_DeleteStore_Call
- func (_e *OpenFGAServiceClient_Expecter) Expand(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Expand_Call
- func (_e *OpenFGAServiceClient_Expecter) GetStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_GetStore_Call
- func (_e *OpenFGAServiceClient_Expecter) ListObjects(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ListObjects_Call
- func (_e *OpenFGAServiceClient_Expecter) ListStores(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ListStores_Call
- func (_e *OpenFGAServiceClient_Expecter) ListUsers(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ListUsers_Call
- func (_e *OpenFGAServiceClient_Expecter) Read(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Read_Call
- func (_e *OpenFGAServiceClient_Expecter) ReadAssertions(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadAssertions_Call
- func (_e *OpenFGAServiceClient_Expecter) ReadAuthorizationModel(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadAuthorizationModel_Call
- func (_e *OpenFGAServiceClient_Expecter) ReadAuthorizationModels(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadAuthorizationModels_Call
- func (_e *OpenFGAServiceClient_Expecter) ReadChanges(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadChanges_Call
- func (_e *OpenFGAServiceClient_Expecter) StreamedListObjects(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_StreamedListObjects_Call
- func (_e *OpenFGAServiceClient_Expecter) UpdateStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_UpdateStore_Call
- func (_e *OpenFGAServiceClient_Expecter) Write(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Write_Call
- func (_e *OpenFGAServiceClient_Expecter) WriteAssertions(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_WriteAssertions_Call
- func (_e *OpenFGAServiceClient_Expecter) WriteAuthorizationModel(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_WriteAuthorizationModel_Call
- type OpenFGAServiceClient_GetStore_Call
- func (_c *OpenFGAServiceClient_GetStore_Call) Return(getStoreResponse *openfgav1.GetStoreResponse, err error) *OpenFGAServiceClient_GetStore_Call
- func (_c *OpenFGAServiceClient_GetStore_Call) Run(...) *OpenFGAServiceClient_GetStore_Call
- func (_c *OpenFGAServiceClient_GetStore_Call) RunAndReturn(...) *OpenFGAServiceClient_GetStore_Call
- type OpenFGAServiceClient_ListObjects_Call
- func (_c *OpenFGAServiceClient_ListObjects_Call) Return(listObjectsResponse *openfgav1.ListObjectsResponse, err error) *OpenFGAServiceClient_ListObjects_Call
- func (_c *OpenFGAServiceClient_ListObjects_Call) Run(...) *OpenFGAServiceClient_ListObjects_Call
- func (_c *OpenFGAServiceClient_ListObjects_Call) RunAndReturn(...) *OpenFGAServiceClient_ListObjects_Call
- type OpenFGAServiceClient_ListStores_Call
- func (_c *OpenFGAServiceClient_ListStores_Call) Return(listStoresResponse *openfgav1.ListStoresResponse, err error) *OpenFGAServiceClient_ListStores_Call
- func (_c *OpenFGAServiceClient_ListStores_Call) Run(...) *OpenFGAServiceClient_ListStores_Call
- func (_c *OpenFGAServiceClient_ListStores_Call) RunAndReturn(...) *OpenFGAServiceClient_ListStores_Call
- type OpenFGAServiceClient_ListUsers_Call
- func (_c *OpenFGAServiceClient_ListUsers_Call) Return(listUsersResponse *openfgav1.ListUsersResponse, err error) *OpenFGAServiceClient_ListUsers_Call
- func (_c *OpenFGAServiceClient_ListUsers_Call) Run(...) *OpenFGAServiceClient_ListUsers_Call
- func (_c *OpenFGAServiceClient_ListUsers_Call) RunAndReturn(...) *OpenFGAServiceClient_ListUsers_Call
- type OpenFGAServiceClient_ReadAssertions_Call
- func (_c *OpenFGAServiceClient_ReadAssertions_Call) Return(readAssertionsResponse *openfgav1.ReadAssertionsResponse, err error) *OpenFGAServiceClient_ReadAssertions_Call
- func (_c *OpenFGAServiceClient_ReadAssertions_Call) Run(run func(ctx context.Context, in *openfgav1.ReadAssertionsRequest, ...)) *OpenFGAServiceClient_ReadAssertions_Call
- func (_c *OpenFGAServiceClient_ReadAssertions_Call) RunAndReturn(...) *OpenFGAServiceClient_ReadAssertions_Call
- type OpenFGAServiceClient_ReadAuthorizationModel_Call
- func (_c *OpenFGAServiceClient_ReadAuthorizationModel_Call) Return(readAuthorizationModelResponse *openfgav1.ReadAuthorizationModelResponse, ...) *OpenFGAServiceClient_ReadAuthorizationModel_Call
- func (_c *OpenFGAServiceClient_ReadAuthorizationModel_Call) Run(...) *OpenFGAServiceClient_ReadAuthorizationModel_Call
- func (_c *OpenFGAServiceClient_ReadAuthorizationModel_Call) RunAndReturn(...) *OpenFGAServiceClient_ReadAuthorizationModel_Call
- type OpenFGAServiceClient_ReadAuthorizationModels_Call
- func (_c *OpenFGAServiceClient_ReadAuthorizationModels_Call) Return(readAuthorizationModelsResponse *openfgav1.ReadAuthorizationModelsResponse, ...) *OpenFGAServiceClient_ReadAuthorizationModels_Call
- func (_c *OpenFGAServiceClient_ReadAuthorizationModels_Call) Run(...) *OpenFGAServiceClient_ReadAuthorizationModels_Call
- func (_c *OpenFGAServiceClient_ReadAuthorizationModels_Call) RunAndReturn(...) *OpenFGAServiceClient_ReadAuthorizationModels_Call
- type OpenFGAServiceClient_ReadChanges_Call
- func (_c *OpenFGAServiceClient_ReadChanges_Call) Return(readChangesResponse *openfgav1.ReadChangesResponse, err error) *OpenFGAServiceClient_ReadChanges_Call
- func (_c *OpenFGAServiceClient_ReadChanges_Call) Run(...) *OpenFGAServiceClient_ReadChanges_Call
- func (_c *OpenFGAServiceClient_ReadChanges_Call) RunAndReturn(...) *OpenFGAServiceClient_ReadChanges_Call
- type OpenFGAServiceClient_Read_Call
- func (_c *OpenFGAServiceClient_Read_Call) Return(readResponse *openfgav1.ReadResponse, err error) *OpenFGAServiceClient_Read_Call
- func (_c *OpenFGAServiceClient_Read_Call) Run(...) *OpenFGAServiceClient_Read_Call
- func (_c *OpenFGAServiceClient_Read_Call) RunAndReturn(...) *OpenFGAServiceClient_Read_Call
- type OpenFGAServiceClient_StreamedListObjects_Call
- func (_c *OpenFGAServiceClient_StreamedListObjects_Call) Return(...) *OpenFGAServiceClient_StreamedListObjects_Call
- func (_c *OpenFGAServiceClient_StreamedListObjects_Call) Run(run func(ctx context.Context, in *openfgav1.StreamedListObjectsRequest, ...)) *OpenFGAServiceClient_StreamedListObjects_Call
- func (_c *OpenFGAServiceClient_StreamedListObjects_Call) RunAndReturn(...) *OpenFGAServiceClient_StreamedListObjects_Call
- type OpenFGAServiceClient_UpdateStore_Call
- func (_c *OpenFGAServiceClient_UpdateStore_Call) Return(updateStoreResponse *openfgav1.UpdateStoreResponse, err error) *OpenFGAServiceClient_UpdateStore_Call
- func (_c *OpenFGAServiceClient_UpdateStore_Call) Run(...) *OpenFGAServiceClient_UpdateStore_Call
- func (_c *OpenFGAServiceClient_UpdateStore_Call) RunAndReturn(...) *OpenFGAServiceClient_UpdateStore_Call
- type OpenFGAServiceClient_WriteAssertions_Call
- func (_c *OpenFGAServiceClient_WriteAssertions_Call) Return(writeAssertionsResponse *openfgav1.WriteAssertionsResponse, err error) *OpenFGAServiceClient_WriteAssertions_Call
- func (_c *OpenFGAServiceClient_WriteAssertions_Call) Run(run func(ctx context.Context, in *openfgav1.WriteAssertionsRequest, ...)) *OpenFGAServiceClient_WriteAssertions_Call
- func (_c *OpenFGAServiceClient_WriteAssertions_Call) RunAndReturn(...) *OpenFGAServiceClient_WriteAssertions_Call
- type OpenFGAServiceClient_WriteAuthorizationModel_Call
- func (_c *OpenFGAServiceClient_WriteAuthorizationModel_Call) Return(writeAuthorizationModelResponse *openfgav1.WriteAuthorizationModelResponse, ...) *OpenFGAServiceClient_WriteAuthorizationModel_Call
- func (_c *OpenFGAServiceClient_WriteAuthorizationModel_Call) Run(...) *OpenFGAServiceClient_WriteAuthorizationModel_Call
- func (_c *OpenFGAServiceClient_WriteAuthorizationModel_Call) RunAndReturn(...) *OpenFGAServiceClient_WriteAuthorizationModel_Call
- type OpenFGAServiceClient_Write_Call
- func (_c *OpenFGAServiceClient_Write_Call) Return(writeResponse *openfgav1.WriteResponse, err error) *OpenFGAServiceClient_Write_Call
- func (_c *OpenFGAServiceClient_Write_Call) Run(...) *OpenFGAServiceClient_Write_Call
- func (_c *OpenFGAServiceClient_Write_Call) RunAndReturn(...) *OpenFGAServiceClient_Write_Call
- type StatusClient
- type StatusClient_Expecter
- type StatusClient_Status_Call
- func (_c *StatusClient_Status_Call) Return(subResourceWriter client.SubResourceWriter) *StatusClient_Status_Call
- func (_c *StatusClient_Status_Call) Run(run func()) *StatusClient_Status_Call
- func (_c *StatusClient_Status_Call) RunAndReturn(run func() client.SubResourceWriter) *StatusClient_Status_Call
- type SubResourceClient
- func (_mock *SubResourceClient) Create(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (_m *SubResourceClient) EXPECT() *SubResourceClient_Expecter
- func (_mock *SubResourceClient) Get(ctx context.Context, obj client.Object, subResource client.Object, ...) error
- func (_mock *SubResourceClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (_mock *SubResourceClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
- type SubResourceClientConstructor
- type SubResourceClientConstructor_Expecter
- type SubResourceClientConstructor_SubResource_Call
- func (_c *SubResourceClientConstructor_SubResource_Call) Return(subResourceClient client.SubResourceClient) *SubResourceClientConstructor_SubResource_Call
- func (_c *SubResourceClientConstructor_SubResource_Call) Run(run func(subResource string)) *SubResourceClientConstructor_SubResource_Call
- func (_c *SubResourceClientConstructor_SubResource_Call) RunAndReturn(run func(subResource string) client.SubResourceClient) *SubResourceClientConstructor_SubResource_Call
- type SubResourceClient_Create_Call
- type SubResourceClient_Expecter
- func (_e *SubResourceClient_Expecter) Create(ctx interface{}, obj interface{}, subResource interface{}, opts ...interface{}) *SubResourceClient_Create_Call
- func (_e *SubResourceClient_Expecter) Get(ctx interface{}, obj interface{}, subResource interface{}, opts ...interface{}) *SubResourceClient_Get_Call
- func (_e *SubResourceClient_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *SubResourceClient_Patch_Call
- func (_e *SubResourceClient_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *SubResourceClient_Update_Call
- type SubResourceClient_Get_Call
- type SubResourceClient_Patch_Call
- func (_c *SubResourceClient_Patch_Call) Return(err error) *SubResourceClient_Patch_Call
- func (_c *SubResourceClient_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, ...)) *SubResourceClient_Patch_Call
- func (_c *SubResourceClient_Patch_Call) RunAndReturn(...) *SubResourceClient_Patch_Call
- type SubResourceClient_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Client) Apply ¶ added in v0.5.1
func (_mock *Client) Apply(ctx context.Context, obj runtime.ApplyConfiguration, opts ...client.ApplyOption) error
Apply provides a mock function for the type Client
func (*Client) Create ¶
func (_mock *Client) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
Create provides a mock function for the type Client
func (*Client) Delete ¶
func (_mock *Client) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
Delete provides a mock function for the type Client
func (*Client) DeleteAllOf ¶
func (_mock *Client) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
DeleteAllOf provides a mock function for the type Client
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) Get ¶
func (_mock *Client) Get(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption) error
Get provides a mock function for the type Client
func (*Client) GroupVersionKindFor ¶
GroupVersionKindFor provides a mock function for the type Client
func (*Client) IsObjectNamespaced ¶
IsObjectNamespaced provides a mock function for the type Client
func (*Client) List ¶
func (_mock *Client) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
List provides a mock function for the type Client
func (*Client) Patch ¶
func (_mock *Client) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
Patch provides a mock function for the type Client
func (*Client) RESTMapper ¶
func (_mock *Client) RESTMapper() meta.RESTMapper
RESTMapper provides a mock function for the type Client
func (*Client) Status ¶
func (_mock *Client) Status() client.SubResourceWriter
Status provides a mock function for the type Client
func (*Client) SubResource ¶
func (_mock *Client) SubResource(subResource string) client.SubResourceClient
SubResource provides a mock function for the type Client
type Client_Apply_Call ¶ added in v0.5.1
Client_Apply_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Apply'
func (*Client_Apply_Call) Return ¶ added in v0.5.1
func (_c *Client_Apply_Call) Return(err error) *Client_Apply_Call
func (*Client_Apply_Call) Run ¶ added in v0.5.1
func (_c *Client_Apply_Call) Run(run func(ctx context.Context, obj runtime.ApplyConfiguration, opts ...client.ApplyOption)) *Client_Apply_Call
func (*Client_Apply_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Client_Apply_Call) RunAndReturn(run func(ctx context.Context, obj runtime.ApplyConfiguration, opts ...client.ApplyOption) error) *Client_Apply_Call
type Client_Create_Call ¶
Client_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*Client_Create_Call) Return ¶
func (_c *Client_Create_Call) Return(err error) *Client_Create_Call
func (*Client_Create_Call) Run ¶
func (_c *Client_Create_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption)) *Client_Create_Call
func (*Client_Create_Call) RunAndReturn ¶
func (_c *Client_Create_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, opts ...client.CreateOption) error) *Client_Create_Call
type Client_DeleteAllOf_Call ¶
Client_DeleteAllOf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAllOf'
func (*Client_DeleteAllOf_Call) Return ¶
func (_c *Client_DeleteAllOf_Call) Return(err error) *Client_DeleteAllOf_Call
func (*Client_DeleteAllOf_Call) Run ¶
func (_c *Client_DeleteAllOf_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption)) *Client_DeleteAllOf_Call
func (*Client_DeleteAllOf_Call) RunAndReturn ¶
func (_c *Client_DeleteAllOf_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error) *Client_DeleteAllOf_Call
type Client_Delete_Call ¶
Client_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*Client_Delete_Call) Return ¶
func (_c *Client_Delete_Call) Return(err error) *Client_Delete_Call
func (*Client_Delete_Call) Run ¶
func (_c *Client_Delete_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption)) *Client_Delete_Call
func (*Client_Delete_Call) RunAndReturn ¶
func (_c *Client_Delete_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error) *Client_Delete_Call
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) Apply ¶ added in v0.5.1
func (_e *Client_Expecter) Apply(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Apply_Call
Apply is a helper method to define mock.On call
- ctx context.Context
- obj runtime.ApplyConfiguration
- opts ...client.ApplyOption
func (*Client_Expecter) Create ¶
func (_e *Client_Expecter) Create(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.CreateOption
func (*Client_Expecter) Delete ¶
func (_e *Client_Expecter) Delete(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.DeleteOption
func (*Client_Expecter) DeleteAllOf ¶
func (_e *Client_Expecter) DeleteAllOf(ctx interface{}, obj interface{}, opts ...interface{}) *Client_DeleteAllOf_Call
DeleteAllOf is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.DeleteAllOfOption
func (*Client_Expecter) Get ¶
func (_e *Client_Expecter) Get(ctx interface{}, key interface{}, obj interface{}, opts ...interface{}) *Client_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- key client.ObjectKey
- obj client.Object
- opts ...client.GetOption
func (*Client_Expecter) GroupVersionKindFor ¶
func (_e *Client_Expecter) GroupVersionKindFor(obj interface{}) *Client_GroupVersionKindFor_Call
GroupVersionKindFor is a helper method to define mock.On call
- obj runtime.Object
func (*Client_Expecter) IsObjectNamespaced ¶
func (_e *Client_Expecter) IsObjectNamespaced(obj interface{}) *Client_IsObjectNamespaced_Call
IsObjectNamespaced is a helper method to define mock.On call
- obj runtime.Object
func (*Client_Expecter) List ¶
func (_e *Client_Expecter) List(ctx interface{}, list interface{}, opts ...interface{}) *Client_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- list client.ObjectList
- opts ...client.ListOption
func (*Client_Expecter) Patch ¶
func (_e *Client_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *Client_Patch_Call
Patch is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- patch client.Patch
- opts ...client.PatchOption
func (*Client_Expecter) RESTMapper ¶
func (_e *Client_Expecter) RESTMapper() *Client_RESTMapper_Call
RESTMapper is a helper method to define mock.On call
func (*Client_Expecter) Scheme ¶
func (_e *Client_Expecter) Scheme() *Client_Scheme_Call
Scheme is a helper method to define mock.On call
func (*Client_Expecter) Status ¶
func (_e *Client_Expecter) Status() *Client_Status_Call
Status is a helper method to define mock.On call
func (*Client_Expecter) SubResource ¶
func (_e *Client_Expecter) SubResource(subResource interface{}) *Client_SubResource_Call
SubResource is a helper method to define mock.On call
- subResource string
func (*Client_Expecter) Update ¶
func (_e *Client_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *Client_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.UpdateOption
type Client_Get_Call ¶
Client_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Client_Get_Call) Return ¶
func (_c *Client_Get_Call) Return(err error) *Client_Get_Call
func (*Client_Get_Call) Run ¶
func (_c *Client_Get_Call) Run(run func(ctx context.Context, key client.ObjectKey, obj client.Object, opts ...client.GetOption)) *Client_Get_Call
func (*Client_Get_Call) RunAndReturn ¶
type Client_GroupVersionKindFor_Call ¶
Client_GroupVersionKindFor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GroupVersionKindFor'
func (*Client_GroupVersionKindFor_Call) Return ¶
func (_c *Client_GroupVersionKindFor_Call) Return(groupVersionKind schema.GroupVersionKind, err error) *Client_GroupVersionKindFor_Call
func (*Client_GroupVersionKindFor_Call) Run ¶
func (_c *Client_GroupVersionKindFor_Call) Run(run func(obj runtime.Object)) *Client_GroupVersionKindFor_Call
func (*Client_GroupVersionKindFor_Call) RunAndReturn ¶
func (_c *Client_GroupVersionKindFor_Call) RunAndReturn(run func(obj runtime.Object) (schema.GroupVersionKind, error)) *Client_GroupVersionKindFor_Call
type Client_IsObjectNamespaced_Call ¶
Client_IsObjectNamespaced_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsObjectNamespaced'
func (*Client_IsObjectNamespaced_Call) Return ¶
func (_c *Client_IsObjectNamespaced_Call) Return(b bool, err error) *Client_IsObjectNamespaced_Call
func (*Client_IsObjectNamespaced_Call) Run ¶
func (_c *Client_IsObjectNamespaced_Call) Run(run func(obj runtime.Object)) *Client_IsObjectNamespaced_Call
func (*Client_IsObjectNamespaced_Call) RunAndReturn ¶
func (_c *Client_IsObjectNamespaced_Call) RunAndReturn(run func(obj runtime.Object) (bool, error)) *Client_IsObjectNamespaced_Call
type Client_List_Call ¶
Client_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Client_List_Call) Return ¶
func (_c *Client_List_Call) Return(err error) *Client_List_Call
func (*Client_List_Call) Run ¶
func (_c *Client_List_Call) Run(run func(ctx context.Context, list client.ObjectList, opts ...client.ListOption)) *Client_List_Call
func (*Client_List_Call) RunAndReturn ¶
func (_c *Client_List_Call) RunAndReturn(run func(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error) *Client_List_Call
type Client_Patch_Call ¶
Client_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*Client_Patch_Call) Return ¶
func (_c *Client_Patch_Call) Return(err error) *Client_Patch_Call
func (*Client_Patch_Call) Run ¶
func (_c *Client_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption)) *Client_Patch_Call
func (*Client_Patch_Call) RunAndReturn ¶
func (_c *Client_Patch_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error) *Client_Patch_Call
type Client_RESTMapper_Call ¶
Client_RESTMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RESTMapper'
func (*Client_RESTMapper_Call) Return ¶
func (_c *Client_RESTMapper_Call) Return(rESTMapper meta.RESTMapper) *Client_RESTMapper_Call
func (*Client_RESTMapper_Call) Run ¶
func (_c *Client_RESTMapper_Call) Run(run func()) *Client_RESTMapper_Call
func (*Client_RESTMapper_Call) RunAndReturn ¶
func (_c *Client_RESTMapper_Call) RunAndReturn(run func() meta.RESTMapper) *Client_RESTMapper_Call
type Client_Scheme_Call ¶
Client_Scheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Scheme'
func (*Client_Scheme_Call) Return ¶
func (_c *Client_Scheme_Call) Return(scheme *runtime.Scheme) *Client_Scheme_Call
func (*Client_Scheme_Call) Run ¶
func (_c *Client_Scheme_Call) Run(run func()) *Client_Scheme_Call
func (*Client_Scheme_Call) RunAndReturn ¶
func (_c *Client_Scheme_Call) RunAndReturn(run func() *runtime.Scheme) *Client_Scheme_Call
type Client_Status_Call ¶
Client_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*Client_Status_Call) Return ¶
func (_c *Client_Status_Call) Return(subResourceWriter client.SubResourceWriter) *Client_Status_Call
func (*Client_Status_Call) Run ¶
func (_c *Client_Status_Call) Run(run func()) *Client_Status_Call
func (*Client_Status_Call) RunAndReturn ¶
func (_c *Client_Status_Call) RunAndReturn(run func() client.SubResourceWriter) *Client_Status_Call
type Client_SubResource_Call ¶
Client_SubResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubResource'
func (*Client_SubResource_Call) Return ¶
func (_c *Client_SubResource_Call) Return(subResourceClient client.SubResourceClient) *Client_SubResource_Call
func (*Client_SubResource_Call) Run ¶
func (_c *Client_SubResource_Call) Run(run func(subResource string)) *Client_SubResource_Call
func (*Client_SubResource_Call) RunAndReturn ¶
func (_c *Client_SubResource_Call) RunAndReturn(run func(subResource string) client.SubResourceClient) *Client_SubResource_Call
type Client_Update_Call ¶
Client_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*Client_Update_Call) Return ¶
func (_c *Client_Update_Call) Return(err error) *Client_Update_Call
func (*Client_Update_Call) Run ¶
func (_c *Client_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption)) *Client_Update_Call
func (*Client_Update_Call) RunAndReturn ¶
func (_c *Client_Update_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error) *Client_Update_Call
type Cluster ¶ added in v0.5.1
Cluster is an autogenerated mock type for the Cluster type
func NewCluster ¶ added in v0.5.1
NewCluster creates a new instance of Cluster. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Cluster) EXPECT ¶ added in v0.5.1
func (_m *Cluster) EXPECT() *Cluster_Expecter
func (*Cluster) GetAPIReader ¶ added in v0.5.1
GetAPIReader provides a mock function for the type Cluster
func (*Cluster) GetEventRecorderFor ¶ added in v0.5.1
func (_mock *Cluster) GetEventRecorderFor(name string) record.EventRecorder
GetEventRecorderFor provides a mock function for the type Cluster
func (*Cluster) GetFieldIndexer ¶ added in v0.5.1
func (_mock *Cluster) GetFieldIndexer() client.FieldIndexer
GetFieldIndexer provides a mock function for the type Cluster
func (*Cluster) GetHTTPClient ¶ added in v0.5.1
GetHTTPClient provides a mock function for the type Cluster
func (*Cluster) GetRESTMapper ¶ added in v0.5.1
func (_mock *Cluster) GetRESTMapper() meta.RESTMapper
GetRESTMapper provides a mock function for the type Cluster
type Cluster_Expecter ¶ added in v0.5.1
type Cluster_Expecter struct {
// contains filtered or unexported fields
}
func (*Cluster_Expecter) GetAPIReader ¶ added in v0.5.1
func (_e *Cluster_Expecter) GetAPIReader() *Cluster_GetAPIReader_Call
GetAPIReader is a helper method to define mock.On call
func (*Cluster_Expecter) GetCache ¶ added in v0.5.1
func (_e *Cluster_Expecter) GetCache() *Cluster_GetCache_Call
GetCache is a helper method to define mock.On call
func (*Cluster_Expecter) GetClient ¶ added in v0.5.1
func (_e *Cluster_Expecter) GetClient() *Cluster_GetClient_Call
GetClient is a helper method to define mock.On call
func (*Cluster_Expecter) GetConfig ¶ added in v0.5.1
func (_e *Cluster_Expecter) GetConfig() *Cluster_GetConfig_Call
GetConfig is a helper method to define mock.On call
func (*Cluster_Expecter) GetEventRecorderFor ¶ added in v0.5.1
func (_e *Cluster_Expecter) GetEventRecorderFor(name interface{}) *Cluster_GetEventRecorderFor_Call
GetEventRecorderFor is a helper method to define mock.On call
- name string
func (*Cluster_Expecter) GetFieldIndexer ¶ added in v0.5.1
func (_e *Cluster_Expecter) GetFieldIndexer() *Cluster_GetFieldIndexer_Call
GetFieldIndexer is a helper method to define mock.On call
func (*Cluster_Expecter) GetHTTPClient ¶ added in v0.5.1
func (_e *Cluster_Expecter) GetHTTPClient() *Cluster_GetHTTPClient_Call
GetHTTPClient is a helper method to define mock.On call
func (*Cluster_Expecter) GetRESTMapper ¶ added in v0.5.1
func (_e *Cluster_Expecter) GetRESTMapper() *Cluster_GetRESTMapper_Call
GetRESTMapper is a helper method to define mock.On call
func (*Cluster_Expecter) GetScheme ¶ added in v0.5.1
func (_e *Cluster_Expecter) GetScheme() *Cluster_GetScheme_Call
GetScheme is a helper method to define mock.On call
func (*Cluster_Expecter) Start ¶ added in v0.5.1
func (_e *Cluster_Expecter) Start(ctx interface{}) *Cluster_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
type Cluster_GetAPIReader_Call ¶ added in v0.5.1
Cluster_GetAPIReader_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAPIReader'
func (*Cluster_GetAPIReader_Call) Return ¶ added in v0.5.1
func (_c *Cluster_GetAPIReader_Call) Return(reader client.Reader) *Cluster_GetAPIReader_Call
func (*Cluster_GetAPIReader_Call) Run ¶ added in v0.5.1
func (_c *Cluster_GetAPIReader_Call) Run(run func()) *Cluster_GetAPIReader_Call
func (*Cluster_GetAPIReader_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Cluster_GetAPIReader_Call) RunAndReturn(run func() client.Reader) *Cluster_GetAPIReader_Call
type Cluster_GetCache_Call ¶ added in v0.5.1
Cluster_GetCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCache'
func (*Cluster_GetCache_Call) Return ¶ added in v0.5.1
func (_c *Cluster_GetCache_Call) Return(cache1 cache.Cache) *Cluster_GetCache_Call
func (*Cluster_GetCache_Call) Run ¶ added in v0.5.1
func (_c *Cluster_GetCache_Call) Run(run func()) *Cluster_GetCache_Call
func (*Cluster_GetCache_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Cluster_GetCache_Call) RunAndReturn(run func() cache.Cache) *Cluster_GetCache_Call
type Cluster_GetClient_Call ¶ added in v0.5.1
Cluster_GetClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetClient'
func (*Cluster_GetClient_Call) Return ¶ added in v0.5.1
func (_c *Cluster_GetClient_Call) Return(client1 client.Client) *Cluster_GetClient_Call
func (*Cluster_GetClient_Call) Run ¶ added in v0.5.1
func (_c *Cluster_GetClient_Call) Run(run func()) *Cluster_GetClient_Call
func (*Cluster_GetClient_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Cluster_GetClient_Call) RunAndReturn(run func() client.Client) *Cluster_GetClient_Call
type Cluster_GetConfig_Call ¶ added in v0.5.1
Cluster_GetConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetConfig'
func (*Cluster_GetConfig_Call) Return ¶ added in v0.5.1
func (_c *Cluster_GetConfig_Call) Return(config *rest.Config) *Cluster_GetConfig_Call
func (*Cluster_GetConfig_Call) Run ¶ added in v0.5.1
func (_c *Cluster_GetConfig_Call) Run(run func()) *Cluster_GetConfig_Call
func (*Cluster_GetConfig_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Cluster_GetConfig_Call) RunAndReturn(run func() *rest.Config) *Cluster_GetConfig_Call
type Cluster_GetEventRecorderFor_Call ¶ added in v0.5.1
Cluster_GetEventRecorderFor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEventRecorderFor'
func (*Cluster_GetEventRecorderFor_Call) Return ¶ added in v0.5.1
func (_c *Cluster_GetEventRecorderFor_Call) Return(eventRecorder record.EventRecorder) *Cluster_GetEventRecorderFor_Call
func (*Cluster_GetEventRecorderFor_Call) Run ¶ added in v0.5.1
func (_c *Cluster_GetEventRecorderFor_Call) Run(run func(name string)) *Cluster_GetEventRecorderFor_Call
func (*Cluster_GetEventRecorderFor_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Cluster_GetEventRecorderFor_Call) RunAndReturn(run func(name string) record.EventRecorder) *Cluster_GetEventRecorderFor_Call
type Cluster_GetFieldIndexer_Call ¶ added in v0.5.1
Cluster_GetFieldIndexer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFieldIndexer'
func (*Cluster_GetFieldIndexer_Call) Return ¶ added in v0.5.1
func (_c *Cluster_GetFieldIndexer_Call) Return(fieldIndexer client.FieldIndexer) *Cluster_GetFieldIndexer_Call
func (*Cluster_GetFieldIndexer_Call) Run ¶ added in v0.5.1
func (_c *Cluster_GetFieldIndexer_Call) Run(run func()) *Cluster_GetFieldIndexer_Call
func (*Cluster_GetFieldIndexer_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Cluster_GetFieldIndexer_Call) RunAndReturn(run func() client.FieldIndexer) *Cluster_GetFieldIndexer_Call
type Cluster_GetHTTPClient_Call ¶ added in v0.5.1
Cluster_GetHTTPClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHTTPClient'
func (*Cluster_GetHTTPClient_Call) Return ¶ added in v0.5.1
func (_c *Cluster_GetHTTPClient_Call) Return(client1 *http.Client) *Cluster_GetHTTPClient_Call
func (*Cluster_GetHTTPClient_Call) Run ¶ added in v0.5.1
func (_c *Cluster_GetHTTPClient_Call) Run(run func()) *Cluster_GetHTTPClient_Call
func (*Cluster_GetHTTPClient_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Cluster_GetHTTPClient_Call) RunAndReturn(run func() *http.Client) *Cluster_GetHTTPClient_Call
type Cluster_GetRESTMapper_Call ¶ added in v0.5.1
Cluster_GetRESTMapper_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRESTMapper'
func (*Cluster_GetRESTMapper_Call) Return ¶ added in v0.5.1
func (_c *Cluster_GetRESTMapper_Call) Return(rESTMapper meta.RESTMapper) *Cluster_GetRESTMapper_Call
func (*Cluster_GetRESTMapper_Call) Run ¶ added in v0.5.1
func (_c *Cluster_GetRESTMapper_Call) Run(run func()) *Cluster_GetRESTMapper_Call
func (*Cluster_GetRESTMapper_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Cluster_GetRESTMapper_Call) RunAndReturn(run func() meta.RESTMapper) *Cluster_GetRESTMapper_Call
type Cluster_GetScheme_Call ¶ added in v0.5.1
Cluster_GetScheme_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetScheme'
func (*Cluster_GetScheme_Call) Return ¶ added in v0.5.1
func (_c *Cluster_GetScheme_Call) Return(scheme *runtime.Scheme) *Cluster_GetScheme_Call
func (*Cluster_GetScheme_Call) Run ¶ added in v0.5.1
func (_c *Cluster_GetScheme_Call) Run(run func()) *Cluster_GetScheme_Call
func (*Cluster_GetScheme_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Cluster_GetScheme_Call) RunAndReturn(run func() *runtime.Scheme) *Cluster_GetScheme_Call
type Cluster_Start_Call ¶ added in v0.5.1
Cluster_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Cluster_Start_Call) Return ¶ added in v0.5.1
func (_c *Cluster_Start_Call) Return(err error) *Cluster_Start_Call
func (*Cluster_Start_Call) Run ¶ added in v0.5.1
func (_c *Cluster_Start_Call) Run(run func(ctx context.Context)) *Cluster_Start_Call
func (*Cluster_Start_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Cluster_Start_Call) RunAndReturn(run func(ctx context.Context) error) *Cluster_Start_Call
type Manager ¶ added in v0.5.1
Manager is an autogenerated mock type for the Manager type
func NewManager ¶ added in v0.5.1
NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Manager) AddHealthzCheck ¶ added in v0.5.1
AddHealthzCheck provides a mock function for the type Manager
func (*Manager) AddMetricsServerExtraHandler ¶ added in v0.5.1
AddMetricsServerExtraHandler provides a mock function for the type Manager
func (*Manager) AddReadyzCheck ¶ added in v0.5.1
AddReadyzCheck provides a mock function for the type Manager
func (*Manager) ClusterFromContext ¶ added in v0.5.1
ClusterFromContext provides a mock function for the type Manager
func (*Manager) EXPECT ¶ added in v0.5.1
func (_m *Manager) EXPECT() *Manager_Expecter
func (*Manager) Elected ¶ added in v0.5.1
func (_mock *Manager) Elected() <-chan struct{}
Elected provides a mock function for the type Manager
func (*Manager) GetCluster ¶ added in v0.5.1
GetCluster provides a mock function for the type Manager
func (*Manager) GetControllerOptions ¶ added in v0.5.1
func (_mock *Manager) GetControllerOptions() config.Controller
GetControllerOptions provides a mock function for the type Manager
func (*Manager) GetFieldIndexer ¶ added in v0.5.1
func (_mock *Manager) GetFieldIndexer() client.FieldIndexer
GetFieldIndexer provides a mock function for the type Manager
func (*Manager) GetLocalManager ¶ added in v0.5.1
GetLocalManager provides a mock function for the type Manager
func (*Manager) GetManager ¶ added in v0.5.1
GetManager provides a mock function for the type Manager
func (*Manager) GetProvider ¶ added in v0.5.1
func (_mock *Manager) GetProvider() multicluster.Provider
GetProvider provides a mock function for the type Manager
func (*Manager) GetWebhookServer ¶ added in v0.5.1
GetWebhookServer provides a mock function for the type Manager
type Manager_AddHealthzCheck_Call ¶ added in v0.5.1
Manager_AddHealthzCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddHealthzCheck'
func (*Manager_AddHealthzCheck_Call) Return ¶ added in v0.5.1
func (_c *Manager_AddHealthzCheck_Call) Return(err error) *Manager_AddHealthzCheck_Call
func (*Manager_AddHealthzCheck_Call) Run ¶ added in v0.5.1
func (_c *Manager_AddHealthzCheck_Call) Run(run func(name string, check healthz.Checker)) *Manager_AddHealthzCheck_Call
func (*Manager_AddHealthzCheck_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_AddHealthzCheck_Call) RunAndReturn(run func(name string, check healthz.Checker) error) *Manager_AddHealthzCheck_Call
type Manager_AddMetricsServerExtraHandler_Call ¶ added in v0.5.1
Manager_AddMetricsServerExtraHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddMetricsServerExtraHandler'
func (*Manager_AddMetricsServerExtraHandler_Call) Return ¶ added in v0.5.1
func (_c *Manager_AddMetricsServerExtraHandler_Call) Return(err error) *Manager_AddMetricsServerExtraHandler_Call
func (*Manager_AddMetricsServerExtraHandler_Call) Run ¶ added in v0.5.1
func (_c *Manager_AddMetricsServerExtraHandler_Call) Run(run func(path string, handler http.Handler)) *Manager_AddMetricsServerExtraHandler_Call
func (*Manager_AddMetricsServerExtraHandler_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_AddMetricsServerExtraHandler_Call) RunAndReturn(run func(path string, handler http.Handler) error) *Manager_AddMetricsServerExtraHandler_Call
type Manager_AddReadyzCheck_Call ¶ added in v0.5.1
Manager_AddReadyzCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddReadyzCheck'
func (*Manager_AddReadyzCheck_Call) Return ¶ added in v0.5.1
func (_c *Manager_AddReadyzCheck_Call) Return(err error) *Manager_AddReadyzCheck_Call
func (*Manager_AddReadyzCheck_Call) Run ¶ added in v0.5.1
func (_c *Manager_AddReadyzCheck_Call) Run(run func(name string, check healthz.Checker)) *Manager_AddReadyzCheck_Call
func (*Manager_AddReadyzCheck_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_AddReadyzCheck_Call) RunAndReturn(run func(name string, check healthz.Checker) error) *Manager_AddReadyzCheck_Call
type Manager_Add_Call ¶ added in v0.5.1
Manager_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'
func (*Manager_Add_Call) Return ¶ added in v0.5.1
func (_c *Manager_Add_Call) Return(err error) *Manager_Add_Call
func (*Manager_Add_Call) Run ¶ added in v0.5.1
func (_c *Manager_Add_Call) Run(run func(runnable manager.Runnable)) *Manager_Add_Call
func (*Manager_Add_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_Add_Call) RunAndReturn(run func(runnable manager.Runnable) error) *Manager_Add_Call
type Manager_ClusterFromContext_Call ¶ added in v0.5.1
Manager_ClusterFromContext_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ClusterFromContext'
func (*Manager_ClusterFromContext_Call) Return ¶ added in v0.5.1
func (_c *Manager_ClusterFromContext_Call) Return(cluster1 cluster.Cluster, err error) *Manager_ClusterFromContext_Call
func (*Manager_ClusterFromContext_Call) Run ¶ added in v0.5.1
func (_c *Manager_ClusterFromContext_Call) Run(run func(ctx context.Context)) *Manager_ClusterFromContext_Call
func (*Manager_ClusterFromContext_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_ClusterFromContext_Call) RunAndReturn(run func(ctx context.Context) (cluster.Cluster, error)) *Manager_ClusterFromContext_Call
type Manager_Elected_Call ¶ added in v0.5.1
Manager_Elected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Elected'
func (*Manager_Elected_Call) Return ¶ added in v0.5.1
func (_c *Manager_Elected_Call) Return(valCh <-chan struct{}) *Manager_Elected_Call
func (*Manager_Elected_Call) Run ¶ added in v0.5.1
func (_c *Manager_Elected_Call) Run(run func()) *Manager_Elected_Call
func (*Manager_Elected_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_Elected_Call) RunAndReturn(run func() <-chan struct{}) *Manager_Elected_Call
type Manager_Engage_Call ¶ added in v0.5.1
Manager_Engage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Engage'
func (*Manager_Engage_Call) Return ¶ added in v0.5.1
func (_c *Manager_Engage_Call) Return(err error) *Manager_Engage_Call
func (*Manager_Engage_Call) Run ¶ added in v0.5.1
func (_c *Manager_Engage_Call) Run(run func(context1 context.Context, s string, cluster1 cluster.Cluster)) *Manager_Engage_Call
func (*Manager_Engage_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_Engage_Call) RunAndReturn(run func(context1 context.Context, s string, cluster1 cluster.Cluster) error) *Manager_Engage_Call
type Manager_Expecter ¶ added in v0.5.1
type Manager_Expecter struct {
// contains filtered or unexported fields
}
func (*Manager_Expecter) Add ¶ added in v0.5.1
func (_e *Manager_Expecter) Add(runnable interface{}) *Manager_Add_Call
Add is a helper method to define mock.On call
- runnable manager.Runnable
func (*Manager_Expecter) AddHealthzCheck ¶ added in v0.5.1
func (_e *Manager_Expecter) AddHealthzCheck(name interface{}, check interface{}) *Manager_AddHealthzCheck_Call
AddHealthzCheck is a helper method to define mock.On call
- name string
- check healthz.Checker
func (*Manager_Expecter) AddMetricsServerExtraHandler ¶ added in v0.5.1
func (_e *Manager_Expecter) AddMetricsServerExtraHandler(path interface{}, handler interface{}) *Manager_AddMetricsServerExtraHandler_Call
AddMetricsServerExtraHandler is a helper method to define mock.On call
- path string
- handler http.Handler
func (*Manager_Expecter) AddReadyzCheck ¶ added in v0.5.1
func (_e *Manager_Expecter) AddReadyzCheck(name interface{}, check interface{}) *Manager_AddReadyzCheck_Call
AddReadyzCheck is a helper method to define mock.On call
- name string
- check healthz.Checker
func (*Manager_Expecter) ClusterFromContext ¶ added in v0.5.1
func (_e *Manager_Expecter) ClusterFromContext(ctx interface{}) *Manager_ClusterFromContext_Call
ClusterFromContext is a helper method to define mock.On call
- ctx context.Context
func (*Manager_Expecter) Elected ¶ added in v0.5.1
func (_e *Manager_Expecter) Elected() *Manager_Elected_Call
Elected is a helper method to define mock.On call
func (*Manager_Expecter) Engage ¶ added in v0.5.1
func (_e *Manager_Expecter) Engage(context1 interface{}, s interface{}, cluster1 interface{}) *Manager_Engage_Call
Engage is a helper method to define mock.On call
- context1 context.Context
- s string
- cluster1 cluster.Cluster
func (*Manager_Expecter) GetCluster ¶ added in v0.5.1
func (_e *Manager_Expecter) GetCluster(ctx interface{}, clusterName interface{}) *Manager_GetCluster_Call
GetCluster is a helper method to define mock.On call
- ctx context.Context
- clusterName string
func (*Manager_Expecter) GetControllerOptions ¶ added in v0.5.1
func (_e *Manager_Expecter) GetControllerOptions() *Manager_GetControllerOptions_Call
GetControllerOptions is a helper method to define mock.On call
func (*Manager_Expecter) GetFieldIndexer ¶ added in v0.5.1
func (_e *Manager_Expecter) GetFieldIndexer() *Manager_GetFieldIndexer_Call
GetFieldIndexer is a helper method to define mock.On call
func (*Manager_Expecter) GetLocalManager ¶ added in v0.5.1
func (_e *Manager_Expecter) GetLocalManager() *Manager_GetLocalManager_Call
GetLocalManager is a helper method to define mock.On call
func (*Manager_Expecter) GetLogger ¶ added in v0.5.1
func (_e *Manager_Expecter) GetLogger() *Manager_GetLogger_Call
GetLogger is a helper method to define mock.On call
func (*Manager_Expecter) GetManager ¶ added in v0.5.1
func (_e *Manager_Expecter) GetManager(ctx interface{}, clusterName interface{}) *Manager_GetManager_Call
GetManager is a helper method to define mock.On call
- ctx context.Context
- clusterName string
func (*Manager_Expecter) GetProvider ¶ added in v0.5.1
func (_e *Manager_Expecter) GetProvider() *Manager_GetProvider_Call
GetProvider is a helper method to define mock.On call
func (*Manager_Expecter) GetWebhookServer ¶ added in v0.5.1
func (_e *Manager_Expecter) GetWebhookServer() *Manager_GetWebhookServer_Call
GetWebhookServer is a helper method to define mock.On call
func (*Manager_Expecter) Start ¶ added in v0.5.1
func (_e *Manager_Expecter) Start(ctx interface{}) *Manager_Start_Call
Start is a helper method to define mock.On call
- ctx context.Context
type Manager_GetCluster_Call ¶ added in v0.5.1
Manager_GetCluster_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCluster'
func (*Manager_GetCluster_Call) Return ¶ added in v0.5.1
func (_c *Manager_GetCluster_Call) Return(cluster1 cluster.Cluster, err error) *Manager_GetCluster_Call
func (*Manager_GetCluster_Call) Run ¶ added in v0.5.1
func (_c *Manager_GetCluster_Call) Run(run func(ctx context.Context, clusterName string)) *Manager_GetCluster_Call
func (*Manager_GetCluster_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_GetCluster_Call) RunAndReturn(run func(ctx context.Context, clusterName string) (cluster.Cluster, error)) *Manager_GetCluster_Call
type Manager_GetControllerOptions_Call ¶ added in v0.5.1
Manager_GetControllerOptions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetControllerOptions'
func (*Manager_GetControllerOptions_Call) Return ¶ added in v0.5.1
func (_c *Manager_GetControllerOptions_Call) Return(controller config.Controller) *Manager_GetControllerOptions_Call
func (*Manager_GetControllerOptions_Call) Run ¶ added in v0.5.1
func (_c *Manager_GetControllerOptions_Call) Run(run func()) *Manager_GetControllerOptions_Call
func (*Manager_GetControllerOptions_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_GetControllerOptions_Call) RunAndReturn(run func() config.Controller) *Manager_GetControllerOptions_Call
type Manager_GetFieldIndexer_Call ¶ added in v0.5.1
Manager_GetFieldIndexer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFieldIndexer'
func (*Manager_GetFieldIndexer_Call) Return ¶ added in v0.5.1
func (_c *Manager_GetFieldIndexer_Call) Return(fieldIndexer client.FieldIndexer) *Manager_GetFieldIndexer_Call
func (*Manager_GetFieldIndexer_Call) Run ¶ added in v0.5.1
func (_c *Manager_GetFieldIndexer_Call) Run(run func()) *Manager_GetFieldIndexer_Call
func (*Manager_GetFieldIndexer_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_GetFieldIndexer_Call) RunAndReturn(run func() client.FieldIndexer) *Manager_GetFieldIndexer_Call
type Manager_GetLocalManager_Call ¶ added in v0.5.1
Manager_GetLocalManager_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLocalManager'
func (*Manager_GetLocalManager_Call) Return ¶ added in v0.5.1
func (_c *Manager_GetLocalManager_Call) Return(manager1 manager0.Manager) *Manager_GetLocalManager_Call
func (*Manager_GetLocalManager_Call) Run ¶ added in v0.5.1
func (_c *Manager_GetLocalManager_Call) Run(run func()) *Manager_GetLocalManager_Call
func (*Manager_GetLocalManager_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_GetLocalManager_Call) RunAndReturn(run func() manager0.Manager) *Manager_GetLocalManager_Call
type Manager_GetLogger_Call ¶ added in v0.5.1
Manager_GetLogger_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogger'
func (*Manager_GetLogger_Call) Return ¶ added in v0.5.1
func (_c *Manager_GetLogger_Call) Return(logger logr.Logger) *Manager_GetLogger_Call
func (*Manager_GetLogger_Call) Run ¶ added in v0.5.1
func (_c *Manager_GetLogger_Call) Run(run func()) *Manager_GetLogger_Call
func (*Manager_GetLogger_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_GetLogger_Call) RunAndReturn(run func() logr.Logger) *Manager_GetLogger_Call
type Manager_GetManager_Call ¶ added in v0.5.1
Manager_GetManager_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetManager'
func (*Manager_GetManager_Call) Return ¶ added in v0.5.1
func (_c *Manager_GetManager_Call) Return(manager1 manager0.Manager, err error) *Manager_GetManager_Call
func (*Manager_GetManager_Call) Run ¶ added in v0.5.1
func (_c *Manager_GetManager_Call) Run(run func(ctx context.Context, clusterName string)) *Manager_GetManager_Call
func (*Manager_GetManager_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_GetManager_Call) RunAndReturn(run func(ctx context.Context, clusterName string) (manager0.Manager, error)) *Manager_GetManager_Call
type Manager_GetProvider_Call ¶ added in v0.5.1
Manager_GetProvider_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProvider'
func (*Manager_GetProvider_Call) Return ¶ added in v0.5.1
func (_c *Manager_GetProvider_Call) Return(provider multicluster.Provider) *Manager_GetProvider_Call
func (*Manager_GetProvider_Call) Run ¶ added in v0.5.1
func (_c *Manager_GetProvider_Call) Run(run func()) *Manager_GetProvider_Call
func (*Manager_GetProvider_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_GetProvider_Call) RunAndReturn(run func() multicluster.Provider) *Manager_GetProvider_Call
type Manager_GetWebhookServer_Call ¶ added in v0.5.1
Manager_GetWebhookServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetWebhookServer'
func (*Manager_GetWebhookServer_Call) Return ¶ added in v0.5.1
func (_c *Manager_GetWebhookServer_Call) Return(server webhook.Server) *Manager_GetWebhookServer_Call
func (*Manager_GetWebhookServer_Call) Run ¶ added in v0.5.1
func (_c *Manager_GetWebhookServer_Call) Run(run func()) *Manager_GetWebhookServer_Call
func (*Manager_GetWebhookServer_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_GetWebhookServer_Call) RunAndReturn(run func() webhook.Server) *Manager_GetWebhookServer_Call
type Manager_Start_Call ¶ added in v0.5.1
Manager_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Manager_Start_Call) Return ¶ added in v0.5.1
func (_c *Manager_Start_Call) Return(err error) *Manager_Start_Call
func (*Manager_Start_Call) Run ¶ added in v0.5.1
func (_c *Manager_Start_Call) Run(run func(ctx context.Context)) *Manager_Start_Call
func (*Manager_Start_Call) RunAndReturn ¶ added in v0.5.1
func (_c *Manager_Start_Call) RunAndReturn(run func(ctx context.Context) error) *Manager_Start_Call
type OpenFGAServiceClient ¶
OpenFGAServiceClient is an autogenerated mock type for the OpenFGAServiceClient type
func NewOpenFGAServiceClient ¶
func NewOpenFGAServiceClient(t interface {
mock.TestingT
Cleanup(func())
}) *OpenFGAServiceClient
NewOpenFGAServiceClient creates a new instance of OpenFGAServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*OpenFGAServiceClient) BatchCheck ¶
func (_mock *OpenFGAServiceClient) BatchCheck(ctx context.Context, in *openfgav1.BatchCheckRequest, opts ...grpc.CallOption) (*openfgav1.BatchCheckResponse, error)
BatchCheck provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) Check ¶
func (_mock *OpenFGAServiceClient) Check(ctx context.Context, in *openfgav1.CheckRequest, opts ...grpc.CallOption) (*openfgav1.CheckResponse, error)
Check provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) CreateStore ¶
func (_mock *OpenFGAServiceClient) CreateStore(ctx context.Context, in *openfgav1.CreateStoreRequest, opts ...grpc.CallOption) (*openfgav1.CreateStoreResponse, error)
CreateStore provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) DeleteStore ¶
func (_mock *OpenFGAServiceClient) DeleteStore(ctx context.Context, in *openfgav1.DeleteStoreRequest, opts ...grpc.CallOption) (*openfgav1.DeleteStoreResponse, error)
DeleteStore provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) EXPECT ¶
func (_m *OpenFGAServiceClient) EXPECT() *OpenFGAServiceClient_Expecter
func (*OpenFGAServiceClient) Expand ¶
func (_mock *OpenFGAServiceClient) Expand(ctx context.Context, in *openfgav1.ExpandRequest, opts ...grpc.CallOption) (*openfgav1.ExpandResponse, error)
Expand provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) GetStore ¶
func (_mock *OpenFGAServiceClient) GetStore(ctx context.Context, in *openfgav1.GetStoreRequest, opts ...grpc.CallOption) (*openfgav1.GetStoreResponse, error)
GetStore provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) ListObjects ¶
func (_mock *OpenFGAServiceClient) ListObjects(ctx context.Context, in *openfgav1.ListObjectsRequest, opts ...grpc.CallOption) (*openfgav1.ListObjectsResponse, error)
ListObjects provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) ListStores ¶
func (_mock *OpenFGAServiceClient) ListStores(ctx context.Context, in *openfgav1.ListStoresRequest, opts ...grpc.CallOption) (*openfgav1.ListStoresResponse, error)
ListStores provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) ListUsers ¶
func (_mock *OpenFGAServiceClient) ListUsers(ctx context.Context, in *openfgav1.ListUsersRequest, opts ...grpc.CallOption) (*openfgav1.ListUsersResponse, error)
ListUsers provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) Read ¶
func (_mock *OpenFGAServiceClient) Read(ctx context.Context, in *openfgav1.ReadRequest, opts ...grpc.CallOption) (*openfgav1.ReadResponse, error)
Read provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) ReadAssertions ¶
func (_mock *OpenFGAServiceClient) ReadAssertions(ctx context.Context, in *openfgav1.ReadAssertionsRequest, opts ...grpc.CallOption) (*openfgav1.ReadAssertionsResponse, error)
ReadAssertions provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) ReadAuthorizationModel ¶
func (_mock *OpenFGAServiceClient) ReadAuthorizationModel(ctx context.Context, in *openfgav1.ReadAuthorizationModelRequest, opts ...grpc.CallOption) (*openfgav1.ReadAuthorizationModelResponse, error)
ReadAuthorizationModel provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) ReadAuthorizationModels ¶
func (_mock *OpenFGAServiceClient) ReadAuthorizationModels(ctx context.Context, in *openfgav1.ReadAuthorizationModelsRequest, opts ...grpc.CallOption) (*openfgav1.ReadAuthorizationModelsResponse, error)
ReadAuthorizationModels provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) ReadChanges ¶
func (_mock *OpenFGAServiceClient) ReadChanges(ctx context.Context, in *openfgav1.ReadChangesRequest, opts ...grpc.CallOption) (*openfgav1.ReadChangesResponse, error)
ReadChanges provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) StreamedListObjects ¶
func (_mock *OpenFGAServiceClient) StreamedListObjects(ctx context.Context, in *openfgav1.StreamedListObjectsRequest, opts ...grpc.CallOption) (openfgav1.OpenFGAService_StreamedListObjectsClient, error)
StreamedListObjects provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) UpdateStore ¶
func (_mock *OpenFGAServiceClient) UpdateStore(ctx context.Context, in *openfgav1.UpdateStoreRequest, opts ...grpc.CallOption) (*openfgav1.UpdateStoreResponse, error)
UpdateStore provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) Write ¶
func (_mock *OpenFGAServiceClient) Write(ctx context.Context, in *openfgav1.WriteRequest, opts ...grpc.CallOption) (*openfgav1.WriteResponse, error)
Write provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) WriteAssertions ¶
func (_mock *OpenFGAServiceClient) WriteAssertions(ctx context.Context, in *openfgav1.WriteAssertionsRequest, opts ...grpc.CallOption) (*openfgav1.WriteAssertionsResponse, error)
WriteAssertions provides a mock function for the type OpenFGAServiceClient
func (*OpenFGAServiceClient) WriteAuthorizationModel ¶
func (_mock *OpenFGAServiceClient) WriteAuthorizationModel(ctx context.Context, in *openfgav1.WriteAuthorizationModelRequest, opts ...grpc.CallOption) (*openfgav1.WriteAuthorizationModelResponse, error)
WriteAuthorizationModel provides a mock function for the type OpenFGAServiceClient
type OpenFGAServiceClient_BatchCheck_Call ¶
OpenFGAServiceClient_BatchCheck_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BatchCheck'
func (*OpenFGAServiceClient_BatchCheck_Call) Return ¶
func (_c *OpenFGAServiceClient_BatchCheck_Call) Return(batchCheckResponse *openfgav1.BatchCheckResponse, err error) *OpenFGAServiceClient_BatchCheck_Call
func (*OpenFGAServiceClient_BatchCheck_Call) Run ¶
func (_c *OpenFGAServiceClient_BatchCheck_Call) Run(run func(ctx context.Context, in *openfgav1.BatchCheckRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_BatchCheck_Call
func (*OpenFGAServiceClient_BatchCheck_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_BatchCheck_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.BatchCheckRequest, opts ...grpc.CallOption) (*openfgav1.BatchCheckResponse, error)) *OpenFGAServiceClient_BatchCheck_Call
type OpenFGAServiceClient_Check_Call ¶
OpenFGAServiceClient_Check_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Check'
func (*OpenFGAServiceClient_Check_Call) Return ¶
func (_c *OpenFGAServiceClient_Check_Call) Return(checkResponse *openfgav1.CheckResponse, err error) *OpenFGAServiceClient_Check_Call
func (*OpenFGAServiceClient_Check_Call) Run ¶
func (_c *OpenFGAServiceClient_Check_Call) Run(run func(ctx context.Context, in *openfgav1.CheckRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_Check_Call
func (*OpenFGAServiceClient_Check_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_Check_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.CheckRequest, opts ...grpc.CallOption) (*openfgav1.CheckResponse, error)) *OpenFGAServiceClient_Check_Call
type OpenFGAServiceClient_CreateStore_Call ¶
OpenFGAServiceClient_CreateStore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateStore'
func (*OpenFGAServiceClient_CreateStore_Call) Return ¶
func (_c *OpenFGAServiceClient_CreateStore_Call) Return(createStoreResponse *openfgav1.CreateStoreResponse, err error) *OpenFGAServiceClient_CreateStore_Call
func (*OpenFGAServiceClient_CreateStore_Call) Run ¶
func (_c *OpenFGAServiceClient_CreateStore_Call) Run(run func(ctx context.Context, in *openfgav1.CreateStoreRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_CreateStore_Call
func (*OpenFGAServiceClient_CreateStore_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_CreateStore_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.CreateStoreRequest, opts ...grpc.CallOption) (*openfgav1.CreateStoreResponse, error)) *OpenFGAServiceClient_CreateStore_Call
type OpenFGAServiceClient_DeleteStore_Call ¶
OpenFGAServiceClient_DeleteStore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteStore'
func (*OpenFGAServiceClient_DeleteStore_Call) Return ¶
func (_c *OpenFGAServiceClient_DeleteStore_Call) Return(deleteStoreResponse *openfgav1.DeleteStoreResponse, err error) *OpenFGAServiceClient_DeleteStore_Call
func (*OpenFGAServiceClient_DeleteStore_Call) Run ¶
func (_c *OpenFGAServiceClient_DeleteStore_Call) Run(run func(ctx context.Context, in *openfgav1.DeleteStoreRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_DeleteStore_Call
func (*OpenFGAServiceClient_DeleteStore_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_DeleteStore_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.DeleteStoreRequest, opts ...grpc.CallOption) (*openfgav1.DeleteStoreResponse, error)) *OpenFGAServiceClient_DeleteStore_Call
type OpenFGAServiceClient_Expand_Call ¶
OpenFGAServiceClient_Expand_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Expand'
func (*OpenFGAServiceClient_Expand_Call) Return ¶
func (_c *OpenFGAServiceClient_Expand_Call) Return(expandResponse *openfgav1.ExpandResponse, err error) *OpenFGAServiceClient_Expand_Call
func (*OpenFGAServiceClient_Expand_Call) Run ¶
func (_c *OpenFGAServiceClient_Expand_Call) Run(run func(ctx context.Context, in *openfgav1.ExpandRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_Expand_Call
func (*OpenFGAServiceClient_Expand_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_Expand_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.ExpandRequest, opts ...grpc.CallOption) (*openfgav1.ExpandResponse, error)) *OpenFGAServiceClient_Expand_Call
type OpenFGAServiceClient_Expecter ¶
type OpenFGAServiceClient_Expecter struct {
// contains filtered or unexported fields
}
func (*OpenFGAServiceClient_Expecter) BatchCheck ¶
func (_e *OpenFGAServiceClient_Expecter) BatchCheck(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_BatchCheck_Call
BatchCheck is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.BatchCheckRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) Check ¶
func (_e *OpenFGAServiceClient_Expecter) Check(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Check_Call
Check is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.CheckRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) CreateStore ¶
func (_e *OpenFGAServiceClient_Expecter) CreateStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_CreateStore_Call
CreateStore is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.CreateStoreRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) DeleteStore ¶
func (_e *OpenFGAServiceClient_Expecter) DeleteStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_DeleteStore_Call
DeleteStore is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.DeleteStoreRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) Expand ¶
func (_e *OpenFGAServiceClient_Expecter) Expand(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Expand_Call
Expand is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.ExpandRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) GetStore ¶
func (_e *OpenFGAServiceClient_Expecter) GetStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_GetStore_Call
GetStore is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.GetStoreRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) ListObjects ¶
func (_e *OpenFGAServiceClient_Expecter) ListObjects(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ListObjects_Call
ListObjects is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.ListObjectsRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) ListStores ¶
func (_e *OpenFGAServiceClient_Expecter) ListStores(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ListStores_Call
ListStores is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.ListStoresRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) ListUsers ¶
func (_e *OpenFGAServiceClient_Expecter) ListUsers(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ListUsers_Call
ListUsers is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.ListUsersRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) Read ¶
func (_e *OpenFGAServiceClient_Expecter) Read(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Read_Call
Read is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.ReadRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) ReadAssertions ¶
func (_e *OpenFGAServiceClient_Expecter) ReadAssertions(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadAssertions_Call
ReadAssertions is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.ReadAssertionsRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) ReadAuthorizationModel ¶
func (_e *OpenFGAServiceClient_Expecter) ReadAuthorizationModel(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadAuthorizationModel_Call
ReadAuthorizationModel is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.ReadAuthorizationModelRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) ReadAuthorizationModels ¶
func (_e *OpenFGAServiceClient_Expecter) ReadAuthorizationModels(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadAuthorizationModels_Call
ReadAuthorizationModels is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.ReadAuthorizationModelsRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) ReadChanges ¶
func (_e *OpenFGAServiceClient_Expecter) ReadChanges(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_ReadChanges_Call
ReadChanges is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.ReadChangesRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) StreamedListObjects ¶
func (_e *OpenFGAServiceClient_Expecter) StreamedListObjects(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_StreamedListObjects_Call
StreamedListObjects is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.StreamedListObjectsRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) UpdateStore ¶
func (_e *OpenFGAServiceClient_Expecter) UpdateStore(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_UpdateStore_Call
UpdateStore is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.UpdateStoreRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) Write ¶
func (_e *OpenFGAServiceClient_Expecter) Write(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_Write_Call
Write is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.WriteRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) WriteAssertions ¶
func (_e *OpenFGAServiceClient_Expecter) WriteAssertions(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_WriteAssertions_Call
WriteAssertions is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.WriteAssertionsRequest
- opts ...grpc.CallOption
func (*OpenFGAServiceClient_Expecter) WriteAuthorizationModel ¶
func (_e *OpenFGAServiceClient_Expecter) WriteAuthorizationModel(ctx interface{}, in interface{}, opts ...interface{}) *OpenFGAServiceClient_WriteAuthorizationModel_Call
WriteAuthorizationModel is a helper method to define mock.On call
- ctx context.Context
- in *openfgav1.WriteAuthorizationModelRequest
- opts ...grpc.CallOption
type OpenFGAServiceClient_GetStore_Call ¶
OpenFGAServiceClient_GetStore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStore'
func (*OpenFGAServiceClient_GetStore_Call) Return ¶
func (_c *OpenFGAServiceClient_GetStore_Call) Return(getStoreResponse *openfgav1.GetStoreResponse, err error) *OpenFGAServiceClient_GetStore_Call
func (*OpenFGAServiceClient_GetStore_Call) Run ¶
func (_c *OpenFGAServiceClient_GetStore_Call) Run(run func(ctx context.Context, in *openfgav1.GetStoreRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_GetStore_Call
func (*OpenFGAServiceClient_GetStore_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_GetStore_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.GetStoreRequest, opts ...grpc.CallOption) (*openfgav1.GetStoreResponse, error)) *OpenFGAServiceClient_GetStore_Call
type OpenFGAServiceClient_ListObjects_Call ¶
OpenFGAServiceClient_ListObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListObjects'
func (*OpenFGAServiceClient_ListObjects_Call) Return ¶
func (_c *OpenFGAServiceClient_ListObjects_Call) Return(listObjectsResponse *openfgav1.ListObjectsResponse, err error) *OpenFGAServiceClient_ListObjects_Call
func (*OpenFGAServiceClient_ListObjects_Call) Run ¶
func (_c *OpenFGAServiceClient_ListObjects_Call) Run(run func(ctx context.Context, in *openfgav1.ListObjectsRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ListObjects_Call
func (*OpenFGAServiceClient_ListObjects_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ListObjects_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.ListObjectsRequest, opts ...grpc.CallOption) (*openfgav1.ListObjectsResponse, error)) *OpenFGAServiceClient_ListObjects_Call
type OpenFGAServiceClient_ListStores_Call ¶
OpenFGAServiceClient_ListStores_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListStores'
func (*OpenFGAServiceClient_ListStores_Call) Return ¶
func (_c *OpenFGAServiceClient_ListStores_Call) Return(listStoresResponse *openfgav1.ListStoresResponse, err error) *OpenFGAServiceClient_ListStores_Call
func (*OpenFGAServiceClient_ListStores_Call) Run ¶
func (_c *OpenFGAServiceClient_ListStores_Call) Run(run func(ctx context.Context, in *openfgav1.ListStoresRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ListStores_Call
func (*OpenFGAServiceClient_ListStores_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ListStores_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.ListStoresRequest, opts ...grpc.CallOption) (*openfgav1.ListStoresResponse, error)) *OpenFGAServiceClient_ListStores_Call
type OpenFGAServiceClient_ListUsers_Call ¶
OpenFGAServiceClient_ListUsers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListUsers'
func (*OpenFGAServiceClient_ListUsers_Call) Return ¶
func (_c *OpenFGAServiceClient_ListUsers_Call) Return(listUsersResponse *openfgav1.ListUsersResponse, err error) *OpenFGAServiceClient_ListUsers_Call
func (*OpenFGAServiceClient_ListUsers_Call) Run ¶
func (_c *OpenFGAServiceClient_ListUsers_Call) Run(run func(ctx context.Context, in *openfgav1.ListUsersRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ListUsers_Call
func (*OpenFGAServiceClient_ListUsers_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ListUsers_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.ListUsersRequest, opts ...grpc.CallOption) (*openfgav1.ListUsersResponse, error)) *OpenFGAServiceClient_ListUsers_Call
type OpenFGAServiceClient_ReadAssertions_Call ¶
OpenFGAServiceClient_ReadAssertions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadAssertions'
func (*OpenFGAServiceClient_ReadAssertions_Call) Return ¶
func (_c *OpenFGAServiceClient_ReadAssertions_Call) Return(readAssertionsResponse *openfgav1.ReadAssertionsResponse, err error) *OpenFGAServiceClient_ReadAssertions_Call
func (*OpenFGAServiceClient_ReadAssertions_Call) Run ¶
func (_c *OpenFGAServiceClient_ReadAssertions_Call) Run(run func(ctx context.Context, in *openfgav1.ReadAssertionsRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ReadAssertions_Call
func (*OpenFGAServiceClient_ReadAssertions_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ReadAssertions_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.ReadAssertionsRequest, opts ...grpc.CallOption) (*openfgav1.ReadAssertionsResponse, error)) *OpenFGAServiceClient_ReadAssertions_Call
type OpenFGAServiceClient_ReadAuthorizationModel_Call ¶
OpenFGAServiceClient_ReadAuthorizationModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadAuthorizationModel'
func (*OpenFGAServiceClient_ReadAuthorizationModel_Call) Return ¶
func (_c *OpenFGAServiceClient_ReadAuthorizationModel_Call) Return(readAuthorizationModelResponse *openfgav1.ReadAuthorizationModelResponse, err error) *OpenFGAServiceClient_ReadAuthorizationModel_Call
func (*OpenFGAServiceClient_ReadAuthorizationModel_Call) Run ¶
func (_c *OpenFGAServiceClient_ReadAuthorizationModel_Call) Run(run func(ctx context.Context, in *openfgav1.ReadAuthorizationModelRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ReadAuthorizationModel_Call
func (*OpenFGAServiceClient_ReadAuthorizationModel_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ReadAuthorizationModel_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.ReadAuthorizationModelRequest, opts ...grpc.CallOption) (*openfgav1.ReadAuthorizationModelResponse, error)) *OpenFGAServiceClient_ReadAuthorizationModel_Call
type OpenFGAServiceClient_ReadAuthorizationModels_Call ¶
OpenFGAServiceClient_ReadAuthorizationModels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadAuthorizationModels'
func (*OpenFGAServiceClient_ReadAuthorizationModels_Call) Return ¶
func (_c *OpenFGAServiceClient_ReadAuthorizationModels_Call) Return(readAuthorizationModelsResponse *openfgav1.ReadAuthorizationModelsResponse, err error) *OpenFGAServiceClient_ReadAuthorizationModels_Call
func (*OpenFGAServiceClient_ReadAuthorizationModels_Call) Run ¶
func (_c *OpenFGAServiceClient_ReadAuthorizationModels_Call) Run(run func(ctx context.Context, in *openfgav1.ReadAuthorizationModelsRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ReadAuthorizationModels_Call
func (*OpenFGAServiceClient_ReadAuthorizationModels_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ReadAuthorizationModels_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.ReadAuthorizationModelsRequest, opts ...grpc.CallOption) (*openfgav1.ReadAuthorizationModelsResponse, error)) *OpenFGAServiceClient_ReadAuthorizationModels_Call
type OpenFGAServiceClient_ReadChanges_Call ¶
OpenFGAServiceClient_ReadChanges_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReadChanges'
func (*OpenFGAServiceClient_ReadChanges_Call) Return ¶
func (_c *OpenFGAServiceClient_ReadChanges_Call) Return(readChangesResponse *openfgav1.ReadChangesResponse, err error) *OpenFGAServiceClient_ReadChanges_Call
func (*OpenFGAServiceClient_ReadChanges_Call) Run ¶
func (_c *OpenFGAServiceClient_ReadChanges_Call) Run(run func(ctx context.Context, in *openfgav1.ReadChangesRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_ReadChanges_Call
func (*OpenFGAServiceClient_ReadChanges_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_ReadChanges_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.ReadChangesRequest, opts ...grpc.CallOption) (*openfgav1.ReadChangesResponse, error)) *OpenFGAServiceClient_ReadChanges_Call
type OpenFGAServiceClient_Read_Call ¶
OpenFGAServiceClient_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'
func (*OpenFGAServiceClient_Read_Call) Return ¶
func (_c *OpenFGAServiceClient_Read_Call) Return(readResponse *openfgav1.ReadResponse, err error) *OpenFGAServiceClient_Read_Call
func (*OpenFGAServiceClient_Read_Call) Run ¶
func (_c *OpenFGAServiceClient_Read_Call) Run(run func(ctx context.Context, in *openfgav1.ReadRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_Read_Call
func (*OpenFGAServiceClient_Read_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_Read_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.ReadRequest, opts ...grpc.CallOption) (*openfgav1.ReadResponse, error)) *OpenFGAServiceClient_Read_Call
type OpenFGAServiceClient_StreamedListObjects_Call ¶
OpenFGAServiceClient_StreamedListObjects_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StreamedListObjects'
func (*OpenFGAServiceClient_StreamedListObjects_Call) Return ¶
func (_c *OpenFGAServiceClient_StreamedListObjects_Call) Return(openFGAService_StreamedListObjectsClient openfgav1.OpenFGAService_StreamedListObjectsClient, err error) *OpenFGAServiceClient_StreamedListObjects_Call
func (*OpenFGAServiceClient_StreamedListObjects_Call) Run ¶
func (_c *OpenFGAServiceClient_StreamedListObjects_Call) Run(run func(ctx context.Context, in *openfgav1.StreamedListObjectsRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_StreamedListObjects_Call
func (*OpenFGAServiceClient_StreamedListObjects_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_StreamedListObjects_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.StreamedListObjectsRequest, opts ...grpc.CallOption) (openfgav1.OpenFGAService_StreamedListObjectsClient, error)) *OpenFGAServiceClient_StreamedListObjects_Call
type OpenFGAServiceClient_UpdateStore_Call ¶
OpenFGAServiceClient_UpdateStore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateStore'
func (*OpenFGAServiceClient_UpdateStore_Call) Return ¶
func (_c *OpenFGAServiceClient_UpdateStore_Call) Return(updateStoreResponse *openfgav1.UpdateStoreResponse, err error) *OpenFGAServiceClient_UpdateStore_Call
func (*OpenFGAServiceClient_UpdateStore_Call) Run ¶
func (_c *OpenFGAServiceClient_UpdateStore_Call) Run(run func(ctx context.Context, in *openfgav1.UpdateStoreRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_UpdateStore_Call
func (*OpenFGAServiceClient_UpdateStore_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_UpdateStore_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.UpdateStoreRequest, opts ...grpc.CallOption) (*openfgav1.UpdateStoreResponse, error)) *OpenFGAServiceClient_UpdateStore_Call
type OpenFGAServiceClient_WriteAssertions_Call ¶
OpenFGAServiceClient_WriteAssertions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteAssertions'
func (*OpenFGAServiceClient_WriteAssertions_Call) Return ¶
func (_c *OpenFGAServiceClient_WriteAssertions_Call) Return(writeAssertionsResponse *openfgav1.WriteAssertionsResponse, err error) *OpenFGAServiceClient_WriteAssertions_Call
func (*OpenFGAServiceClient_WriteAssertions_Call) Run ¶
func (_c *OpenFGAServiceClient_WriteAssertions_Call) Run(run func(ctx context.Context, in *openfgav1.WriteAssertionsRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_WriteAssertions_Call
func (*OpenFGAServiceClient_WriteAssertions_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_WriteAssertions_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.WriteAssertionsRequest, opts ...grpc.CallOption) (*openfgav1.WriteAssertionsResponse, error)) *OpenFGAServiceClient_WriteAssertions_Call
type OpenFGAServiceClient_WriteAuthorizationModel_Call ¶
OpenFGAServiceClient_WriteAuthorizationModel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteAuthorizationModel'
func (*OpenFGAServiceClient_WriteAuthorizationModel_Call) Return ¶
func (_c *OpenFGAServiceClient_WriteAuthorizationModel_Call) Return(writeAuthorizationModelResponse *openfgav1.WriteAuthorizationModelResponse, err error) *OpenFGAServiceClient_WriteAuthorizationModel_Call
func (*OpenFGAServiceClient_WriteAuthorizationModel_Call) Run ¶
func (_c *OpenFGAServiceClient_WriteAuthorizationModel_Call) Run(run func(ctx context.Context, in *openfgav1.WriteAuthorizationModelRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_WriteAuthorizationModel_Call
func (*OpenFGAServiceClient_WriteAuthorizationModel_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_WriteAuthorizationModel_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.WriteAuthorizationModelRequest, opts ...grpc.CallOption) (*openfgav1.WriteAuthorizationModelResponse, error)) *OpenFGAServiceClient_WriteAuthorizationModel_Call
type OpenFGAServiceClient_Write_Call ¶
OpenFGAServiceClient_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'
func (*OpenFGAServiceClient_Write_Call) Return ¶
func (_c *OpenFGAServiceClient_Write_Call) Return(writeResponse *openfgav1.WriteResponse, err error) *OpenFGAServiceClient_Write_Call
func (*OpenFGAServiceClient_Write_Call) Run ¶
func (_c *OpenFGAServiceClient_Write_Call) Run(run func(ctx context.Context, in *openfgav1.WriteRequest, opts ...grpc.CallOption)) *OpenFGAServiceClient_Write_Call
func (*OpenFGAServiceClient_Write_Call) RunAndReturn ¶
func (_c *OpenFGAServiceClient_Write_Call) RunAndReturn(run func(ctx context.Context, in *openfgav1.WriteRequest, opts ...grpc.CallOption) (*openfgav1.WriteResponse, error)) *OpenFGAServiceClient_Write_Call
type StatusClient ¶
StatusClient is an autogenerated mock type for the StatusClient type
func NewStatusClient ¶
func NewStatusClient(t interface {
mock.TestingT
Cleanup(func())
}) *StatusClient
NewStatusClient creates a new instance of StatusClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StatusClient) EXPECT ¶
func (_m *StatusClient) EXPECT() *StatusClient_Expecter
func (*StatusClient) Status ¶
func (_mock *StatusClient) Status() client.SubResourceWriter
Status provides a mock function for the type StatusClient
type StatusClient_Expecter ¶
type StatusClient_Expecter struct {
// contains filtered or unexported fields
}
func (*StatusClient_Expecter) Status ¶
func (_e *StatusClient_Expecter) Status() *StatusClient_Status_Call
Status is a helper method to define mock.On call
type StatusClient_Status_Call ¶
StatusClient_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'
func (*StatusClient_Status_Call) Return ¶
func (_c *StatusClient_Status_Call) Return(subResourceWriter client.SubResourceWriter) *StatusClient_Status_Call
func (*StatusClient_Status_Call) Run ¶
func (_c *StatusClient_Status_Call) Run(run func()) *StatusClient_Status_Call
func (*StatusClient_Status_Call) RunAndReturn ¶
func (_c *StatusClient_Status_Call) RunAndReturn(run func() client.SubResourceWriter) *StatusClient_Status_Call
type SubResourceClient ¶
SubResourceClient is an autogenerated mock type for the SubResourceClient type
func NewSubResourceClient ¶
func NewSubResourceClient(t interface {
mock.TestingT
Cleanup(func())
}) *SubResourceClient
NewSubResourceClient creates a new instance of SubResourceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SubResourceClient) Create ¶
func (_mock *SubResourceClient) Create(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error
Create provides a mock function for the type SubResourceClient
func (*SubResourceClient) EXPECT ¶
func (_m *SubResourceClient) EXPECT() *SubResourceClient_Expecter
func (*SubResourceClient) Get ¶
func (_mock *SubResourceClient) Get(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceGetOption) error
Get provides a mock function for the type SubResourceClient
func (*SubResourceClient) Patch ¶
func (_mock *SubResourceClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error
Patch provides a mock function for the type SubResourceClient
func (*SubResourceClient) Update ¶
func (_mock *SubResourceClient) Update(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error
Update provides a mock function for the type SubResourceClient
type SubResourceClientConstructor ¶
SubResourceClientConstructor is an autogenerated mock type for the SubResourceClientConstructor type
func NewSubResourceClientConstructor ¶
func NewSubResourceClientConstructor(t interface {
mock.TestingT
Cleanup(func())
}) *SubResourceClientConstructor
NewSubResourceClientConstructor creates a new instance of SubResourceClientConstructor. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*SubResourceClientConstructor) EXPECT ¶
func (_m *SubResourceClientConstructor) EXPECT() *SubResourceClientConstructor_Expecter
func (*SubResourceClientConstructor) SubResource ¶
func (_mock *SubResourceClientConstructor) SubResource(subResource string) client.SubResourceClient
SubResource provides a mock function for the type SubResourceClientConstructor
type SubResourceClientConstructor_Expecter ¶
type SubResourceClientConstructor_Expecter struct {
// contains filtered or unexported fields
}
func (*SubResourceClientConstructor_Expecter) SubResource ¶
func (_e *SubResourceClientConstructor_Expecter) SubResource(subResource interface{}) *SubResourceClientConstructor_SubResource_Call
SubResource is a helper method to define mock.On call
- subResource string
type SubResourceClientConstructor_SubResource_Call ¶
SubResourceClientConstructor_SubResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubResource'
func (*SubResourceClientConstructor_SubResource_Call) Return ¶
func (_c *SubResourceClientConstructor_SubResource_Call) Return(subResourceClient client.SubResourceClient) *SubResourceClientConstructor_SubResource_Call
func (*SubResourceClientConstructor_SubResource_Call) Run ¶
func (_c *SubResourceClientConstructor_SubResource_Call) Run(run func(subResource string)) *SubResourceClientConstructor_SubResource_Call
func (*SubResourceClientConstructor_SubResource_Call) RunAndReturn ¶
func (_c *SubResourceClientConstructor_SubResource_Call) RunAndReturn(run func(subResource string) client.SubResourceClient) *SubResourceClientConstructor_SubResource_Call
type SubResourceClient_Create_Call ¶
SubResourceClient_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*SubResourceClient_Create_Call) Return ¶
func (_c *SubResourceClient_Create_Call) Return(err error) *SubResourceClient_Create_Call
func (*SubResourceClient_Create_Call) Run ¶
func (_c *SubResourceClient_Create_Call) Run(run func(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption)) *SubResourceClient_Create_Call
func (*SubResourceClient_Create_Call) RunAndReturn ¶
func (_c *SubResourceClient_Create_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceCreateOption) error) *SubResourceClient_Create_Call
type SubResourceClient_Expecter ¶
type SubResourceClient_Expecter struct {
// contains filtered or unexported fields
}
func (*SubResourceClient_Expecter) Create ¶
func (_e *SubResourceClient_Expecter) Create(ctx interface{}, obj interface{}, subResource interface{}, opts ...interface{}) *SubResourceClient_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- subResource client.Object
- opts ...client.SubResourceCreateOption
func (*SubResourceClient_Expecter) Get ¶
func (_e *SubResourceClient_Expecter) Get(ctx interface{}, obj interface{}, subResource interface{}, opts ...interface{}) *SubResourceClient_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- subResource client.Object
- opts ...client.SubResourceGetOption
func (*SubResourceClient_Expecter) Patch ¶
func (_e *SubResourceClient_Expecter) Patch(ctx interface{}, obj interface{}, patch interface{}, opts ...interface{}) *SubResourceClient_Patch_Call
Patch is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- patch client.Patch
- opts ...client.SubResourcePatchOption
func (*SubResourceClient_Expecter) Update ¶
func (_e *SubResourceClient_Expecter) Update(ctx interface{}, obj interface{}, opts ...interface{}) *SubResourceClient_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- obj client.Object
- opts ...client.SubResourceUpdateOption
type SubResourceClient_Get_Call ¶
SubResourceClient_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*SubResourceClient_Get_Call) Return ¶
func (_c *SubResourceClient_Get_Call) Return(err error) *SubResourceClient_Get_Call
func (*SubResourceClient_Get_Call) Run ¶
func (_c *SubResourceClient_Get_Call) Run(run func(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceGetOption)) *SubResourceClient_Get_Call
func (*SubResourceClient_Get_Call) RunAndReturn ¶
func (_c *SubResourceClient_Get_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, subResource client.Object, opts ...client.SubResourceGetOption) error) *SubResourceClient_Get_Call
type SubResourceClient_Patch_Call ¶
SubResourceClient_Patch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Patch'
func (*SubResourceClient_Patch_Call) Return ¶
func (_c *SubResourceClient_Patch_Call) Return(err error) *SubResourceClient_Patch_Call
func (*SubResourceClient_Patch_Call) Run ¶
func (_c *SubResourceClient_Patch_Call) Run(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption)) *SubResourceClient_Patch_Call
func (*SubResourceClient_Patch_Call) RunAndReturn ¶
func (_c *SubResourceClient_Patch_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.SubResourcePatchOption) error) *SubResourceClient_Patch_Call
type SubResourceClient_Update_Call ¶
SubResourceClient_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*SubResourceClient_Update_Call) Return ¶
func (_c *SubResourceClient_Update_Call) Return(err error) *SubResourceClient_Update_Call
func (*SubResourceClient_Update_Call) Run ¶
func (_c *SubResourceClient_Update_Call) Run(run func(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption)) *SubResourceClient_Update_Call
func (*SubResourceClient_Update_Call) RunAndReturn ¶
func (_c *SubResourceClient_Update_Call) RunAndReturn(run func(ctx context.Context, obj client.Object, opts ...client.SubResourceUpdateOption) error) *SubResourceClient_Update_Call