Documentation ¶
Index ¶
- func FakeNamespace(name string) *v1.Namespace
- func FakePodList() []v1.Pod
- func FakeService() *v1.Service
- func FakeServiceList() []v1.Service
- type K8SClientMock
- func (o *K8SClientMock) DeleteIstioObject(api, namespace, objectType, objectName string) error
- func (o *K8SClientMock) GetAdapter(namespace, adapterType, adapterName string) (kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetAdapters(namespace string) ([]kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetCronJobs(namespace string) ([]batch_v1beta1.CronJob, error)
- func (o *K8SClientMock) GetDeployment(namespace string, deploymentName string) (*v1beta1.Deployment, error)
- func (o *K8SClientMock) GetDeploymentConfig(namespace string, deploymentName string) (*osappsv1.DeploymentConfig, error)
- func (o *K8SClientMock) GetDeploymentConfigs(namespace string) ([]osappsv1.DeploymentConfig, error)
- func (o *K8SClientMock) GetDeployments(namespace string) ([]v1beta1.Deployment, error)
- func (o *K8SClientMock) GetDestinationRule(namespace string, destinationrule string) (kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetDestinationRules(namespace string, serviceName string) ([]kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetEndpoints(namespace string, serviceName string) (*v1.Endpoints, error)
- func (o *K8SClientMock) GetGateway(namespace string, gateway string) (kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetGateways(namespace string) ([]kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetIstioDetails(namespace string, serviceName string) (*kubernetes.IstioDetails, error)
- func (o *K8SClientMock) GetIstioRule(namespace string, istiorule string) (kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetIstioRules(namespace string) ([]kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetJobs(namespace string) ([]batch_v1.Job, error)
- func (o *K8SClientMock) GetNamespace(namespace string) (*v1.Namespace, error)
- func (o *K8SClientMock) GetNamespaces() ([]v1.Namespace, error)
- func (o *K8SClientMock) GetPods(namespace, labelSelector string) ([]v1.Pod, error)
- func (o *K8SClientMock) GetProject(project string) (*osv1.Project, error)
- func (o *K8SClientMock) GetProjects() ([]osv1.Project, error)
- func (o *K8SClientMock) GetQuotaSpec(namespace string, quotaSpecName string) (kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetQuotaSpecBinding(namespace string, quotaSpecBindingName string) (kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetQuotaSpecBindings(namespace string) ([]kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetQuotaSpecs(namespace string) ([]kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetReplicaSets(namespace string) ([]v1beta2.ReplicaSet, error)
- func (o *K8SClientMock) GetReplicationControllers(namespace string) ([]v1.ReplicationController, error)
- func (o *K8SClientMock) GetSelfSubjectAccessReview(namespace, api, resourceType string, verbs []string) ([]*auth_v1.SelfSubjectAccessReview, error)
- func (o *K8SClientMock) GetService(namespace string, serviceName string) (*v1.Service, error)
- func (o *K8SClientMock) GetServiceEntries(namespace string) ([]kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetServiceEntry(namespace string, serviceEntryName string) (kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetServicePods(namespace string, serviceName string, serviceVersion string) (*v1.PodList, error)
- func (o *K8SClientMock) GetServices(namespace string, selectorLabels map[string]string) ([]v1.Service, error)
- func (o *K8SClientMock) GetStatefulSet(namespace string, statefulsetName string) (*v1beta2.StatefulSet, error)
- func (o *K8SClientMock) GetStatefulSets(namespace string) ([]v1beta2.StatefulSet, error)
- func (o *K8SClientMock) GetTemplate(namespace, templateType, templateName string) (kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetTemplates(namespace string) ([]kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetVirtualService(namespace string, virtualservice string) (kubernetes.IstioObject, error)
- func (o *K8SClientMock) GetVirtualServices(namespace string, serviceName string) ([]kubernetes.IstioObject, error)
- func (o *K8SClientMock) IsOpenShift() bool
- func (o *K8SClientMock) Stop()
- func (o *K8SClientMock) UpdateIstioObject(api, namespace, resourceType, name, jsonPatch string) (kubernetes.IstioObject, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FakeNamespace ¶ added in v0.11.0
func FakePodList ¶ added in v0.11.0
func FakeService ¶ added in v0.11.0
func FakeServiceList ¶ added in v0.11.0
Types ¶
type K8SClientMock ¶
func NewK8SClientMock ¶ added in v0.8.0
func NewK8SClientMock() *K8SClientMock
func (*K8SClientMock) DeleteIstioObject ¶ added in v0.9.1
func (o *K8SClientMock) DeleteIstioObject(api, namespace, objectType, objectName string) error
func (*K8SClientMock) GetAdapter ¶ added in v0.11.0
func (o *K8SClientMock) GetAdapter(namespace, adapterType, adapterName string) (kubernetes.IstioObject, error)
func (*K8SClientMock) GetAdapters ¶ added in v0.11.0
func (o *K8SClientMock) GetAdapters(namespace string) ([]kubernetes.IstioObject, error)
func (*K8SClientMock) GetCronJobs ¶ added in v0.9.0
func (o *K8SClientMock) GetCronJobs(namespace string) ([]batch_v1beta1.CronJob, error)
func (*K8SClientMock) GetDeployment ¶ added in v0.6.0
func (o *K8SClientMock) GetDeployment(namespace string, deploymentName string) (*v1beta1.Deployment, error)
func (*K8SClientMock) GetDeploymentConfig ¶ added in v0.9.0
func (o *K8SClientMock) GetDeploymentConfig(namespace string, deploymentName string) (*osappsv1.DeploymentConfig, error)
func (*K8SClientMock) GetDeploymentConfigs ¶ added in v0.9.0
func (o *K8SClientMock) GetDeploymentConfigs(namespace string) ([]osappsv1.DeploymentConfig, error)
func (*K8SClientMock) GetDeployments ¶ added in v0.6.0
func (o *K8SClientMock) GetDeployments(namespace string) ([]v1beta1.Deployment, error)
func (*K8SClientMock) GetDestinationRule ¶
func (o *K8SClientMock) GetDestinationRule(namespace string, destinationrule string) (kubernetes.IstioObject, error)
func (*K8SClientMock) GetDestinationRules ¶
func (o *K8SClientMock) GetDestinationRules(namespace string, serviceName string) ([]kubernetes.IstioObject, error)
func (*K8SClientMock) GetEndpoints ¶ added in v0.8.0
func (*K8SClientMock) GetGateway ¶
func (o *K8SClientMock) GetGateway(namespace string, gateway string) (kubernetes.IstioObject, error)
func (*K8SClientMock) GetGateways ¶
func (o *K8SClientMock) GetGateways(namespace string) ([]kubernetes.IstioObject, error)
func (*K8SClientMock) GetIstioDetails ¶
func (o *K8SClientMock) GetIstioDetails(namespace string, serviceName string) (*kubernetes.IstioDetails, error)
func (*K8SClientMock) GetIstioRule ¶ added in v0.11.0
func (o *K8SClientMock) GetIstioRule(namespace string, istiorule string) (kubernetes.IstioObject, error)
func (*K8SClientMock) GetIstioRules ¶
func (o *K8SClientMock) GetIstioRules(namespace string) ([]kubernetes.IstioObject, error)
func (*K8SClientMock) GetJobs ¶ added in v0.9.0
func (o *K8SClientMock) GetJobs(namespace string) ([]batch_v1.Job, error)
func (*K8SClientMock) GetNamespace ¶ added in v0.9.1
func (o *K8SClientMock) GetNamespace(namespace string) (*v1.Namespace, error)
func (*K8SClientMock) GetNamespaces ¶
func (o *K8SClientMock) GetNamespaces() ([]v1.Namespace, error)
func (*K8SClientMock) GetPods ¶
func (o *K8SClientMock) GetPods(namespace, labelSelector string) ([]v1.Pod, error)
func (*K8SClientMock) GetProject ¶ added in v0.9.1
func (o *K8SClientMock) GetProject(project string) (*osv1.Project, error)
func (*K8SClientMock) GetProjects ¶ added in v0.8.0
func (o *K8SClientMock) GetProjects() ([]osv1.Project, error)
func (*K8SClientMock) GetQuotaSpec ¶ added in v0.5.0
func (o *K8SClientMock) GetQuotaSpec(namespace string, quotaSpecName string) (kubernetes.IstioObject, error)
func (*K8SClientMock) GetQuotaSpecBinding ¶ added in v0.5.0
func (o *K8SClientMock) GetQuotaSpecBinding(namespace string, quotaSpecBindingName string) (kubernetes.IstioObject, error)
func (*K8SClientMock) GetQuotaSpecBindings ¶ added in v0.5.0
func (o *K8SClientMock) GetQuotaSpecBindings(namespace string) ([]kubernetes.IstioObject, error)
func (*K8SClientMock) GetQuotaSpecs ¶ added in v0.5.0
func (o *K8SClientMock) GetQuotaSpecs(namespace string) ([]kubernetes.IstioObject, error)
func (*K8SClientMock) GetReplicaSets ¶ added in v0.9.0
func (o *K8SClientMock) GetReplicaSets(namespace string) ([]v1beta2.ReplicaSet, error)
func (*K8SClientMock) GetReplicationControllers ¶ added in v0.9.0
func (o *K8SClientMock) GetReplicationControllers(namespace string) ([]v1.ReplicationController, error)
func (*K8SClientMock) GetSelfSubjectAccessReview ¶ added in v0.9.1
func (o *K8SClientMock) GetSelfSubjectAccessReview(namespace, api, resourceType string, verbs []string) ([]*auth_v1.SelfSubjectAccessReview, error)
func (*K8SClientMock) GetService ¶
func (*K8SClientMock) GetServiceEntries ¶ added in v0.5.0
func (o *K8SClientMock) GetServiceEntries(namespace string) ([]kubernetes.IstioObject, error)
func (*K8SClientMock) GetServiceEntry ¶ added in v0.5.0
func (o *K8SClientMock) GetServiceEntry(namespace string, serviceEntryName string) (kubernetes.IstioObject, error)
func (*K8SClientMock) GetServicePods ¶
func (*K8SClientMock) GetServices ¶
func (*K8SClientMock) GetStatefulSet ¶ added in v0.9.0
func (o *K8SClientMock) GetStatefulSet(namespace string, statefulsetName string) (*v1beta2.StatefulSet, error)
func (*K8SClientMock) GetStatefulSets ¶ added in v0.9.0
func (o *K8SClientMock) GetStatefulSets(namespace string) ([]v1beta2.StatefulSet, error)
func (*K8SClientMock) GetTemplate ¶ added in v0.11.0
func (o *K8SClientMock) GetTemplate(namespace, templateType, templateName string) (kubernetes.IstioObject, error)
func (*K8SClientMock) GetTemplates ¶ added in v0.11.0
func (o *K8SClientMock) GetTemplates(namespace string) ([]kubernetes.IstioObject, error)
func (*K8SClientMock) GetVirtualService ¶
func (o *K8SClientMock) GetVirtualService(namespace string, virtualservice string) (kubernetes.IstioObject, error)
func (*K8SClientMock) GetVirtualServices ¶
func (o *K8SClientMock) GetVirtualServices(namespace string, serviceName string) ([]kubernetes.IstioObject, error)
func (*K8SClientMock) IsOpenShift ¶ added in v0.8.0
func (o *K8SClientMock) IsOpenShift() bool
func (*K8SClientMock) Stop ¶ added in v0.9.1
func (o *K8SClientMock) Stop()
func (*K8SClientMock) UpdateIstioObject ¶ added in v0.12.0
func (o *K8SClientMock) UpdateIstioObject(api, namespace, resourceType, name, jsonPatch string) (kubernetes.IstioObject, error)
Click to show internal directories.
Click to hide internal directories.