stubs

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package stubs to do unit tests for package github.com/bitgrip/cattlectl/internal/pkg/rancher uses

github.com/bitgrip/cattlectl/internal/pkg/rancher uses:

  • clusterClient "github.com/rancher/types/client/cluster/v3"
  • managementClient "github.com/rancher/types/client/management/v3"
  • projectClient "github.com/rancher/types/client/project/v3"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppOperationsStub

type AppOperationsStub struct {
	DoList          func(opts *types.ListOpts) (*projectClient.AppCollection, error)
	DoCreate        func(opts *projectClient.App) (*projectClient.App, error)
	DoActionUpgrade func(resource *projectClient.App, input *projectClient.AppUpgradeConfig) error
	// contains filtered or unexported fields
}

AppOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/AppOperations

func CreateAppOperationsStub

func CreateAppOperationsStub(tb testing.TB) *AppOperationsStub

CreateAppOperationsStub creates a stub of github.com/rancher/types/client/project/v3/AppOperations

func (AppOperationsStub) ActionRollback

func (stub AppOperationsStub) ActionRollback(resource *projectClient.App, input *projectClient.RollbackRevision) error

ActionRollback implements github.com/rancher/types/client/project/v3/AppOperations.ActionRollback(...)

func (AppOperationsStub) ActionUpgrade

func (stub AppOperationsStub) ActionUpgrade(resource *projectClient.App, input *projectClient.AppUpgradeConfig) error

ActionUpgrade implements github.com/rancher/types/client/project/v3/AppOperations.ActionUpgrade(...)

func (AppOperationsStub) ByID

func (stub AppOperationsStub) ByID(id string) (*projectClient.App, error)

ByID implements github.com/rancher/types/client/project/v3/AppOperations.ByID(...)

func (AppOperationsStub) Create

func (stub AppOperationsStub) Create(opts *projectClient.App) (*projectClient.App, error)

Create implements github.com/rancher/types/client/project/v3/AppOperations.Create(...)

func (AppOperationsStub) Delete

func (stub AppOperationsStub) Delete(container *projectClient.App) error

Delete implements github.com/rancher/types/client/project/v3/AppOperations.Delete(...)

func (AppOperationsStub) List

List implements github.com/rancher/types/client/project/v3/AppOperations.List(...)

func (AppOperationsStub) Replace

func (stub AppOperationsStub) Replace(existing *projectClient.App) (*projectClient.App, error)

Replace implements github.com/rancher/types/client/project/v3/AppOperations.Replace(...)

func (AppOperationsStub) Update

func (stub AppOperationsStub) Update(existing *projectClient.App, updates interface{}) (*projectClient.App, error)

Update implements github.com/rancher/types/client/project/v3/AppOperations.Update(...)

type BackendStubs added in v1.1.0

type BackendStubs struct {
	ClusterClient    *clusterClient.Client
	ManagementClient *managementClient.Client
	ProjectClient    *projectClient.Client
}

BackendStubs is a grouping structure for the rancher clients

func CreateBackendStubs added in v1.1.0

func CreateBackendStubs(tb testing.TB) *BackendStubs

CreateBackendStubs builds a set of testClients

type CertificateOperationsStub added in v1.2.0

type CertificateOperationsStub struct {
	DoList    func(opts *types.ListOpts) (*projectClient.CertificateCollection, error)
	DoCreate  func(opts *projectClient.Certificate) (*projectClient.Certificate, error)
	DoUpdate  func(existing *projectClient.Certificate, updates interface{}) (*projectClient.Certificate, error)
	DoReplace func(existing *projectClient.Certificate) (*projectClient.Certificate, error)
	DoByID    func(id string) (*projectClient.Certificate, error)
	DoDelete  func(container *projectClient.Certificate) error
	// contains filtered or unexported fields
}

CertificateOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/CertificateOperations

func CreateCertificateOperationsStub added in v1.2.0

func CreateCertificateOperationsStub(tb testing.TB) *CertificateOperationsStub

CreateCertificateOperationsStub creates a stub of github.com/rancher/types/client/project/v3/CertificateOperations

func (CertificateOperationsStub) ByID added in v1.2.0

ByID implements github.com/rancher/types/client/project/v3/CertificateOperations.ByID(...)

func (CertificateOperationsStub) Create added in v1.2.0

Create implements github.com/rancher/types/client/project/v3/CertificateOperations.Create(...)

func (CertificateOperationsStub) Delete added in v1.2.0

func (stub CertificateOperationsStub) Delete(container *projectClient.Certificate) error

Delete implements github.com/rancher/types/client/project/v3/CertificateOperations.Delete(...)

func (CertificateOperationsStub) List added in v1.2.0

List implements github.com/rancher/types/client/project/v3/CertificateOperations.List(...)

func (CertificateOperationsStub) Replace added in v1.2.0

Replace implements github.com/rancher/types/client/project/v3/CertificateOperations.Replace(...)

func (CertificateOperationsStub) Update added in v1.2.0

func (stub CertificateOperationsStub) Update(existing *projectClient.Certificate, updates interface{}) (*projectClient.Certificate, error)

Update implements github.com/rancher/types/client/project/v3/CertificateOperations.Update(...)

type ClusterCatalogOperationsStub added in v1.3.0

type ClusterCatalogOperationsStub struct {
	DoList                    func(opts *types.ListOpts) (*rancherClient.ClusterCatalogCollection, error)
	DoCreate                  func(opts *rancherClient.ClusterCatalog) (*rancherClient.ClusterCatalog, error)
	DoUpdate                  func(existing *rancherClient.ClusterCatalog, updates interface{}) (*rancherClient.ClusterCatalog, error)
	DoReplace                 func(existing *rancherClient.ClusterCatalog) (*rancherClient.ClusterCatalog, error)
	DoByID                    func(id string) (*rancherClient.ClusterCatalog, error)
	DoDelete                  func(container *rancherClient.ClusterCatalog) error
	DoActionRefresh           func(container *rancherClient.ClusterCatalog) error
	DoCollectionActionRefresh func(container *rancherClient.ClusterCatalogCollection) error
	// contains filtered or unexported fields
}

ClusterCatalogOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/ClusterCatalogOperations

func CreateClusterCatalogOperationsStub added in v1.3.0

func CreateClusterCatalogOperationsStub(tb testing.TB) *ClusterCatalogOperationsStub

