Documentation ¶
Index ¶
- func AddObjectsFromPath(path string, o ObjectRetriever, decoder runtime.Decoder) error
- type Action
- type ActionImpl
- type CreateAction
- type CreateActionImpl
- type DeleteAction
- type DeleteActionImpl
- type DeleteCollectionActionImpl
- type Fake
- func (c *Fake) Actions() []Action
- func (c *Fake) AddProxyReactor(resource string, reaction ProxyReactionFunc)
- func (c *Fake) AddReactor(verb, resource string, reaction ReactionFunc)
- func (c *Fake) AddWatchReactor(resource string, reaction WatchReactionFunc)
- func (c *Fake) Apps() client.AppsInterface
- func (c *Fake) Authentication() client.AuthenticationInterface
- func (c *Fake) Authorization() client.AuthorizationInterface
- func (c *Fake) Autoscaling() client.AutoscalingInterface
- func (c *Fake) Batch() client.BatchInterface
- func (c *Fake) Certificates() client.CertificatesInterface
- func (c *Fake) ClearActions()
- func (c *Fake) ComponentStatuses() client.ComponentStatusInterface
- func (c *Fake) ConfigMaps(namespace string) client.ConfigMapsInterface
- func (c *Fake) Discovery() discovery.DiscoveryInterface
- func (c *Fake) Endpoints(namespace string) client.EndpointsInterface
- func (c *Fake) Events(namespace string) client.EventInterface
- func (c *Fake) Extensions() client.ExtensionsInterface
- func (c *Fake) Invokes(action Action, defaultReturnObj runtime.Object) (runtime.Object, error)
- func (c *Fake) InvokesProxy(action Action) restclient.ResponseWrapper
- func (c *Fake) InvokesWatch(action Action) (watch.Interface, error)
- func (c *Fake) LimitRanges(namespace string) client.LimitRangeInterface
- func (c *Fake) Namespaces() client.NamespaceInterface
- func (c *Fake) Nodes() client.NodeInterface
- func (c *Fake) PersistentVolumeClaims(namespace string) client.PersistentVolumeClaimInterface
- func (c *Fake) PersistentVolumes() client.PersistentVolumeInterface
- func (c *Fake) PodSecurityPolicies() client.PodSecurityPolicyInterface
- func (c *Fake) PodTemplates(namespace string) client.PodTemplateInterface
- func (c *Fake) Pods(namespace string) client.PodInterface
- func (c *Fake) PrependProxyReactor(resource string, reaction ProxyReactionFunc)
- func (c *Fake) PrependReactor(verb, resource string, reaction ReactionFunc)
- func (c *Fake) PrependWatchReactor(resource string, reaction WatchReactionFunc)
- func (c *Fake) Rbac() client.RbacInterface
- func (c *Fake) ReplicationControllers(namespace string) client.ReplicationControllerInterface
- func (c *Fake) ResourceQuotas(namespace string) client.ResourceQuotaInterface
- func (c *Fake) Secrets(namespace string) client.SecretsInterface
- func (c *Fake) ServiceAccounts(namespace string) client.ServiceAccountsInterface
- func (c *Fake) Services(namespace string) client.ServiceInterface
- func (c *Fake) Storage() client.StorageInterface
- func (c *Fake) SwaggerSchema(version unversioned.GroupVersion) (*swagger.ApiDeclaration, error)
- type FakeApps
- type FakeAuthentication
- type FakeAuthorization
- type FakeAutoscaling
- type FakeBatch
- type FakeCertificateSigningRequest
- func (c *FakeCertificateSigningRequest) Create(csr *certificates.CertificateSigningRequest) (*certificates.CertificateSigningRequest, error)
- func (c *FakeCertificateSigningRequest) Delete(name string, opts *api.DeleteOptions) error
- func (c *FakeCertificateSigningRequest) Get(name string) (*certificates.CertificateSigningRequest, error)
- func (c *FakeCertificateSigningRequest) List(opts api.ListOptions) (*certificates.CertificateSigningRequestList, error)
- func (c *FakeCertificateSigningRequest) Update(csr *certificates.CertificateSigningRequest) (*certificates.CertificateSigningRequest, error)
- func (c *FakeCertificateSigningRequest) UpdateApproval(csr *certificates.CertificateSigningRequest) (*certificates.CertificateSigningRequest, error)
- func (c *FakeCertificateSigningRequest) UpdateStatus(csr *certificates.CertificateSigningRequest) (*certificates.CertificateSigningRequest, error)
- func (c *FakeCertificateSigningRequest) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeCertificates
- type FakeClusterRoleBindings
- func (c *FakeClusterRoleBindings) Create(csr *rbac.ClusterRoleBinding) (*rbac.ClusterRoleBinding, error)
- func (c *FakeClusterRoleBindings) Delete(name string, opts *api.DeleteOptions) error
- func (c *FakeClusterRoleBindings) Get(name string) (*rbac.ClusterRoleBinding, error)
- func (c *FakeClusterRoleBindings) List(opts api.ListOptions) (*rbac.ClusterRoleBindingList, error)
- func (c *FakeClusterRoleBindings) Update(csr *rbac.ClusterRoleBinding) (*rbac.ClusterRoleBinding, error)
- func (c *FakeClusterRoleBindings) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeClusterRoles
- func (c *FakeClusterRoles) Create(csr *rbac.ClusterRole) (*rbac.ClusterRole, error)
- func (c *FakeClusterRoles) Delete(name string, opts *api.DeleteOptions) error
- func (c *FakeClusterRoles) Get(name string) (*rbac.ClusterRole, error)
- func (c *FakeClusterRoles) List(opts api.ListOptions) (*rbac.ClusterRoleList, error)
- func (c *FakeClusterRoles) Update(csr *rbac.ClusterRole) (*rbac.ClusterRole, error)
- func (c *FakeClusterRoles) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeComponentStatuses
- type FakeConfigMaps
- func (c *FakeConfigMaps) Create(cfg *api.ConfigMap) (*api.ConfigMap, error)
- func (c *FakeConfigMaps) Delete(name string) error
- func (c *FakeConfigMaps) Get(name string) (*api.ConfigMap, error)
- func (c *FakeConfigMaps) List(opts api.ListOptions) (*api.ConfigMapList, error)
- func (c *FakeConfigMaps) Update(cfg *api.ConfigMap) (*api.ConfigMap, error)
- func (c *FakeConfigMaps) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeDaemonSets
- func (c *FakeDaemonSets) Create(daemon *extensions.DaemonSet) (*extensions.DaemonSet, error)
- func (c *FakeDaemonSets) Delete(name string) error
- func (c *FakeDaemonSets) Get(name string) (*extensions.DaemonSet, error)
- func (c *FakeDaemonSets) List(opts api.ListOptions) (*extensions.DaemonSetList, error)
- func (c *FakeDaemonSets) Update(daemon *extensions.DaemonSet) (*extensions.DaemonSet, error)
- func (c *FakeDaemonSets) UpdateStatus(daemon *extensions.DaemonSet) (*extensions.DaemonSet, error)
- func (c *FakeDaemonSets) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeDeployments
- func (c *FakeDeployments) Create(deployment *extensions.Deployment) (*extensions.Deployment, error)
- func (c *FakeDeployments) Delete(name string, options *api.DeleteOptions) error
- func (c *FakeDeployments) Get(name string) (*extensions.Deployment, error)
- func (c *FakeDeployments) List(opts api.ListOptions) (*extensions.DeploymentList, error)
- func (c *FakeDeployments) Rollback(deploymentRollback *extensions.DeploymentRollback) error
- func (c *FakeDeployments) Update(deployment *extensions.Deployment) (*extensions.Deployment, error)
- func (c *FakeDeployments) UpdateStatus(deployment *extensions.Deployment) (*extensions.Deployment, error)
- func (c *FakeDeployments) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeDiscovery
- func (c *FakeDiscovery) ServerGroups() (*unversioned.APIGroupList, error)
- func (c *FakeDiscovery) ServerPreferredNamespacedResources() ([]unversioned.GroupVersionResource, error)
- func (c *FakeDiscovery) ServerPreferredResources() ([]unversioned.GroupVersionResource, error)
- func (c *FakeDiscovery) ServerResources() (map[string]*unversioned.APIResourceList, error)
- func (c *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*unversioned.APIResourceList, error)
- func (c *FakeDiscovery) ServerVersion() (*version.Info, error)
- type FakeEndpoints
- func (c *FakeEndpoints) Create(endpoints *api.Endpoints) (*api.Endpoints, error)
- func (c *FakeEndpoints) Delete(name string) error
- func (c *FakeEndpoints) Get(name string) (*api.Endpoints, error)
- func (c *FakeEndpoints) List(opts api.ListOptions) (*api.EndpointsList, error)
- func (c *FakeEndpoints) Update(endpoints *api.Endpoints) (*api.Endpoints, error)
- func (c *FakeEndpoints) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeEvents
- func (c *FakeEvents) Create(event *api.Event) (*api.Event, error)
- func (c *FakeEvents) Delete(name string) error
- func (c *FakeEvents) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
- func (c *FakeEvents) Get(name string) (*api.Event, error)
- func (c *FakeEvents) GetFieldSelector(involvedObjectName, involvedObjectNamespace, involvedObjectKind, ... *string) fields.Selector
- func (c *FakeEvents) List(opts api.ListOptions) (*api.EventList, error)
- func (c *FakeEvents) Patch(event *api.Event, data []byte) (*api.Event, error)
- func (c *FakeEvents) Search(objOrRef runtime.Object) (*api.EventList, error)
- func (c *FakeEvents) Update(event *api.Event) (*api.Event, error)
- func (c *FakeEvents) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeExperimental
- func (c *FakeExperimental) DaemonSets(namespace string) client.DaemonSetInterface
- func (c *FakeExperimental) Deployments(namespace string) client.DeploymentInterface
- func (c *FakeExperimental) Ingress(namespace string) client.IngressInterface
- func (c *FakeExperimental) Jobs(namespace string) client.JobInterface
- func (c *FakeExperimental) NetworkPolicies(namespace string) client.NetworkPolicyInterface
- func (c *FakeExperimental) ReplicaSets(namespace string) client.ReplicaSetInterface
- func (c *FakeExperimental) Scales(namespace string) client.ScaleInterface
- func (c *FakeExperimental) ThirdPartyResources() client.ThirdPartyResourceInterface
- type FakeHorizontalPodAutoscalers
- func (c *FakeHorizontalPodAutoscalers) Create(a *autoscaling.HorizontalPodAutoscaler) (*autoscaling.HorizontalPodAutoscaler, error)
- func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *api.DeleteOptions) error
- func (c *FakeHorizontalPodAutoscalers) Get(name string) (*autoscaling.HorizontalPodAutoscaler, error)
- func (c *FakeHorizontalPodAutoscalers) List(opts api.ListOptions) (*autoscaling.HorizontalPodAutoscalerList, error)
- func (c *FakeHorizontalPodAutoscalers) Update(a *autoscaling.HorizontalPodAutoscaler) (*autoscaling.HorizontalPodAutoscaler, error)
- func (c *FakeHorizontalPodAutoscalers) UpdateStatus(a *autoscaling.HorizontalPodAutoscaler) (*autoscaling.HorizontalPodAutoscaler, error)
- func (c *FakeHorizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeIngress
- func (c *FakeIngress) Create(ingress *extensions.Ingress) (*extensions.Ingress, error)
- func (c *FakeIngress) Delete(name string, options *api.DeleteOptions) error
- func (c *FakeIngress) Get(name string) (*extensions.Ingress, error)
- func (c *FakeIngress) List(opts api.ListOptions) (*extensions.IngressList, error)
- func (c *FakeIngress) Update(ingress *extensions.Ingress) (*extensions.Ingress, error)
- func (c *FakeIngress) UpdateStatus(ingress *extensions.Ingress) (result *extensions.Ingress, err error)
- func (c *FakeIngress) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeJobs
- func (c *FakeJobs) Create(job *batch.Job) (*batch.Job, error)
- func (c *FakeJobs) Delete(name string, options *api.DeleteOptions) error
- func (c *FakeJobs) Get(name string) (*batch.Job, error)
- func (c *FakeJobs) List(opts api.ListOptions) (*batch.JobList, error)
- func (c *FakeJobs) Update(job *batch.Job) (*batch.Job, error)
- func (c *FakeJobs) UpdateStatus(job *batch.Job) (result *batch.Job, err error)
- func (c *FakeJobs) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeJobsV1
- func (c *FakeJobsV1) Create(job *batch.Job) (*batch.Job, error)
- func (c *FakeJobsV1) Delete(name string, options *api.DeleteOptions) error
- func (c *FakeJobsV1) Get(name string) (*batch.Job, error)
- func (c *FakeJobsV1) List(opts api.ListOptions) (*batch.JobList, error)
- func (c *FakeJobsV1) Update(job *batch.Job) (*batch.Job, error)
- func (c *FakeJobsV1) UpdateStatus(job *batch.Job) (result *batch.Job, err error)
- func (c *FakeJobsV1) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeLimitRanges
- func (c *FakeLimitRanges) Create(limitRange *api.LimitRange) (*api.LimitRange, error)
- func (c *FakeLimitRanges) Delete(name string) error
- func (c *FakeLimitRanges) Get(name string) (*api.LimitRange, error)
- func (c *FakeLimitRanges) List(opts api.ListOptions) (*api.LimitRangeList, error)
- func (c *FakeLimitRanges) Update(limitRange *api.LimitRange) (*api.LimitRange, error)
- func (c *FakeLimitRanges) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeNamespaces
- func (c *FakeNamespaces) Create(namespace *api.Namespace) (*api.Namespace, error)
- func (c *FakeNamespaces) Delete(name string) error
- func (c *FakeNamespaces) Finalize(namespace *api.Namespace) (*api.Namespace, error)
- func (c *FakeNamespaces) Get(name string) (*api.Namespace, error)
- func (c *FakeNamespaces) List(opts api.ListOptions) (*api.NamespaceList, error)
- func (c *FakeNamespaces) Status(namespace *api.Namespace) (*api.Namespace, error)
- func (c *FakeNamespaces) Update(namespace *api.Namespace) (*api.Namespace, error)
- func (c *FakeNamespaces) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeNetworkPolicies
- func (c *FakeNetworkPolicies) Create(np *extensions.NetworkPolicy) (*extensions.NetworkPolicy, error)
- func (c *FakeNetworkPolicies) Delete(name string, options *api.DeleteOptions) error
- func (c *FakeNetworkPolicies) Get(name string) (*extensions.NetworkPolicy, error)
- func (c *FakeNetworkPolicies) List(opts api.ListOptions) (*extensions.NetworkPolicyList, error)
- func (c *FakeNetworkPolicies) Update(np *extensions.NetworkPolicy) (*extensions.NetworkPolicy, error)
- func (c *FakeNetworkPolicies) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeNodes
- func (c *FakeNodes) Create(node *api.Node) (*api.Node, error)
- func (c *FakeNodes) Delete(name string) error
- func (c *FakeNodes) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
- func (c *FakeNodes) Get(name string) (*api.Node, error)
- func (c *FakeNodes) List(opts api.ListOptions) (*api.NodeList, error)
- func (c *FakeNodes) Update(node *api.Node) (*api.Node, error)
- func (c *FakeNodes) UpdateStatus(node *api.Node) (*api.Node, error)
- func (c *FakeNodes) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakePersistentVolumeClaims
- func (c *FakePersistentVolumeClaims) Create(claim *api.PersistentVolumeClaim) (*api.PersistentVolumeClaim, error)
- func (c *FakePersistentVolumeClaims) Delete(name string) error
- func (c *FakePersistentVolumeClaims) Get(name string) (*api.PersistentVolumeClaim, error)
- func (c *FakePersistentVolumeClaims) List(opts api.ListOptions) (*api.PersistentVolumeClaimList, error)
- func (c *FakePersistentVolumeClaims) Update(claim *api.PersistentVolumeClaim) (*api.PersistentVolumeClaim, error)
- func (c *FakePersistentVolumeClaims) UpdateStatus(claim *api.PersistentVolumeClaim) (*api.PersistentVolumeClaim, error)
- func (c *FakePersistentVolumeClaims) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakePersistentVolumes
- func (c *FakePersistentVolumes) Create(pv *api.PersistentVolume) (*api.PersistentVolume, error)
- func (c *FakePersistentVolumes) Delete(name string) error
- func (c *FakePersistentVolumes) Get(name string) (*api.PersistentVolume, error)
- func (c *FakePersistentVolumes) List(opts api.ListOptions) (*api.PersistentVolumeList, error)
- func (c *FakePersistentVolumes) Update(pv *api.PersistentVolume) (*api.PersistentVolume, error)
- func (c *FakePersistentVolumes) UpdateStatus(pv *api.PersistentVolume) (*api.PersistentVolume, error)
- func (c *FakePersistentVolumes) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakePetSets
- func (c *FakePetSets) Create(rs *apps.PetSet) (*apps.PetSet, error)
- func (c *FakePetSets) Delete(name string, options *api.DeleteOptions) error
- func (c *FakePetSets) Get(name string) (*apps.PetSet, error)
- func (c *FakePetSets) List(opts api.ListOptions) (*apps.PetSetList, error)
- func (c *FakePetSets) Update(rs *apps.PetSet) (*apps.PetSet, error)
- func (c *FakePetSets) UpdateStatus(rs *apps.PetSet) (result *apps.PetSet, err error)
- func (c *FakePetSets) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakePodSecurityPolicy
- func (c *FakePodSecurityPolicy) Create(psp *extensions.PodSecurityPolicy) (*extensions.PodSecurityPolicy, error)
- func (c *FakePodSecurityPolicy) Delete(name string) error
- func (c *FakePodSecurityPolicy) Get(name string) (*extensions.PodSecurityPolicy, error)
- func (c *FakePodSecurityPolicy) List(opts api.ListOptions) (*extensions.PodSecurityPolicyList, error)
- func (c *FakePodSecurityPolicy) Update(psp *extensions.PodSecurityPolicy) (*extensions.PodSecurityPolicy, error)
- func (c *FakePodSecurityPolicy) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakePodTemplates
- func (c *FakePodTemplates) Create(pod *api.PodTemplate) (*api.PodTemplate, error)
- func (c *FakePodTemplates) Delete(name string, options *api.DeleteOptions) error
- func (c *FakePodTemplates) Get(name string) (*api.PodTemplate, error)
- func (c *FakePodTemplates) List(opts api.ListOptions) (*api.PodTemplateList, error)
- func (c *FakePodTemplates) Update(pod *api.PodTemplate) (*api.PodTemplate, error)
- func (c *FakePodTemplates) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakePods
- func (c *FakePods) Bind(binding *api.Binding) error
- func (c *FakePods) Create(pod *api.Pod) (*api.Pod, error)
- func (c *FakePods) Delete(name string, options *api.DeleteOptions) error
- func (c *FakePods) Get(name string) (*api.Pod, error)
- func (c *FakePods) GetLogs(name string, opts *api.PodLogOptions) *restclient.Request
- func (c *FakePods) List(opts api.ListOptions) (*api.PodList, error)
- func (c *FakePods) Update(pod *api.Pod) (*api.Pod, error)
- func (c *FakePods) UpdateStatus(pod *api.Pod) (*api.Pod, error)
- func (c *FakePods) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeRbac
- type FakeReplicaSets
- func (c *FakeReplicaSets) Create(rs *extensions.ReplicaSet) (*extensions.ReplicaSet, error)
- func (c *FakeReplicaSets) Delete(name string, options *api.DeleteOptions) error
- func (c *FakeReplicaSets) Get(name string) (*extensions.ReplicaSet, error)
- func (c *FakeReplicaSets) List(opts api.ListOptions) (*extensions.ReplicaSetList, error)
- func (c *FakeReplicaSets) Update(rs *extensions.ReplicaSet) (*extensions.ReplicaSet, error)
- func (c *FakeReplicaSets) UpdateStatus(rs *extensions.ReplicaSet) (result *extensions.ReplicaSet, err error)
- func (c *FakeReplicaSets) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeReplicationControllers
- func (c *FakeReplicationControllers) Create(controller *api.ReplicationController) (*api.ReplicationController, error)
- func (c *FakeReplicationControllers) Delete(name string, options *api.DeleteOptions) error
- func (c *FakeReplicationControllers) Get(name string) (*api.ReplicationController, error)
- func (c *FakeReplicationControllers) List(opts api.ListOptions) (*api.ReplicationControllerList, error)
- func (c *FakeReplicationControllers) Update(controller *api.ReplicationController) (*api.ReplicationController, error)
- func (c *FakeReplicationControllers) UpdateStatus(controller *api.ReplicationController) (*api.ReplicationController, error)
- func (c *FakeReplicationControllers) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeResourceQuotas
- func (c *FakeResourceQuotas) Create(resourceQuota *api.ResourceQuota) (*api.ResourceQuota, error)
- func (c *FakeResourceQuotas) Delete(name string) error
- func (c *FakeResourceQuotas) Get(name string) (*api.ResourceQuota, error)
- func (c *FakeResourceQuotas) List(opts api.ListOptions) (*api.ResourceQuotaList, error)
- func (c *FakeResourceQuotas) Update(resourceQuota *api.ResourceQuota) (*api.ResourceQuota, error)
- func (c *FakeResourceQuotas) UpdateStatus(resourceQuota *api.ResourceQuota) (*api.ResourceQuota, error)
- func (c *FakeResourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeRoleBindings
- func (c *FakeRoleBindings) Create(csr *rbac.RoleBinding) (*rbac.RoleBinding, error)
- func (c *FakeRoleBindings) Delete(name string, opts *api.DeleteOptions) error
- func (c *FakeRoleBindings) Get(name string) (*rbac.RoleBinding, error)
- func (c *FakeRoleBindings) List(opts api.ListOptions) (*rbac.RoleBindingList, error)
- func (c *FakeRoleBindings) Update(csr *rbac.RoleBinding) (*rbac.RoleBinding, error)
- func (c *FakeRoleBindings) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeRoles
- func (c *FakeRoles) Create(csr *rbac.Role) (*rbac.Role, error)
- func (c *FakeRoles) Delete(name string, opts *api.DeleteOptions) error
- func (c *FakeRoles) Get(name string) (*rbac.Role, error)
- func (c *FakeRoles) List(opts api.ListOptions) (*rbac.RoleList, error)
- func (c *FakeRoles) Update(csr *rbac.Role) (*rbac.Role, error)
- func (c *FakeRoles) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeScales
- type FakeScheduledJobs
- func (c *FakeScheduledJobs) Create(scheduledJob *batch.ScheduledJob) (*batch.ScheduledJob, error)
- func (c *FakeScheduledJobs) Delete(name string, options *api.DeleteOptions) error
- func (c *FakeScheduledJobs) Get(name string) (*batch.ScheduledJob, error)
- func (c *FakeScheduledJobs) List(opts api.ListOptions) (*batch.ScheduledJobList, error)
- func (c *FakeScheduledJobs) Update(scheduledJob *batch.ScheduledJob) (*batch.ScheduledJob, error)
- func (c *FakeScheduledJobs) UpdateStatus(scheduledJob *batch.ScheduledJob) (result *batch.ScheduledJob, err error)
- func (c *FakeScheduledJobs) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeSecrets
- func (c *FakeSecrets) Create(secret *api.Secret) (*api.Secret, error)
- func (c *FakeSecrets) Delete(name string) error
- func (c *FakeSecrets) Get(name string) (*api.Secret, error)
- func (c *FakeSecrets) List(opts api.ListOptions) (*api.SecretList, error)
- func (c *FakeSecrets) Update(secret *api.Secret) (*api.Secret, error)
- func (c *FakeSecrets) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeServiceAccounts
- func (c *FakeServiceAccounts) Create(serviceAccount *api.ServiceAccount) (*api.ServiceAccount, error)
- func (c *FakeServiceAccounts) Delete(name string) error
- func (c *FakeServiceAccounts) Get(name string) (*api.ServiceAccount, error)
- func (c *FakeServiceAccounts) List(opts api.ListOptions) (*api.ServiceAccountList, error)
- func (c *FakeServiceAccounts) Update(serviceAccount *api.ServiceAccount) (*api.ServiceAccount, error)
- func (c *FakeServiceAccounts) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeServices
- func (c *FakeServices) Create(service *api.Service) (*api.Service, error)
- func (c *FakeServices) Delete(name string) error
- func (c *FakeServices) Get(name string) (*api.Service, error)
- func (c *FakeServices) List(opts api.ListOptions) (*api.ServiceList, error)
- func (c *FakeServices) ProxyGet(scheme, name, port, path string, params map[string]string) restclient.ResponseWrapper
- func (c *FakeServices) Update(service *api.Service) (*api.Service, error)
- func (c *FakeServices) UpdateStatus(service *api.Service) (result *api.Service, err error)
- func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeStorage
- type FakeStorageClasses
- func (c *FakeStorageClasses) Create(np *storage.StorageClass) (*storage.StorageClass, error)
- func (c *FakeStorageClasses) Delete(name string) error
- func (c *FakeStorageClasses) Get(name string) (*storage.StorageClass, error)
- func (c *FakeStorageClasses) List(opts api.ListOptions) (*storage.StorageClassList, error)
- func (c *FakeStorageClasses) Update(np *storage.StorageClass) (*storage.StorageClass, error)
- func (c *FakeStorageClasses) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeSubjectAccessReviews
- type FakeThirdPartyResources
- func (c *FakeThirdPartyResources) Create(daemon *extensions.ThirdPartyResource) (*extensions.ThirdPartyResource, error)
- func (c *FakeThirdPartyResources) Delete(name string) error
- func (c *FakeThirdPartyResources) Get(name string) (*extensions.ThirdPartyResource, error)
- func (c *FakeThirdPartyResources) List(opts api.ListOptions) (*extensions.ThirdPartyResourceList, error)
- func (c *FakeThirdPartyResources) Update(daemon *extensions.ThirdPartyResource) (*extensions.ThirdPartyResource, error)
- func (c *FakeThirdPartyResources) UpdateStatus(daemon *extensions.ThirdPartyResource) (*extensions.ThirdPartyResource, error)
- func (c *FakeThirdPartyResources) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeTokenReviews
- type GenericAction
- type GenericActionImpl
- type GetAction
- type GetActionImpl
- type ListAction
- type ListActionImpl
- type ListRestrictions
- type ObjectRetriever
- type ObjectScheme
- type PatchActionImpl
- type ProxyGetAction
- type ProxyGetActionImpl
- type ProxyReactionFunc
- type ProxyReactor
- type ReactionFunc
- type Reactor
- type SimpleProxyReactor
- type SimpleReactor
- type SimpleWatchReactor
- type UpdateAction
- type UpdateActionImpl
- type WatchAction
- type WatchActionImpl
- type WatchReactionFunc
- type WatchReactor
- type WatchRestrictions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddObjectsFromPath ¶
func AddObjectsFromPath(path string, o ObjectRetriever, decoder runtime.Decoder) error
AddObjectsFromPath loads the JSON or YAML file containing Kubernetes API resources and adds them to the provided ObjectRetriever.
Types ¶
type ActionImpl ¶
func (ActionImpl) GetNamespace ¶
func (a ActionImpl) GetNamespace() string
func (ActionImpl) GetResource ¶
func (a ActionImpl) GetResource() string
func (ActionImpl) GetSubresource ¶
func (a ActionImpl) GetSubresource() string
func (ActionImpl) GetVerb ¶
func (a ActionImpl) GetVerb() string
func (ActionImpl) Matches ¶
func (a ActionImpl) Matches(verb, resource string) bool
type CreateAction ¶
type CreateActionImpl ¶
type CreateActionImpl struct { ActionImpl Object runtime.Object }
func NewCreateAction ¶
func NewCreateAction(resource, namespace string, object runtime.Object) CreateActionImpl
func NewRootCreateAction ¶
func NewRootCreateAction(resource string, object runtime.Object) CreateActionImpl
func (CreateActionImpl) GetObject ¶
func (a CreateActionImpl) GetObject() runtime.Object
type DeleteAction ¶
type DeleteActionImpl ¶
type DeleteActionImpl struct { ActionImpl Name string }
func NewDeleteAction ¶
func NewDeleteAction(resource, namespace, name string) DeleteActionImpl
func NewRootDeleteAction ¶
func NewRootDeleteAction(resource, name string) DeleteActionImpl
func (DeleteActionImpl) GetName ¶
func (a DeleteActionImpl) GetName() string
type DeleteCollectionActionImpl ¶ added in v1.2.0
type DeleteCollectionActionImpl struct { ActionImpl ListRestrictions ListRestrictions }
func NewDeleteCollectionAction ¶ added in v1.2.0
func NewDeleteCollectionAction(resource, namespace string, opts api.ListOptions) DeleteCollectionActionImpl
func NewRootDeleteCollectionAction ¶ added in v1.2.0
func NewRootDeleteCollectionAction(resource string, opts api.ListOptions) DeleteCollectionActionImpl
func (DeleteCollectionActionImpl) GetListRestrictions ¶ added in v1.2.0
func (a DeleteCollectionActionImpl) GetListRestrictions() ListRestrictions
type Fake ¶
type Fake struct { sync.RWMutex // ReactionChain is the list of reactors that will be attempted for every request in the order they are tried ReactionChain []Reactor // WatchReactionChain is the list of watch reactors that will be attempted for every request in the order they are tried WatchReactionChain []WatchReactor // ProxyReactionChain is the list of proxy reactors that will be attempted for every request in the order they are tried ProxyReactionChain []ProxyReactor Resources map[string]*unversioned.APIResourceList // contains filtered or unexported fields }
Fake implements client.Interface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func NewSimpleFake ¶
NewSimpleFake returns a client that will respond with the provided objects
func (*Fake) Actions ¶
Actions returns a chronologically ordered slice fake actions called on the fake client
func (*Fake) AddProxyReactor ¶
func (c *Fake) AddProxyReactor(resource string, reaction ProxyReactionFunc)
AddProxyReactor appends a reactor to the end of the chain
func (*Fake) AddReactor ¶
func (c *Fake) AddReactor(verb, resource string, reaction ReactionFunc)
AddReactor appends a reactor to the end of the chain
func (*Fake) AddWatchReactor ¶
func (c *Fake) AddWatchReactor(resource string, reaction WatchReactionFunc)
AddWatchReactor appends a reactor to the end of the chain
func (*Fake) Apps ¶ added in v1.4.0
func (c *Fake) Apps() client.AppsInterface
func (*Fake) Authentication ¶ added in v1.4.0
func (c *Fake) Authentication() client.AuthenticationInterface
func (*Fake) Authorization ¶ added in v1.4.0
func (c *Fake) Authorization() client.AuthorizationInterface
func (*Fake) Autoscaling ¶ added in v1.2.0
func (c *Fake) Autoscaling() client.AutoscalingInterface
func (*Fake) Batch ¶ added in v1.2.0
func (c *Fake) Batch() client.BatchInterface
func (*Fake) Certificates ¶ added in v1.4.0
func (c *Fake) Certificates() client.CertificatesInterface
func (*Fake) ClearActions ¶
func (c *Fake) ClearActions()
ClearActions clears the history of actions called on the fake client
func (*Fake) ComponentStatuses ¶
func (c *Fake) ComponentStatuses() client.ComponentStatusInterface
func (*Fake) ConfigMaps ¶ added in v1.2.0
func (c *Fake) ConfigMaps(namespace string) client.ConfigMapsInterface
func (*Fake) Discovery ¶ added in v1.1.1
func (c *Fake) Discovery() discovery.DiscoveryInterface
func (*Fake) Extensions ¶ added in v1.1.1
func (c *Fake) Extensions() client.ExtensionsInterface
func (*Fake) Invokes ¶
Invokes records the provided Action and then invokes the ReactFn (if provided). defaultReturnObj is expected to be of the same type a normal call would return.
func (*Fake) InvokesProxy ¶
func (c *Fake) InvokesProxy(action Action) restclient.ResponseWrapper
InvokesProxy records the provided Action and then invokes the ReactFn (if provided).
func (*Fake) InvokesWatch ¶
InvokesWatch records the provided Action and then invokes the ReactFn (if provided).
func (*Fake) LimitRanges ¶
func (c *Fake) LimitRanges(namespace string) client.LimitRangeInterface
func (*Fake) Namespaces ¶
func (c *Fake) Namespaces() client.NamespaceInterface
func (*Fake) Nodes ¶
func (c *Fake) Nodes() client.NodeInterface
func (*Fake) PersistentVolumeClaims ¶
func (c *Fake) PersistentVolumeClaims(namespace string) client.PersistentVolumeClaimInterface
func (*Fake) PersistentVolumes ¶
func (c *Fake) PersistentVolumes() client.PersistentVolumeInterface
func (*Fake) PodSecurityPolicies ¶ added in v1.2.0
func (c *Fake) PodSecurityPolicies() client.PodSecurityPolicyInterface
func (*Fake) PodTemplates ¶
func (c *Fake) PodTemplates(namespace string) client.PodTemplateInterface
func (*Fake) PrependProxyReactor ¶ added in v1.2.0
func (c *Fake) PrependProxyReactor(resource string, reaction ProxyReactionFunc)
PrependProxyReactor adds a reactor to the beginning of the chain
func (*Fake) PrependReactor ¶
func (c *Fake) PrependReactor(verb, resource string, reaction ReactionFunc)
PrependReactor adds a reactor to the beginning of the chain
func (*Fake) PrependWatchReactor ¶ added in v1.2.0
func (c *Fake) PrependWatchReactor(resource string, reaction WatchReactionFunc)
PrependWatchReactor adds a reactor to the beginning of the chain
func (*Fake) Rbac ¶ added in v1.3.0
func (c *Fake) Rbac() client.RbacInterface
func (*Fake) ReplicationControllers ¶
func (c *Fake) ReplicationControllers(namespace string) client.ReplicationControllerInterface
func (*Fake) ResourceQuotas ¶
func (c *Fake) ResourceQuotas(namespace string) client.ResourceQuotaInterface
func (*Fake) ServiceAccounts ¶
func (c *Fake) ServiceAccounts(namespace string) client.ServiceAccountsInterface
func (*Fake) Storage ¶ added in v1.4.0
func (c *Fake) Storage() client.StorageInterface
func (*Fake) SwaggerSchema ¶ added in v1.2.0
func (c *Fake) SwaggerSchema(version unversioned.GroupVersion) (*swagger.ApiDeclaration, error)
SwaggerSchema returns an empty swagger.ApiDeclaration for testing
type FakeApps ¶ added in v1.4.0
type FakeApps struct {
*Fake
}
func NewSimpleFakeApps ¶ added in v1.4.0
NewSimpleFakeApps returns a client that will respond with the provided objects
type FakeAuthentication ¶ added in v1.4.0
type FakeAuthentication struct {
*Fake
}
func NewSimpleFakeAuthentication ¶ added in v1.4.0
func NewSimpleFakeAuthentication(objects ...runtime.Object) *FakeAuthentication
func (*FakeAuthentication) TokenReviews ¶ added in v1.4.0
func (c *FakeAuthentication) TokenReviews() client.TokenReviewInterface
type FakeAuthorization ¶ added in v1.4.0
type FakeAuthorization struct {
*Fake
}
func NewSimpleFakeAuthorization ¶ added in v1.4.0
func NewSimpleFakeAuthorization(objects ...runtime.Object) *FakeAuthorization
NewSimpleFakeAuthorization returns a client that will respond with the provided objects
func (*FakeAuthorization) SubjectAccessReviews ¶ added in v1.4.0
func (c *FakeAuthorization) SubjectAccessReviews() client.SubjectAccessReviewInterface
type FakeAutoscaling ¶ added in v1.2.0
type FakeAutoscaling struct {
*Fake
}
func NewSimpleFakeAutoscaling ¶ added in v1.2.0
func NewSimpleFakeAutoscaling(objects ...runtime.Object) *FakeAutoscaling
NewSimpleFakeAutoscaling returns a client that will respond with the provided objects
func (*FakeAutoscaling) HorizontalPodAutoscalers ¶ added in v1.2.0
func (c *FakeAutoscaling) HorizontalPodAutoscalers(namespace string) client.HorizontalPodAutoscalerInterface
type FakeBatch ¶ added in v1.2.0
type FakeBatch struct {
*Fake
}
func NewSimpleFakeBatch ¶ added in v1.2.0
NewSimpleFakeBatch returns a client that will respond with the provided objects
func (*FakeBatch) Jobs ¶ added in v1.2.0
func (c *FakeBatch) Jobs(namespace string) client.JobInterface
func (*FakeBatch) ScheduledJobs ¶ added in v1.3.0
func (c *FakeBatch) ScheduledJobs(namespace string) client.ScheduledJobInterface
type FakeCertificateSigningRequest ¶ added in v1.4.0
type FakeCertificateSigningRequest struct {
Fake *FakeCertificates
}
FakeCertificateSigningRequest implements CertificateSigningRequestInterface
func (*FakeCertificateSigningRequest) Create ¶ added in v1.4.0
func (c *FakeCertificateSigningRequest) Create(csr *certificates.CertificateSigningRequest) (*certificates.CertificateSigningRequest, error)
func (*FakeCertificateSigningRequest) Delete ¶ added in v1.4.0
func (c *FakeCertificateSigningRequest) Delete(name string, opts *api.DeleteOptions) error
func (*FakeCertificateSigningRequest) Get ¶ added in v1.4.0
func (c *FakeCertificateSigningRequest) Get(name string) (*certificates.CertificateSigningRequest, error)
func (*FakeCertificateSigningRequest) List ¶ added in v1.4.0
func (c *FakeCertificateSigningRequest) List(opts api.ListOptions) (*certificates.CertificateSigningRequestList, error)
func (*FakeCertificateSigningRequest) Update ¶ added in v1.4.0
func (c *FakeCertificateSigningRequest) Update(csr *certificates.CertificateSigningRequest) (*certificates.CertificateSigningRequest, error)
func (*FakeCertificateSigningRequest) UpdateApproval ¶ added in v1.4.0
func (c *FakeCertificateSigningRequest) UpdateApproval(csr *certificates.CertificateSigningRequest) (*certificates.CertificateSigningRequest, error)
func (*FakeCertificateSigningRequest) UpdateStatus ¶ added in v1.4.0
func (c *FakeCertificateSigningRequest) UpdateStatus(csr *certificates.CertificateSigningRequest) (*certificates.CertificateSigningRequest, error)
func (*FakeCertificateSigningRequest) Watch ¶ added in v1.4.0
func (c *FakeCertificateSigningRequest) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeCertificates ¶ added in v1.4.0
type FakeCertificates struct {
*Fake
}
FakeCertificates implements CertificatesInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func NewSimpleFakeCertificates ¶ added in v1.4.0
func NewSimpleFakeCertificates(objects ...runtime.Object) *FakeCertificates
NewSimpleFakeCertificate returns a client that will respond with the provided objects
func (*FakeCertificates) CertificateSigningRequests ¶ added in v1.4.0
func (c *FakeCertificates) CertificateSigningRequests() unversioned.CertificateSigningRequestInterface
type FakeClusterRoleBindings ¶ added in v1.3.0
type FakeClusterRoleBindings struct {
Fake *FakeRbac
}
FakeClusterRoleBindings implements ClusterRoleBindingInterface
func (*FakeClusterRoleBindings) Create ¶ added in v1.3.0
func (c *FakeClusterRoleBindings) Create(csr *rbac.ClusterRoleBinding) (*rbac.ClusterRoleBinding, error)
func (*FakeClusterRoleBindings) Delete ¶ added in v1.3.0
func (c *FakeClusterRoleBindings) Delete(name string, opts *api.DeleteOptions) error
func (*FakeClusterRoleBindings) Get ¶ added in v1.3.0
func (c *FakeClusterRoleBindings) Get(name string) (*rbac.ClusterRoleBinding, error)
func (*FakeClusterRoleBindings) List ¶ added in v1.3.0
func (c *FakeClusterRoleBindings) List(opts api.ListOptions) (*rbac.ClusterRoleBindingList, error)
func (*FakeClusterRoleBindings) Update ¶ added in v1.3.0
func (c *FakeClusterRoleBindings) Update(csr *rbac.ClusterRoleBinding) (*rbac.ClusterRoleBinding, error)
func (*FakeClusterRoleBindings) Watch ¶ added in v1.3.0
func (c *FakeClusterRoleBindings) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeClusterRoles ¶ added in v1.3.0
type FakeClusterRoles struct {
Fake *FakeRbac
}
FakeClusterRoles implements ClusterRoleInterface
func (*FakeClusterRoles) Create ¶ added in v1.3.0
func (c *FakeClusterRoles) Create(csr *rbac.ClusterRole) (*rbac.ClusterRole, error)
func (*FakeClusterRoles) Delete ¶ added in v1.3.0
func (c *FakeClusterRoles) Delete(name string, opts *api.DeleteOptions) error
func (*FakeClusterRoles) Get ¶ added in v1.3.0
func (c *FakeClusterRoles) Get(name string) (*rbac.ClusterRole, error)
func (*FakeClusterRoles) List ¶ added in v1.3.0
func (c *FakeClusterRoles) List(opts api.ListOptions) (*rbac.ClusterRoleList, error)
func (*FakeClusterRoles) Update ¶ added in v1.3.0
func (c *FakeClusterRoles) Update(csr *rbac.ClusterRole) (*rbac.ClusterRole, error)
func (*FakeClusterRoles) Watch ¶ added in v1.3.0
func (c *FakeClusterRoles) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeComponentStatuses ¶
type FakeComponentStatuses struct {
Fake *Fake
}
Fake implements ComponentStatusInterface.
func (*FakeComponentStatuses) Get ¶
func (c *FakeComponentStatuses) Get(name string) (*api.ComponentStatus, error)
func (*FakeComponentStatuses) List ¶
func (c *FakeComponentStatuses) List(opts api.ListOptions) (result *api.ComponentStatusList, err error)
type FakeConfigMaps ¶ added in v1.2.0
FakeConfigMaps implements ConfigMapInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeConfigMaps) Delete ¶ added in v1.2.0
func (c *FakeConfigMaps) Delete(name string) error
func (*FakeConfigMaps) Get ¶ added in v1.2.0
func (c *FakeConfigMaps) Get(name string) (*api.ConfigMap, error)
func (*FakeConfigMaps) List ¶ added in v1.2.0
func (c *FakeConfigMaps) List(opts api.ListOptions) (*api.ConfigMapList, error)
func (*FakeConfigMaps) Watch ¶ added in v1.2.0
func (c *FakeConfigMaps) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeDaemonSets ¶
type FakeDaemonSets struct { Fake *FakeExperimental Namespace string }
FakeDaemonSet implements DaemonInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeDaemonSets) Create ¶
func (c *FakeDaemonSets) Create(daemon *extensions.DaemonSet) (*extensions.DaemonSet, error)
func (*FakeDaemonSets) Delete ¶
func (c *FakeDaemonSets) Delete(name string) error
func (*FakeDaemonSets) Get ¶
func (c *FakeDaemonSets) Get(name string) (*extensions.DaemonSet, error)
func (*FakeDaemonSets) List ¶
func (c *FakeDaemonSets) List(opts api.ListOptions) (*extensions.DaemonSetList, error)
func (*FakeDaemonSets) Update ¶
func (c *FakeDaemonSets) Update(daemon *extensions.DaemonSet) (*extensions.DaemonSet, error)
func (*FakeDaemonSets) UpdateStatus ¶
func (c *FakeDaemonSets) UpdateStatus(daemon *extensions.DaemonSet) (*extensions.DaemonSet, error)
func (*FakeDaemonSets) Watch ¶
func (c *FakeDaemonSets) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeDeployments ¶
type FakeDeployments struct { Fake *FakeExperimental Namespace string }
FakeDeployments implements DeploymentInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.
func (*FakeDeployments) Create ¶
func (c *FakeDeployments) Create(deployment *extensions.Deployment) (*extensions.Deployment, error)
func (*FakeDeployments) Delete ¶
func (c *FakeDeployments) Delete(name string, options *api.DeleteOptions) error
func (*FakeDeployments) Get ¶
func (c *FakeDeployments) Get(name string) (*extensions.Deployment, error)
func (*FakeDeployments) List ¶
func (c *FakeDeployments) List(opts api.ListOptions) (*extensions.DeploymentList, error)
func (*FakeDeployments) Rollback ¶ added in v1.2.0
func (c *FakeDeployments) Rollback(deploymentRollback *extensions.DeploymentRollback) error
func (*FakeDeployments) Update ¶
func (c *FakeDeployments) Update(deployment *extensions.Deployment) (*extensions.Deployment, error)
func (*FakeDeployments) UpdateStatus ¶ added in v1.2.0
func (c *FakeDeployments) UpdateStatus(deployment *extensions.Deployment) (*extensions.Deployment, error)
func (*FakeDeployments) Watch ¶
func (c *FakeDeployments) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeDiscovery ¶ added in v1.1.1
type FakeDiscovery struct {
*Fake
}
func (*FakeDiscovery) ServerGroups ¶ added in v1.1.1
func (c *FakeDiscovery) ServerGroups() (*unversioned.APIGroupList, error)
func (*FakeDiscovery) ServerPreferredNamespacedResources ¶ added in v1.3.0
func (c *FakeDiscovery) ServerPreferredNamespacedResources() ([]unversioned.GroupVersionResource, error)
func (*FakeDiscovery) ServerPreferredResources ¶ added in v1.3.0
func (c *FakeDiscovery) ServerPreferredResources() ([]unversioned.GroupVersionResource, error)
func (*FakeDiscovery) ServerResources ¶ added in v1.1.1
func (c *FakeDiscovery) ServerResources() (map[string]*unversioned.APIResourceList, error)
func (*FakeDiscovery) ServerResourcesForGroupVersion ¶ added in v1.1.1
func (c *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*unversioned.APIResourceList, error)
func (*FakeDiscovery) ServerVersion ¶ added in v1.2.0
func (c *FakeDiscovery) ServerVersion() (*version.Info, error)
type FakeEndpoints ¶
FakeEndpoints implements EndpointInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeEndpoints) Delete ¶
func (c *FakeEndpoints) Delete(name string) error
func (*FakeEndpoints) List ¶
func (c *FakeEndpoints) List(opts api.ListOptions) (*api.EndpointsList, error)
func (*FakeEndpoints) Watch ¶
func (c *FakeEndpoints) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeEvents ¶
FakeEvents implements EventInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeEvents) Create ¶
Create makes a new event. Returns the copy of the event the server returns, or an error.
func (*FakeEvents) Delete ¶
func (c *FakeEvents) Delete(name string) error
func (*FakeEvents) DeleteCollection ¶ added in v1.2.0
func (c *FakeEvents) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
func (*FakeEvents) Get ¶
func (c *FakeEvents) Get(name string) (*api.Event, error)
Get returns the given event, or an error.
func (*FakeEvents) GetFieldSelector ¶
func (c *FakeEvents) GetFieldSelector(involvedObjectName, involvedObjectNamespace, involvedObjectKind, involvedObjectUID *string) fields.Selector
func (*FakeEvents) List ¶
func (c *FakeEvents) List(opts api.ListOptions) (*api.EventList, error)
List returns a list of events matching the selectors.
func (*FakeEvents) Patch ¶ added in v1.2.0
Patch patches an existing event. Returns the copy of the event the server returns, or an error.
func (*FakeEvents) Update ¶
Update replaces an existing event. Returns the copy of the event the server returns, or an error.
func (*FakeEvents) Watch ¶
func (c *FakeEvents) Watch(opts api.ListOptions) (watch.Interface, error)
Watch starts watching for events matching the given selectors.
type FakeExperimental ¶
type FakeExperimental struct {
*Fake
}
func NewSimpleFakeExp ¶ added in v1.2.0
func NewSimpleFakeExp(objects ...runtime.Object) *FakeExperimental
NewSimpleFakeExp returns a client that will respond with the provided objects
func (*FakeExperimental) DaemonSets ¶
func (c *FakeExperimental) DaemonSets(namespace string) client.DaemonSetInterface
func (*FakeExperimental) Deployments ¶
func (c *FakeExperimental) Deployments(namespace string) client.DeploymentInterface
func (*FakeExperimental) Ingress ¶ added in v1.1.1
func (c *FakeExperimental) Ingress(namespace string) client.IngressInterface
func (*FakeExperimental) Jobs ¶
func (c *FakeExperimental) Jobs(namespace string) client.JobInterface
func (*FakeExperimental) NetworkPolicies ¶ added in v1.3.0
func (c *FakeExperimental) NetworkPolicies(namespace string) client.NetworkPolicyInterface
func (*FakeExperimental) ReplicaSets ¶ added in v1.2.0
func (c *FakeExperimental) ReplicaSets(namespace string) client.ReplicaSetInterface
func (*FakeExperimental) Scales ¶
func (c *FakeExperimental) Scales(namespace string) client.ScaleInterface
func (*FakeExperimental) ThirdPartyResources ¶ added in v1.2.0
func (c *FakeExperimental) ThirdPartyResources() client.ThirdPartyResourceInterface
type FakeHorizontalPodAutoscalers ¶
type FakeHorizontalPodAutoscalers struct { Fake *FakeAutoscaling Namespace string }
FakeHorizontalPodAutoscalers implements HorizontalPodAutoscalerInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.
func (*FakeHorizontalPodAutoscalers) Create ¶
func (c *FakeHorizontalPodAutoscalers) Create(a *autoscaling.HorizontalPodAutoscaler) (*autoscaling.HorizontalPodAutoscaler, error)
func (*FakeHorizontalPodAutoscalers) Delete ¶
func (c *FakeHorizontalPodAutoscalers) Delete(name string, options *api.DeleteOptions) error
func (*FakeHorizontalPodAutoscalers) Get ¶
func (c *FakeHorizontalPodAutoscalers) Get(name string) (*autoscaling.HorizontalPodAutoscaler, error)
func (*FakeHorizontalPodAutoscalers) List ¶
func (c *FakeHorizontalPodAutoscalers) List(opts api.ListOptions) (*autoscaling.HorizontalPodAutoscalerList, error)
func (*FakeHorizontalPodAutoscalers) Update ¶
func (c *FakeHorizontalPodAutoscalers) Update(a *autoscaling.HorizontalPodAutoscaler) (*autoscaling.HorizontalPodAutoscaler, error)
func (*FakeHorizontalPodAutoscalers) UpdateStatus ¶ added in v1.1.1
func (c *FakeHorizontalPodAutoscalers) UpdateStatus(a *autoscaling.HorizontalPodAutoscaler) (*autoscaling.HorizontalPodAutoscaler, error)
func (*FakeHorizontalPodAutoscalers) Watch ¶
func (c *FakeHorizontalPodAutoscalers) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeIngress ¶ added in v1.1.1
type FakeIngress struct { Fake *FakeExperimental Namespace string }
FakeIngress implements IngressInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeIngress) Create ¶ added in v1.1.1
func (c *FakeIngress) Create(ingress *extensions.Ingress) (*extensions.Ingress, error)
func (*FakeIngress) Delete ¶ added in v1.1.1
func (c *FakeIngress) Delete(name string, options *api.DeleteOptions) error
func (*FakeIngress) Get ¶ added in v1.1.1
func (c *FakeIngress) Get(name string) (*extensions.Ingress, error)
func (*FakeIngress) List ¶ added in v1.1.1
func (c *FakeIngress) List(opts api.ListOptions) (*extensions.IngressList, error)
func (*FakeIngress) Update ¶ added in v1.1.1
func (c *FakeIngress) Update(ingress *extensions.Ingress) (*extensions.Ingress, error)
func (*FakeIngress) UpdateStatus ¶ added in v1.1.1
func (c *FakeIngress) UpdateStatus(ingress *extensions.Ingress) (result *extensions.Ingress, err error)
func (*FakeIngress) Watch ¶ added in v1.1.1
func (c *FakeIngress) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeJobs ¶
type FakeJobs struct { Fake *FakeExperimental Namespace string }
FakeJobs implements JobInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeJobs) UpdateStatus ¶
type FakeJobsV1 ¶ added in v1.2.0
FakeJobs implements JobInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier. This is a test implementation of JobsV1 TODO(piosz): get back to one client implementation once HPA will be graduated to GA completely
func (*FakeJobsV1) Delete ¶ added in v1.2.0
func (c *FakeJobsV1) Delete(name string, options *api.DeleteOptions) error
func (*FakeJobsV1) List ¶ added in v1.2.0
func (c *FakeJobsV1) List(opts api.ListOptions) (*batch.JobList, error)
func (*FakeJobsV1) UpdateStatus ¶ added in v1.2.0
func (*FakeJobsV1) Watch ¶ added in v1.2.0
func (c *FakeJobsV1) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeLimitRanges ¶
FakeLimitRanges implements PodsInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.
func (*FakeLimitRanges) Create ¶
func (c *FakeLimitRanges) Create(limitRange *api.LimitRange) (*api.LimitRange, error)
func (*FakeLimitRanges) Delete ¶
func (c *FakeLimitRanges) Delete(name string) error
func (*FakeLimitRanges) Get ¶
func (c *FakeLimitRanges) Get(name string) (*api.LimitRange, error)
func (*FakeLimitRanges) List ¶
func (c *FakeLimitRanges) List(opts api.ListOptions) (*api.LimitRangeList, error)
func (*FakeLimitRanges) Update ¶
func (c *FakeLimitRanges) Update(limitRange *api.LimitRange) (*api.LimitRange, error)
func (*FakeLimitRanges) Watch ¶
func (c *FakeLimitRanges) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeNamespaces ¶
type FakeNamespaces struct {
Fake *Fake
}
FakeNamespaces implements NamespacesInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.
func (*FakeNamespaces) Delete ¶
func (c *FakeNamespaces) Delete(name string) error
func (*FakeNamespaces) List ¶
func (c *FakeNamespaces) List(opts api.ListOptions) (*api.NamespaceList, error)
func (*FakeNamespaces) Watch ¶
func (c *FakeNamespaces) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeNetworkPolicies ¶ added in v1.3.0
type FakeNetworkPolicies struct { Fake *FakeExperimental Namespace string }
FakeNetworkPolicies implements NetworkPolicyInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeNetworkPolicies) Create ¶ added in v1.3.0
func (c *FakeNetworkPolicies) Create(np *extensions.NetworkPolicy) (*extensions.NetworkPolicy, error)
func (*FakeNetworkPolicies) Delete ¶ added in v1.3.0
func (c *FakeNetworkPolicies) Delete(name string, options *api.DeleteOptions) error
func (*FakeNetworkPolicies) Get ¶ added in v1.3.0
func (c *FakeNetworkPolicies) Get(name string) (*extensions.NetworkPolicy, error)
func (*FakeNetworkPolicies) List ¶ added in v1.3.0
func (c *FakeNetworkPolicies) List(opts api.ListOptions) (*extensions.NetworkPolicyList, error)
func (*FakeNetworkPolicies) Update ¶ added in v1.3.0
func (c *FakeNetworkPolicies) Update(np *extensions.NetworkPolicy) (*extensions.NetworkPolicy, error)
func (*FakeNetworkPolicies) Watch ¶ added in v1.3.0
func (c *FakeNetworkPolicies) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeNodes ¶
type FakeNodes struct {
Fake *Fake
}
FakeNodes implements NodeInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeNodes) DeleteCollection ¶ added in v1.4.0
func (c *FakeNodes) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
func (*FakeNodes) UpdateStatus ¶
type FakePersistentVolumeClaims ¶
func (*FakePersistentVolumeClaims) Create ¶
func (c *FakePersistentVolumeClaims) Create(claim *api.PersistentVolumeClaim) (*api.PersistentVolumeClaim, error)
func (*FakePersistentVolumeClaims) Delete ¶
func (c *FakePersistentVolumeClaims) Delete(name string) error
func (*FakePersistentVolumeClaims) Get ¶
func (c *FakePersistentVolumeClaims) Get(name string) (*api.PersistentVolumeClaim, error)
func (*FakePersistentVolumeClaims) List ¶
func (c *FakePersistentVolumeClaims) List(opts api.ListOptions) (*api.PersistentVolumeClaimList, error)
func (*FakePersistentVolumeClaims) Update ¶
func (c *FakePersistentVolumeClaims) Update(claim *api.PersistentVolumeClaim) (*api.PersistentVolumeClaim, error)
func (*FakePersistentVolumeClaims) UpdateStatus ¶
func (c *FakePersistentVolumeClaims) UpdateStatus(claim *api.PersistentVolumeClaim) (*api.PersistentVolumeClaim, error)
func (*FakePersistentVolumeClaims) Watch ¶
func (c *FakePersistentVolumeClaims) Watch(opts api.ListOptions) (watch.Interface, error)
type FakePersistentVolumes ¶
type FakePersistentVolumes struct {
Fake *Fake
}
func (*FakePersistentVolumes) Create ¶
func (c *FakePersistentVolumes) Create(pv *api.PersistentVolume) (*api.PersistentVolume, error)
func (*FakePersistentVolumes) Delete ¶
func (c *FakePersistentVolumes) Delete(name string) error
func (*FakePersistentVolumes) Get ¶
func (c *FakePersistentVolumes) Get(name string) (*api.PersistentVolume, error)
func (*FakePersistentVolumes) List ¶
func (c *FakePersistentVolumes) List(opts api.ListOptions) (*api.PersistentVolumeList, error)
func (*FakePersistentVolumes) Update ¶
func (c *FakePersistentVolumes) Update(pv *api.PersistentVolume) (*api.PersistentVolume, error)
func (*FakePersistentVolumes) UpdateStatus ¶
func (c *FakePersistentVolumes) UpdateStatus(pv *api.PersistentVolume) (*api.PersistentVolume, error)
func (*FakePersistentVolumes) Watch ¶
func (c *FakePersistentVolumes) Watch(opts api.ListOptions) (watch.Interface, error)
type FakePetSets ¶ added in v1.4.0
FakePetSets implements PetSetsInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakePetSets) Delete ¶ added in v1.4.0
func (c *FakePetSets) Delete(name string, options *api.DeleteOptions) error
func (*FakePetSets) Get ¶ added in v1.4.0
func (c *FakePetSets) Get(name string) (*apps.PetSet, error)
func (*FakePetSets) List ¶ added in v1.4.0
func (c *FakePetSets) List(opts api.ListOptions) (*apps.PetSetList, error)
func (*FakePetSets) UpdateStatus ¶ added in v1.4.0
func (*FakePetSets) Watch ¶ added in v1.4.0
func (c *FakePetSets) Watch(opts api.ListOptions) (watch.Interface, error)
type FakePodSecurityPolicy ¶ added in v1.2.0
FakePodSecurityPolicy implements PodSecurityPolicyInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakePodSecurityPolicy) Create ¶ added in v1.2.0
func (c *FakePodSecurityPolicy) Create(psp *extensions.PodSecurityPolicy) (*extensions.PodSecurityPolicy, error)
func (*FakePodSecurityPolicy) Delete ¶ added in v1.2.0
func (c *FakePodSecurityPolicy) Delete(name string) error
func (*FakePodSecurityPolicy) Get ¶ added in v1.2.0
func (c *FakePodSecurityPolicy) Get(name string) (*extensions.PodSecurityPolicy, error)
func (*FakePodSecurityPolicy) List ¶ added in v1.2.0
func (c *FakePodSecurityPolicy) List(opts api.ListOptions) (*extensions.PodSecurityPolicyList, error)
func (*FakePodSecurityPolicy) Update ¶ added in v1.2.0
func (c *FakePodSecurityPolicy) Update(psp *extensions.PodSecurityPolicy) (*extensions.PodSecurityPolicy, error)
func (*FakePodSecurityPolicy) Watch ¶ added in v1.2.0
func (c *FakePodSecurityPolicy) Watch(opts api.ListOptions) (watch.Interface, error)
type FakePodTemplates ¶
FakePodTemplates implements PodTemplatesInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.
func (*FakePodTemplates) Create ¶
func (c *FakePodTemplates) Create(pod *api.PodTemplate) (*api.PodTemplate, error)
func (*FakePodTemplates) Delete ¶
func (c *FakePodTemplates) Delete(name string, options *api.DeleteOptions) error
func (*FakePodTemplates) Get ¶
func (c *FakePodTemplates) Get(name string) (*api.PodTemplate, error)
func (*FakePodTemplates) List ¶
func (c *FakePodTemplates) List(opts api.ListOptions) (*api.PodTemplateList, error)
func (*FakePodTemplates) Update ¶
func (c *FakePodTemplates) Update(pod *api.PodTemplate) (*api.PodTemplate, error)
func (*FakePodTemplates) Watch ¶
func (c *FakePodTemplates) Watch(opts api.ListOptions) (watch.Interface, error)
type FakePods ¶
FakePods implements PodsInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.
func (*FakePods) GetLogs ¶ added in v1.2.0
func (c *FakePods) GetLogs(name string, opts *api.PodLogOptions) *restclient.Request
type FakeRbac ¶ added in v1.3.0
type FakeRbac struct {
*Fake
}
func NewSimpleFakeRbac ¶ added in v1.3.0
func (*FakeRbac) ClusterRoleBindings ¶ added in v1.3.0
func (c *FakeRbac) ClusterRoleBindings() client.ClusterRoleBindingInterface
func (*FakeRbac) ClusterRoles ¶ added in v1.3.0
func (c *FakeRbac) ClusterRoles() client.ClusterRoleInterface
func (*FakeRbac) RoleBindings ¶ added in v1.3.0
func (c *FakeRbac) RoleBindings(namespace string) client.RoleBindingInterface
type FakeReplicaSets ¶ added in v1.2.0
type FakeReplicaSets struct { Fake *FakeExperimental Namespace string }
FakeReplicaSets implements ReplicaSetsInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeReplicaSets) Create ¶ added in v1.2.0
func (c *FakeReplicaSets) Create(rs *extensions.ReplicaSet) (*extensions.ReplicaSet, error)
func (*FakeReplicaSets) Delete ¶ added in v1.2.0
func (c *FakeReplicaSets) Delete(name string, options *api.DeleteOptions) error
func (*FakeReplicaSets) Get ¶ added in v1.2.0
func (c *FakeReplicaSets) Get(name string) (*extensions.ReplicaSet, error)
func (*FakeReplicaSets) List ¶ added in v1.2.0
func (c *FakeReplicaSets) List(opts api.ListOptions) (*extensions.ReplicaSetList, error)
func (*FakeReplicaSets) Update ¶ added in v1.2.0
func (c *FakeReplicaSets) Update(rs *extensions.ReplicaSet) (*extensions.ReplicaSet, error)
func (*FakeReplicaSets) UpdateStatus ¶ added in v1.2.0
func (c *FakeReplicaSets) UpdateStatus(rs *extensions.ReplicaSet) (result *extensions.ReplicaSet, err error)
func (*FakeReplicaSets) Watch ¶ added in v1.2.0
func (c *FakeReplicaSets) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeReplicationControllers ¶
FakeReplicationControllers implements ReplicationControllerInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeReplicationControllers) Create ¶
func (c *FakeReplicationControllers) Create(controller *api.ReplicationController) (*api.ReplicationController, error)
func (*FakeReplicationControllers) Delete ¶
func (c *FakeReplicationControllers) Delete(name string, options *api.DeleteOptions) error
func (*FakeReplicationControllers) Get ¶
func (c *FakeReplicationControllers) Get(name string) (*api.ReplicationController, error)
func (*FakeReplicationControllers) List ¶
func (c *FakeReplicationControllers) List(opts api.ListOptions) (*api.ReplicationControllerList, error)
func (*FakeReplicationControllers) Update ¶
func (c *FakeReplicationControllers) Update(controller *api.ReplicationController) (*api.ReplicationController, error)
func (*FakeReplicationControllers) UpdateStatus ¶ added in v1.1.1
func (c *FakeReplicationControllers) UpdateStatus(controller *api.ReplicationController) (*api.ReplicationController, error)
func (*FakeReplicationControllers) Watch ¶
func (c *FakeReplicationControllers) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeResourceQuotas ¶
FakeResourceQuotas implements ResourceQuotaInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.
func (*FakeResourceQuotas) Create ¶
func (c *FakeResourceQuotas) Create(resourceQuota *api.ResourceQuota) (*api.ResourceQuota, error)
func (*FakeResourceQuotas) Delete ¶
func (c *FakeResourceQuotas) Delete(name string) error
func (*FakeResourceQuotas) Get ¶
func (c *FakeResourceQuotas) Get(name string) (*api.ResourceQuota, error)
func (*FakeResourceQuotas) List ¶
func (c *FakeResourceQuotas) List(opts api.ListOptions) (*api.ResourceQuotaList, error)
func (*FakeResourceQuotas) Update ¶
func (c *FakeResourceQuotas) Update(resourceQuota *api.ResourceQuota) (*api.ResourceQuota, error)
func (*FakeResourceQuotas) UpdateStatus ¶
func (c *FakeResourceQuotas) UpdateStatus(resourceQuota *api.ResourceQuota) (*api.ResourceQuota, error)
func (*FakeResourceQuotas) Watch ¶
func (c *FakeResourceQuotas) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeRoleBindings ¶ added in v1.3.0
FakeRoleBindings implements RoleBindingInterface
func (*FakeRoleBindings) Create ¶ added in v1.3.0
func (c *FakeRoleBindings) Create(csr *rbac.RoleBinding) (*rbac.RoleBinding, error)
func (*FakeRoleBindings) Delete ¶ added in v1.3.0
func (c *FakeRoleBindings) Delete(name string, opts *api.DeleteOptions) error
func (*FakeRoleBindings) Get ¶ added in v1.3.0
func (c *FakeRoleBindings) Get(name string) (*rbac.RoleBinding, error)
func (*FakeRoleBindings) List ¶ added in v1.3.0
func (c *FakeRoleBindings) List(opts api.ListOptions) (*rbac.RoleBindingList, error)
func (*FakeRoleBindings) Update ¶ added in v1.3.0
func (c *FakeRoleBindings) Update(csr *rbac.RoleBinding) (*rbac.RoleBinding, error)
func (*FakeRoleBindings) Watch ¶ added in v1.3.0
func (c *FakeRoleBindings) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeRoles ¶ added in v1.3.0
FakeRoles implements RoleInterface
func (*FakeRoles) Delete ¶ added in v1.3.0
func (c *FakeRoles) Delete(name string, opts *api.DeleteOptions) error
type FakeScales ¶
type FakeScales struct { Fake *FakeExperimental Namespace string }
FakeScales implements ScaleInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.
func (*FakeScales) Get ¶
func (c *FakeScales) Get(kind string, name string) (result *extensions.Scale, err error)
func (*FakeScales) Update ¶
func (c *FakeScales) Update(kind string, scale *extensions.Scale) (result *extensions.Scale, err error)
type FakeScheduledJobs ¶ added in v1.3.0
FakeScheduledJobs implements ScheduledJobInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.
func (*FakeScheduledJobs) Create ¶ added in v1.3.0
func (c *FakeScheduledJobs) Create(scheduledJob *batch.ScheduledJob) (*batch.ScheduledJob, error)
func (*FakeScheduledJobs) Delete ¶ added in v1.3.0
func (c *FakeScheduledJobs) Delete(name string, options *api.DeleteOptions) error
func (*FakeScheduledJobs) Get ¶ added in v1.3.0
func (c *FakeScheduledJobs) Get(name string) (*batch.ScheduledJob, error)
func (*FakeScheduledJobs) List ¶ added in v1.3.0
func (c *FakeScheduledJobs) List(opts api.ListOptions) (*batch.ScheduledJobList, error)
func (*FakeScheduledJobs) Update ¶ added in v1.3.0
func (c *FakeScheduledJobs) Update(scheduledJob *batch.ScheduledJob) (*batch.ScheduledJob, error)
func (*FakeScheduledJobs) UpdateStatus ¶ added in v1.3.0
func (c *FakeScheduledJobs) UpdateStatus(scheduledJob *batch.ScheduledJob) (result *batch.ScheduledJob, err error)
func (*FakeScheduledJobs) Watch ¶ added in v1.3.0
func (c *FakeScheduledJobs) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeSecrets ¶
Fake implements SecretInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeSecrets) Delete ¶
func (c *FakeSecrets) Delete(name string) error
func (*FakeSecrets) List ¶
func (c *FakeSecrets) List(opts api.ListOptions) (*api.SecretList, error)
func (*FakeSecrets) Watch ¶
func (c *FakeSecrets) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeServiceAccounts ¶
FakeServiceAccounts implements ServiceAccountsInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeServiceAccounts) Create ¶
func (c *FakeServiceAccounts) Create(serviceAccount *api.ServiceAccount) (*api.ServiceAccount, error)
func (*FakeServiceAccounts) Delete ¶
func (c *FakeServiceAccounts) Delete(name string) error
func (*FakeServiceAccounts) Get ¶
func (c *FakeServiceAccounts) Get(name string) (*api.ServiceAccount, error)
func (*FakeServiceAccounts) List ¶
func (c *FakeServiceAccounts) List(opts api.ListOptions) (*api.ServiceAccountList, error)
func (*FakeServiceAccounts) Update ¶
func (c *FakeServiceAccounts) Update(serviceAccount *api.ServiceAccount) (*api.ServiceAccount, error)
func (*FakeServiceAccounts) Watch ¶
func (c *FakeServiceAccounts) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeServices ¶
Fake implements ServiceInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeServices) Delete ¶
func (c *FakeServices) Delete(name string) error
func (*FakeServices) List ¶
func (c *FakeServices) List(opts api.ListOptions) (*api.ServiceList, error)
func (*FakeServices) ProxyGet ¶
func (c *FakeServices) ProxyGet(scheme, name, port, path string, params map[string]string) restclient.ResponseWrapper
func (*FakeServices) UpdateStatus ¶ added in v1.2.0
func (*FakeServices) Watch ¶
func (c *FakeServices) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeStorage ¶ added in v1.4.0
type FakeStorage struct {
*Fake
}
func NewSimpleFakeStorage ¶ added in v1.4.0
func NewSimpleFakeStorage(objects ...runtime.Object) *FakeStorage
func (*FakeStorage) StorageClasses ¶ added in v1.4.0
func (c *FakeStorage) StorageClasses() client.StorageClassInterface
type FakeStorageClasses ¶ added in v1.4.0
type FakeStorageClasses struct {
Fake *FakeStorage
}
FakeStorageClasses implements StorageClassInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeStorageClasses) Create ¶ added in v1.4.0
func (c *FakeStorageClasses) Create(np *storage.StorageClass) (*storage.StorageClass, error)
func (*FakeStorageClasses) Delete ¶ added in v1.4.0
func (c *FakeStorageClasses) Delete(name string) error
func (*FakeStorageClasses) Get ¶ added in v1.4.0
func (c *FakeStorageClasses) Get(name string) (*storage.StorageClass, error)
func (*FakeStorageClasses) List ¶ added in v1.4.0
func (c *FakeStorageClasses) List(opts api.ListOptions) (*storage.StorageClassList, error)
func (*FakeStorageClasses) Update ¶ added in v1.4.0
func (c *FakeStorageClasses) Update(np *storage.StorageClass) (*storage.StorageClass, error)
func (*FakeStorageClasses) Watch ¶ added in v1.4.0
func (c *FakeStorageClasses) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeSubjectAccessReviews ¶ added in v1.4.0
type FakeSubjectAccessReviews struct {
Fake *FakeAuthorization
}
FakeSubjectAccessReviews implements SubjectAccessReviewInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.
func (*FakeSubjectAccessReviews) Create ¶ added in v1.4.0
func (c *FakeSubjectAccessReviews) Create(a *authorization.SubjectAccessReview) (*authorization.SubjectAccessReview, error)
type FakeThirdPartyResources ¶ added in v1.2.0
type FakeThirdPartyResources struct {
Fake *FakeExperimental
}
FakeThirdPartyResources implements ThirdPartyResourceInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func (*FakeThirdPartyResources) Create ¶ added in v1.2.0
func (c *FakeThirdPartyResources) Create(daemon *extensions.ThirdPartyResource) (*extensions.ThirdPartyResource, error)
func (*FakeThirdPartyResources) Delete ¶ added in v1.2.0
func (c *FakeThirdPartyResources) Delete(name string) error
func (*FakeThirdPartyResources) Get ¶ added in v1.2.0
func (c *FakeThirdPartyResources) Get(name string) (*extensions.ThirdPartyResource, error)
func (*FakeThirdPartyResources) List ¶ added in v1.2.0
func (c *FakeThirdPartyResources) List(opts api.ListOptions) (*extensions.ThirdPartyResourceList, error)
func (*FakeThirdPartyResources) Update ¶ added in v1.2.0
func (c *FakeThirdPartyResources) Update(daemon *extensions.ThirdPartyResource) (*extensions.ThirdPartyResource, error)
func (*FakeThirdPartyResources) UpdateStatus ¶ added in v1.2.0
func (c *FakeThirdPartyResources) UpdateStatus(daemon *extensions.ThirdPartyResource) (*extensions.ThirdPartyResource, error)
func (*FakeThirdPartyResources) Watch ¶ added in v1.2.0
func (c *FakeThirdPartyResources) Watch(opts api.ListOptions) (watch.Interface, error)
type FakeTokenReviews ¶ added in v1.4.0
type FakeTokenReviews struct {
Fake *FakeAuthentication
}
FakeTokenReviews implements ClusterRoleInterface
func (*FakeTokenReviews) Create ¶ added in v1.4.0
func (c *FakeTokenReviews) Create(review *authentication.TokenReview) (*authentication.TokenReview, error)
type GenericAction ¶
type GenericAction interface { Action GetValue() interface{} }
type GenericActionImpl ¶
type GenericActionImpl struct { ActionImpl Value interface{} }
func (GenericActionImpl) GetValue ¶
func (a GenericActionImpl) GetValue() interface{}
type GetActionImpl ¶
type GetActionImpl struct { ActionImpl Name string }
func NewGetAction ¶
func NewGetAction(resource, namespace, name string) GetActionImpl
func NewRootGetAction ¶
func NewRootGetAction(resource, name string) GetActionImpl
func (GetActionImpl) GetName ¶
func (a GetActionImpl) GetName() string
type ListAction ¶
type ListAction interface { Action GetListRestrictions() ListRestrictions }
type ListActionImpl ¶
type ListActionImpl struct { ActionImpl ListRestrictions ListRestrictions }
func NewListAction ¶
func NewListAction(resource, namespace string, opts api.ListOptions) ListActionImpl
func NewRootListAction ¶
func NewRootListAction(resource string, opts api.ListOptions) ListActionImpl
func (ListActionImpl) GetListRestrictions ¶
func (a ListActionImpl) GetListRestrictions() ListRestrictions
type ListRestrictions ¶
type ObjectRetriever ¶
type ObjectRetriever interface { // Kind should return a resource or a list of resources (depending on the provided kind and // name). It should return an error if the caller should communicate an error to the server. Kind(gvk unversioned.GroupVersionKind, name string) (runtime.Object, error) // Add adds a runtime object for test purposes into this object. Add(runtime.Object) error }
ObjectRetriever abstracts the implementation for retrieving or setting generic objects. It is intended to be used to fake calls to a server by returning objects based on their kind and name.
func NewObjects ¶
func NewObjects(scheme ObjectScheme, decoder runtime.Decoder) ObjectRetriever
NewObjects implements the ObjectRetriever interface by introspecting the objects provided to Add() and returning them when the Kind method is invoked. If an api.List object is provided to Add(), each child item is added. If an object is added that is itself a list (PodList, ServiceList) then that is added to the "PodList" kind. If no PodList is added, the retriever will take any loaded Pods and return them in a list. If an api.Status is added, and the Details.Kind field is set, that status will be returned instead (as an error if Status != Success, or as a runtime.Object if Status == Success). If multiple PodLists are provided, they will be returned in order by the Kind call, and the last PodList will be reused for subsequent calls.
type ObjectScheme ¶ added in v1.2.0
type ObjectScheme interface { runtime.ObjectCreater runtime.ObjectCopier runtime.ObjectTyper }
ObjectScheme abstracts the implementation of common operations on objects.
type PatchActionImpl ¶ added in v1.2.0
type PatchActionImpl struct { ActionImpl Object runtime.Object }
func NewPatchAction ¶ added in v1.2.0
func NewPatchAction(resource, namespace string, object runtime.Object) PatchActionImpl
func NewRootPatchAction ¶ added in v1.2.0
func NewRootPatchAction(resource string, object runtime.Object) PatchActionImpl
func (PatchActionImpl) GetObject ¶ added in v1.2.0
func (a PatchActionImpl) GetObject() runtime.Object
type ProxyGetAction ¶
type ProxyGetActionImpl ¶
type ProxyGetActionImpl struct { ActionImpl Scheme string Name string Port string Path string Params map[string]string }
func NewProxyGetAction ¶
func NewProxyGetAction(resource, namespace, scheme, name, port, path string, params map[string]string) ProxyGetActionImpl
func (ProxyGetActionImpl) GetName ¶
func (a ProxyGetActionImpl) GetName() string
func (ProxyGetActionImpl) GetParams ¶
func (a ProxyGetActionImpl) GetParams() map[string]string
func (ProxyGetActionImpl) GetPath ¶
func (a ProxyGetActionImpl) GetPath() string
func (ProxyGetActionImpl) GetPort ¶ added in v1.2.0
func (a ProxyGetActionImpl) GetPort() string
func (ProxyGetActionImpl) GetScheme ¶ added in v1.2.0
func (a ProxyGetActionImpl) GetScheme() string
type ProxyReactionFunc ¶
type ProxyReactionFunc func(action Action) (handled bool, ret restclient.ResponseWrapper, err error)
ProxyReactionFunc is a function that returns a ResponseWrapper interface for a given Action. If "handled" is false, then the test client will continue ignore the results and continue to the next ProxyReactionFunc
type ProxyReactor ¶
type ProxyReactor interface { // Handles indicates whether or not this Reactor deals with a given action Handles(action Action) bool // React handles a watch action and returns results. It may choose to delegate by indicated handled=false React(action Action) (handled bool, ret restclient.ResponseWrapper, err error) }
ProxyReactor is an interface to allow the composition of proxy get functions.
type ReactionFunc ¶
ReactionFunc is a function that returns an object or error for a given Action. If "handled" is false, then the test client will continue ignore the results and continue to the next ReactionFunc
func ObjectReaction ¶
func ObjectReaction(o ObjectRetriever, mapper meta.RESTMapper) ReactionFunc
ObjectReaction returns a ReactionFunc that takes a generic action string of the form <verb>-<resource> or <verb>-<subresource>-<resource> and attempts to return a runtime Object or error that matches the requested action. For instance, list-replicationControllers should attempt to return a list of replication controllers. This method delegates to the ObjectRetriever interface to satisfy retrieval of lists or retrieval of single items. TODO: add support for sub resources
type Reactor ¶
type Reactor interface { // Handles indicates whether or not this Reactor deals with a given action Handles(action Action) bool // React handles the action and returns results. It may choose to delegate by indicated handled=false React(action Action) (handled bool, ret runtime.Object, err error) }
Reactor is an interface to allow the composition of reaction functions.
type SimpleProxyReactor ¶
type SimpleProxyReactor struct { Resource string Reaction ProxyReactionFunc }
SimpleProxyReactor is a ProxyReactor. Each reaction function is attached to a given resource. "*" matches everything for that value. For instance, *,pods matches all verbs on pods. This allows for easier composition of reaction functions.
func (*SimpleProxyReactor) Handles ¶
func (r *SimpleProxyReactor) Handles(action Action) bool
func (*SimpleProxyReactor) React ¶
func (r *SimpleProxyReactor) React(action Action) (bool, restclient.ResponseWrapper, error)
type SimpleReactor ¶
type SimpleReactor struct { Verb string Resource string Reaction ReactionFunc }
SimpleReactor is a Reactor. Each reaction function is attached to a given verb,resource tuple. "*" in either field matches everything for that value. For instance, *,pods matches all verbs on pods. This allows for easier composition of reaction functions
func (*SimpleReactor) Handles ¶
func (r *SimpleReactor) Handles(action Action) bool
type SimpleWatchReactor ¶
type SimpleWatchReactor struct { Resource string Reaction WatchReactionFunc }
SimpleWatchReactor is a WatchReactor. Each reaction function is attached to a given resource. "*" matches everything for that value. For instance, *,pods matches all verbs on pods. This allows for easier composition of reaction functions
func (*SimpleWatchReactor) Handles ¶
func (r *SimpleWatchReactor) Handles(action Action) bool
type UpdateAction ¶
type UpdateActionImpl ¶
type UpdateActionImpl struct { ActionImpl Object runtime.Object }
func NewRootUpdateAction ¶
func NewRootUpdateAction(resource string, object runtime.Object) UpdateActionImpl
func NewUpdateAction ¶
func NewUpdateAction(resource, namespace string, object runtime.Object) UpdateActionImpl
func NewUpdateSubresourceAction ¶
func NewUpdateSubresourceAction(resource, subresource, namespace string, object runtime.Object) UpdateActionImpl
func (UpdateActionImpl) GetObject ¶
func (a UpdateActionImpl) GetObject() runtime.Object
type WatchAction ¶
type WatchAction interface { Action GetWatchRestrictions() WatchRestrictions }
type WatchActionImpl ¶
type WatchActionImpl struct { ActionImpl WatchRestrictions WatchRestrictions }
func NewRootWatchAction ¶
func NewRootWatchAction(resource string, opts api.ListOptions) WatchActionImpl
func NewWatchAction ¶
func NewWatchAction(resource, namespace string, opts api.ListOptions) WatchActionImpl
func (WatchActionImpl) GetWatchRestrictions ¶
func (a WatchActionImpl) GetWatchRestrictions() WatchRestrictions
type WatchReactionFunc ¶
WatchReactionFunc is a function that returns a watch interface. If "handled" is false, then the test client will continue ignore the results and continue to the next ReactionFunc
func DefaultWatchReactor ¶
func DefaultWatchReactor(watchInterface watch.Interface, err error) WatchReactionFunc
type WatchReactor ¶
type WatchReactor interface { // Handles indicates whether or not this Reactor deals with a given action Handles(action Action) bool // React handles a watch action and returns results. It may choose to delegate by indicated handled=false React(action Action) (handled bool, ret watch.Interface, err error) }
WatchReactor is an interface to allow the composition of watch functions.
Source Files ¶
- actions.go
- fake_certificates.go
- fake_clusterrolebindings.go
- fake_clusterroles.go
- fake_componentstatuses.go
- fake_configmaps.go
- fake_daemon_sets.go
- fake_deployments.go
- fake_endpoints.go
- fake_events.go
- fake_horizontal_pod_autoscalers.go
- fake_ingress.go
- fake_jobs.go
- fake_limit_ranges.go
- fake_namespaces.go
- fake_network_policies.go
- fake_nodes.go
- fake_persistent_volume_claims.go
- fake_persistent_volumes.go
- fake_petsets.go
- fake_pod_templates.go
- fake_pods.go
- fake_podsecuritypolicy.go
- fake_replica_sets.go
- fake_replication_controllers.go
- fake_resource_quotas.go
- fake_rolebindings.go
- fake_roles.go
- fake_scales.go
- fake_scheduledjobs.go
- fake_secrets.go
- fake_service_accounts.go
- fake_services.go
- fake_storage_classes.go
- fake_subjectaccessreviews.go
- fake_thirdpartyresources.go
- fake_tokenreviews.go
- fixture.go
- testclient.go