Documentation ¶
Index ¶
- type Client
- func (_m *Client) ApplyKPackBuilds(ctx context.Context, builds []*v1alpha2.Build) error
- func (_m *Client) AreServicesAlive(ctx context.Context, namespace string) (bool, error)
- func (_m *Client) CopySecret(ctx context.Context, fromNS string, toNS string, name string) (*v1.Secret, error)
- func (_m *Client) CreateConfigMap(ctx context.Context, configMap *v1.ConfigMap) error
- func (_m *Client) CreateDeployment(ctx context.Context, deployment *appsv1.Deployment) error
- func (_m *Client) CreateIngress(ctx context.Context, ingress *networkingv1.Ingress) error
- func (_m *Client) CreateJob(ctx context.Context, job *batchv1.Job) (*batchv1.Job, error)
- func (_m *Client) CreateNamespace(ctx context.Context, namespace string) error
- func (_m *Client) CreateSecret(ctx context.Context, secret *v1.Secret) error
- func (_m *Client) CreateService(ctx context.Context, service *v1.Service) error
- func (_m *Client) CreateServiceAccount(ctx context.Context, svcAcc *v1.ServiceAccount) error
- func (_m *Client) DeleteNamespace(ctx context.Context, namespace string) error
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) GetDeployment(ctx context.Context, namespace string, deploymentName string) (*appsv1.Deployment, error)
- func (_m *Client) GetIngress(ctx context.Context, namespace string, name string) (*networkingv1.Ingress, error)
- func (_m *Client) GetIngressUrl(ctx context.Context, namespace string, serviceName string, protocol string) (string, error)
- func (_m *Client) GetJobLogs(ctx context.Context, job *batchv1.Job, size int64) (string, error)
- func (_m *Client) GetPreviewNamespaces(ctx context.Context) ([]v1.Namespace, error)
- func (_m *Client) ListJobs(ctx context.Context, namespace string) ([]*batchv1.Job, error)
- func (_m *Client) ScaleDeployment(ctx context.Context, namespace string, deploymentName string, replicas int32) error
- func (_m *Client) UpdateIngress(ctx context.Context, ingress *networkingv1.Ingress) error
- func (_m *Client) WaitDeployments(ctx context.Context, namespace string) error
- func (_m *Client) WaitJobs(ctx context.Context, jobs []*batchv1.Job) (*cluster.WaitJobsResult, error)
- func (_m *Client) WatchResource(ctx context.Context, gvr schema.GroupVersionResource, ...) (cluster.Starter, error)
- func (_m *Client) WatchServiceLogs(ctx context.Context, namespace string, name string, sinceSeconds int64) (<-chan string, <-chan error, error)
- type Client_ApplyKPackBuilds_Call
- func (_c *Client_ApplyKPackBuilds_Call) Return(_a0 error) *Client_ApplyKPackBuilds_Call
- func (_c *Client_ApplyKPackBuilds_Call) Run(run func(ctx context.Context, builds []*v1alpha2.Build)) *Client_ApplyKPackBuilds_Call
- func (_c *Client_ApplyKPackBuilds_Call) RunAndReturn(run func(context.Context, []*v1alpha2.Build) error) *Client_ApplyKPackBuilds_Call
- type Client_AreServicesAlive_Call
- func (_c *Client_AreServicesAlive_Call) Return(_a0 bool, _a1 error) *Client_AreServicesAlive_Call
- func (_c *Client_AreServicesAlive_Call) Run(run func(ctx context.Context, namespace string)) *Client_AreServicesAlive_Call
- func (_c *Client_AreServicesAlive_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Client_AreServicesAlive_Call
- type Client_CopySecret_Call
- func (_c *Client_CopySecret_Call) Return(_a0 *v1.Secret, _a1 error) *Client_CopySecret_Call
- func (_c *Client_CopySecret_Call) Run(run func(ctx context.Context, fromNS string, toNS string, name string)) *Client_CopySecret_Call
- func (_c *Client_CopySecret_Call) RunAndReturn(run func(context.Context, string, string, string) (*v1.Secret, error)) *Client_CopySecret_Call
- type Client_CreateConfigMap_Call
- func (_c *Client_CreateConfigMap_Call) Return(_a0 error) *Client_CreateConfigMap_Call
- func (_c *Client_CreateConfigMap_Call) Run(run func(ctx context.Context, configMap *v1.ConfigMap)) *Client_CreateConfigMap_Call
- func (_c *Client_CreateConfigMap_Call) RunAndReturn(run func(context.Context, *v1.ConfigMap) error) *Client_CreateConfigMap_Call
- type Client_CreateDeployment_Call
- func (_c *Client_CreateDeployment_Call) Return(_a0 error) *Client_CreateDeployment_Call
- func (_c *Client_CreateDeployment_Call) Run(run func(ctx context.Context, deployment *appsv1.Deployment)) *Client_CreateDeployment_Call
- func (_c *Client_CreateDeployment_Call) RunAndReturn(run func(context.Context, *appsv1.Deployment) error) *Client_CreateDeployment_Call
- type Client_CreateIngress_Call
- func (_c *Client_CreateIngress_Call) Return(_a0 error) *Client_CreateIngress_Call
- func (_c *Client_CreateIngress_Call) Run(run func(ctx context.Context, ingress *networkingv1.Ingress)) *Client_CreateIngress_Call
- func (_c *Client_CreateIngress_Call) RunAndReturn(run func(context.Context, *networkingv1.Ingress) error) *Client_CreateIngress_Call
- type Client_CreateJob_Call
- func (_c *Client_CreateJob_Call) Return(_a0 *batchv1.Job, _a1 error) *Client_CreateJob_Call
- func (_c *Client_CreateJob_Call) Run(run func(ctx context.Context, job *batchv1.Job)) *Client_CreateJob_Call
- func (_c *Client_CreateJob_Call) RunAndReturn(run func(context.Context, *batchv1.Job) (*batchv1.Job, error)) *Client_CreateJob_Call
- type Client_CreateNamespace_Call
- func (_c *Client_CreateNamespace_Call) Return(_a0 error) *Client_CreateNamespace_Call
- func (_c *Client_CreateNamespace_Call) Run(run func(ctx context.Context, namespace string)) *Client_CreateNamespace_Call
- func (_c *Client_CreateNamespace_Call) RunAndReturn(run func(context.Context, string) error) *Client_CreateNamespace_Call
- type Client_CreateSecret_Call
- func (_c *Client_CreateSecret_Call) Return(_a0 error) *Client_CreateSecret_Call
- func (_c *Client_CreateSecret_Call) Run(run func(ctx context.Context, secret *v1.Secret)) *Client_CreateSecret_Call
- func (_c *Client_CreateSecret_Call) RunAndReturn(run func(context.Context, *v1.Secret) error) *Client_CreateSecret_Call
- type Client_CreateServiceAccount_Call
- func (_c *Client_CreateServiceAccount_Call) Return(_a0 error) *Client_CreateServiceAccount_Call
- func (_c *Client_CreateServiceAccount_Call) Run(run func(ctx context.Context, svcAcc *v1.ServiceAccount)) *Client_CreateServiceAccount_Call
- func (_c *Client_CreateServiceAccount_Call) RunAndReturn(run func(context.Context, *v1.ServiceAccount) error) *Client_CreateServiceAccount_Call
- type Client_CreateService_Call
- func (_c *Client_CreateService_Call) Return(_a0 error) *Client_CreateService_Call
- func (_c *Client_CreateService_Call) Run(run func(ctx context.Context, service *v1.Service)) *Client_CreateService_Call
- func (_c *Client_CreateService_Call) RunAndReturn(run func(context.Context, *v1.Service) error) *Client_CreateService_Call
- type Client_DeleteNamespace_Call
- func (_c *Client_DeleteNamespace_Call) Return(_a0 error) *Client_DeleteNamespace_Call
- func (_c *Client_DeleteNamespace_Call) Run(run func(ctx context.Context, namespace string)) *Client_DeleteNamespace_Call
- func (_c *Client_DeleteNamespace_Call) RunAndReturn(run func(context.Context, string) error) *Client_DeleteNamespace_Call
- type Client_Expecter
- func (_e *Client_Expecter) ApplyKPackBuilds(ctx interface{}, builds interface{}) *Client_ApplyKPackBuilds_Call
- func (_e *Client_Expecter) AreServicesAlive(ctx interface{}, namespace interface{}) *Client_AreServicesAlive_Call
- func (_e *Client_Expecter) CopySecret(ctx interface{}, fromNS interface{}, toNS interface{}, name interface{}) *Client_CopySecret_Call
- func (_e *Client_Expecter) CreateConfigMap(ctx interface{}, configMap interface{}) *Client_CreateConfigMap_Call
- func (_e *Client_Expecter) CreateDeployment(ctx interface{}, deployment interface{}) *Client_CreateDeployment_Call
- func (_e *Client_Expecter) CreateIngress(ctx interface{}, ingress interface{}) *Client_CreateIngress_Call
- func (_e *Client_Expecter) CreateJob(ctx interface{}, job interface{}) *Client_CreateJob_Call
- func (_e *Client_Expecter) CreateNamespace(ctx interface{}, namespace interface{}) *Client_CreateNamespace_Call
- func (_e *Client_Expecter) CreateSecret(ctx interface{}, secret interface{}) *Client_CreateSecret_Call
- func (_e *Client_Expecter) CreateService(ctx interface{}, service interface{}) *Client_CreateService_Call
- func (_e *Client_Expecter) CreateServiceAccount(ctx interface{}, svcAcc interface{}) *Client_CreateServiceAccount_Call
- func (_e *Client_Expecter) DeleteNamespace(ctx interface{}, namespace interface{}) *Client_DeleteNamespace_Call
- func (_e *Client_Expecter) GetDeployment(ctx interface{}, namespace interface{}, deploymentName interface{}) *Client_GetDeployment_Call
- func (_e *Client_Expecter) GetIngress(ctx interface{}, namespace interface{}, name interface{}) *Client_GetIngress_Call
- func (_e *Client_Expecter) GetIngressUrl(ctx interface{}, namespace interface{}, serviceName interface{}, ...) *Client_GetIngressUrl_Call
- func (_e *Client_Expecter) GetJobLogs(ctx interface{}, job interface{}, size interface{}) *Client_GetJobLogs_Call
- func (_e *Client_Expecter) GetPreviewNamespaces(ctx interface{}) *Client_GetPreviewNamespaces_Call
- func (_e *Client_Expecter) ListJobs(ctx interface{}, namespace interface{}) *Client_ListJobs_Call
- func (_e *Client_Expecter) ScaleDeployment(ctx interface{}, namespace interface{}, deploymentName interface{}, ...) *Client_ScaleDeployment_Call
- func (_e *Client_Expecter) UpdateIngress(ctx interface{}, ingress interface{}) *Client_UpdateIngress_Call
- func (_e *Client_Expecter) WaitDeployments(ctx interface{}, namespace interface{}) *Client_WaitDeployments_Call
- func (_e *Client_Expecter) WaitJobs(ctx interface{}, jobs interface{}) *Client_WaitJobs_Call
- func (_e *Client_Expecter) WatchResource(ctx interface{}, gvr interface{}, handler interface{}) *Client_WatchResource_Call
- func (_e *Client_Expecter) WatchServiceLogs(ctx interface{}, namespace interface{}, name interface{}, ...) *Client_WatchServiceLogs_Call
- type Client_GetDeployment_Call
- func (_c *Client_GetDeployment_Call) Return(_a0 *appsv1.Deployment, _a1 error) *Client_GetDeployment_Call
- func (_c *Client_GetDeployment_Call) Run(run func(ctx context.Context, namespace string, deploymentName string)) *Client_GetDeployment_Call
- func (_c *Client_GetDeployment_Call) RunAndReturn(run func(context.Context, string, string) (*appsv1.Deployment, error)) *Client_GetDeployment_Call
- type Client_GetIngressUrl_Call
- func (_c *Client_GetIngressUrl_Call) Return(_a0 string, _a1 error) *Client_GetIngressUrl_Call
- func (_c *Client_GetIngressUrl_Call) Run(...) *Client_GetIngressUrl_Call
- func (_c *Client_GetIngressUrl_Call) RunAndReturn(run func(context.Context, string, string, string) (string, error)) *Client_GetIngressUrl_Call
- type Client_GetIngress_Call
- func (_c *Client_GetIngress_Call) Return(_a0 *networkingv1.Ingress, _a1 error) *Client_GetIngress_Call
- func (_c *Client_GetIngress_Call) Run(run func(ctx context.Context, namespace string, name string)) *Client_GetIngress_Call
- func (_c *Client_GetIngress_Call) RunAndReturn(run func(context.Context, string, string) (*networkingv1.Ingress, error)) *Client_GetIngress_Call
- type Client_GetJobLogs_Call
- func (_c *Client_GetJobLogs_Call) Return(_a0 string, _a1 error) *Client_GetJobLogs_Call
- func (_c *Client_GetJobLogs_Call) Run(run func(ctx context.Context, job *batchv1.Job, size int64)) *Client_GetJobLogs_Call
- func (_c *Client_GetJobLogs_Call) RunAndReturn(run func(context.Context, *batchv1.Job, int64) (string, error)) *Client_GetJobLogs_Call
- type Client_GetPreviewNamespaces_Call
- func (_c *Client_GetPreviewNamespaces_Call) Return(_a0 []v1.Namespace, _a1 error) *Client_GetPreviewNamespaces_Call
- func (_c *Client_GetPreviewNamespaces_Call) Run(run func(ctx context.Context)) *Client_GetPreviewNamespaces_Call
- func (_c *Client_GetPreviewNamespaces_Call) RunAndReturn(run func(context.Context) ([]v1.Namespace, error)) *Client_GetPreviewNamespaces_Call
- type Client_ListJobs_Call
- func (_c *Client_ListJobs_Call) Return(_a0 []*batchv1.Job, _a1 error) *Client_ListJobs_Call
- func (_c *Client_ListJobs_Call) Run(run func(ctx context.Context, namespace string)) *Client_ListJobs_Call
- func (_c *Client_ListJobs_Call) RunAndReturn(run func(context.Context, string) ([]*batchv1.Job, error)) *Client_ListJobs_Call
- type Client_ScaleDeployment_Call
- type Client_UpdateIngress_Call
- func (_c *Client_UpdateIngress_Call) Return(_a0 error) *Client_UpdateIngress_Call
- func (_c *Client_UpdateIngress_Call) Run(run func(ctx context.Context, ingress *networkingv1.Ingress)) *Client_UpdateIngress_Call
- func (_c *Client_UpdateIngress_Call) RunAndReturn(run func(context.Context, *networkingv1.Ingress) error) *Client_UpdateIngress_Call
- type Client_WaitDeployments_Call
- func (_c *Client_WaitDeployments_Call) Return(_a0 error) *Client_WaitDeployments_Call
- func (_c *Client_WaitDeployments_Call) Run(run func(ctx context.Context, namespace string)) *Client_WaitDeployments_Call
- func (_c *Client_WaitDeployments_Call) RunAndReturn(run func(context.Context, string) error) *Client_WaitDeployments_Call
- type Client_WaitJobs_Call
- func (_c *Client_WaitJobs_Call) Return(_a0 *cluster.WaitJobsResult, _a1 error) *Client_WaitJobs_Call
- func (_c *Client_WaitJobs_Call) Run(run func(ctx context.Context, jobs []*batchv1.Job)) *Client_WaitJobs_Call
- func (_c *Client_WaitJobs_Call) RunAndReturn(run func(context.Context, []*batchv1.Job) (*cluster.WaitJobsResult, error)) *Client_WaitJobs_Call
- type Client_WatchResource_Call
- func (_c *Client_WatchResource_Call) Return(_a0 cluster.Starter, _a1 error) *Client_WatchResource_Call
- func (_c *Client_WatchResource_Call) Run(run func(ctx context.Context, gvr schema.GroupVersionResource, ...)) *Client_WatchResource_Call
- func (_c *Client_WatchResource_Call) RunAndReturn(...) *Client_WatchResource_Call
- type Client_WatchServiceLogs_Call
- type Starter
- type Starter_Expecter
- type Starter_Start_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 ¶
func NewClient(t mockConstructorTestingTNewClient) *Client
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.
func (*Client) ApplyKPackBuilds ¶
ApplyKPackBuilds provides a mock function with given fields: ctx, builds
func (*Client) AreServicesAlive ¶
AreServicesAlive provides a mock function with given fields: ctx, namespace
func (*Client) CopySecret ¶
func (_m *Client) CopySecret(ctx context.Context, fromNS string, toNS string, name string) (*v1.Secret, error)
CopySecret provides a mock function with given fields: ctx, fromNS, toNS, name
func (*Client) CreateConfigMap ¶
CreateConfigMap provides a mock function with given fields: ctx, configMap
func (*Client) CreateDeployment ¶
CreateDeployment provides a mock function with given fields: ctx, deployment
func (*Client) CreateIngress ¶
CreateIngress provides a mock function with given fields: ctx, ingress
func (*Client) CreateNamespace ¶
CreateNamespace provides a mock function with given fields: ctx, namespace
func (*Client) CreateSecret ¶
CreateSecret provides a mock function with given fields: ctx, secret
func (*Client) CreateService ¶
CreateService provides a mock function with given fields: ctx, service
func (*Client) CreateServiceAccount ¶
CreateServiceAccount provides a mock function with given fields: ctx, svcAcc
func (*Client) DeleteNamespace ¶
DeleteNamespace provides a mock function with given fields: ctx, namespace
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) GetDeployment ¶
func (_m *Client) GetDeployment(ctx context.Context, namespace string, deploymentName string) (*appsv1.Deployment, error)
GetDeployment provides a mock function with given fields: ctx, namespace, deploymentName
func (*Client) GetIngress ¶
func (_m *Client) GetIngress(ctx context.Context, namespace string, name string) (*networkingv1.Ingress, error)
GetIngress provides a mock function with given fields: ctx, namespace, name
func (*Client) GetIngressUrl ¶
func (_m *Client) GetIngressUrl(ctx context.Context, namespace string, serviceName string, protocol string) (string, error)
GetIngressUrl provides a mock function with given fields: ctx, namespace, serviceName, protocol
func (*Client) GetJobLogs ¶
GetJobLogs provides a mock function with given fields: ctx, job, size
func (*Client) GetPreviewNamespaces ¶
GetPreviewNamespaces provides a mock function with given fields: ctx
func (*Client) ScaleDeployment ¶
func (_m *Client) ScaleDeployment(ctx context.Context, namespace string, deploymentName string, replicas int32) error
ScaleDeployment provides a mock function with given fields: ctx, namespace, deploymentName, replicas
func (*Client) UpdateIngress ¶
UpdateIngress provides a mock function with given fields: ctx, ingress
func (*Client) WaitDeployments ¶
WaitDeployments provides a mock function with given fields: ctx, namespace
func (*Client) WaitJobs ¶
func (_m *Client) WaitJobs(ctx context.Context, jobs []*batchv1.Job) (*cluster.WaitJobsResult, error)
WaitJobs provides a mock function with given fields: ctx, jobs
func (*Client) WatchResource ¶
func (_m *Client) WatchResource(ctx context.Context, gvr schema.GroupVersionResource, handler cache.ResourceEventHandlerFuncs) (cluster.Starter, error)
WatchResource provides a mock function with given fields: ctx, gvr, handler
type Client_ApplyKPackBuilds_Call ¶
Client_ApplyKPackBuilds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyKPackBuilds'
func (*Client_ApplyKPackBuilds_Call) Return ¶
func (_c *Client_ApplyKPackBuilds_Call) Return(_a0 error) *Client_ApplyKPackBuilds_Call
func (*Client_ApplyKPackBuilds_Call) Run ¶
func (_c *Client_ApplyKPackBuilds_Call) Run(run func(ctx context.Context, builds []*v1alpha2.Build)) *Client_ApplyKPackBuilds_Call
func (*Client_ApplyKPackBuilds_Call) RunAndReturn ¶
func (_c *Client_ApplyKPackBuilds_Call) RunAndReturn(run func(context.Context, []*v1alpha2.Build) error) *Client_ApplyKPackBuilds_Call
type Client_AreServicesAlive_Call ¶
Client_AreServicesAlive_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AreServicesAlive'
func (*Client_AreServicesAlive_Call) Return ¶
func (_c *Client_AreServicesAlive_Call) Return(_a0 bool, _a1 error) *Client_AreServicesAlive_Call
func (*Client_AreServicesAlive_Call) Run ¶
func (_c *Client_AreServicesAlive_Call) Run(run func(ctx context.Context, namespace string)) *Client_AreServicesAlive_Call
func (*Client_AreServicesAlive_Call) RunAndReturn ¶
func (_c *Client_AreServicesAlive_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *Client_AreServicesAlive_Call
type Client_CopySecret_Call ¶
Client_CopySecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CopySecret'
func (*Client_CopySecret_Call) Return ¶
func (_c *Client_CopySecret_Call) Return(_a0 *v1.Secret, _a1 error) *Client_CopySecret_Call
func (*Client_CopySecret_Call) Run ¶
func (_c *Client_CopySecret_Call) Run(run func(ctx context.Context, fromNS string, toNS string, name string)) *Client_CopySecret_Call
func (*Client_CopySecret_Call) RunAndReturn ¶
func (_c *Client_CopySecret_Call) RunAndReturn(run func(context.Context, string, string, string) (*v1.Secret, error)) *Client_CopySecret_Call
type Client_CreateConfigMap_Call ¶
Client_CreateConfigMap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateConfigMap'
func (*Client_CreateConfigMap_Call) Return ¶
func (_c *Client_CreateConfigMap_Call) Return(_a0 error) *Client_CreateConfigMap_Call
func (*Client_CreateConfigMap_Call) Run ¶
func (_c *Client_CreateConfigMap_Call) Run(run func(ctx context.Context, configMap *v1.ConfigMap)) *Client_CreateConfigMap_Call
func (*Client_CreateConfigMap_Call) RunAndReturn ¶
func (_c *Client_CreateConfigMap_Call) RunAndReturn(run func(context.Context, *v1.ConfigMap) error) *Client_CreateConfigMap_Call
type Client_CreateDeployment_Call ¶
Client_CreateDeployment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateDeployment'
func (*Client_CreateDeployment_Call) Return ¶
func (_c *Client_CreateDeployment_Call) Return(_a0 error) *Client_CreateDeployment_Call
func (*Client_CreateDeployment_Call) Run ¶
func (_c *Client_CreateDeployment_Call) Run(run func(ctx context.Context, deployment *appsv1.Deployment)) *Client_CreateDeployment_Call
func (*Client_CreateDeployment_Call) RunAndReturn ¶
func (_c *Client_CreateDeployment_Call) RunAndReturn(run func(context.Context, *appsv1.Deployment) error) *Client_CreateDeployment_Call
type Client_CreateIngress_Call ¶
Client_CreateIngress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateIngress'
func (*Client_CreateIngress_Call) Return ¶
func (_c *Client_CreateIngress_Call) Return(_a0 error) *Client_CreateIngress_Call
func (*Client_CreateIngress_Call) Run ¶
func (_c *Client_CreateIngress_Call) Run(run func(ctx context.Context, ingress *networkingv1.Ingress)) *Client_CreateIngress_Call
func (*Client_CreateIngress_Call) RunAndReturn ¶
func (_c *Client_CreateIngress_Call) RunAndReturn(run func(context.Context, *networkingv1.Ingress) error) *Client_CreateIngress_Call
type Client_CreateJob_Call ¶
Client_CreateJob_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateJob'
func (*Client_CreateJob_Call) Return ¶
func (_c *Client_CreateJob_Call) Return(_a0 *batchv1.Job, _a1 error) *Client_CreateJob_Call
func (*Client_CreateJob_Call) Run ¶
func (_c *Client_CreateJob_Call) Run(run func(ctx context.Context, job *batchv1.Job)) *Client_CreateJob_Call
func (*Client_CreateJob_Call) RunAndReturn ¶
func (_c *Client_CreateJob_Call) RunAndReturn(run func(context.Context, *batchv1.Job) (*batchv1.Job, error)) *Client_CreateJob_Call
type Client_CreateNamespace_Call ¶
Client_CreateNamespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateNamespace'
func (*Client_CreateNamespace_Call) Return ¶
func (_c *Client_CreateNamespace_Call) Return(_a0 error) *Client_CreateNamespace_Call
func (*Client_CreateNamespace_Call) Run ¶
func (_c *Client_CreateNamespace_Call) Run(run func(ctx context.Context, namespace string)) *Client_CreateNamespace_Call
func (*Client_CreateNamespace_Call) RunAndReturn ¶
func (_c *Client_CreateNamespace_Call) RunAndReturn(run func(context.Context, string) error) *Client_CreateNamespace_Call
type Client_CreateSecret_Call ¶
Client_CreateSecret_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateSecret'
func (*Client_CreateSecret_Call) Return ¶
func (_c *Client_CreateSecret_Call) Return(_a0 error) *Client_CreateSecret_Call
func (*Client_CreateSecret_Call) Run ¶
func (_c *Client_CreateSecret_Call) Run(run func(ctx context.Context, secret *v1.Secret)) *Client_CreateSecret_Call
func (*Client_CreateSecret_Call) RunAndReturn ¶
func (_c *Client_CreateSecret_Call) RunAndReturn(run func(context.Context, *v1.Secret) error) *Client_CreateSecret_Call
type Client_CreateServiceAccount_Call ¶
Client_CreateServiceAccount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateServiceAccount'
func (*Client_CreateServiceAccount_Call) Return ¶
func (_c *Client_CreateServiceAccount_Call) Return(_a0 error) *Client_CreateServiceAccount_Call
func (*Client_CreateServiceAccount_Call) Run ¶
func (_c *Client_CreateServiceAccount_Call) Run(run func(ctx context.Context, svcAcc *v1.ServiceAccount)) *Client_CreateServiceAccount_Call
func (*Client_CreateServiceAccount_Call) RunAndReturn ¶
func (_c *Client_CreateServiceAccount_Call) RunAndReturn(run func(context.Context, *v1.ServiceAccount) error) *Client_CreateServiceAccount_Call
type Client_CreateService_Call ¶
Client_CreateService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateService'
func (*Client_CreateService_Call) Return ¶
func (_c *Client_CreateService_Call) Return(_a0 error) *Client_CreateService_Call
func (*Client_CreateService_Call) Run ¶
func (_c *Client_CreateService_Call) Run(run func(ctx context.Context, service *v1.Service)) *Client_CreateService_Call
func (*Client_CreateService_Call) RunAndReturn ¶
func (_c *Client_CreateService_Call) RunAndReturn(run func(context.Context, *v1.Service) error) *Client_CreateService_Call
type Client_DeleteNamespace_Call ¶
Client_DeleteNamespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteNamespace'
func (*Client_DeleteNamespace_Call) Return ¶
func (_c *Client_DeleteNamespace_Call) Return(_a0 error) *Client_DeleteNamespace_Call
func (*Client_DeleteNamespace_Call) Run ¶
func (_c *Client_DeleteNamespace_Call) Run(run func(ctx context.Context, namespace string)) *Client_DeleteNamespace_Call
func (*Client_DeleteNamespace_Call) RunAndReturn ¶
func (_c *Client_DeleteNamespace_Call) RunAndReturn(run func(context.Context, string) error) *Client_DeleteNamespace_Call
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) ApplyKPackBuilds ¶
func (_e *Client_Expecter) ApplyKPackBuilds(ctx interface{}, builds interface{}) *Client_ApplyKPackBuilds_Call
ApplyKPackBuilds is a helper method to define mock.On call
- ctx context.Context
- builds []*v1alpha2.Build
func (*Client_Expecter) AreServicesAlive ¶
func (_e *Client_Expecter) AreServicesAlive(ctx interface{}, namespace interface{}) *Client_AreServicesAlive_Call
AreServicesAlive is a helper method to define mock.On call
- ctx context.Context
- namespace string
func (*Client_Expecter) CopySecret ¶
func (_e *Client_Expecter) CopySecret(ctx interface{}, fromNS interface{}, toNS interface{}, name interface{}) *Client_CopySecret_Call
CopySecret is a helper method to define mock.On call
- ctx context.Context
- fromNS string
- toNS string
- name string
func (*Client_Expecter) CreateConfigMap ¶
func (_e *Client_Expecter) CreateConfigMap(ctx interface{}, configMap interface{}) *Client_CreateConfigMap_Call
CreateConfigMap is a helper method to define mock.On call
- ctx context.Context
- configMap *v1.ConfigMap
func (*Client_Expecter) CreateDeployment ¶
func (_e *Client_Expecter) CreateDeployment(ctx interface{}, deployment interface{}) *Client_CreateDeployment_Call
CreateDeployment is a helper method to define mock.On call
- ctx context.Context
- deployment *appsv1.Deployment
func (*Client_Expecter) CreateIngress ¶
func (_e *Client_Expecter) CreateIngress(ctx interface{}, ingress interface{}) *Client_CreateIngress_Call
CreateIngress is a helper method to define mock.On call
- ctx context.Context
- ingress *networkingv1.Ingress
func (*Client_Expecter) CreateJob ¶
func (_e *Client_Expecter) CreateJob(ctx interface{}, job interface{}) *Client_CreateJob_Call
CreateJob is a helper method to define mock.On call
- ctx context.Context
- job *batchv1.Job
func (*Client_Expecter) CreateNamespace ¶
func (_e *Client_Expecter) CreateNamespace(ctx interface{}, namespace interface{}) *Client_CreateNamespace_Call
CreateNamespace is a helper method to define mock.On call
- ctx context.Context
- namespace string
func (*Client_Expecter) CreateSecret ¶
func (_e *Client_Expecter) CreateSecret(ctx interface{}, secret interface{}) *Client_CreateSecret_Call
CreateSecret is a helper method to define mock.On call
- ctx context.Context
- secret *v1.Secret
func (*Client_Expecter) CreateService ¶
func (_e *Client_Expecter) CreateService(ctx interface{}, service interface{}) *Client_CreateService_Call
CreateService is a helper method to define mock.On call
- ctx context.Context
- service *v1.Service
func (*Client_Expecter) CreateServiceAccount ¶
func (_e *Client_Expecter) CreateServiceAccount(ctx interface{}, svcAcc interface{}) *Client_CreateServiceAccount_Call
CreateServiceAccount is a helper method to define mock.On call
- ctx context.Context
- svcAcc *v1.ServiceAccount
func (*Client_Expecter) DeleteNamespace ¶
func (_e *Client_Expecter) DeleteNamespace(ctx interface{}, namespace interface{}) *Client_DeleteNamespace_Call
DeleteNamespace is a helper method to define mock.On call
- ctx context.Context
- namespace string
func (*Client_Expecter) GetDeployment ¶
func (_e *Client_Expecter) GetDeployment(ctx interface{}, namespace interface{}, deploymentName interface{}) *Client_GetDeployment_Call
GetDeployment is a helper method to define mock.On call
- ctx context.Context
- namespace string
- deploymentName string
func (*Client_Expecter) GetIngress ¶
func (_e *Client_Expecter) GetIngress(ctx interface{}, namespace interface{}, name interface{}) *Client_GetIngress_Call
GetIngress is a helper method to define mock.On call
- ctx context.Context
- namespace string
- name string
func (*Client_Expecter) GetIngressUrl ¶
func (_e *Client_Expecter) GetIngressUrl(ctx interface{}, namespace interface{}, serviceName interface{}, protocol interface{}) *Client_GetIngressUrl_Call
GetIngressUrl is a helper method to define mock.On call
- ctx context.Context
- namespace string
- serviceName string
- protocol string
func (*Client_Expecter) GetJobLogs ¶
func (_e *Client_Expecter) GetJobLogs(ctx interface{}, job interface{}, size interface{}) *Client_GetJobLogs_Call
GetJobLogs is a helper method to define mock.On call
- ctx context.Context
- job *batchv1.Job
- size int64
func (*Client_Expecter) GetPreviewNamespaces ¶
func (_e *Client_Expecter) GetPreviewNamespaces(ctx interface{}) *Client_GetPreviewNamespaces_Call
GetPreviewNamespaces is a helper method to define mock.On call
- ctx context.Context
func (*Client_Expecter) ListJobs ¶
func (_e *Client_Expecter) ListJobs(ctx interface{}, namespace interface{}) *Client_ListJobs_Call
ListJobs is a helper method to define mock.On call
- ctx context.Context
- namespace string
func (*Client_Expecter) ScaleDeployment ¶
func (_e *Client_Expecter) ScaleDeployment(ctx interface{}, namespace interface{}, deploymentName interface{}, replicas interface{}) *Client_ScaleDeployment_Call
ScaleDeployment is a helper method to define mock.On call
- ctx context.Context
- namespace string
- deploymentName string
- replicas int32
func (*Client_Expecter) UpdateIngress ¶
func (_e *Client_Expecter) UpdateIngress(ctx interface{}, ingress interface{}) *Client_UpdateIngress_Call
UpdateIngress is a helper method to define mock.On call
- ctx context.Context
- ingress *networkingv1.Ingress
func (*Client_Expecter) WaitDeployments ¶
func (_e *Client_Expecter) WaitDeployments(ctx interface{}, namespace interface{}) *Client_WaitDeployments_Call
WaitDeployments is a helper method to define mock.On call
- ctx context.Context
- namespace string
func (*Client_Expecter) WaitJobs ¶
func (_e *Client_Expecter) WaitJobs(ctx interface{}, jobs interface{}) *Client_WaitJobs_Call
WaitJobs is a helper method to define mock.On call
- ctx context.Context
- jobs []*batchv1.Job
func (*Client_Expecter) WatchResource ¶
func (_e *Client_Expecter) WatchResource(ctx interface{}, gvr interface{}, handler interface{}) *Client_WatchResource_Call
WatchResource is a helper method to define mock.On call
- ctx context.Context
- gvr schema.GroupVersionResource
- handler cache.ResourceEventHandlerFuncs
func (*Client_Expecter) WatchServiceLogs ¶
func (_e *Client_Expecter) WatchServiceLogs(ctx interface{}, namespace interface{}, name interface{}, sinceSeconds interface{}) *Client_WatchServiceLogs_Call
WatchServiceLogs is a helper method to define mock.On call
- ctx context.Context
- namespace string
- name string
- sinceSeconds int64
type Client_GetDeployment_Call ¶
Client_GetDeployment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDeployment'
func (*Client_GetDeployment_Call) Return ¶
func (_c *Client_GetDeployment_Call) Return(_a0 *appsv1.Deployment, _a1 error) *Client_GetDeployment_Call
func (*Client_GetDeployment_Call) Run ¶
func (_c *Client_GetDeployment_Call) Run(run func(ctx context.Context, namespace string, deploymentName string)) *Client_GetDeployment_Call
func (*Client_GetDeployment_Call) RunAndReturn ¶
func (_c *Client_GetDeployment_Call) RunAndReturn(run func(context.Context, string, string) (*appsv1.Deployment, error)) *Client_GetDeployment_Call
type Client_GetIngressUrl_Call ¶
Client_GetIngressUrl_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIngressUrl'
func (*Client_GetIngressUrl_Call) Return ¶
func (_c *Client_GetIngressUrl_Call) Return(_a0 string, _a1 error) *Client_GetIngressUrl_Call
func (*Client_GetIngressUrl_Call) Run ¶
func (_c *Client_GetIngressUrl_Call) Run(run func(ctx context.Context, namespace string, serviceName string, protocol string)) *Client_GetIngressUrl_Call
func (*Client_GetIngressUrl_Call) RunAndReturn ¶
func (_c *Client_GetIngressUrl_Call) RunAndReturn(run func(context.Context, string, string, string) (string, error)) *Client_GetIngressUrl_Call
type Client_GetIngress_Call ¶
Client_GetIngress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetIngress'
func (*Client_GetIngress_Call) Return ¶
func (_c *Client_GetIngress_Call) Return(_a0 *networkingv1.Ingress, _a1 error) *Client_GetIngress_Call
func (*Client_GetIngress_Call) Run ¶
func (_c *Client_GetIngress_Call) Run(run func(ctx context.Context, namespace string, name string)) *Client_GetIngress_Call
func (*Client_GetIngress_Call) RunAndReturn ¶
func (_c *Client_GetIngress_Call) RunAndReturn(run func(context.Context, string, string) (*networkingv1.Ingress, error)) *Client_GetIngress_Call
type Client_GetJobLogs_Call ¶
Client_GetJobLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetJobLogs'
func (*Client_GetJobLogs_Call) Return ¶
func (_c *Client_GetJobLogs_Call) Return(_a0 string, _a1 error) *Client_GetJobLogs_Call
func (*Client_GetJobLogs_Call) Run ¶
func (_c *Client_GetJobLogs_Call) Run(run func(ctx context.Context, job *batchv1.Job, size int64)) *Client_GetJobLogs_Call
func (*Client_GetJobLogs_Call) RunAndReturn ¶
func (_c *Client_GetJobLogs_Call) RunAndReturn(run func(context.Context, *batchv1.Job, int64) (string, error)) *Client_GetJobLogs_Call
type Client_GetPreviewNamespaces_Call ¶
Client_GetPreviewNamespaces_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPreviewNamespaces'
func (*Client_GetPreviewNamespaces_Call) Return ¶
func (_c *Client_GetPreviewNamespaces_Call) Return(_a0 []v1.Namespace, _a1 error) *Client_GetPreviewNamespaces_Call
func (*Client_GetPreviewNamespaces_Call) Run ¶
func (_c *Client_GetPreviewNamespaces_Call) Run(run func(ctx context.Context)) *Client_GetPreviewNamespaces_Call
func (*Client_GetPreviewNamespaces_Call) RunAndReturn ¶
func (_c *Client_GetPreviewNamespaces_Call) RunAndReturn(run func(context.Context) ([]v1.Namespace, error)) *Client_GetPreviewNamespaces_Call
type Client_ListJobs_Call ¶
Client_ListJobs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListJobs'
func (*Client_ListJobs_Call) Return ¶
func (_c *Client_ListJobs_Call) Return(_a0 []*batchv1.Job, _a1 error) *Client_ListJobs_Call
func (*Client_ListJobs_Call) Run ¶
func (_c *Client_ListJobs_Call) Run(run func(ctx context.Context, namespace string)) *Client_ListJobs_Call
func (*Client_ListJobs_Call) RunAndReturn ¶
func (_c *Client_ListJobs_Call) RunAndReturn(run func(context.Context, string) ([]*batchv1.Job, error)) *Client_ListJobs_Call
type Client_ScaleDeployment_Call ¶
Client_ScaleDeployment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ScaleDeployment'
func (*Client_ScaleDeployment_Call) Return ¶
func (_c *Client_ScaleDeployment_Call) Return(_a0 error) *Client_ScaleDeployment_Call
func (*Client_ScaleDeployment_Call) Run ¶
func (_c *Client_ScaleDeployment_Call) Run(run func(ctx context.Context, namespace string, deploymentName string, replicas int32)) *Client_ScaleDeployment_Call
func (*Client_ScaleDeployment_Call) RunAndReturn ¶
func (_c *Client_ScaleDeployment_Call) RunAndReturn(run func(context.Context, string, string, int32) error) *Client_ScaleDeployment_Call
type Client_UpdateIngress_Call ¶
Client_UpdateIngress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateIngress'
func (*Client_UpdateIngress_Call) Return ¶
func (_c *Client_UpdateIngress_Call) Return(_a0 error) *Client_UpdateIngress_Call
func (*Client_UpdateIngress_Call) Run ¶
func (_c *Client_UpdateIngress_Call) Run(run func(ctx context.Context, ingress *networkingv1.Ingress)) *Client_UpdateIngress_Call
func (*Client_UpdateIngress_Call) RunAndReturn ¶
func (_c *Client_UpdateIngress_Call) RunAndReturn(run func(context.Context, *networkingv1.Ingress) error) *Client_UpdateIngress_Call
type Client_WaitDeployments_Call ¶
Client_WaitDeployments_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitDeployments'
func (*Client_WaitDeployments_Call) Return ¶
func (_c *Client_WaitDeployments_Call) Return(_a0 error) *Client_WaitDeployments_Call
func (*Client_WaitDeployments_Call) Run ¶
func (_c *Client_WaitDeployments_Call) Run(run func(ctx context.Context, namespace string)) *Client_WaitDeployments_Call
func (*Client_WaitDeployments_Call) RunAndReturn ¶
func (_c *Client_WaitDeployments_Call) RunAndReturn(run func(context.Context, string) error) *Client_WaitDeployments_Call
type Client_WaitJobs_Call ¶
Client_WaitJobs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitJobs'
func (*Client_WaitJobs_Call) Return ¶
func (_c *Client_WaitJobs_Call) Return(_a0 *cluster.WaitJobsResult, _a1 error) *Client_WaitJobs_Call
func (*Client_WaitJobs_Call) Run ¶
func (_c *Client_WaitJobs_Call) Run(run func(ctx context.Context, jobs []*batchv1.Job)) *Client_WaitJobs_Call
func (*Client_WaitJobs_Call) RunAndReturn ¶
func (_c *Client_WaitJobs_Call) RunAndReturn(run func(context.Context, []*batchv1.Job) (*cluster.WaitJobsResult, error)) *Client_WaitJobs_Call
type Client_WatchResource_Call ¶
Client_WatchResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WatchResource'
func (*Client_WatchResource_Call) Return ¶
func (_c *Client_WatchResource_Call) Return(_a0 cluster.Starter, _a1 error) *Client_WatchResource_Call
func (*Client_WatchResource_Call) Run ¶
func (_c *Client_WatchResource_Call) Run(run func(ctx context.Context, gvr schema.GroupVersionResource, handler cache.ResourceEventHandlerFuncs)) *Client_WatchResource_Call
func (*Client_WatchResource_Call) RunAndReturn ¶
func (_c *Client_WatchResource_Call) RunAndReturn(run func(context.Context, schema.GroupVersionResource, cache.ResourceEventHandlerFuncs) (cluster.Starter, error)) *Client_WatchResource_Call
type Client_WatchServiceLogs_Call ¶
Client_WatchServiceLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WatchServiceLogs'
func (*Client_WatchServiceLogs_Call) Return ¶
func (_c *Client_WatchServiceLogs_Call) Return(_a0 <-chan string, _a1 <-chan error, _a2 error) *Client_WatchServiceLogs_Call
func (*Client_WatchServiceLogs_Call) Run ¶
func (_c *Client_WatchServiceLogs_Call) Run(run func(ctx context.Context, namespace string, name string, sinceSeconds int64)) *Client_WatchServiceLogs_Call
func (*Client_WatchServiceLogs_Call) RunAndReturn ¶
func (_c *Client_WatchServiceLogs_Call) RunAndReturn(run func(context.Context, string, string, int64) (<-chan string, <-chan error, error)) *Client_WatchServiceLogs_Call
type Starter ¶
Starter is an autogenerated mock type for the Starter type
func NewStarter ¶
func NewStarter(t mockConstructorTestingTNewStarter) *Starter
NewStarter creates a new instance of Starter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*Starter) EXPECT ¶
func (_m *Starter) EXPECT() *Starter_Expecter
type Starter_Expecter ¶
type Starter_Expecter struct {
// contains filtered or unexported fields
}
func (*Starter_Expecter) Start ¶
func (_e *Starter_Expecter) Start(stopCh interface{}) *Starter_Start_Call
Start is a helper method to define mock.On call
- stopCh <-chan struct{}
type Starter_Start_Call ¶
Starter_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Starter_Start_Call) Return ¶
func (_c *Starter_Start_Call) Return() *Starter_Start_Call
func (*Starter_Start_Call) Run ¶
func (_c *Starter_Start_Call) Run(run func(stopCh <-chan struct{})) *Starter_Start_Call
func (*Starter_Start_Call) RunAndReturn ¶
func (_c *Starter_Start_Call) RunAndReturn(run func(<-chan struct{})) *Starter_Start_Call