CreateClusterCatalogOperationsStub creates a stub of github.com/rancher/types/client/project/v3/ClusterCatalogOperations

func (ClusterCatalogOperationsStub) ActionRefresh added in v1.3.0

func (stub ClusterCatalogOperationsStub) ActionRefresh(resource *rancherClient.ClusterCatalog) error

ActionRefresh implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.ActionRefresh(...)

func (ClusterCatalogOperationsStub) ByID added in v1.3.0

ByID implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.ByID(...)

func (ClusterCatalogOperationsStub) CollectionActionRefresh added in v1.3.0

func (stub ClusterCatalogOperationsStub) CollectionActionRefresh(resource *rancherClient.ClusterCatalogCollection) error

CollectionActionRefresh implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.CollectionActionRefresh(...)

func (ClusterCatalogOperationsStub) Create added in v1.3.0

Create implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.Create(...)

func (ClusterCatalogOperationsStub) Delete added in v1.3.0

Delete implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.Delete(...)

func (ClusterCatalogOperationsStub) List added in v1.3.0

List implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.List(...)

func (ClusterCatalogOperationsStub) Replace added in v1.3.0

Replace implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.Replace(...)

func (ClusterCatalogOperationsStub) Update added in v1.3.0

func (stub ClusterCatalogOperationsStub) Update(existing *rancherClient.ClusterCatalog, updates interface{}) (*rancherClient.ClusterCatalog, error)

Update implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.Update(...)

type ClusterOperationsStub added in v1.2.0

type ClusterOperationsStub struct {
	DoList   func(opts *types.ListOpts) (*managementClient.ClusterCollection, error)
	DoCreate func(opts *managementClient.Cluster) (*managementClient.Cluster, error)
	// contains filtered or unexported fields
}

ClusterOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/management/v3/ClusterOperations

func CreateClusterOperationsStub added in v1.2.0

func CreateClusterOperationsStub(tb testing.TB) *ClusterOperationsStub

CreateClusterOperationsStub creates a stub of github.com/rancher/types/client/management/v3/ClusterOperations

func (ClusterOperationsStub) ActionBackupEtcd added in v1.2.0

func (stub ClusterOperationsStub) ActionBackupEtcd(resource *managementClient.Cluster) error

ActionDisableMonitoring implements github.com/rancher/types/client/management/v3/ClusterOperations.ActionBackupEtcd(...)

func (ClusterOperationsStub) ActionDisableMonitoring added in v1.2.0

func (stub ClusterOperationsStub) ActionDisableMonitoring(resource *managementClient.Cluster) error

ActionEnableMonitoring implements github.com/rancher/types/client/management/v3/ClusterOperations.ActionDisableMonitoring(...)

func (ClusterOperationsStub) ActionEditMonitoring added in v1.2.0

func (stub ClusterOperationsStub) ActionEditMonitoring(resource *managementClient.Cluster, input *managementClient.MonitoringInput) error

ActionEditMonitoring implements github.com/rancher/types/client/management/v3/ClusterOperations.ActionEditMonitoring(...)

func (ClusterOperationsStub) ActionEnableMonitoring added in v1.2.0

func (stub ClusterOperationsStub) ActionEnableMonitoring(resource *managementClient.Cluster, input *managementClient.MonitoringInput) error

ActionEnableMonitoring implements github.com/rancher/types/client/management/v3/ClusterOperations.ActionEnableMonitoring(...)

func (ClusterOperationsStub) ActionExportYaml added in v1.2.0

ActionExportYaml implements github.com/rancher/types/client/management/v3/ClusterOperations.ActionExportYaml(...)

func (ClusterOperationsStub) ActionGenerateKubeconfig added in v1.2.0

ActionExportYaml implements github.com/rancher/types/client/management/v3/ClusterOperations.ActionGenerateKubeconfig(...)

func (ClusterOperationsStub) ActionImportYaml added in v1.2.0

ActionExportYaml implements github.com/rancher/types/client/management/v3/ClusterOperations.ActionImportYaml(...)

func (ClusterOperationsStub) ActionRestoreFromEtcdBackup added in v1.2.0

func (stub ClusterOperationsStub) ActionRestoreFromEtcdBackup(resource *managementClient.Cluster, input *managementClient.RestoreFromEtcdBackupInput) error

ActionExportYaml implements github.com/rancher/types/client/management/v3/ClusterOperations.ActionRestoreFromEtcdBackup(...)

func (ClusterOperationsStub) ActionRotateCertificates added in v1.2.0

ActionExportYaml implements github.com/rancher/types/client/management/v3/ClusterOperations.ActionRotateCertificates(...)

func (ClusterOperationsStub) ActionViewMonitoring added in v1.2.0

func (stub ClusterOperationsStub) ActionViewMonitoring(resource *managementClient.Cluster) (*managementClient.MonitoringOutput, error)

ActionEnableMonitoring implements github.com/rancher/types/client/management/v3/ClusterOperations.ActionEnableMonitoring(...)

func (ClusterOperationsStub) ByID added in v1.2.0

ByID implements github.com/rancher/types/client/management/v3/ClusterOperations.ByID(...)

func (ClusterOperationsStub) Create added in v1.2.0

Create implements github.com/rancher/types/client/management/v3/ClusterOperations.Create(...)

func (ClusterOperationsStub) Delete added in v1.2.0

func (stub ClusterOperationsStub) Delete(container *managementClient.Cluster) error

Delete implements github.com/rancher/types/client/management/v3/ClusterOperations.Delete(...)

func (ClusterOperationsStub) List added in v1.2.0

List implements github.com/rancher/types/client/management/v3/ClusterOperations.List(...)

func (ClusterOperationsStub) Replace added in v1.2.0

Replace implements github.com/rancher/types/client/management/v3/ClusterOperations.Replace(...)

func (ClusterOperationsStub) Update added in v1.2.0

func (stub ClusterOperationsStub) Update(existing *managementClient.Cluster, updates interface{}) (*managementClient.Cluster, error)

Update implements github.com/rancher/types/client/management/v3/ClusterOperations.Update(...)

type ConfigMapOperationsStub added in v1.2.0

