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 ¶
- type AppOperationsStub
- func (stub AppOperationsStub) ActionRollback(resource *projectClient.App, input *projectClient.RollbackRevision) error
- func (stub AppOperationsStub) ActionUpgrade(resource *projectClient.App, input *projectClient.AppUpgradeConfig) error
- func (stub AppOperationsStub) ByID(id string) (*projectClient.App, error)
- func (stub AppOperationsStub) Create(opts *projectClient.App) (*projectClient.App, error)
- func (stub AppOperationsStub) Delete(container *projectClient.App) error
- func (stub AppOperationsStub) List(opts *types.ListOpts) (*projectClient.AppCollection, error)
- func (stub AppOperationsStub) Replace(existing *projectClient.App) (*projectClient.App, error)
- func (stub AppOperationsStub) Update(existing *projectClient.App, updates interface{}) (*projectClient.App, error)
- type BackendStubs
- type CertificateOperationsStub
- func (stub CertificateOperationsStub) ByID(id string) (*projectClient.Certificate, error)
- func (stub CertificateOperationsStub) Create(opts *projectClient.Certificate) (*projectClient.Certificate, error)
- func (stub CertificateOperationsStub) Delete(container *projectClient.Certificate) error
- func (stub CertificateOperationsStub) List(opts *types.ListOpts) (*projectClient.CertificateCollection, error)
- func (stub CertificateOperationsStub) Replace(existing *projectClient.Certificate) (*projectClient.Certificate, error)
- func (stub CertificateOperationsStub) Update(existing *projectClient.Certificate, updates interface{}) (*projectClient.Certificate, error)
- type ClusterCatalogOperationsStub
- func (stub ClusterCatalogOperationsStub) ActionRefresh(resource *rancherClient.ClusterCatalog) error
- func (stub ClusterCatalogOperationsStub) ByID(id string) (*rancherClient.ClusterCatalog, error)
- func (stub ClusterCatalogOperationsStub) CollectionActionRefresh(resource *rancherClient.ClusterCatalogCollection) error
- func (stub ClusterCatalogOperationsStub) Create(opts *rancherClient.ClusterCatalog) (*rancherClient.ClusterCatalog, error)
- func (stub ClusterCatalogOperationsStub) Delete(container *rancherClient.ClusterCatalog) error
- func (stub ClusterCatalogOperationsStub) List(opts *types.ListOpts) (*rancherClient.ClusterCatalogCollection, error)
- func (stub ClusterCatalogOperationsStub) Replace(existing *rancherClient.ClusterCatalog) (*rancherClient.ClusterCatalog, error)
- func (stub ClusterCatalogOperationsStub) Update(existing *rancherClient.ClusterCatalog, updates interface{}) (*rancherClient.ClusterCatalog, error)
- type ClusterOperationsStub
- func (stub ClusterOperationsStub) ActionBackupEtcd(resource *managementClient.Cluster) error
- func (stub ClusterOperationsStub) ActionDisableMonitoring(resource *managementClient.Cluster) error
- func (stub ClusterOperationsStub) ActionEditMonitoring(resource *managementClient.Cluster, input *managementClient.MonitoringInput) error
- func (stub ClusterOperationsStub) ActionEnableMonitoring(resource *managementClient.Cluster, input *managementClient.MonitoringInput) error
- func (stub ClusterOperationsStub) ActionExportYaml(resource *managementClient.Cluster) (*managementClient.ExportOutput, error)
- func (stub ClusterOperationsStub) ActionGenerateKubeconfig(resource *managementClient.Cluster) (*managementClient.GenerateKubeConfigOutput, error)
- func (stub ClusterOperationsStub) ActionImportYaml(resource *managementClient.Cluster, ...) (*managementClient.ImportYamlOutput, error)
- func (stub ClusterOperationsStub) ActionRestoreFromEtcdBackup(resource *managementClient.Cluster, ...) error
- func (stub ClusterOperationsStub) ActionRotateCertificates(resource *managementClient.Cluster, ...) (*managementClient.RotateCertificateOutput, error)
- func (stub ClusterOperationsStub) ActionViewMonitoring(resource *managementClient.Cluster) (*managementClient.MonitoringOutput, error)
- func (stub ClusterOperationsStub) ByID(id string) (*managementClient.Cluster, error)
- func (stub ClusterOperationsStub) Create(opts *managementClient.Cluster) (*managementClient.Cluster, error)
- func (stub ClusterOperationsStub) Delete(container *managementClient.Cluster) error
- func (stub ClusterOperationsStub) List(opts *types.ListOpts) (*managementClient.ClusterCollection, error)
- func (stub ClusterOperationsStub) Replace(existing *managementClient.Cluster) (*managementClient.Cluster, error)
- func (stub ClusterOperationsStub) Update(existing *managementClient.Cluster, updates interface{}) (*managementClient.Cluster, error)
- type ConfigMapOperationsStub
- func (stub ConfigMapOperationsStub) ByID(id string) (*projectClient.ConfigMap, error)
- func (stub ConfigMapOperationsStub) Create(opts *projectClient.ConfigMap) (*projectClient.ConfigMap, error)
- func (stub ConfigMapOperationsStub) Delete(container *projectClient.ConfigMap) error
- func (stub ConfigMapOperationsStub) List(opts *types.ListOpts) (*projectClient.ConfigMapCollection, error)
- func (stub ConfigMapOperationsStub) Replace(existing *projectClient.ConfigMap) (*projectClient.ConfigMap, error)
- func (stub ConfigMapOperationsStub) Update(existing *projectClient.ConfigMap, updates interface{}) (*projectClient.ConfigMap, error)
- type CronJobOperationsStub
- func (stub CronJobOperationsStub) ByID(id string) (*projectClient.CronJob, error)
- func (stub CronJobOperationsStub) Create(opts *projectClient.CronJob) (*projectClient.CronJob, error)
- func (stub CronJobOperationsStub) Delete(container *projectClient.CronJob) error
- func (stub CronJobOperationsStub) List(opts *types.ListOpts) (*projectClient.CronJobCollection, error)
- func (stub CronJobOperationsStub) Replace(existing *projectClient.CronJob) (*projectClient.CronJob, error)
- func (stub CronJobOperationsStub) Update(existing *projectClient.CronJob, updates interface{}) (*projectClient.CronJob, error)
- type DaemonSetOperationsStub
- func (stub DaemonSetOperationsStub) ByID(id string) (*projectClient.DaemonSet, error)
- func (stub DaemonSetOperationsStub) Create(opts *projectClient.DaemonSet) (*projectClient.DaemonSet, error)
- func (stub DaemonSetOperationsStub) Delete(container *projectClient.DaemonSet) error
- func (stub DaemonSetOperationsStub) List(opts *types.ListOpts) (*projectClient.DaemonSetCollection, error)
- func (stub DaemonSetOperationsStub) Replace(existing *projectClient.DaemonSet) (*projectClient.DaemonSet, error)
- func (stub DaemonSetOperationsStub) Update(existing *projectClient.DaemonSet, updates interface{}) (*projectClient.DaemonSet, error)
- type DeploymentOperationsStub
- func (stub DeploymentOperationsStub) ActionPause(resource *projectClient.Deployment) error
- func (stub DeploymentOperationsStub) ActionResume(resource *projectClient.Deployment) error
- func (stub DeploymentOperationsStub) ActionRollback(resource *projectClient.Deployment, ...) error
- func (stub DeploymentOperationsStub) ByID(id string) (*projectClient.Deployment, error)
- func (stub DeploymentOperationsStub) Create(opts *projectClient.Deployment) (*projectClient.Deployment, error)
- func (stub DeploymentOperationsStub) Delete(container *projectClient.Deployment) error
- func (stub DeploymentOperationsStub) List(opts *types.ListOpts) (*projectClient.DeploymentCollection, error)
- func (stub DeploymentOperationsStub) Replace(existing *projectClient.Deployment) (*projectClient.Deployment, error)
- func (stub DeploymentOperationsStub) Update(existing *projectClient.Deployment, updates interface{}) (*projectClient.Deployment, error)
- type DockerCredentialOperationsStub
- func (stub DockerCredentialOperationsStub) ByID(id string) (*projectClient.DockerCredential, error)
- func (stub DockerCredentialOperationsStub) Create(opts *projectClient.DockerCredential) (*projectClient.DockerCredential, error)
- func (stub DockerCredentialOperationsStub) Delete(container *projectClient.DockerCredential) error
- func (stub DockerCredentialOperationsStub) List(opts *types.ListOpts) (*projectClient.DockerCredentialCollection, error)
- func (stub DockerCredentialOperationsStub) Replace(existing *projectClient.DockerCredential) (*projectClient.DockerCredential, error)
- func (stub DockerCredentialOperationsStub) Update(existing *projectClient.DockerCredential, updates interface{}) (*projectClient.DockerCredential, error)
- type JobOperationsStub
- func (stub JobOperationsStub) ByID(id string) (*projectClient.Job, error)
- func (stub JobOperationsStub) Create(opts *projectClient.Job) (*projectClient.Job, error)
- func (stub JobOperationsStub) Delete(container *projectClient.Job) error
- func (stub JobOperationsStub) List(opts *types.ListOpts) (*projectClient.JobCollection, error)
- func (stub JobOperationsStub) Replace(existing *projectClient.Job) (*projectClient.Job, error)
- func (stub JobOperationsStub) Update(existing *projectClient.Job, updates interface{}) (*projectClient.Job, error)
- type NamespaceOperationsStub
- func (stub NamespaceOperationsStub) ActionMove(resource *clusterClient.Namespace, input *clusterClient.NamespaceMove) error
- func (stub NamespaceOperationsStub) ByID(id string) (*clusterClient.Namespace, error)
- func (stub NamespaceOperationsStub) Create(opts *clusterClient.Namespace) (*clusterClient.Namespace, error)
- func (stub NamespaceOperationsStub) Delete(container *clusterClient.Namespace) error
- func (stub NamespaceOperationsStub) List(opts *types.ListOpts) (*clusterClient.NamespaceCollection, error)
- func (stub NamespaceOperationsStub) Replace(existing *clusterClient.Namespace) (*clusterClient.Namespace, error)
- func (stub NamespaceOperationsStub) Update(existing *clusterClient.Namespace, updates interface{}) (*clusterClient.Namespace, error)
- type NamespacedCertificateOperationsStub
- func (stub NamespacedCertificateOperationsStub) ByID(id string) (*projectClient.NamespacedCertificate, error)
- func (stub NamespacedCertificateOperationsStub) Create(opts *projectClient.NamespacedCertificate) (*projectClient.NamespacedCertificate, error)
- func (stub NamespacedCertificateOperationsStub) Delete(container *projectClient.NamespacedCertificate) error
- func (stub NamespacedCertificateOperationsStub) List(opts *types.ListOpts) (*projectClient.NamespacedCertificateCollection, error)
- func (stub NamespacedCertificateOperationsStub) Replace(existing *projectClient.NamespacedCertificate) (*projectClient.NamespacedCertificate, error)
- func (stub NamespacedCertificateOperationsStub) Update(existing *projectClient.NamespacedCertificate, updates interface{}) (*projectClient.NamespacedCertificate, error)
- type NamespacedDockerCredentialOperationsStub
- func (stub NamespacedDockerCredentialOperationsStub) ByID(id string) (*projectClient.NamespacedDockerCredential, error)
- func (stub NamespacedDockerCredentialOperationsStub) Create(opts *projectClient.NamespacedDockerCredential) (*projectClient.NamespacedDockerCredential, error)
- func (stub NamespacedDockerCredentialOperationsStub) Delete(container *projectClient.NamespacedDockerCredential) error
- func (stub NamespacedDockerCredentialOperationsStub) List(opts *types.ListOpts) (*projectClient.NamespacedDockerCredentialCollection, error)
- func (stub NamespacedDockerCredentialOperationsStub) Replace(existing *projectClient.NamespacedDockerCredential) (*projectClient.NamespacedDockerCredential, error)
- func (stub NamespacedDockerCredentialOperationsStub) Update(existing *projectClient.NamespacedDockerCredential, updates interface{}) (*projectClient.NamespacedDockerCredential, error)
- type NamespacedSecretOperationsStub
- func (stub NamespacedSecretOperationsStub) ByID(id string) (*projectClient.NamespacedSecret, error)
- func (stub NamespacedSecretOperationsStub) Create(opts *projectClient.NamespacedSecret) (*projectClient.NamespacedSecret, error)
- func (stub NamespacedSecretOperationsStub) Delete(container *projectClient.NamespacedSecret) error
- func (stub NamespacedSecretOperationsStub) List(opts *types.ListOpts) (*projectClient.NamespacedSecretCollection, error)
- func (stub NamespacedSecretOperationsStub) Replace(existing *projectClient.NamespacedSecret) (*projectClient.NamespacedSecret, error)
- func (stub NamespacedSecretOperationsStub) Update(existing *projectClient.NamespacedSecret, updates interface{}) (*projectClient.NamespacedSecret, error)
- type PersistentVolumeOperationsStub
- func (stub PersistentVolumeOperationsStub) ByID(id string) (*clusterClient.PersistentVolume, error)
- func (stub PersistentVolumeOperationsStub) Create(opts *clusterClient.PersistentVolume) (*clusterClient.PersistentVolume, error)
- func (stub PersistentVolumeOperationsStub) Delete(container *clusterClient.PersistentVolume) error
- func (stub PersistentVolumeOperationsStub) List(opts *types.ListOpts) (*clusterClient.PersistentVolumeCollection, error)
- func (stub PersistentVolumeOperationsStub) Replace(existing *clusterClient.PersistentVolume) (*clusterClient.PersistentVolume, error)
- func (stub PersistentVolumeOperationsStub) Update(existing *clusterClient.PersistentVolume, updates interface{}) (*clusterClient.PersistentVolume, error)
- type ProjectCatalogOperationsStub
- func (stub ProjectCatalogOperationsStub) ActionRefresh(resource *rancherClient.ProjectCatalog) error
- func (stub ProjectCatalogOperationsStub) ByID(id string) (*rancherClient.ProjectCatalog, error)
- func (stub ProjectCatalogOperationsStub) CollectionActionRefresh(resource *rancherClient.ProjectCatalogCollection) error
- func (stub ProjectCatalogOperationsStub) Create(opts *rancherClient.ProjectCatalog) (*rancherClient.ProjectCatalog, error)
- func (stub ProjectCatalogOperationsStub) Delete(container *rancherClient.ProjectCatalog) error
- func (stub ProjectCatalogOperationsStub) List(opts *types.ListOpts) (*rancherClient.ProjectCatalogCollection, error)
- func (stub ProjectCatalogOperationsStub) Replace(existing *rancherClient.ProjectCatalog) (*rancherClient.ProjectCatalog, error)
- func (stub ProjectCatalogOperationsStub) Update(existing *rancherClient.ProjectCatalog, updates interface{}) (*rancherClient.ProjectCatalog, error)
- type ProjectOperationsStub
- func (stub ProjectOperationsStub) ActionDisableMonitoring(resource *managementClient.Project) error
- func (stub ProjectOperationsStub) ActionEditMonitoring(resource *managementClient.Project, input *managementClient.MonitoringInput) error
- func (stub ProjectOperationsStub) ActionEnableMonitoring(resource *managementClient.Project, input *managementClient.MonitoringInput) error
- func (stub ProjectOperationsStub) ActionExportYaml(resource *managementClient.Project) error
- func (stub ProjectOperationsStub) ActionSetpodsecuritypolicytemplate(resource *managementClient.Project, ...) (*managementClient.Project, error)
- func (stub ProjectOperationsStub) ActionViewMonitoring(resource *managementClient.Project) (*managementClient.MonitoringOutput, error)
- func (stub ProjectOperationsStub) ByID(id string) (*managementClient.Project, error)
- func (stub ProjectOperationsStub) Create(opts *managementClient.Project) (*managementClient.Project, error)
- func (stub ProjectOperationsStub) Delete(container *managementClient.Project) error
- func (stub ProjectOperationsStub) List(opts *types.ListOpts) (*managementClient.ProjectCollection, error)
- func (stub ProjectOperationsStub) Replace(existing *managementClient.Project) (*managementClient.Project, error)
- func (stub ProjectOperationsStub) Update(existing *managementClient.Project, updates interface{}) (*managementClient.Project, error)
- type RancherCatalogOperationsStub
- func (stub RancherCatalogOperationsStub) ActionRefresh(resource *rancherClient.Catalog) error
- func (stub RancherCatalogOperationsStub) ByID(id string) (*rancherClient.Catalog, error)
- func (stub RancherCatalogOperationsStub) CollectionActionRefresh(resource *rancherClient.CatalogCollection) error
- func (stub RancherCatalogOperationsStub) Create(opts *rancherClient.Catalog) (*rancherClient.Catalog, error)
- func (stub RancherCatalogOperationsStub) Delete(container *rancherClient.Catalog) error
- func (stub RancherCatalogOperationsStub) List(opts *types.ListOpts) (*rancherClient.CatalogCollection, error)
- func (stub RancherCatalogOperationsStub) Replace(existing *rancherClient.Catalog) (*rancherClient.Catalog, error)
- func (stub RancherCatalogOperationsStub) Update(existing *rancherClient.Catalog, updates interface{}) (*rancherClient.Catalog, error)
- type SecretOperationsStub
- func (stub SecretOperationsStub) ByID(id string) (*projectClient.Secret, error)
- func (stub SecretOperationsStub) Create(opts *projectClient.Secret) (*projectClient.Secret, error)
- func (stub SecretOperationsStub) Delete(container *projectClient.Secret) error
- func (stub SecretOperationsStub) List(opts *types.ListOpts) (*projectClient.SecretCollection, error)
- func (stub SecretOperationsStub) Replace(existing *projectClient.Secret) (*projectClient.Secret, error)
- func (stub SecretOperationsStub) Update(existing *projectClient.Secret, updates interface{}) (*projectClient.Secret, error)
- type StatefulSetOperationsStub
- func (stub StatefulSetOperationsStub) ByID(id string) (*projectClient.StatefulSet, error)
- func (stub StatefulSetOperationsStub) Create(opts *projectClient.StatefulSet) (*projectClient.StatefulSet, error)
- func (stub StatefulSetOperationsStub) Delete(container *projectClient.StatefulSet) error
- func (stub StatefulSetOperationsStub) List(opts *types.ListOpts) (*projectClient.StatefulSetCollection, error)
- func (stub StatefulSetOperationsStub) Replace(existing *projectClient.StatefulSet) (*projectClient.StatefulSet, error)
- func (stub StatefulSetOperationsStub) Update(existing *projectClient.StatefulSet, updates interface{}) (*projectClient.StatefulSet, error)
- type StorageClassOperationsStub
- func (stub StorageClassOperationsStub) ByID(id string) (*clusterClient.StorageClass, error)
- func (stub StorageClassOperationsStub) Create(opts *clusterClient.StorageClass) (*clusterClient.StorageClass, error)
- func (stub StorageClassOperationsStub) Delete(container *clusterClient.StorageClass) error
- func (stub StorageClassOperationsStub) List(opts *types.ListOpts) (*clusterClient.StorageClassCollection, error)
- func (stub StorageClassOperationsStub) Replace(existing *clusterClient.StorageClass) (*clusterClient.StorageClass, error)
- func (stub StorageClassOperationsStub) Update(existing *clusterClient.StorageClass, updates interface{}) (*clusterClient.StorageClass, error)
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 ¶
func (stub AppOperationsStub) List(opts *types.ListOpts) (*projectClient.AppCollection, error)
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
func (stub CertificateOperationsStub) ByID(id string) (*projectClient.Certificate, error)
ByID implements github.com/rancher/types/client/project/v3/CertificateOperations.ByID(...)
func (CertificateOperationsStub) Create ¶ added in v1.2.0
func (stub CertificateOperationsStub) Create(opts *projectClient.Certificate) (*projectClient.Certificate, error)
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
func (stub CertificateOperationsStub) List(opts *types.ListOpts) (*projectClient.CertificateCollection, error)
List implements github.com/rancher/types/client/project/v3/CertificateOperations.List(...)
func (CertificateOperationsStub) Replace ¶ added in v1.2.0
func (stub CertificateOperationsStub) Replace(existing *projectClient.Certificate) (*projectClient.Certificate, error)
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
func (stub ClusterCatalogOperationsStub) ByID(id string) (*rancherClient.ClusterCatalog, error)
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
func (stub ClusterCatalogOperationsStub) Create(opts *rancherClient.ClusterCatalog) (*rancherClient.ClusterCatalog, error)
Create implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.Create(...)
func (ClusterCatalogOperationsStub) Delete ¶ added in v1.3.0
func (stub ClusterCatalogOperationsStub) Delete(container *rancherClient.ClusterCatalog) error
Delete implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.Delete(...)
func (ClusterCatalogOperationsStub) List ¶ added in v1.3.0
func (stub ClusterCatalogOperationsStub) List(opts *types.ListOpts) (*rancherClient.ClusterCatalogCollection, error)
List implements github.com/rancher/types/client/project/v3/ClusterCatalogOperations.List(...)
func (ClusterCatalogOperationsStub) Replace ¶ added in v1.3.0
func (stub ClusterCatalogOperationsStub) Replace(existing *rancherClient.ClusterCatalog) (*rancherClient.ClusterCatalog, error)
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
func (stub ClusterOperationsStub) ActionExportYaml(resource *managementClient.Cluster) (*managementClient.ExportOutput, error)
ActionExportYaml implements github.com/rancher/types/client/management/v3/ClusterOperations.ActionExportYaml(...)
func (ClusterOperationsStub) ActionGenerateKubeconfig ¶ added in v1.2.0
func (stub ClusterOperationsStub) ActionGenerateKubeconfig(resource *managementClient.Cluster) (*managementClient.GenerateKubeConfigOutput, error)
ActionExportYaml implements github.com/rancher/types/client/management/v3/ClusterOperations.ActionGenerateKubeconfig(...)
func (ClusterOperationsStub) ActionImportYaml ¶ added in v1.2.0
func (stub ClusterOperationsStub) ActionImportYaml(resource *managementClient.Cluster, input *managementClient.ImportClusterYamlInput) (*managementClient.ImportYamlOutput, error)
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
func (stub ClusterOperationsStub) ActionRotateCertificates(resource *managementClient.Cluster, input *managementClient.RotateCertificateInput) (*managementClient.RotateCertificateOutput, error)
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
func (stub ClusterOperationsStub) ByID(id string) (*managementClient.Cluster, error)
ByID implements github.com/rancher/types/client/management/v3/ClusterOperations.ByID(...)
func (ClusterOperationsStub) Create ¶ added in v1.2.0
func (stub ClusterOperationsStub) Create(opts *managementClient.Cluster) (*managementClient.Cluster, error)
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
func (stub ClusterOperationsStub) List(opts *types.ListOpts) (*managementClient.ClusterCollection, error)
List implements github.com/rancher/types/client/management/v3/ClusterOperations.List(...)
func (ClusterOperationsStub) Replace ¶ added in v1.2.0
func (stub ClusterOperationsStub) Replace(existing *managementClient.Cluster) (*managementClient.Cluster, error)
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
func (stub ConfigMapOperationsStub) ByID(id string) (*projectClient.ConfigMap, error)
ByID implements github.com/rancher/types/client/project/v3/ConfigMapOperations.ByID(...)
func (ConfigMapOperationsStub) Create ¶ added in v1.2.0
func (stub ConfigMapOperationsStub) Create(opts *projectClient.ConfigMap) (*projectClient.ConfigMap, error)
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
func (stub ConfigMapOperationsStub) List(opts *types.ListOpts) (*projectClient.ConfigMapCollection, error)
List implements github.com/rancher/types/client/project/v3/ConfigMapOperations.List(...)
func (ConfigMapOperationsStub) Replace ¶ added in v1.2.0
func (stub ConfigMapOperationsStub) Replace(existing *projectClient.ConfigMap) (*projectClient.ConfigMap, error)
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
func (stub CronJobOperationsStub) ByID(id string) (*projectClient.CronJob, error)
ByID implements github.com/rancher/types/client/project/v3/CronJobOperations.ByID(...)
func (CronJobOperationsStub) Create ¶ added in v1.2.0
func (stub CronJobOperationsStub) Create(opts *projectClient.CronJob) (*projectClient.CronJob, error)
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
func (stub CronJobOperationsStub) List(opts *types.ListOpts) (*projectClient.CronJobCollection, error)
List implements github.com/rancher/types/client/project/v3/CronJobOperations.List(...)
func (CronJobOperationsStub) Replace ¶ added in v1.2.0
func (stub CronJobOperationsStub) Replace(existing *projectClient.CronJob) (*projectClient.CronJob, error)
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
func (stub DaemonSetOperationsStub) ByID(id string) (*projectClient.DaemonSet, error)
ByID implements github.com/rancher/types/client/project/v3/DaemonSetOperations.ByID(...)
func (DaemonSetOperationsStub) Create ¶ added in v1.2.0
func (stub DaemonSetOperationsStub) Create(opts *projectClient.DaemonSet) (*projectClient.DaemonSet, error)
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
func (stub DaemonSetOperationsStub) List(opts *types.ListOpts) (*projectClient.DaemonSetCollection, error)
List implements github.com/rancher/types/client/project/v3/DaemonSetOperations.List(...)
func (DaemonSetOperationsStub) Replace ¶ added in v1.2.0
func (stub DaemonSetOperationsStub) Replace(existing *projectClient.DaemonSet) (*projectClient.DaemonSet, error)
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
func (stub DeploymentOperationsStub) ActionRollback(resource *projectClient.Deployment, input *projectClient.DeploymentRollbackInput) error
ActionRollback implements github.com/rancher/types/client/project/v3/DeploymentOperations.ActionRollback(...)
func (DeploymentOperationsStub) ByID ¶ added in v1.2.0
func (stub DeploymentOperationsStub) ByID(id string) (*projectClient.Deployment, error)
ByID implements github.com/rancher/types/client/project/v3/DeploymentOperations.ByID(...)
func (DeploymentOperationsStub) Create ¶ added in v1.2.0
func (stub DeploymentOperationsStub) Create(opts *projectClient.Deployment) (*projectClient.Deployment, error)
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
func (stub DeploymentOperationsStub) List(opts *types.ListOpts) (*projectClient.DeploymentCollection, error)
List implements github.com/rancher/types/client/project/v3/DeploymentOperations.List(...)
func (DeploymentOperationsStub) Replace ¶ added in v1.2.0
func (stub DeploymentOperationsStub) Replace(existing *projectClient.Deployment) (*projectClient.Deployment, error)
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
func (stub DockerCredentialOperationsStub) ByID(id string) (*projectClient.DockerCredential, error)
ByID implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.ByID(...)
func (DockerCredentialOperationsStub) Create ¶ added in v1.1.0
func (stub DockerCredentialOperationsStub) Create(opts *projectClient.DockerCredential) (*projectClient.DockerCredential, error)
Create implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Create(...)
func (DockerCredentialOperationsStub) Delete ¶ added in v1.1.0
func (stub DockerCredentialOperationsStub) Delete(container *projectClient.DockerCredential) error
Delete implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Delete(...)
func (DockerCredentialOperationsStub) List ¶ added in v1.1.0
func (stub DockerCredentialOperationsStub) List(opts *types.ListOpts) (*projectClient.DockerCredentialCollection, error)
List implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.List(...)
func (DockerCredentialOperationsStub) Replace ¶ added in v1.1.0
func (stub DockerCredentialOperationsStub) Replace(existing *projectClient.DockerCredential) (*projectClient.DockerCredential, error)
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
func (stub JobOperationsStub) List(opts *types.ListOpts) (*projectClient.JobCollection, error)
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 ¶
func (stub NamespaceOperationsStub) ActionMove(resource *clusterClient.Namespace, input *clusterClient.NamespaceMove) error
ActionMove implements github.com/rancher/types/client/cluster/v3/NamespaceOperations.ActionMove(...)
func (NamespaceOperationsStub) ByID ¶
func (stub NamespaceOperationsStub) ByID(id string) (*clusterClient.Namespace, error)
ByID implements github.com/rancher/types/client/cluster/v3/NamespaceOperations.ByID(...)
func (NamespaceOperationsStub) Create ¶
func (stub NamespaceOperationsStub) Create(opts *clusterClient.Namespace) (*clusterClient.Namespace, error)
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 ¶
func (stub NamespaceOperationsStub) List(opts *types.ListOpts) (*clusterClient.NamespaceCollection, error)
List implements github.com/rancher/types/client/cluster/v3/NamespaceOperations.List(...)
func (NamespaceOperationsStub) Replace ¶
func (stub NamespaceOperationsStub) Replace(existing *clusterClient.Namespace) (*clusterClient.Namespace, error)
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
func (stub NamespacedCertificateOperationsStub) ByID(id string) (*projectClient.NamespacedCertificate, error)
ByID implements github.com/rancher/types/client/project/v3/NamespacedCertificateOperations.ByID(...)
func (NamespacedCertificateOperationsStub) Create ¶ added in v1.2.0
func (stub NamespacedCertificateOperationsStub) Create(opts *projectClient.NamespacedCertificate) (*projectClient.NamespacedCertificate, error)
Create implements github.com/rancher/types/client/project/v3/NamespacedCertificateOperations.Create(...)
func (NamespacedCertificateOperationsStub) Delete ¶ added in v1.2.0
func (stub NamespacedCertificateOperationsStub) Delete(container *projectClient.NamespacedCertificate) error
Delete implements github.com/rancher/types/client/project/v3/NamespacedCertificateOperations.Delete(...)
func (NamespacedCertificateOperationsStub) List ¶ added in v1.2.0
func (stub NamespacedCertificateOperationsStub) List(opts *types.ListOpts) (*projectClient.NamespacedCertificateCollection, error)
List implements github.com/rancher/types/client/project/v3/NamespacedCertificateOperations.List(...)
func (NamespacedCertificateOperationsStub) Replace ¶ added in v1.2.0
func (stub NamespacedCertificateOperationsStub) Replace(existing *projectClient.NamespacedCertificate) (*projectClient.NamespacedCertificate, error)
Replace implements github.com/rancher/types/client/project/v3/NamespacedCertificateOperations.Replace(...)
func (NamespacedCertificateOperationsStub) Update ¶ added in v1.2.0
func (stub NamespacedCertificateOperationsStub) Update(existing *projectClient.NamespacedCertificate, updates interface{}) (*projectClient.NamespacedCertificate, error)
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
func (stub NamespacedDockerCredentialOperationsStub) ByID(id string) (*projectClient.NamespacedDockerCredential, error)
ByID implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.ByID(...)
func (NamespacedDockerCredentialOperationsStub) Create ¶ added in v1.2.0
func (stub NamespacedDockerCredentialOperationsStub) Create(opts *projectClient.NamespacedDockerCredential) (*projectClient.NamespacedDockerCredential, error)
Create implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Create(...)
func (NamespacedDockerCredentialOperationsStub) Delete ¶ added in v1.2.0
func (stub NamespacedDockerCredentialOperationsStub) Delete(container *projectClient.NamespacedDockerCredential) error
Delete implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Delete(...)
func (NamespacedDockerCredentialOperationsStub) List ¶ added in v1.2.0
func (stub NamespacedDockerCredentialOperationsStub) List(opts *types.ListOpts) (*projectClient.NamespacedDockerCredentialCollection, error)
List implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.List(...)
func (NamespacedDockerCredentialOperationsStub) Replace ¶ added in v1.2.0
func (stub NamespacedDockerCredentialOperationsStub) Replace(existing *projectClient.NamespacedDockerCredential) (*projectClient.NamespacedDockerCredential, error)
Replace implements github.com/rancher/types/client/project/v3/DockerCredentialOperations.Replace(...)
func (NamespacedDockerCredentialOperationsStub) Update ¶ added in v1.2.0
func (stub NamespacedDockerCredentialOperationsStub) Update(existing *projectClient.NamespacedDockerCredential, updates interface{}) (*projectClient.NamespacedDockerCredential, error)
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
func (stub NamespacedSecretOperationsStub) ByID(id string) (*projectClient.NamespacedSecret, error)
ByID implements github.com/rancher/types/client/project/v3/NamespacedSecretOperations.ByID(...)
func (NamespacedSecretOperationsStub) Create ¶ added in v1.2.0
func (stub NamespacedSecretOperationsStub) Create(opts *projectClient.NamespacedSecret) (*projectClient.NamespacedSecret, error)
Create implements github.com/rancher/types/client/project/v3/NamespacedSecretOperations.Create(...)
func (NamespacedSecretOperationsStub) Delete ¶ added in v1.2.0
func (stub NamespacedSecretOperationsStub) Delete(container *projectClient.NamespacedSecret) error
Delete implements github.com/rancher/types/client/project/v3/NamespacedSecretOperations.Delete(...)
func (NamespacedSecretOperationsStub) List ¶ added in v1.2.0
func (stub NamespacedSecretOperationsStub) List(opts *types.ListOpts) (*projectClient.NamespacedSecretCollection, error)
List implements github.com/rancher/types/client/project/v3/NamespacedSecretOperations.List(...)
func (NamespacedSecretOperationsStub) Replace ¶ added in v1.2.0
func (stub NamespacedSecretOperationsStub) Replace(existing *projectClient.NamespacedSecret) (*projectClient.NamespacedSecret, error)
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 ¶
func (stub PersistentVolumeOperationsStub) ByID(id string) (*clusterClient.PersistentVolume, error)
ByID implements github.com/rancher/types/client/cluster/v3/PersistentVolumeOperations.ByID(...)
func (PersistentVolumeOperationsStub) Create ¶
func (stub PersistentVolumeOperationsStub) Create(opts *clusterClient.PersistentVolume) (*clusterClient.PersistentVolume, error)
Create implements github.com/rancher/types/client/cluster/v3/PersistentVolumeOperations.Create(...)
func (PersistentVolumeOperationsStub) Delete ¶
func (stub PersistentVolumeOperationsStub) Delete(container *clusterClient.PersistentVolume) error
Delete implements github.com/rancher/types/client/cluster/v3/PersistentVolumeOperations.Delete(...)
func (PersistentVolumeOperationsStub) List ¶
func (stub PersistentVolumeOperationsStub) List(opts *types.ListOpts) (*clusterClient.PersistentVolumeCollection, error)
List implements github.com/rancher/types/client/cluster/v3/PersistentVolumeOperations.List(...)
func (PersistentVolumeOperationsStub) Replace ¶
func (stub PersistentVolumeOperationsStub) Replace(existing *clusterClient.PersistentVolume) (*clusterClient.PersistentVolume, error)
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
func (stub ProjectCatalogOperationsStub) ByID(id string) (*rancherClient.ProjectCatalog, error)
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
func (stub ProjectCatalogOperationsStub) Create(opts *rancherClient.ProjectCatalog) (*rancherClient.ProjectCatalog, error)
Create implements github.com/rancher/types/client/project/v3/ProjectCatalogOperations.Create(...)
func (ProjectCatalogOperationsStub) Delete ¶ added in v1.3.0
func (stub ProjectCatalogOperationsStub) Delete(container *rancherClient.ProjectCatalog) error
Delete implements github.com/rancher/types/client/project/v3/ProjectCatalogOperations.Delete(...)
func (ProjectCatalogOperationsStub) List ¶ added in v1.3.0
func (stub ProjectCatalogOperationsStub) List(opts *types.ListOpts) (*rancherClient.ProjectCatalogCollection, error)
List implements github.com/rancher/types/client/project/v3/ProjectCatalogOperations.List(...)
func (ProjectCatalogOperationsStub) Replace ¶ added in v1.3.0
func (stub ProjectCatalogOperationsStub) Replace(existing *rancherClient.ProjectCatalog) (*rancherClient.ProjectCatalog, error)
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 ¶
func (stub ProjectOperationsStub) ActionSetpodsecuritypolicytemplate(resource *managementClient.Project, input *managementClient.SetPodSecurityPolicyTemplateInput) (*managementClient.Project, error)
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 ¶
func (stub ProjectOperationsStub) ByID(id string) (*managementClient.Project, error)
ByID implements github.com/rancher/types/client/management/v3/ProjectOperations.ByID(...)
func (ProjectOperationsStub) Create ¶
func (stub ProjectOperationsStub) Create(opts *managementClient.Project) (*managementClient.Project, error)
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 ¶
func (stub ProjectOperationsStub) List(opts *types.ListOpts) (*managementClient.ProjectCollection, error)
List implements github.com/rancher/types/client/management/v3/ProjectOperations.List(...)
func (ProjectOperationsStub) Replace ¶
func (stub ProjectOperationsStub) Replace(existing *managementClient.Project) (*managementClient.Project, error)
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
func (stub RancherCatalogOperationsStub) ByID(id string) (*rancherClient.Catalog, error)
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
func (stub RancherCatalogOperationsStub) Create(opts *rancherClient.Catalog) (*rancherClient.Catalog, error)
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
func (stub RancherCatalogOperationsStub) List(opts *types.ListOpts) (*rancherClient.CatalogCollection, error)
List implements github.com/rancher/types/client/project/v3/RancherCatalogOperations.List(...)
func (RancherCatalogOperationsStub) Replace ¶ added in v1.3.0
func (stub RancherCatalogOperationsStub) Replace(existing *rancherClient.Catalog) (*rancherClient.Catalog, error)
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
func (stub SecretOperationsStub) ByID(id string) (*projectClient.Secret, error)
ByID implements github.com/rancher/types/client/project/v3/SecretOperations.ByID(...)
func (SecretOperationsStub) Create ¶ added in v1.2.0
func (stub SecretOperationsStub) Create(opts *projectClient.Secret) (*projectClient.Secret, error)
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
func (stub SecretOperationsStub) List(opts *types.ListOpts) (*projectClient.SecretCollection, error)
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
func (stub StatefulSetOperationsStub) ByID(id string) (*projectClient.StatefulSet, error)
ByID implements github.com/rancher/types/client/project/v3/StatefulSetOperations.ByID(...)
func (StatefulSetOperationsStub) Create ¶ added in v1.2.0
func (stub StatefulSetOperationsStub) Create(opts *projectClient.StatefulSet) (*projectClient.StatefulSet, error)
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
func (stub StatefulSetOperationsStub) List(opts *types.ListOpts) (*projectClient.StatefulSetCollection, error)
List implements github.com/rancher/types/client/project/v3/StatefulSetOperations.List(...)
func (StatefulSetOperationsStub) Replace ¶ added in v1.2.0
func (stub StatefulSetOperationsStub) Replace(existing *projectClient.StatefulSet) (*projectClient.StatefulSet, error)
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 ¶
func (stub StorageClassOperationsStub) ByID(id string) (*clusterClient.StorageClass, error)
ByID implements github.com/rancher/types/client/cluster/v3/StorageClassOperations.ByID(...)
func (StorageClassOperationsStub) Create ¶
func (stub StorageClassOperationsStub) Create(opts *clusterClient.StorageClass) (*clusterClient.StorageClass, error)
Create implements github.com/rancher/types/client/cluster/v3/StorageClassOperations.Create(...)
func (StorageClassOperationsStub) Delete ¶
func (stub StorageClassOperationsStub) Delete(container *clusterClient.StorageClass) error
Delete implements github.com/rancher/types/client/cluster/v3/StorageClassOperations.Delete(...)
func (StorageClassOperationsStub) List ¶
func (stub StorageClassOperationsStub) List(opts *types.ListOpts) (*clusterClient.StorageClassCollection, error)
List implements github.com/rancher/types/client/cluster/v3/StorageClassOperations.List(...)
func (StorageClassOperationsStub) Replace ¶
func (stub StorageClassOperationsStub) Replace(existing *clusterClient.StorageClass) (*clusterClient.StorageClass, error)
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(...)
Source Files ¶
- app_operations_stub.go
- backend_stubs.go
- certificate_operations_stub.go
- cluster_catalog_operations_stub.go
- cluster_operation_stubs.go
- config_map_operations_stub.go
- cronjob_operations_stub.go
- daemon_set_operations_stub.go
- deployment_operations_stub.go
- docker_credential_operations_stub.go
- docs.go
- job_operations_stub.go
- namespace_operations_stub.go
- namespaced_certificate_operations_stub.go
- namespaced_docker_credential_operations_stub.go
- namespaced_secret_operations_stub.go
- persistent_volume_operations_stub.go
- project_catalog_operations_stub.go
- projects_operation_stubs.go
- rancher_catalog_operations_stub.go
- secret_operations_stub.go
- stateful_set_operations_stub.go
- storage_class_operations_stub.go