Documentation
¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: k8s.io/client-go/kubernetes/typed/apps/v1 (interfaces: AppsV1Interface,DeploymentInterface)
Generated by this command:
mockgen -package=deploy -destination mock_appsv1.go k8s.io/client-go/kubernetes/typed/apps/v1 AppsV1Interface,DeploymentInterface
Package deploy is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: k8s.io/client-go/kubernetes/typed/core/v1 (interfaces: CoreV1Interface,NamespaceInterface)
Generated by this command:
mockgen -package=deploy -destination mock_corev1.go k8s.io/client-go/kubernetes/typed/core/v1 CoreV1Interface,NamespaceInterface
Package deploy is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: deploy.go
Generated by this command:
mockgen -source=deploy.go -package=deploy -destination=mock_deploy.go
Package deploy is a generated GoMock package.
Index ¶
- func CheckNFDOperatorDeployed(apiClient *clients.Settings, waitTime time.Duration) (bool, error)
- func CreateNFDNamespace(apiClient *clients.Settings) error
- func CreateNFDOperatorGroup(apiClient *clients.Settings) error
- func CreateNFDSubscription(apiClient *clients.Settings, nfdCatalogSource string) error
- func DeleteAnyNFDCSV(apiClient *clients.Settings) error
- func DeleteNFDCSV(apiClient *clients.Settings) error
- func DeleteNFDNamespace(apiClient *clients.Settings) error
- func DeleteNFDOperatorGroup(apiClient *clients.Settings) error
- func DeleteNFDSubscription(apiClient *clients.Settings) error
- func DeployCRInstance(apiClient *clients.Settings) error
- func GetNFDCRJson(apiClient *clients.Settings, nfdCRName string, nfdNamespace string) error
- func NFDCRDeleteAndWait(apiClient *clients.Settings, nfdCRName string, nfdCRNamespace string, ...) error
- type BundleConfig
- type Deploy
- type MockAppsV1Interface
- func (m *MockAppsV1Interface) ControllerRevisions(arg0 string) v14.ControllerRevisionInterface
- func (m *MockAppsV1Interface) DaemonSets(arg0 string) v14.DaemonSetInterface
- func (m *MockAppsV1Interface) Deployments(arg0 string) v14.DeploymentInterface
- func (m *MockAppsV1Interface) EXPECT() *MockAppsV1InterfaceMockRecorder
- func (m *MockAppsV1Interface) RESTClient() rest.Interface
- func (m *MockAppsV1Interface) ReplicaSets(arg0 string) v14.ReplicaSetInterface
- func (m *MockAppsV1Interface) StatefulSets(arg0 string) v14.StatefulSetInterface
- type MockAppsV1InterfaceMockRecorder
- func (mr *MockAppsV1InterfaceMockRecorder) ControllerRevisions(arg0 any) *gomock.Call
- func (mr *MockAppsV1InterfaceMockRecorder) DaemonSets(arg0 any) *gomock.Call
- func (mr *MockAppsV1InterfaceMockRecorder) Deployments(arg0 any) *gomock.Call
- func (mr *MockAppsV1InterfaceMockRecorder) RESTClient() *gomock.Call
- func (mr *MockAppsV1InterfaceMockRecorder) ReplicaSets(arg0 any) *gomock.Call
- func (mr *MockAppsV1InterfaceMockRecorder) StatefulSets(arg0 any) *gomock.Call
- type MockCoreV1Interface
- func (m *MockCoreV1Interface) ComponentStatuses() v12.ComponentStatusInterface
- func (m *MockCoreV1Interface) ConfigMaps(arg0 string) v12.ConfigMapInterface
- func (m *MockCoreV1Interface) EXPECT() *MockCoreV1InterfaceMockRecorder
- func (m *MockCoreV1Interface) Endpoints(arg0 string) v12.EndpointsInterface
- func (m *MockCoreV1Interface) Events(arg0 string) v12.EventInterface
- func (m *MockCoreV1Interface) LimitRanges(arg0 string) v12.LimitRangeInterface
- func (m *MockCoreV1Interface) Namespaces() v12.NamespaceInterface
- func (m *MockCoreV1Interface) Nodes() v12.NodeInterface
- func (m *MockCoreV1Interface) PersistentVolumeClaims(arg0 string) v12.PersistentVolumeClaimInterface
- func (m *MockCoreV1Interface) PersistentVolumes() v12.PersistentVolumeInterface
- func (m *MockCoreV1Interface) PodTemplates(arg0 string) v12.PodTemplateInterface
- func (m *MockCoreV1Interface) Pods(arg0 string) v12.PodInterface
- func (m *MockCoreV1Interface) RESTClient() rest.Interface
- func (m *MockCoreV1Interface) ReplicationControllers(arg0 string) v12.ReplicationControllerInterface
- func (m *MockCoreV1Interface) ResourceQuotas(arg0 string) v12.ResourceQuotaInterface
- func (m *MockCoreV1Interface) Secrets(arg0 string) v12.SecretInterface
- func (m *MockCoreV1Interface) ServiceAccounts(arg0 string) v12.ServiceAccountInterface
- func (m *MockCoreV1Interface) Services(arg0 string) v12.ServiceInterface
- type MockCoreV1InterfaceMockRecorder
- func (mr *MockCoreV1InterfaceMockRecorder) ComponentStatuses() *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) ConfigMaps(arg0 any) *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) Endpoints(arg0 any) *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) Events(arg0 any) *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) LimitRanges(arg0 any) *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) Namespaces() *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) Nodes() *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) PersistentVolumeClaims(arg0 any) *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) PersistentVolumes() *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) PodTemplates(arg0 any) *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) Pods(arg0 any) *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) RESTClient() *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) ReplicationControllers(arg0 any) *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) ResourceQuotas(arg0 any) *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) Secrets(arg0 any) *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) ServiceAccounts(arg0 any) *gomock.Call
- func (mr *MockCoreV1InterfaceMockRecorder) Services(arg0 any) *gomock.Call
- type MockDeploy
- func (m *MockDeploy) CreateAndLabelNamespaceIfNeeded(logLevel glog.Level, targetNs string, labels map[string]string) (*namespace.Builder, error)
- func (m *MockDeploy) DeployBundle(logLevel glog.Level, bundleConfig *BundleConfig, ns string, ...) error
- func (m *MockDeploy) EXPECT() *MockDeployMockRecorder
- func (m *MockDeploy) GetBundleConfig(logLevel glog.Level) (*BundleConfig, error)
- func (m *MockDeploy) WaitForReadyStatus(logLevel glog.Level, name, ns string, timeout time.Duration) error
- type MockDeployMockRecorder
- func (mr *MockDeployMockRecorder) CreateAndLabelNamespaceIfNeeded(logLevel, targetNs, labels any) *gomock.Call
- func (mr *MockDeployMockRecorder) DeployBundle(logLevel, bundleConfig, ns, timeout any) *gomock.Call
- func (mr *MockDeployMockRecorder) GetBundleConfig(logLevel any) *gomock.Call
- func (mr *MockDeployMockRecorder) WaitForReadyStatus(logLevel, name, ns, timeout any) *gomock.Call
- type MockDeploymentInterface
- func (m *MockDeploymentInterface) Apply(arg0 context.Context, arg1 *v12.DeploymentApplyConfiguration, ...) (*v1.Deployment, error)
- func (m *MockDeploymentInterface) ApplyScale(arg0 context.Context, arg1 string, arg2 *v13.ScaleApplyConfiguration, ...) (*v10.Scale, error)
- func (m *MockDeploymentInterface) ApplyStatus(arg0 context.Context, arg1 *v12.DeploymentApplyConfiguration, ...) (*v1.Deployment, error)
- func (m *MockDeploymentInterface) Create(arg0 context.Context, arg1 *v1.Deployment, arg2 v11.CreateOptions) (*v1.Deployment, error)
- func (m *MockDeploymentInterface) Delete(arg0 context.Context, arg1 string, arg2 v11.DeleteOptions) error
- func (m *MockDeploymentInterface) DeleteCollection(arg0 context.Context, arg1 v11.DeleteOptions, arg2 v11.ListOptions) error
- func (m *MockDeploymentInterface) EXPECT() *MockDeploymentInterfaceMockRecorder
- func (m *MockDeploymentInterface) Get(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v1.Deployment, error)
- func (m *MockDeploymentInterface) GetScale(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v10.Scale, error)
- func (m *MockDeploymentInterface) List(arg0 context.Context, arg1 v11.ListOptions) (*v1.DeploymentList, error)
- func (m *MockDeploymentInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, ...) (*v1.Deployment, error)
- func (m *MockDeploymentInterface) Update(arg0 context.Context, arg1 *v1.Deployment, arg2 v11.UpdateOptions) (*v1.Deployment, error)
- func (m *MockDeploymentInterface) UpdateScale(arg0 context.Context, arg1 string, arg2 *v10.Scale, arg3 v11.UpdateOptions) (*v10.Scale, error)
- func (m *MockDeploymentInterface) UpdateStatus(arg0 context.Context, arg1 *v1.Deployment, arg2 v11.UpdateOptions) (*v1.Deployment, error)
- func (m *MockDeploymentInterface) Watch(arg0 context.Context, arg1 v11.ListOptions) (watch.Interface, error)
- type MockDeploymentInterfaceMockRecorder
- func (mr *MockDeploymentInterfaceMockRecorder) Apply(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) ApplyScale(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) GetScale(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) List(arg0, arg1 any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 any, arg5 ...any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) UpdateScale(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockDeploymentInterfaceMockRecorder) Watch(arg0, arg1 any) *gomock.Call
- type MockNamespaceInterface
- func (m *MockNamespaceInterface) Apply(arg0 context.Context, arg1 *v11.NamespaceApplyConfiguration, ...) (*v1.Namespace, error)
- func (m *MockNamespaceInterface) ApplyStatus(arg0 context.Context, arg1 *v11.NamespaceApplyConfiguration, ...) (*v1.Namespace, error)
- func (m *MockNamespaceInterface) Create(arg0 context.Context, arg1 *v1.Namespace, arg2 v10.CreateOptions) (*v1.Namespace, error)
- func (m *MockNamespaceInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error
- func (m *MockNamespaceInterface) EXPECT() *MockNamespaceInterfaceMockRecorder
- func (m *MockNamespaceInterface) Finalize(arg0 context.Context, arg1 *v1.Namespace, arg2 v10.UpdateOptions) (*v1.Namespace, error)
- func (m *MockNamespaceInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Namespace, error)
- func (m *MockNamespaceInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.NamespaceList, error)
- func (m *MockNamespaceInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, ...) (*v1.Namespace, error)
- func (m *MockNamespaceInterface) Update(arg0 context.Context, arg1 *v1.Namespace, arg2 v10.UpdateOptions) (*v1.Namespace, error)
- func (m *MockNamespaceInterface) UpdateStatus(arg0 context.Context, arg1 *v1.Namespace, arg2 v10.UpdateOptions) (*v1.Namespace, error)
- func (m *MockNamespaceInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error)
- type MockNamespaceInterfaceMockRecorder
- func (mr *MockNamespaceInterfaceMockRecorder) Apply(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNamespaceInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNamespaceInterfaceMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNamespaceInterfaceMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNamespaceInterfaceMockRecorder) Finalize(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNamespaceInterfaceMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNamespaceInterfaceMockRecorder) List(arg0, arg1 any) *gomock.Call
- func (mr *MockNamespaceInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 any, arg5 ...any) *gomock.Call
- func (mr *MockNamespaceInterfaceMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNamespaceInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockNamespaceInterfaceMockRecorder) Watch(arg0, arg1 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNFDOperatorDeployed ¶
CheckNFDOperatorDeployed checks that NFD Operator is successfully deployed in NFD namespace.
func CreateNFDNamespace ¶
CreateNFDNamespace creates and labels NFD namespace.
func CreateNFDOperatorGroup ¶
CreateNFDOperatorGroup creates NFD OperatorGroup in NFD namespace.
func CreateNFDSubscription ¶
CreateNFDSubscription creates NFD Subscription in NFD namespace.
func DeleteAnyNFDCSV ¶
DeleteAnyNFDCSV Deletes all CSVs that belong to a the NFD subscription (by name) in the NFD subscription namespace. Equivalent to `oc delete csv -n <namespace> -l operators.coreos.com/<name>.<namespace>`
func DeleteNFDCSV ¶
DeleteNFDCSV Deletes NFD CSV in NFD namespace.
func DeleteNFDNamespace ¶
DeleteNFDNamespace creates and labels NFD namespace.
func DeleteNFDOperatorGroup ¶
DeleteNFDOperatorGroup creates NFD OperatorGroup in NFD namespace.
func DeleteNFDSubscription ¶
DeleteNFDSubscription Deletes NFD Subscription in NFD namespace.
func DeployCRInstance ¶
DeployCRInstance deploys NodeFeatureDiscovery instance from current CSV almExamples.
func GetNFDCRJson ¶
GetNFDCRJson outputs the NFD CR instance json file.
Types ¶
type BundleConfig ¶
type BundleConfig struct {
BundleImage string `` /* 151-byte string literal not displayed */
}
type Deploy ¶
type Deploy interface { GetBundleConfig(logLevel glog.Level) (*BundleConfig, error) CreateAndLabelNamespaceIfNeeded(logLevel glog.Level, targetNs string, labels map[string]string) (*namespace.Builder, error) DeployBundle(logLevel glog.Level, bundleConfig *BundleConfig, ns string, timeout time.Duration) error WaitForReadyStatus(logLevel glog.Level, name, ns string, timeout time.Duration) error }
type MockAppsV1Interface ¶
type MockAppsV1Interface struct {
// contains filtered or unexported fields
}
MockAppsV1Interface is a mock of AppsV1Interface interface.
func NewMockAppsV1Interface ¶
func NewMockAppsV1Interface(ctrl *gomock.Controller) *MockAppsV1Interface
NewMockAppsV1Interface creates a new mock instance.
func (*MockAppsV1Interface) ControllerRevisions ¶
func (m *MockAppsV1Interface) ControllerRevisions(arg0 string) v14.ControllerRevisionInterface
ControllerRevisions mocks base method.
func (*MockAppsV1Interface) DaemonSets ¶
func (m *MockAppsV1Interface) DaemonSets(arg0 string) v14.DaemonSetInterface
DaemonSets mocks base method.
func (*MockAppsV1Interface) Deployments ¶
func (m *MockAppsV1Interface) Deployments(arg0 string) v14.DeploymentInterface
Deployments mocks base method.
func (*MockAppsV1Interface) EXPECT ¶
func (m *MockAppsV1Interface) EXPECT() *MockAppsV1InterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAppsV1Interface) RESTClient ¶
func (m *MockAppsV1Interface) RESTClient() rest.Interface
RESTClient mocks base method.
func (*MockAppsV1Interface) ReplicaSets ¶
func (m *MockAppsV1Interface) ReplicaSets(arg0 string) v14.ReplicaSetInterface
ReplicaSets mocks base method.
func (*MockAppsV1Interface) StatefulSets ¶
func (m *MockAppsV1Interface) StatefulSets(arg0 string) v14.StatefulSetInterface
StatefulSets mocks base method.
type MockAppsV1InterfaceMockRecorder ¶
type MockAppsV1InterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockAppsV1InterfaceMockRecorder is the mock recorder for MockAppsV1Interface.
func (*MockAppsV1InterfaceMockRecorder) ControllerRevisions ¶
func (mr *MockAppsV1InterfaceMockRecorder) ControllerRevisions(arg0 any) *gomock.Call
ControllerRevisions indicates an expected call of ControllerRevisions.
func (*MockAppsV1InterfaceMockRecorder) DaemonSets ¶
func (mr *MockAppsV1InterfaceMockRecorder) DaemonSets(arg0 any) *gomock.Call
DaemonSets indicates an expected call of DaemonSets.
func (*MockAppsV1InterfaceMockRecorder) Deployments ¶
func (mr *MockAppsV1InterfaceMockRecorder) Deployments(arg0 any) *gomock.Call
Deployments indicates an expected call of Deployments.
func (*MockAppsV1InterfaceMockRecorder) RESTClient ¶
func (mr *MockAppsV1InterfaceMockRecorder) RESTClient() *gomock.Call
RESTClient indicates an expected call of RESTClient.
func (*MockAppsV1InterfaceMockRecorder) ReplicaSets ¶
func (mr *MockAppsV1InterfaceMockRecorder) ReplicaSets(arg0 any) *gomock.Call
ReplicaSets indicates an expected call of ReplicaSets.
func (*MockAppsV1InterfaceMockRecorder) StatefulSets ¶
func (mr *MockAppsV1InterfaceMockRecorder) StatefulSets(arg0 any) *gomock.Call
StatefulSets indicates an expected call of StatefulSets.
type MockCoreV1Interface ¶
type MockCoreV1Interface struct {
// contains filtered or unexported fields
}
MockCoreV1Interface is a mock of CoreV1Interface interface.
func NewMockCoreV1Interface ¶
func NewMockCoreV1Interface(ctrl *gomock.Controller) *MockCoreV1Interface
NewMockCoreV1Interface creates a new mock instance.
func (*MockCoreV1Interface) ComponentStatuses ¶
func (m *MockCoreV1Interface) ComponentStatuses() v12.ComponentStatusInterface
ComponentStatuses mocks base method.
func (*MockCoreV1Interface) ConfigMaps ¶
func (m *MockCoreV1Interface) ConfigMaps(arg0 string) v12.ConfigMapInterface
ConfigMaps mocks base method.
func (*MockCoreV1Interface) EXPECT ¶
func (m *MockCoreV1Interface) EXPECT() *MockCoreV1InterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCoreV1Interface) Endpoints ¶
func (m *MockCoreV1Interface) Endpoints(arg0 string) v12.EndpointsInterface
Endpoints mocks base method.
func (*MockCoreV1Interface) Events ¶
func (m *MockCoreV1Interface) Events(arg0 string) v12.EventInterface
Events mocks base method.
func (*MockCoreV1Interface) LimitRanges ¶
func (m *MockCoreV1Interface) LimitRanges(arg0 string) v12.LimitRangeInterface
LimitRanges mocks base method.
func (*MockCoreV1Interface) Namespaces ¶
func (m *MockCoreV1Interface) Namespaces() v12.NamespaceInterface
Namespaces mocks base method.
func (*MockCoreV1Interface) Nodes ¶
func (m *MockCoreV1Interface) Nodes() v12.NodeInterface
Nodes mocks base method.
func (*MockCoreV1Interface) PersistentVolumeClaims ¶
func (m *MockCoreV1Interface) PersistentVolumeClaims(arg0 string) v12.PersistentVolumeClaimInterface
PersistentVolumeClaims mocks base method.
func (*MockCoreV1Interface) PersistentVolumes ¶
func (m *MockCoreV1Interface) PersistentVolumes() v12.PersistentVolumeInterface
PersistentVolumes mocks base method.
func (*MockCoreV1Interface) PodTemplates ¶
func (m *MockCoreV1Interface) PodTemplates(arg0 string) v12.PodTemplateInterface
PodTemplates mocks base method.
func (*MockCoreV1Interface) Pods ¶
func (m *MockCoreV1Interface) Pods(arg0 string) v12.PodInterface
Pods mocks base method.
func (*MockCoreV1Interface) RESTClient ¶
func (m *MockCoreV1Interface) RESTClient() rest.Interface
RESTClient mocks base method.
func (*MockCoreV1Interface) ReplicationControllers ¶
func (m *MockCoreV1Interface) ReplicationControllers(arg0 string) v12.ReplicationControllerInterface
ReplicationControllers mocks base method.
func (*MockCoreV1Interface) ResourceQuotas ¶
func (m *MockCoreV1Interface) ResourceQuotas(arg0 string) v12.ResourceQuotaInterface
ResourceQuotas mocks base method.
func (*MockCoreV1Interface) Secrets ¶
func (m *MockCoreV1Interface) Secrets(arg0 string) v12.SecretInterface
Secrets mocks base method.
func (*MockCoreV1Interface) ServiceAccounts ¶
func (m *MockCoreV1Interface) ServiceAccounts(arg0 string) v12.ServiceAccountInterface
ServiceAccounts mocks base method.
func (*MockCoreV1Interface) Services ¶
func (m *MockCoreV1Interface) Services(arg0 string) v12.ServiceInterface
Services mocks base method.
type MockCoreV1InterfaceMockRecorder ¶
type MockCoreV1InterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockCoreV1InterfaceMockRecorder is the mock recorder for MockCoreV1Interface.
func (*MockCoreV1InterfaceMockRecorder) ComponentStatuses ¶
func (mr *MockCoreV1InterfaceMockRecorder) ComponentStatuses() *gomock.Call
ComponentStatuses indicates an expected call of ComponentStatuses.
func (*MockCoreV1InterfaceMockRecorder) ConfigMaps ¶
func (mr *MockCoreV1InterfaceMockRecorder) ConfigMaps(arg0 any) *gomock.Call
ConfigMaps indicates an expected call of ConfigMaps.
func (*MockCoreV1InterfaceMockRecorder) Endpoints ¶
func (mr *MockCoreV1InterfaceMockRecorder) Endpoints(arg0 any) *gomock.Call
Endpoints indicates an expected call of Endpoints.
func (*MockCoreV1InterfaceMockRecorder) Events ¶
func (mr *MockCoreV1InterfaceMockRecorder) Events(arg0 any) *gomock.Call
Events indicates an expected call of Events.
func (*MockCoreV1InterfaceMockRecorder) LimitRanges ¶
func (mr *MockCoreV1InterfaceMockRecorder) LimitRanges(arg0 any) *gomock.Call
LimitRanges indicates an expected call of LimitRanges.
func (*MockCoreV1InterfaceMockRecorder) Namespaces ¶
func (mr *MockCoreV1InterfaceMockRecorder) Namespaces() *gomock.Call
Namespaces indicates an expected call of Namespaces.
func (*MockCoreV1InterfaceMockRecorder) Nodes ¶
func (mr *MockCoreV1InterfaceMockRecorder) Nodes() *gomock.Call
Nodes indicates an expected call of Nodes.
func (*MockCoreV1InterfaceMockRecorder) PersistentVolumeClaims ¶
func (mr *MockCoreV1InterfaceMockRecorder) PersistentVolumeClaims(arg0 any) *gomock.Call
PersistentVolumeClaims indicates an expected call of PersistentVolumeClaims.
func (*MockCoreV1InterfaceMockRecorder) PersistentVolumes ¶
func (mr *MockCoreV1InterfaceMockRecorder) PersistentVolumes() *gomock.Call
PersistentVolumes indicates an expected call of PersistentVolumes.
func (*MockCoreV1InterfaceMockRecorder) PodTemplates ¶
func (mr *MockCoreV1InterfaceMockRecorder) PodTemplates(arg0 any) *gomock.Call
PodTemplates indicates an expected call of PodTemplates.
func (*MockCoreV1InterfaceMockRecorder) Pods ¶
func (mr *MockCoreV1InterfaceMockRecorder) Pods(arg0 any) *gomock.Call
Pods indicates an expected call of Pods.
func (*MockCoreV1InterfaceMockRecorder) RESTClient ¶
func (mr *MockCoreV1InterfaceMockRecorder) RESTClient() *gomock.Call
RESTClient indicates an expected call of RESTClient.
func (*MockCoreV1InterfaceMockRecorder) ReplicationControllers ¶
func (mr *MockCoreV1InterfaceMockRecorder) ReplicationControllers(arg0 any) *gomock.Call
ReplicationControllers indicates an expected call of ReplicationControllers.
func (*MockCoreV1InterfaceMockRecorder) ResourceQuotas ¶
func (mr *MockCoreV1InterfaceMockRecorder) ResourceQuotas(arg0 any) *gomock.Call
ResourceQuotas indicates an expected call of ResourceQuotas.
func (*MockCoreV1InterfaceMockRecorder) Secrets ¶
func (mr *MockCoreV1InterfaceMockRecorder) Secrets(arg0 any) *gomock.Call
Secrets indicates an expected call of Secrets.
func (*MockCoreV1InterfaceMockRecorder) ServiceAccounts ¶
func (mr *MockCoreV1InterfaceMockRecorder) ServiceAccounts(arg0 any) *gomock.Call
ServiceAccounts indicates an expected call of ServiceAccounts.
type MockDeploy ¶
type MockDeploy struct {
// contains filtered or unexported fields
}
MockDeploy is a mock of Deploy interface.
func NewMockDeploy ¶
func NewMockDeploy(ctrl *gomock.Controller) *MockDeploy
NewMockDeploy creates a new mock instance.
func (*MockDeploy) CreateAndLabelNamespaceIfNeeded ¶
func (m *MockDeploy) CreateAndLabelNamespaceIfNeeded(logLevel glog.Level, targetNs string, labels map[string]string) (*namespace.Builder, error)
CreateAndLabelNamespaceIfNeeded mocks base method.
func (*MockDeploy) DeployBundle ¶
func (m *MockDeploy) DeployBundle(logLevel glog.Level, bundleConfig *BundleConfig, ns string, timeout time.Duration) error
DeployBundle mocks base method.
func (*MockDeploy) EXPECT ¶
func (m *MockDeploy) EXPECT() *MockDeployMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDeploy) GetBundleConfig ¶
func (m *MockDeploy) GetBundleConfig(logLevel glog.Level) (*BundleConfig, error)
GetBundleConfig mocks base method.
func (*MockDeploy) WaitForReadyStatus ¶
func (m *MockDeploy) WaitForReadyStatus(logLevel glog.Level, name, ns string, timeout time.Duration) error
WaitForReadyStatus mocks base method.
type MockDeployMockRecorder ¶
type MockDeployMockRecorder struct {
// contains filtered or unexported fields
}
MockDeployMockRecorder is the mock recorder for MockDeploy.
func (*MockDeployMockRecorder) CreateAndLabelNamespaceIfNeeded ¶
func (mr *MockDeployMockRecorder) CreateAndLabelNamespaceIfNeeded(logLevel, targetNs, labels any) *gomock.Call
CreateAndLabelNamespaceIfNeeded indicates an expected call of CreateAndLabelNamespaceIfNeeded.
func (*MockDeployMockRecorder) DeployBundle ¶
func (mr *MockDeployMockRecorder) DeployBundle(logLevel, bundleConfig, ns, timeout any) *gomock.Call
DeployBundle indicates an expected call of DeployBundle.
func (*MockDeployMockRecorder) GetBundleConfig ¶
func (mr *MockDeployMockRecorder) GetBundleConfig(logLevel any) *gomock.Call
GetBundleConfig indicates an expected call of GetBundleConfig.
func (*MockDeployMockRecorder) WaitForReadyStatus ¶
func (mr *MockDeployMockRecorder) WaitForReadyStatus(logLevel, name, ns, timeout any) *gomock.Call
WaitForReadyStatus indicates an expected call of WaitForReadyStatus.
type MockDeploymentInterface ¶
type MockDeploymentInterface struct {
// contains filtered or unexported fields
}
MockDeploymentInterface is a mock of DeploymentInterface interface.
func NewMockDeploymentInterface ¶
func NewMockDeploymentInterface(ctrl *gomock.Controller) *MockDeploymentInterface
NewMockDeploymentInterface creates a new mock instance.
func (*MockDeploymentInterface) Apply ¶
func (m *MockDeploymentInterface) Apply(arg0 context.Context, arg1 *v12.DeploymentApplyConfiguration, arg2 v11.ApplyOptions) (*v1.Deployment, error)
Apply mocks base method.
func (*MockDeploymentInterface) ApplyScale ¶
func (m *MockDeploymentInterface) ApplyScale(arg0 context.Context, arg1 string, arg2 *v13.ScaleApplyConfiguration, arg3 v11.ApplyOptions) (*v10.Scale, error)
ApplyScale mocks base method.
func (*MockDeploymentInterface) ApplyStatus ¶
func (m *MockDeploymentInterface) ApplyStatus(arg0 context.Context, arg1 *v12.DeploymentApplyConfiguration, arg2 v11.ApplyOptions) (*v1.Deployment, error)
ApplyStatus mocks base method.
func (*MockDeploymentInterface) Create ¶
func (m *MockDeploymentInterface) Create(arg0 context.Context, arg1 *v1.Deployment, arg2 v11.CreateOptions) (*v1.Deployment, error)
Create mocks base method.
func (*MockDeploymentInterface) Delete ¶
func (m *MockDeploymentInterface) Delete(arg0 context.Context, arg1 string, arg2 v11.DeleteOptions) error
Delete mocks base method.
func (*MockDeploymentInterface) DeleteCollection ¶
func (m *MockDeploymentInterface) DeleteCollection(arg0 context.Context, arg1 v11.DeleteOptions, arg2 v11.ListOptions) error
DeleteCollection mocks base method.
func (*MockDeploymentInterface) EXPECT ¶
func (m *MockDeploymentInterface) EXPECT() *MockDeploymentInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDeploymentInterface) Get ¶
func (m *MockDeploymentInterface) Get(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v1.Deployment, error)
Get mocks base method.
func (*MockDeploymentInterface) GetScale ¶
func (m *MockDeploymentInterface) GetScale(arg0 context.Context, arg1 string, arg2 v11.GetOptions) (*v10.Scale, error)
GetScale mocks base method.
func (*MockDeploymentInterface) List ¶
func (m *MockDeploymentInterface) List(arg0 context.Context, arg1 v11.ListOptions) (*v1.DeploymentList, error)
List mocks base method.
func (*MockDeploymentInterface) Patch ¶
func (m *MockDeploymentInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v11.PatchOptions, arg5 ...string) (*v1.Deployment, error)
Patch mocks base method.
func (*MockDeploymentInterface) Update ¶
func (m *MockDeploymentInterface) Update(arg0 context.Context, arg1 *v1.Deployment, arg2 v11.UpdateOptions) (*v1.Deployment, error)
Update mocks base method.
func (*MockDeploymentInterface) UpdateScale ¶
func (m *MockDeploymentInterface) UpdateScale(arg0 context.Context, arg1 string, arg2 *v10.Scale, arg3 v11.UpdateOptions) (*v10.Scale, error)
UpdateScale mocks base method.
func (*MockDeploymentInterface) UpdateStatus ¶
func (m *MockDeploymentInterface) UpdateStatus(arg0 context.Context, arg1 *v1.Deployment, arg2 v11.UpdateOptions) (*v1.Deployment, error)
UpdateStatus mocks base method.
func (*MockDeploymentInterface) Watch ¶
func (m *MockDeploymentInterface) Watch(arg0 context.Context, arg1 v11.ListOptions) (watch.Interface, error)
Watch mocks base method.
type MockDeploymentInterfaceMockRecorder ¶
type MockDeploymentInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockDeploymentInterfaceMockRecorder is the mock recorder for MockDeploymentInterface.
func (*MockDeploymentInterfaceMockRecorder) Apply ¶
func (mr *MockDeploymentInterfaceMockRecorder) Apply(arg0, arg1, arg2 any) *gomock.Call
Apply indicates an expected call of Apply.
func (*MockDeploymentInterfaceMockRecorder) ApplyScale ¶
func (mr *MockDeploymentInterfaceMockRecorder) ApplyScale(arg0, arg1, arg2, arg3 any) *gomock.Call
ApplyScale indicates an expected call of ApplyScale.
func (*MockDeploymentInterfaceMockRecorder) ApplyStatus ¶
func (mr *MockDeploymentInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 any) *gomock.Call
ApplyStatus indicates an expected call of ApplyStatus.
func (*MockDeploymentInterfaceMockRecorder) Create ¶
func (mr *MockDeploymentInterfaceMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockDeploymentInterfaceMockRecorder) Delete ¶
func (mr *MockDeploymentInterfaceMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockDeploymentInterfaceMockRecorder) DeleteCollection ¶
func (mr *MockDeploymentInterfaceMockRecorder) DeleteCollection(arg0, arg1, arg2 any) *gomock.Call
DeleteCollection indicates an expected call of DeleteCollection.
func (*MockDeploymentInterfaceMockRecorder) Get ¶
func (mr *MockDeploymentInterfaceMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call
Get indicates an expected call of Get.
func (*MockDeploymentInterfaceMockRecorder) GetScale ¶
func (mr *MockDeploymentInterfaceMockRecorder) GetScale(arg0, arg1, arg2 any) *gomock.Call
GetScale indicates an expected call of GetScale.
func (*MockDeploymentInterfaceMockRecorder) List ¶
func (mr *MockDeploymentInterfaceMockRecorder) List(arg0, arg1 any) *gomock.Call
List indicates an expected call of List.
func (*MockDeploymentInterfaceMockRecorder) Patch ¶
func (mr *MockDeploymentInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 any, arg5 ...any) *gomock.Call
Patch indicates an expected call of Patch.
func (*MockDeploymentInterfaceMockRecorder) Update ¶
func (mr *MockDeploymentInterfaceMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call
Update indicates an expected call of Update.
func (*MockDeploymentInterfaceMockRecorder) UpdateScale ¶
func (mr *MockDeploymentInterfaceMockRecorder) UpdateScale(arg0, arg1, arg2, arg3 any) *gomock.Call
UpdateScale indicates an expected call of UpdateScale.
func (*MockDeploymentInterfaceMockRecorder) UpdateStatus ¶
func (mr *MockDeploymentInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 any) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.
type MockNamespaceInterface ¶
type MockNamespaceInterface struct {
// contains filtered or unexported fields
}
MockNamespaceInterface is a mock of NamespaceInterface interface.
func NewMockNamespaceInterface ¶
func NewMockNamespaceInterface(ctrl *gomock.Controller) *MockNamespaceInterface
NewMockNamespaceInterface creates a new mock instance.
func (*MockNamespaceInterface) Apply ¶
func (m *MockNamespaceInterface) Apply(arg0 context.Context, arg1 *v11.NamespaceApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Namespace, error)
Apply mocks base method.
func (*MockNamespaceInterface) ApplyStatus ¶
func (m *MockNamespaceInterface) ApplyStatus(arg0 context.Context, arg1 *v11.NamespaceApplyConfiguration, arg2 v10.ApplyOptions) (*v1.Namespace, error)
ApplyStatus mocks base method.
func (*MockNamespaceInterface) Create ¶
func (m *MockNamespaceInterface) Create(arg0 context.Context, arg1 *v1.Namespace, arg2 v10.CreateOptions) (*v1.Namespace, error)
Create mocks base method.
func (*MockNamespaceInterface) Delete ¶
func (m *MockNamespaceInterface) Delete(arg0 context.Context, arg1 string, arg2 v10.DeleteOptions) error
Delete mocks base method.
func (*MockNamespaceInterface) EXPECT ¶
func (m *MockNamespaceInterface) EXPECT() *MockNamespaceInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockNamespaceInterface) Finalize ¶
func (m *MockNamespaceInterface) Finalize(arg0 context.Context, arg1 *v1.Namespace, arg2 v10.UpdateOptions) (*v1.Namespace, error)
Finalize mocks base method.
func (*MockNamespaceInterface) Get ¶
func (m *MockNamespaceInterface) Get(arg0 context.Context, arg1 string, arg2 v10.GetOptions) (*v1.Namespace, error)
Get mocks base method.
func (*MockNamespaceInterface) List ¶
func (m *MockNamespaceInterface) List(arg0 context.Context, arg1 v10.ListOptions) (*v1.NamespaceList, error)
List mocks base method.
func (*MockNamespaceInterface) Patch ¶
func (m *MockNamespaceInterface) Patch(arg0 context.Context, arg1 string, arg2 types.PatchType, arg3 []byte, arg4 v10.PatchOptions, arg5 ...string) (*v1.Namespace, error)
Patch mocks base method.
func (*MockNamespaceInterface) Update ¶
func (m *MockNamespaceInterface) Update(arg0 context.Context, arg1 *v1.Namespace, arg2 v10.UpdateOptions) (*v1.Namespace, error)
Update mocks base method.
func (*MockNamespaceInterface) UpdateStatus ¶
func (m *MockNamespaceInterface) UpdateStatus(arg0 context.Context, arg1 *v1.Namespace, arg2 v10.UpdateOptions) (*v1.Namespace, error)
UpdateStatus mocks base method.
func (*MockNamespaceInterface) Watch ¶
func (m *MockNamespaceInterface) Watch(arg0 context.Context, arg1 v10.ListOptions) (watch.Interface, error)
Watch mocks base method.
type MockNamespaceInterfaceMockRecorder ¶
type MockNamespaceInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockNamespaceInterfaceMockRecorder is the mock recorder for MockNamespaceInterface.
func (*MockNamespaceInterfaceMockRecorder) Apply ¶
func (mr *MockNamespaceInterfaceMockRecorder) Apply(arg0, arg1, arg2 any) *gomock.Call
Apply indicates an expected call of Apply.
func (*MockNamespaceInterfaceMockRecorder) ApplyStatus ¶
func (mr *MockNamespaceInterfaceMockRecorder) ApplyStatus(arg0, arg1, arg2 any) *gomock.Call
ApplyStatus indicates an expected call of ApplyStatus.
func (*MockNamespaceInterfaceMockRecorder) Create ¶
func (mr *MockNamespaceInterfaceMockRecorder) Create(arg0, arg1, arg2 any) *gomock.Call
Create indicates an expected call of Create.
func (*MockNamespaceInterfaceMockRecorder) Delete ¶
func (mr *MockNamespaceInterfaceMockRecorder) Delete(arg0, arg1, arg2 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockNamespaceInterfaceMockRecorder) Finalize ¶
func (mr *MockNamespaceInterfaceMockRecorder) Finalize(arg0, arg1, arg2 any) *gomock.Call
Finalize indicates an expected call of Finalize.
func (*MockNamespaceInterfaceMockRecorder) Get ¶
func (mr *MockNamespaceInterfaceMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call
Get indicates an expected call of Get.
func (*MockNamespaceInterfaceMockRecorder) List ¶
func (mr *MockNamespaceInterfaceMockRecorder) List(arg0, arg1 any) *gomock.Call
List indicates an expected call of List.
func (*MockNamespaceInterfaceMockRecorder) Patch ¶
func (mr *MockNamespaceInterfaceMockRecorder) Patch(arg0, arg1, arg2, arg3, arg4 any, arg5 ...any) *gomock.Call
Patch indicates an expected call of Patch.
func (*MockNamespaceInterfaceMockRecorder) Update ¶
func (mr *MockNamespaceInterfaceMockRecorder) Update(arg0, arg1, arg2 any) *gomock.Call
Update indicates an expected call of Update.
func (*MockNamespaceInterfaceMockRecorder) UpdateStatus ¶
func (mr *MockNamespaceInterfaceMockRecorder) UpdateStatus(arg0, arg1, arg2 any) *gomock.Call
UpdateStatus indicates an expected call of UpdateStatus.