type ConfigMapOperationsStub struct {
	DoList    func(opts *types.ListOpts) (*projectClient.ConfigMapCollection, error)
	DoCreate  func(opts *projectClient.ConfigMap) (*projectClient.ConfigMap, error)
	DoUpdate  func(existing *projectClient.ConfigMap, updates interface{}) (*projectClient.ConfigMap, error)
	DoReplace func(existing *projectClient.ConfigMap) (*projectClient.ConfigMap, error)
	DoByID    func(id string) (*projectClient.ConfigMap, error)
	DoDelete  func(container *projectClient.ConfigMap) error
	// contains filtered or unexported fields
}

ConfigMapOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/ConfigMapOperations

func CreateConfigMapOperationsStub added in v1.2.0

func CreateConfigMapOperationsStub(tb testing.TB) *ConfigMapOperationsStub

CreateConfigMapOperationsStub creates a stub of github.com/rancher/types/client/project/v3/ConfigMapOperations

func (ConfigMapOperationsStub) ByID added in v1.2.0

ByID implements github.com/rancher/types/client/project/v3/ConfigMapOperations.ByID(...)

func (ConfigMapOperationsStub) Create added in v1.2.0

Create implements github.com/rancher/types/client/project/v3/ConfigMapOperations.Create(...)

func (ConfigMapOperationsStub) Delete added in v1.2.0

func (stub ConfigMapOperationsStub) Delete(container *projectClient.ConfigMap) error

Delete implements github.com/rancher/types/client/project/v3/ConfigMapOperations.Delete(...)

func (ConfigMapOperationsStub) List added in v1.2.0

List implements github.com/rancher/types/client/project/v3/ConfigMapOperations.List(...)

func (ConfigMapOperationsStub) Replace added in v1.2.0

Replace implements github.com/rancher/types/client/project/v3/ConfigMapOperations.Replace(...)

func (ConfigMapOperationsStub) Update added in v1.2.0

func (stub ConfigMapOperationsStub) Update(existing *projectClient.ConfigMap, updates interface{}) (*projectClient.ConfigMap, error)

Update implements github.com/rancher/types/client/project/v3/ConfigMapOperations.Update(...)

type CronJobOperationsStub added in v1.2.0

type CronJobOperationsStub struct {
	DoList    func(opts *types.ListOpts) (*projectClient.CronJobCollection, error)
	DoCreate  func(opts *projectClient.CronJob) (*projectClient.CronJob, error)
	DoUpdate  func(existing *projectClient.CronJob, updates interface{}) (*projectClient.CronJob, error)
	DoReplace func(existing *projectClient.CronJob) (*projectClient.CronJob, error)
	// contains filtered or unexported fields
}

CronJobOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/CronJobOperations

func CreateCronJobOperationsStub added in v1.2.0

func CreateCronJobOperationsStub(tb testing.TB) *CronJobOperationsStub

CreateCronJobOperationsStub creates a stub of github.com/rancher/types/client/project/v3/CronJobOperations

func (CronJobOperationsStub) ByID added in v1.2.0

ByID implements github.com/rancher/types/client/project/v3/CronJobOperations.ByID(...)

func (CronJobOperationsStub) Create added in v1.2.0

Create implements github.com/rancher/types/client/project/v3/CronJobOperations.Create(...)

func (CronJobOperationsStub) Delete added in v1.2.0

func (stub CronJobOperationsStub) Delete(container *projectClient.CronJob) error

Delete implements github.com/rancher/types/client/project/v3/CronJobOperations.Delete(...)

func (CronJobOperationsStub) List added in v1.2.0

List implements github.com/rancher/types/client/project/v3/CronJobOperations.List(...)

func (CronJobOperationsStub) Replace added in v1.2.0

Replace implements github.com/rancher/types/client/project/v3/CronJobOperations.Replace(...)

func (CronJobOperationsStub) Update added in v1.2.0

func (stub CronJobOperationsStub) Update(existing *projectClient.CronJob, updates interface{}) (*projectClient.CronJob, error)

Update implements github.com/rancher/types/client/project/v3/CronJobOperations.Update(...)

type DaemonSetOperationsStub added in v1.2.0

type DaemonSetOperationsStub struct {
	DoList    func(opts *types.ListOpts) (*projectClient.DaemonSetCollection, error)
	DoCreate  func(opts *projectClient.DaemonSet) (*projectClient.DaemonSet, error)
	DoUpdate  func(existing *projectClient.DaemonSet, updates interface{}) (*projectClient.DaemonSet, error)
	DoReplace func(existing *projectClient.DaemonSet) (*projectClient.DaemonSet, error)
	// contains filtered or unexported fields
}

DaemonSetOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/DaemonSetOperations

func CreateDaemonSetOperationsStub added in v1.2.0

func CreateDaemonSetOperationsStub(tb testing.TB) *DaemonSetOperationsStub

CreateDaemonSetOperationsStub creates a stub of github.com/rancher/types/client/project/v3/DaemonSetOperations

func (DaemonSetOperationsStub) ByID added in v1.2.0

ByID implements github.com/rancher/types/client/project/v3/DaemonSetOperations.ByID(...)

func (DaemonSetOperationsStub) Create added in v1.2.0

Create implements github.com/rancher/types/client/project/v3/DaemonSetOperations.Create(...)

func (DaemonSetOperationsStub) Delete added in v1.2.0

func (stub DaemonSetOperationsStub) Delete(container *projectClient.DaemonSet) error

Delete implements github.com/rancher/types/client/project/v3/DaemonSetOperations.Delete(...)

func (DaemonSetOperationsStub) List added in v1.2.0

List implements github.com/rancher/types/client/project/v3/DaemonSetOperations.List(...)

func (DaemonSetOperationsStub) Replace added in v1.2.0

Replace implements github.com/rancher/types/client/project/v3/DaemonSetOperations.Replace(...)

func (DaemonSetOperationsStub) Update added in v1.2.0

func (stub DaemonSetOperationsStub) Update(existing *projectClient.DaemonSet, updates interface{}) (*projectClient.DaemonSet, error)

Update implements github.com/rancher/types/client/project/v3/DaemonSetOperations.Update(...)

type DeploymentOperationsStub added in v1.2.0

type DeploymentOperationsStub struct {
	DoList           func(opts *types.ListOpts) (*projectClient.DeploymentCollection, error)
	DoCreate         func(opts *projectClient.Deployment) (*projectClient.Deployment, error)
	DoUpdate         func(existing *projectClient.Deployment, updates interface{}) (*projectClient.Deployment, error)
	DoReplace        func(existing *projectClient.Deployment) (*projectClient.Deployment, error)
	DoActionPause    func(resource *projectClient.Deployment) error
	DoActionResume   func(resource *projectClient.Deployment) error
	DoActionRollback func(resource *projectClient.Deployment, input *projectClient.DeploymentRollbackInput) error
	// contains filtered or unexported fields
}

DeploymentOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/DeploymentOperations

func CreateDeploymentOperationsStub added in v1.2.0

func CreateDeploymentOperationsStub(tb testing.TB) *DeploymentOperationsStub

CreateDeploymentOperationsStub creates a stub of github.com/rancher/types/client/project/v3/DeploymentOperations

func (DeploymentOperationsStub) ActionPause added in v1.2.0

func (stub DeploymentOperationsStub) ActionPause(resource *projectClient.Deployment) error

ActionPause implements github.com/rancher/types/client/project/v3/DeploymentOperations.ActionPause(...)

func (DeploymentOperationsStub) ActionResume added in v1.2.0

func (stub DeploymentOperationsStub) ActionResume(resource *projectClient.Deployment) error

ActionResume implements github.com/rancher/types/client/project/v3/DeploymentOperations.ActionResume(...)

func (DeploymentOperationsStub) ActionRollback added in v1.2.0

ActionRollback implements github.com/rancher/types/client/project/v3/DeploymentOperations.ActionRollback(...)

func (DeploymentOperationsStub) ByID added in v1.2.0

ByID implements github.com/rancher/types/client/project/v3/DeploymentOperations.ByID(...)

func (DeploymentOperationsStub) Create added in v1.2.0

Create implements github.com/rancher/types/client/project/v3/DeploymentOperations.Create(...)

func (DeploymentOperationsStub) Delete added in v1.2.0

func (stub DeploymentOperationsStub) Delete(container *projectClient.Deployment) error

Delete implements github.com/rancher/types/client/project/v3/DeploymentOperations.Delete(...)

func (DeploymentOperationsStub) List added in v1.2.0

List implements github.com/rancher/types/client/project/v3/DeploymentOperations.List(...)

func (DeploymentOperationsStub) Replace added in v1.2.0

Replace implements github.com/rancher/types/client/project/v3/DeploymentOperations.Replace(...)

func (DeploymentOperationsStub) Update added in v1.2.0

func (stub DeploymentOperationsStub) Update(existing *projectClient.Deployment, updates interface{}) (*projectClient.Deployment, error)

Update implements github.com/rancher/types/client/project/v3/DeploymentOperations.Update(...)

type DockerCredentialOperationsStub added in v1.1.0

type DockerCredentialOperationsStub struct {
	DoList    func(opts *types.ListOpts) (*projectClient.DockerCredentialCollection, error)
	DoCreate  func(opts *projectClient.DockerCredential) (*projectClient.DockerCredential, error)
	DoUpdate  func(existing *projectClient.DockerCredential, updates interface{}) (*projectClient.DockerCredential, error)
	DoReplace func(existing *projectClient.DockerCredential) (*projectClient.DockerCredential, error)
	DoByID    func(id string) (*projectClient.DockerCredential, error)
	DoDelete  func(container *projectClient.DockerCredential) error
	// contains filtered or unexported fields
}

DockerCredentialOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/DockerCredentialOperations

func CreateDockerCredentialOperationsStub added in v1.1.0

func CreateDockerCredentialOperationsStub(tb testing.TB) *DockerCredentialOperationsStub

CreateDockerCredentialOperationsStub creates a stub of github.com/rancher/types/client/project/v3/DockerCredentialOperations

func (DockerCredentialOperationsStub) ByID added in v1.1.0

ByID implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.ByID(...)

func (DockerCredentialOperationsStub) Create added in v1.1.0

Create implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Create(...)

func (DockerCredentialOperationsStub) Delete added in v1.1.0

Delete implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Delete(...)

func (DockerCredentialOperationsStub) List added in v1.1.0

List implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.List(...)

func (DockerCredentialOperationsStub) Replace added in v1.1.0

Replace implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Replace(...)

func (DockerCredentialOperationsStub) Update added in v1.1.0

func (stub DockerCredentialOperationsStub) Update(existing *projectClient.DockerCredential, updates interface{}) (*projectClient.DockerCredential, error)

Update implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Update(...)

type JobOperationsStub added in v1.1.0

type JobOperationsStub struct {
	DoList    func(opts *types.ListOpts) (*projectClient.JobCollection, error)
	DoCreate  func(opts *projectClient.Job) (*projectClient.Job, error)
	DoUpdate  func(existing *projectClient.Job, updates interface{}) (*projectClient.Job, error)
	DoReplace func(existing *projectClient.Job) (*projectClient.Job, error)
	// contains filtered or unexported fields
}

JobOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/JobOperations

func CreateJobOperationsStub added in v1.1.0

func CreateJobOperationsStub(tb testing.TB) *JobOperationsStub

CreateJobOperationsStub creates a stub of github.com/rancher/types/client/project/v3/JobOperations

func (JobOperationsStub) ByID added in v1.1.0

func (stub JobOperationsStub) ByID(id string) (*projectClient.Job, error)

ByID implements github.com/rancher/types/client/project/v3/JobOperations.ByID(...)

func (JobOperationsStub) Create added in v1.1.0

func (stub JobOperationsStub) Create(opts *projectClient.Job) (*projectClient.Job, error)

Create implements github.com/rancher/types/client/project/v3/JobOperations.Create(...)

func (JobOperationsStub) Delete added in v1.1.0

func (stub JobOperationsStub) Delete(container *projectClient.Job) error

Delete implements github.com/rancher/types/client/project/v3/JobOperations.Delete(...)

func (JobOperationsStub) List added in v1.1.0

List implements github.com/rancher/types/client/project/v3/JobOperations.List(...)

func (JobOperationsStub) Replace added in v1.1.0

func (stub JobOperationsStub) Replace(existing *projectClient.Job) (*projectClient.Job, error)

Replace implements github.com/rancher/types/client/project/v3/JobOperations.Replace(...)

func (JobOperationsStub) Update added in v1.1.0

func (stub JobOperationsStub) Update(existing *projectClient.Job, updates interface{}) (*projectClient.Job, error)

Update implements github.com/rancher/types/client/project/v3/JobOperations.Update(...)

type NamespaceOperationsStub

type NamespaceOperationsStub struct {
	DoList   func(opts *types.ListOpts) (*clusterClient.NamespaceCollection, error)
	DoCreate func(opts *clusterClient.Namespace) (*clusterClient.Namespace, error)
	// contains filtered or unexported fields
}

NamespaceOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/cluster/v3/NamespaceOperations

func CreateNamespaceOperationsStub

func CreateNamespaceOperationsStub(tb testing.TB) *NamespaceOperationsStub

CreateNamespaceOperationsStub creates a stub of github.com/rancher/types/client/cluster/v3/NamespaceOperations

func (NamespaceOperationsStub) ActionMove

ActionMove implements github.com/rancher/types/client/cluster/v3/NamespaceOperations.ActionMove(...)

func (NamespaceOperationsStub) ByID

ByID implements github.com/rancher/types/client/cluster/v3/NamespaceOperations.ByID(...)

func (NamespaceOperationsStub) Create

Create implements github.com/rancher/types/client/cluster/v3/NamespaceOperations.Create(...)

func (NamespaceOperationsStub) Delete

func (stub NamespaceOperationsStub) Delete(container *clusterClient.Namespace) error

Delete implements github.com/rancher/types/client/cluster/v3/NamespaceOperations.Delete(...)

func (NamespaceOperationsStub) List

List implements github.com/rancher/types/client/cluster/v3/NamespaceOperations.List(...)

func (NamespaceOperationsStub) Replace

Replace implements github.com/rancher/types/client/cluster/v3/NamespaceOperations.Replace(...)

func (NamespaceOperationsStub) Update

func (stub NamespaceOperationsStub) Update(existing *clusterClient.Namespace, updates interface{}) (*clusterClient.Namespace, error)

Update implements github.com/rancher/types/client/cluster/v3/NamespaceOperations.Update(...)

type NamespacedCertificateOperationsStub added in v1.2.0

type NamespacedCertificateOperationsStub struct {
	DoList    func(opts *types.ListOpts) (*projectClient.NamespacedCertificateCollection, error)
	DoCreate  func(opts *projectClient.NamespacedCertificate) (*projectClient.NamespacedCertificate, error)
	DoUpdate  func(existing *projectClient.NamespacedCertificate, updates interface{}) (*projectClient.NamespacedCertificate, error)
	DoReplace func(existing *projectClient.NamespacedCertificate) (*projectClient.NamespacedCertificate, error)
	DoByID    func(id string) (*projectClient.NamespacedCertificate, error)
	DoDelete  func(container *projectClient.NamespacedCertificate) error
	// contains filtered or unexported fields
}

NamespacedCertificateOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/NamespacedCertificateOperations

func CreateNamespacedCertificateOperationsStub added in v1.2.0

func CreateNamespacedCertificateOperationsStub(tb testing.TB) *NamespacedCertificateOperationsStub

CreateNamespacedCertificateOperationsStub creates a stub of github.com/rancher/types/client/project/v3/NamespacedCertificateOperations

func (NamespacedCertificateOperationsStub) ByID added in v1.2.0

ByID implements github.com/rancher/types/client/project/v3/NamespacedCertificateOperations.ByID(...)

func (NamespacedCertificateOperationsStub) Create added in v1.2.0

Create implements github.com/rancher/types/client/project/v3/NamespacedCertificateOperations.Create(...)

func (NamespacedCertificateOperationsStub) Delete added in v1.2.0

Delete implements github.com/rancher/types/client/project/v3/NamespacedCertificateOperations.Delete(...)

func (NamespacedCertificateOperationsStub) List added in v1.2.0

List implements github.com/rancher/types/client/project/v3/NamespacedCertificateOperations.List(...)

func (NamespacedCertificateOperationsStub) Replace added in v1.2.0

Replace implements github.com/rancher/types/client/project/v3/NamespacedCertificateOperations.Replace(...)

func (NamespacedCertificateOperationsStub) Update added in v1.2.0

Update implements github.com/rancher/types/client/project/v3/NamespacedCertificateOperations.Update(...)

type NamespacedDockerCredentialOperationsStub added in v1.2.0

type NamespacedDockerCredentialOperationsStub struct {
	DoList    func(opts *types.ListOpts) (*projectClient.NamespacedDockerCredentialCollection, error)
	DoCreate  func(opts *projectClient.NamespacedDockerCredential) (*projectClient.NamespacedDockerCredential, error)
	DoUpdate  func(existing *projectClient.NamespacedDockerCredential, updates interface{}) (*projectClient.NamespacedDockerCredential, error)
	DoReplace func(existing *projectClient.NamespacedDockerCredential) (*projectClient.NamespacedDockerCredential, error)
	DoByID    func(id string) (*projectClient.NamespacedDockerCredential, error)
	DoDelete  func(container *projectClient.NamespacedDockerCredential) error
	// contains filtered or unexported fields
}

NamespacedDockerCredentialOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/DockerCredentialOperations

func CreateNamespacedDockerCredentialOperationsStub added in v1.2.0

func CreateNamespacedDockerCredentialOperationsStub(tb testing.TB) *NamespacedDockerCredentialOperationsStub

CreateNamespacedDockerCredentialOperationsStub creates a stub of github.com/rancher/types/client/project/v3/NamespacedDockerCredentialOperations

func (NamespacedDockerCredentialOperationsStub) ByID added in v1.2.0

ByID implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.ByID(...)

func (NamespacedDockerCredentialOperationsStub) Create added in v1.2.0

Create implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Create(...)

func (NamespacedDockerCredentialOperationsStub) Delete added in v1.2.0

Delete implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Delete(...)

func (NamespacedDockerCredentialOperationsStub) List added in v1.2.0

List implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.List(...)

func (NamespacedDockerCredentialOperationsStub) Replace added in v1.2.0

Replace implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Replace(...)

func (NamespacedDockerCredentialOperationsStub) Update added in v1.2.0

Update implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Update(...)

type NamespacedSecretOperationsStub added in v1.2.0

type NamespacedSecretOperationsStub struct {
	DoList    func(opts *types.ListOpts) (*projectClient.NamespacedSecretCollection, error)
	DoCreate  func(opts *projectClient.NamespacedSecret) (*projectClient.NamespacedSecret, error)
	DoUpdate  func(existing *projectClient.NamespacedSecret, updates interface{}) (*projectClient.NamespacedSecret, error)
	DoReplace func(existing *projectClient.NamespacedSecret) (*projectClient.NamespacedSecret, error)
	DoByID    func(id string) (*projectClient.NamespacedSecret, error)
	DoDelete  func(container *projectClient.NamespacedSecret) error
	// contains filtered or unexported fields
}

NamespacedSecretOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/NamespacedSecretOperations

func CreateNamespacedSecretOperationsStub added in v1.2.0

func CreateNamespacedSecretOperationsStub(tb testing.TB) *NamespacedSecretOperationsStub

CreateNamespacedSecretOperationsStub creates a stub of github.com/rancher/types/client/project/v3/NamespacedSecretOperations

func (NamespacedSecretOperationsStub) ByID added in v1.2.0

ByID implements github.com/rancher/types/client/project/v3/NamespacedSecretOperations.ByID(...)

func (NamespacedSecretOperationsStub) Create added in v1.2.0

Create implements github.com/rancher/types/client/project/v3/NamespacedSecretOperations.Create(...)

func (NamespacedSecretOperationsStub) Delete added in v1.2.0

Delete implements github.com/rancher/types/client/project/v3/NamespacedSecretOperations.Delete(...)

func (NamespacedSecretOperationsStub) List added in v1.2.0

List implements github.com/rancher/types/client/project/v3/NamespacedSecretOperations.List(...)

func (NamespacedSecretOperationsStub) Replace added in v1.2.0

Replace implements github.com/rancher/types/client/project/v3/NamespacedSecretOperations.Replace(...)

func (NamespacedSecretOperationsStub) Update added in v1.2.0

func (stub NamespacedSecretOperationsStub) Update(existing *projectClient.NamespacedSecret, updates interface{}) (*projectClient.NamespacedSecret, error)

Update implements github.com/rancher/types/client/project/v3/NamespacedSecretOperations.Update(...)

type PersistentVolumeOperationsStub

type PersistentVolumeOperationsStub struct {
	DoList   func(opts *types.ListOpts) (*clusterClient.PersistentVolumeCollection, error)
	DoCreate func(opts *clusterClient.PersistentVolume) (*clusterClient.PersistentVolume, error)
	// contains filtered or unexported fields
}

PersistentVolumeOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/cluster/v3/PersistentVolumeOperations

func CreatePersistentVolumeOperationsStub

func CreatePersistentVolumeOperationsStub(tb testing.TB) *PersistentVolumeOperationsStub

CreatePersistentVolumeOperationsStub creates a stub of github.com/rancher/types/client/cluster/v3/PersistentVolumeOperations

func (PersistentVolumeOperationsStub) ByID

ByID implements github.com/rancher/types/client/cluster/v3/PersistentVolumeOperations.ByID(...)

func (PersistentVolumeOperationsStub) Create

Create implements github.com/rancher/types/client/cluster/v3/PersistentVolumeOperations.Create(...)

func (PersistentVolumeOperationsStub) Delete

Delete implements github.com/rancher/types/client/cluster/v3/PersistentVolumeOperations.Delete(...)

func (PersistentVolumeOperationsStub) List

List implements github.com/rancher/types/client/cluster/v3/PersistentVolumeOperations.List(...)

func (PersistentVolumeOperationsStub) Replace

Replace implements github.com/rancher/types/client/cluster/v3/PersistentVolumeOperations.Replace(...)

func (PersistentVolumeOperationsStub) Update

func (stub PersistentVolumeOperationsStub) Update(existing *clusterClient.PersistentVolume, updates interface{}) (*clusterClient.PersistentVolume, error)

Update implements github.com/rancher/types/client/cluster/v3/PersistentVolumeOperations.Update(...)

type ProjectCatalogOperationsStub added in v1.3.0

type ProjectCatalogOperationsStub struct {
	DoList                    func(opts *types.ListOpts) (*rancherClient.ProjectCatalogCollection, error)
	DoCreate                  func(opts *rancherClient.ProjectCatalog) (*rancherClient.ProjectCatalog, error)
	DoUpdate                  func(existing *rancherClient.ProjectCatalog, updates interface{}) (*rancherClient.ProjectCatalog, error)
	DoReplace                 func(existing *rancherClient.ProjectCatalog) (*rancherClient.ProjectCatalog, error)
	DoByID                    func(id string) (*rancherClient.ProjectCatalog, error)
	DoDelete                  func(container *rancherClient.ProjectCatalog) error
	DoActionRefresh           func(container *rancherClient.ProjectCatalog) error
	DoCollectionActionRefresh func(container *rancherClient.ProjectCatalogCollection) error
	// contains filtered or unexported fields
}

ProjectCatalogOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/ProjectCatalogOperations

func CreateProjectCatalogOperationsStub added in v1.3.0

func CreateProjectCatalogOperationsStub(tb testing.TB) *ProjectCatalogOperationsStub

CreateProjectCatalogOperationsStub creates a stub of github.com/rancher/types/client/project/v3/ProjectCatalogOperations

func (ProjectCatalogOperationsStub) ActionRefresh added in v1.3.0

func (stub ProjectCatalogOperationsStub) ActionRefresh(resource *rancherClient.ProjectCatalog) error

ActionRefresh implements github.com/rancher/types/client/project/v3/ProjectCatalogOperations.ActionRefresh(...)

func (ProjectCatalogOperationsStub) ByID added in v1.3.0

ByID implements github.com/rancher/types/client/project/v3/ProjectCatalogOperations.ByID(...)

func (ProjectCatalogOperationsStub) CollectionActionRefresh added in v1.3.0

func (stub ProjectCatalogOperationsStub) CollectionActionRefresh(resource *rancherClient.ProjectCatalogCollection) error

CollectionActionRefresh implements github.com/rancher/types/client/project/v3/ProjectCatalogOperations.CollectionActionRefresh(...)

func (ProjectCatalogOperationsStub) Create added in v1.3.0

Create implements github.com/rancher/types/client/project/v3/ProjectCatalogOperations.Create(...)

func (ProjectCatalogOperationsStub) Delete added in v1.3.0

Delete implements github.com/rancher/types/client/project/v3/ProjectCatalogOperations.Delete(...)

func (ProjectCatalogOperationsStub) List added in v1.3.0

List implements github.com/rancher/types/client/project/v3/ProjectCatalogOperations.List(...)

func (ProjectCatalogOperationsStub) Replace added in v1.3.0

Replace implements github.com/rancher/types/client/project/v3/ProjectCatalogOperations.Replace(...)

func (ProjectCatalogOperationsStub) Update added in v1.3.0

func (stub ProjectCatalogOperationsStub) Update(existing *rancherClient.ProjectCatalog, updates interface{}) (*rancherClient.ProjectCatalog, error)

Update implements github.com/rancher/types/client/project/v3/ProjectCatalogOperations.Update(...)

type ProjectOperationsStub

type ProjectOperationsStub struct {
	DoList   func(opts *types.ListOpts) (*managementClient.ProjectCollection, error)
	DoCreate func(opts *managementClient.Project) (*managementClient.Project, error)
	// contains filtered or unexported fields
}

ProjectOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/management/v3/ProjectOperations

func CreateProjectOperationsStub

func CreateProjectOperationsStub(tb testing.TB) *ProjectOperationsStub

CreateProjectOperationsStub creates a stub of github.com/rancher/types/client/management/v3/ProjectOperations

func (ProjectOperationsStub) ActionDisableMonitoring

func (stub ProjectOperationsStub) ActionDisableMonitoring(resource *managementClient.Project) error

ActionDisableMonitoring implements github.com/rancher/types/client/management/v3/ProjectOperations.ActionDisableMonitoring(...)

func (ProjectOperationsStub) ActionEditMonitoring added in v1.2.0

func (stub ProjectOperationsStub) ActionEditMonitoring(resource *managementClient.Project, input *managementClient.MonitoringInput) error

ActionEditMonitoring implements github.com/rancher/types/client/management/v3/ProjectOperations.ActionEditMonitoring(...)

func (ProjectOperationsStub) ActionEnableMonitoring

func (stub ProjectOperationsStub) ActionEnableMonitoring(resource *managementClient.Project, input *managementClient.MonitoringInput) error

ActionEnableMonitoring implements github.com/rancher/types/client/management/v3/ProjectOperations.ActionEnableMonitoring(...)

func (ProjectOperationsStub) ActionExportYaml

func (stub ProjectOperationsStub) ActionExportYaml(resource *managementClient.Project) error

ActionExportYaml implements github.com/rancher/types/client/management/v3/ProjectOperations.ActionExportYaml(...)

func (ProjectOperationsStub) ActionSetpodsecuritypolicytemplate

ActionSetpodsecuritypolicytemplate implements github.com/rancher/types/client/management/v3/ProjectOperations.ActionSetpodsecuritypolicytemplate(...)

func (ProjectOperationsStub) ActionViewMonitoring added in v1.2.0

func (stub ProjectOperationsStub) ActionViewMonitoring(resource *managementClient.Project) (*managementClient.MonitoringOutput, error)

ActionEnableMonitoring implements github.com/rancher/types/client/management/v3/ProjectOperations.ActionEnableMonitoring(...)

func (ProjectOperationsStub) ByID

ByID implements github.com/rancher/types/client/management/v3/ProjectOperations.ByID(...)

func (ProjectOperationsStub) Create

Create implements github.com/rancher/types/client/management/v3/ProjectOperations.Create(...)

func (ProjectOperationsStub) Delete

func (stub ProjectOperationsStub) Delete(container *managementClient.Project) error

Delete implements github.com/rancher/types/client/management/v3/ProjectOperations.Delete(...)

func (ProjectOperationsStub) List

List implements github.com/rancher/types/client/management/v3/ProjectOperations.List(...)

func (ProjectOperationsStub) Replace

Replace implements github.com/rancher/types/client/management/v3/ProjectOperations.Replace(...)

func (ProjectOperationsStub) Update

func (stub ProjectOperationsStub) Update(existing *managementClient.Project, updates interface{}) (*managementClient.Project, error)

Update implements github.com/rancher/types/client/management/v3/ProjectOperations.Update(...)

type RancherCatalogOperationsStub added in v1.3.0

type RancherCatalogOperationsStub struct {
	DoList                    func(opts *types.ListOpts) (*rancherClient.CatalogCollection, error)
	DoCreate                  func(opts *rancherClient.Catalog) (*rancherClient.Catalog, error)
	DoUpdate                  func(existing *rancherClient.Catalog, updates interface{}) (*rancherClient.Catalog, error)
	DoReplace                 func(existing *rancherClient.Catalog) (*rancherClient.Catalog, error)
	DoByID                    func(id string) (*rancherClient.Catalog, error)
	DoDelete                  func(container *rancherClient.Catalog) error
	DoActionRefresh           func(container *rancherClient.Catalog) error
	DoCollectionActionRefresh func(container *rancherClient.CatalogCollection) error
	// contains filtered or unexported fields
}

RancherCatalogOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/RancherCatalogOperations

func CreateRancherCatalogOperationsStub added in v1.3.0

func CreateRancherCatalogOperationsStub(tb testing.TB) *RancherCatalogOperationsStub

CreateRancherCatalogOperationsStub creates a stub of github.com/rancher/types/client/project/v3/RancherCatalogOperations

func (RancherCatalogOperationsStub) ActionRefresh added in v1.3.0

func (stub RancherCatalogOperationsStub) ActionRefresh(resource *rancherClient.Catalog) error

ActionRefresh implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.ActionRefresh(...)

func (RancherCatalogOperationsStub) ByID added in v1.3.0

ByID implements github.com/rancher/types/client/project/v3/RancherCatalogOperations.ByID(...)

func (RancherCatalogOperationsStub) CollectionActionRefresh added in v1.3.0

func (stub RancherCatalogOperationsStub) CollectionActionRefresh(resource *rancherClient.CatalogCollection) error

CollectionActionRefresh implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.CollectionActionRefresh(...)

func (RancherCatalogOperationsStub) Create added in v1.3.0

Create implements github.com/rancher/types/client/project/v3/RancherCatalogOperations.Create(...)

func (RancherCatalogOperationsStub) Delete added in v1.3.0

func (stub RancherCatalogOperationsStub) Delete(container *rancherClient.Catalog) error

Delete implements github.com/rancher/types/client/project/v3/RancherCatalogOperations.Delete(...)

func (RancherCatalogOperationsStub) List added in v1.3.0

List implements github.com/rancher/types/client/project/v3/RancherCatalogOperations.List(...)

func (RancherCatalogOperationsStub) Replace added in v1.3.0

Replace implements github.com/rancher/types/client/project/v3/RancherCatalogOperations.Replace(...)

func (RancherCatalogOperationsStub) Update added in v1.3.0

func (stub RancherCatalogOperationsStub) Update(existing *rancherClient.Catalog, updates interface{}) (*rancherClient.Catalog, error)

Update implements github.com/rancher/types/client/project/v3/RancherCatalogOperations.Update(...)

type SecretOperationsStub added in v1.2.0

type SecretOperationsStub struct {
	DoList    func(opts *types.ListOpts) (*projectClient.SecretCollection, error)
	DoCreate  func(opts *projectClient.Secret) (*projectClient.Secret, error)
	DoUpdate  func(existing *projectClient.Secret, updates interface{}) (*projectClient.Secret, error)
	DoReplace func(existing *projectClient.Secret) (*projectClient.Secret, error)
	DoByID    func(id string) (*projectClient.Secret, error)
	DoDelete  func(container *projectClient.Secret) error
	// contains filtered or unexported fields
}

SecretOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/SecretOperations

func CreateSecretOperationsStub added in v1.2.0

func CreateSecretOperationsStub(tb testing.TB) *SecretOperationsStub

CreateSecretOperationsStub creates a stub of github.com/rancher/types/client/project/v3/SecretOperations

func (SecretOperationsStub) ByID added in v1.2.0

ByID implements github.com/rancher/types/client/project/v3/SecretOperations.ByID(...)

func (SecretOperationsStub) Create added in v1.2.0

Create implements github.com/rancher/types/client/project/v3/SecretOperations.Create(...)

func (SecretOperationsStub) Delete added in v1.2.0

func (stub SecretOperationsStub) Delete(container *projectClient.Secret) error

Delete implements github.com/rancher/types/client/project/v3/SecretOperations.Delete(...)

func (SecretOperationsStub) List added in v1.2.0

List implements github.com/rancher/types/client/project/v3/SecretOperations.List(...)

func (SecretOperationsStub) Replace added in v1.2.0

func (stub SecretOperationsStub) Replace(existing *projectClient.Secret) (*projectClient.Secret, error)

Replace implements github.com/rancher/types/client/project/v3/SecretOperations.Replace(...)

func (SecretOperationsStub) Update added in v1.2.0

func (stub SecretOperationsStub) Update(existing *projectClient.Secret, updates interface{}) (*projectClient.Secret, error)

Update implements github.com/rancher/types/client/project/v3/SecretOperations.Update(...)

type StatefulSetOperationsStub added in v1.2.0

type StatefulSetOperationsStub struct {
	DoList    func(opts *types.ListOpts) (*projectClient.StatefulSetCollection, error)
	DoCreate  func(opts *projectClient.StatefulSet) (*projectClient.StatefulSet, error)
	DoUpdate  func(existing *projectClient.StatefulSet, updates interface{}) (*projectClient.StatefulSet, error)
	DoReplace func(existing *projectClient.StatefulSet) (*projectClient.StatefulSet, error)
	// contains filtered or unexported fields
}

StatefulSetOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/project/v3/StatefulSetOperations

func CreateStatefulSetOperationsStub added in v1.2.0

func CreateStatefulSetOperationsStub(tb testing.TB) *StatefulSetOperationsStub

CreateStatefulSetOperationsStub creates a stub of github.com/rancher/types/client/project/v3/StatefulSetOperations

func (StatefulSetOperationsStub) ByID added in v1.2.0

ByID implements github.com/rancher/types/client/project/v3/StatefulSetOperations.ByID(...)

func (StatefulSetOperationsStub) Create added in v1.2.0

Create implements github.com/rancher/types/client/project/v3/StatefulSetOperations.Create(...)

func (StatefulSetOperationsStub) Delete added in v1.2.0

func (stub StatefulSetOperationsStub) Delete(container *projectClient.StatefulSet) error

Delete implements github.com/rancher/types/client/project/v3/StatefulSetOperations.Delete(...)

func (StatefulSetOperationsStub) List added in v1.2.0

List implements github.com/rancher/types/client/project/v3/StatefulSetOperations.List(...)

func (StatefulSetOperationsStub) Replace added in v1.2.0

Replace implements github.com/rancher/types/client/project/v3/StatefulSetOperations.Replace(...)

func (StatefulSetOperationsStub) Update added in v1.2.0

func (stub StatefulSetOperationsStub) Update(existing *projectClient.StatefulSet, updates interface{}) (*projectClient.StatefulSet, error)

Update implements github.com/rancher/types/client/project/v3/StatefulSetOperations.Update(...)

type StorageClassOperationsStub

type StorageClassOperationsStub struct {
	DoList   func(opts *types.ListOpts) (*clusterClient.StorageClassCollection, error)
	DoCreate func(opts *clusterClient.StorageClass) (*clusterClient.StorageClass, error)
	// contains filtered or unexported fields
}

StorageClassOperationsStub structure to hold callbacks used to stub github.com/rancher/types/client/cluster/v3/StorageClassOperations

func CreateStorageClassOperationsStub

func CreateStorageClassOperationsStub(tb testing.TB) *StorageClassOperationsStub

CreateStorageClassOperationsStub creates a stub of github.com/rancher/types/client/cluster/v3/StorageClassOperations

func (StorageClassOperationsStub) ByID

ByID implements github.com/rancher/types/client/cluster/v3/StorageClassOperations.ByID(...)

func (StorageClassOperationsStub) Create

Create implements github.com/rancher/types/client/cluster/v3/StorageClassOperations.Create(...)

func (StorageClassOperationsStub) Delete

Delete implements github.com/rancher/types/client/cluster/v3/StorageClassOperations.Delete(...)

func (StorageClassOperationsStub) List

List implements github.com/rancher/types/client/cluster/v3/StorageClassOperations.List(...)

func (StorageClassOperationsStub) Replace

Replace implements github.com/rancher/types/client/cluster/v3/StorageClassOperations.Replace(...)

func (StorageClassOperationsStub) Update

func (stub StorageClassOperationsStub) Update(existing *clusterClient.StorageClass, updates interface{}) (*clusterClient.StorageClass, error)

Update implements github.com/rancher/types/client/cluster/v3/StorageClassOperations.Update(...)

Jump to

Keyboard shortcuts

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