fakes

package
v0.0.0-...-149c2fc Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IstioConfigStore

type IstioConfigStore struct {
	ConfigDescriptorStub func() model.ConfigDescriptor

	GetStub func(typ, name, namespace string) *model.Config

	ListStub func(typ, namespace string) ([]model.Config, error)

	CreateStub func(config model.Config) (revision string, err error)

	UpdateStub func(config model.Config) (newRevision string, err error)

	DeleteStub func(typ, name, namespace string) error

	ServiceEntriesStub func() []model.Config

	GatewaysStub func(workloadLabels model.LabelsCollection) []model.Config

	EnvoyFilterStub func(workloadLabels model.LabelsCollection) *model.Config

	HTTPAPISpecByDestinationStub func(instance *model.ServiceInstance) []model.Config

	QuotaSpecByDestinationStub func(instance *model.ServiceInstance) []model.Config

	AuthenticationPolicyByDestinationStub func(service *model.Service, port *model.Port) *model.Config

	ServiceRolesStub func(namespace string) []model.Config

	ServiceRoleBindingsStub func(namespace string) []model.Config

	RbacConfigStub func() *model.Config

	ClusterRbacConfigStub func() *model.Config
	// contains filtered or unexported fields
}

func (*IstioConfigStore) AuthenticationPolicyByDestination

func (fake *IstioConfigStore) AuthenticationPolicyByDestination(service *model.Service, port *model.Port) *model.Config

func (*IstioConfigStore) AuthenticationPolicyByDestinationArgsForCall

func (fake *IstioConfigStore) AuthenticationPolicyByDestinationArgsForCall(i int) (*model.Service, *model.Port)

func (*IstioConfigStore) AuthenticationPolicyByDestinationCallCount

func (fake *IstioConfigStore) AuthenticationPolicyByDestinationCallCount() int

func (*IstioConfigStore) AuthenticationPolicyByDestinationReturns

func (fake *IstioConfigStore) AuthenticationPolicyByDestinationReturns(result1 *model.Config)

func (*IstioConfigStore) AuthenticationPolicyByDestinationReturnsOnCall

func (fake *IstioConfigStore) AuthenticationPolicyByDestinationReturnsOnCall(i int, result1 *model.Config)

func (*IstioConfigStore) ClusterRbacConfig

func (fake *IstioConfigStore) ClusterRbacConfig() *model.Config

func (*IstioConfigStore) ClusterRbacConfigCallCount

func (fake *IstioConfigStore) ClusterRbacConfigCallCount() int

func (*IstioConfigStore) ClusterRbacConfigReturns

func (fake *IstioConfigStore) ClusterRbacConfigReturns(result1 *model.Config)

func (*IstioConfigStore) ClusterRbacConfigReturnsOnCall

func (fake *IstioConfigStore) ClusterRbacConfigReturnsOnCall(i int, result1 *model.Config)

func (*IstioConfigStore) ConfigDescriptor

func (fake *IstioConfigStore) ConfigDescriptor() model.ConfigDescriptor

func (*IstioConfigStore) ConfigDescriptorCallCount

func (fake *IstioConfigStore) ConfigDescriptorCallCount() int

func (*IstioConfigStore) ConfigDescriptorReturns

func (fake *IstioConfigStore) ConfigDescriptorReturns(result1 model.ConfigDescriptor)

func (*IstioConfigStore) ConfigDescriptorReturnsOnCall

func (fake *IstioConfigStore) ConfigDescriptorReturnsOnCall(i int, result1 model.ConfigDescriptor)

func (*IstioConfigStore) Create

func (fake *IstioConfigStore) Create(config model.Config) (revision string, err error)

func (*IstioConfigStore) CreateArgsForCall

func (fake *IstioConfigStore) CreateArgsForCall(i int) model.Config

func (*IstioConfigStore) CreateCallCount

func (fake *IstioConfigStore) CreateCallCount() int

func (*IstioConfigStore) CreateReturns

func (fake *IstioConfigStore) CreateReturns(result1 string, result2 error)

func (*IstioConfigStore) CreateReturnsOnCall

func (fake *IstioConfigStore) CreateReturnsOnCall(i int, result1 string, result2 error)

func (*IstioConfigStore) Delete

func (fake *IstioConfigStore) Delete(typ string, name string, namespace string) error

func (*IstioConfigStore) DeleteArgsForCall

func (fake *IstioConfigStore) DeleteArgsForCall(i int) (string, string, string)

func (*IstioConfigStore) DeleteCallCount

func (fake *IstioConfigStore) DeleteCallCount() int

func (*IstioConfigStore) DeleteReturns

func (fake *IstioConfigStore) DeleteReturns(result1 error)

func (*IstioConfigStore) DeleteReturnsOnCall

func (fake *IstioConfigStore) DeleteReturnsOnCall(i int, result1 error)

func (*IstioConfigStore) EnvoyFilter

func (fake *IstioConfigStore) EnvoyFilter(workloadLabels model.LabelsCollection) *model.Config

func (*IstioConfigStore) EnvoyFilterArgsForCall

func (fake *IstioConfigStore) EnvoyFilterArgsForCall(i int) model.LabelsCollection

func (*IstioConfigStore) EnvoyFilterCallCount

func (fake *IstioConfigStore) EnvoyFilterCallCount() int

func (*IstioConfigStore) EnvoyFilterReturns

func (fake *IstioConfigStore) EnvoyFilterReturns(result1 *model.Config)

func (*IstioConfigStore) EnvoyFilterReturnsOnCall

func (fake *IstioConfigStore) EnvoyFilterReturnsOnCall(i int, result1 *model.Config)

func (*IstioConfigStore) Gateways

func (fake *IstioConfigStore) Gateways(workloadLabels model.LabelsCollection) []model.Config

func (*IstioConfigStore) GatewaysArgsForCall

func (fake *IstioConfigStore) GatewaysArgsForCall(i int) model.LabelsCollection

func (*IstioConfigStore) GatewaysCallCount

func (fake *IstioConfigStore) GatewaysCallCount() int

func (*IstioConfigStore) GatewaysReturns

func (fake *IstioConfigStore) GatewaysReturns(result1 []model.Config)

func (*IstioConfigStore) GatewaysReturnsOnCall

func (fake *IstioConfigStore) GatewaysReturnsOnCall(i int, result1 []model.Config)

func (*IstioConfigStore) Get

func (fake *IstioConfigStore) Get(typ string, name string, namespace string) *model.Config

func (*IstioConfigStore) GetArgsForCall

func (fake *IstioConfigStore) GetArgsForCall(i int) (string, string, string)

func (*IstioConfigStore) GetCallCount

func (fake *IstioConfigStore) GetCallCount() int

func (*IstioConfigStore) GetReturns

func (fake *IstioConfigStore) GetReturns(result1 *model.Config)

func (*IstioConfigStore) GetReturnsOnCall

func (fake *IstioConfigStore) GetReturnsOnCall(i int, result1 *model.Config)

func (*IstioConfigStore) HTTPAPISpecByDestination

func (fake *IstioConfigStore) HTTPAPISpecByDestination(instance *model.ServiceInstance) []model.Config

func (*IstioConfigStore) HTTPAPISpecByDestinationArgsForCall

func (fake *IstioConfigStore) HTTPAPISpecByDestinationArgsForCall(i int) *model.ServiceInstance

func (*IstioConfigStore) HTTPAPISpecByDestinationCallCount

func (fake *IstioConfigStore) HTTPAPISpecByDestinationCallCount() int

func (*IstioConfigStore) HTTPAPISpecByDestinationReturns

func (fake *IstioConfigStore) HTTPAPISpecByDestinationReturns(result1 []model.Config)

func (*IstioConfigStore) HTTPAPISpecByDestinationReturnsOnCall

func (fake *IstioConfigStore) HTTPAPISpecByDestinationReturnsOnCall(i int, result1 []model.Config)

func (*IstioConfigStore) Invocations

func (fake *IstioConfigStore) Invocations() map[string][][]interface{}

func (*IstioConfigStore) List

func (fake *IstioConfigStore) List(typ string, namespace string) ([]model.Config, error)

func (*IstioConfigStore) ListArgsForCall

func (fake *IstioConfigStore) ListArgsForCall(i int) (string, string)

func (*IstioConfigStore) ListCallCount

func (fake *IstioConfigStore) ListCallCount() int

func (*IstioConfigStore) ListReturns

func (fake *IstioConfigStore) ListReturns(result1 []model.Config, result2 error)

func (*IstioConfigStore) ListReturnsOnCall

func (fake *IstioConfigStore) ListReturnsOnCall(i int, result1 []model.Config, result2 error)

func (*IstioConfigStore) QuotaSpecByDestination

func (fake *IstioConfigStore) QuotaSpecByDestination(instance *model.ServiceInstance) []model.Config

func (*IstioConfigStore) QuotaSpecByDestinationArgsForCall

func (fake *IstioConfigStore) QuotaSpecByDestinationArgsForCall(i int) *model.ServiceInstance

func (*IstioConfigStore) QuotaSpecByDestinationCallCount

func (fake *IstioConfigStore) QuotaSpecByDestinationCallCount() int

func (*IstioConfigStore) QuotaSpecByDestinationReturns

func (fake *IstioConfigStore) QuotaSpecByDestinationReturns(result1 []model.Config)

func (*IstioConfigStore) QuotaSpecByDestinationReturnsOnCall

func (fake *IstioConfigStore) QuotaSpecByDestinationReturnsOnCall(i int, result1 []model.Config)

func (*IstioConfigStore) RbacConfig

func (fake *IstioConfigStore) RbacConfig() *model.Config

func (*IstioConfigStore) RbacConfigCallCount

func (fake *IstioConfigStore) RbacConfigCallCount() int

func (*IstioConfigStore) RbacConfigReturns

func (fake *IstioConfigStore) RbacConfigReturns(result1 *model.Config)

func (*IstioConfigStore) RbacConfigReturnsOnCall

func (fake *IstioConfigStore) RbacConfigReturnsOnCall(i int, result1 *model.Config)

func (*IstioConfigStore) ServiceEntries

func (fake *IstioConfigStore) ServiceEntries() []model.Config

func (*IstioConfigStore) ServiceEntriesCallCount

func (fake *IstioConfigStore) ServiceEntriesCallCount() int

func (*IstioConfigStore) ServiceEntriesReturns

func (fake *IstioConfigStore) ServiceEntriesReturns(result1 []model.Config)

func (*IstioConfigStore) ServiceEntriesReturnsOnCall

func (fake *IstioConfigStore) ServiceEntriesReturnsOnCall(i int, result1 []model.Config)

func (*IstioConfigStore) ServiceRoleBindings

func (fake *IstioConfigStore) ServiceRoleBindings(namespace string) []model.Config

func (*IstioConfigStore) ServiceRoleBindingsArgsForCall

func (fake *IstioConfigStore) ServiceRoleBindingsArgsForCall(i int) string

func (*IstioConfigStore) ServiceRoleBindingsCallCount

func (fake *IstioConfigStore) ServiceRoleBindingsCallCount() int

func (*IstioConfigStore) ServiceRoleBindingsReturns

func (fake *IstioConfigStore) ServiceRoleBindingsReturns(result1 []model.Config)

func (*IstioConfigStore) ServiceRoleBindingsReturnsOnCall

func (fake *IstioConfigStore) ServiceRoleBindingsReturnsOnCall(i int, result1 []model.Config)

func (*IstioConfigStore) ServiceRoles

func (fake *IstioConfigStore) ServiceRoles(namespace string) []model.Config

func (*IstioConfigStore) ServiceRolesArgsForCall

func (fake *IstioConfigStore) ServiceRolesArgsForCall(i int) string

func (*IstioConfigStore) ServiceRolesCallCount

func (fake *IstioConfigStore) ServiceRolesCallCount() int

func (*IstioConfigStore) ServiceRolesReturns

func (fake *IstioConfigStore) ServiceRolesReturns(result1 []model.Config)

func (*IstioConfigStore) ServiceRolesReturnsOnCall

func (fake *IstioConfigStore) ServiceRolesReturnsOnCall(i int, result1 []model.Config)

func (*IstioConfigStore) Update

func (fake *IstioConfigStore) Update(config model.Config) (newRevision string, err error)

func (*IstioConfigStore) UpdateArgsForCall

func (fake *IstioConfigStore) UpdateArgsForCall(i int) model.Config

func (*IstioConfigStore) UpdateCallCount

func (fake *IstioConfigStore) UpdateCallCount() int

func (*IstioConfigStore) UpdateReturns

func (fake *IstioConfigStore) UpdateReturns(result1 string, result2 error)

func (*IstioConfigStore) UpdateReturnsOnCall

func (fake *IstioConfigStore) UpdateReturnsOnCall(i int, result1 string, result2 error)

type ServiceDiscovery

type ServiceDiscovery struct {
	ServicesStub func() ([]*model.Service, error)

	GetServiceStub func(hostname model.Hostname) (*model.Service, error)

	InstancesByPortStub func(hostname model.Hostname, servicePort int, labels model.LabelsCollection) ([]*model.ServiceInstance, error)

	GetProxyServiceInstancesStub func(*model.Proxy) ([]*model.ServiceInstance, error)

	GetProxyWorkloadLabelsStub func(*model.Proxy) (model.LabelsCollection, error)

	ManagementPortsStub func(addr string) model.PortList

	WorkloadHealthCheckInfoStub func(addr string) model.ProbeList

	GetIstioServiceAccountsStub func(hostname model.Hostname, ports []int) []string
	// contains filtered or unexported fields
}

func (*ServiceDiscovery) GetIstioServiceAccounts

func (fake *ServiceDiscovery) GetIstioServiceAccounts(hostname model.Hostname, ports []int) []string

func (*ServiceDiscovery) GetIstioServiceAccountsArgsForCall

func (fake *ServiceDiscovery) GetIstioServiceAccountsArgsForCall(i int) (model.Hostname, []int)

func (*ServiceDiscovery) GetIstioServiceAccountsCallCount

func (fake *ServiceDiscovery) GetIstioServiceAccountsCallCount() int

func (*ServiceDiscovery) GetIstioServiceAccountsReturns

func (fake *ServiceDiscovery) GetIstioServiceAccountsReturns(result1 []string)

func (*ServiceDiscovery) GetIstioServiceAccountsReturnsOnCall

func (fake *ServiceDiscovery) GetIstioServiceAccountsReturnsOnCall(i int, result1 []string)

func (*ServiceDiscovery) GetProxyServiceInstances

func (fake *ServiceDiscovery) GetProxyServiceInstances(arg1 *model.Proxy) ([]*model.ServiceInstance, error)

func (*ServiceDiscovery) GetProxyServiceInstancesArgsForCall

func (fake *ServiceDiscovery) GetProxyServiceInstancesArgsForCall(i int) *model.Proxy

func (*ServiceDiscovery) GetProxyServiceInstancesCallCount

func (fake *ServiceDiscovery) GetProxyServiceInstancesCallCount() int

func (*ServiceDiscovery) GetProxyServiceInstancesReturns

func (fake *ServiceDiscovery) GetProxyServiceInstancesReturns(result1 []*model.ServiceInstance, result2 error)

func (*ServiceDiscovery) GetProxyServiceInstancesReturnsOnCall

func (fake *ServiceDiscovery) GetProxyServiceInstancesReturnsOnCall(i int, result1 []*model.ServiceInstance, result2 error)

func (*ServiceDiscovery) GetProxyWorkloadLabels

func (fake *ServiceDiscovery) GetProxyWorkloadLabels(arg1 *model.Proxy) (model.LabelsCollection, error)

func (*ServiceDiscovery) GetProxyWorkloadLabelsArgsForCall

func (fake *ServiceDiscovery) GetProxyWorkloadLabelsArgsForCall(i int) *model.Proxy

func (*ServiceDiscovery) GetProxyWorkloadLabelsCallCount

func (fake *ServiceDiscovery) GetProxyWorkloadLabelsCallCount() int

func (*ServiceDiscovery) GetProxyWorkloadLabelsReturns

func (fake *ServiceDiscovery) GetProxyWorkloadLabelsReturns(result1 model.LabelsCollection, result2 error)

func (*ServiceDiscovery) GetProxyWorkloadLabelsReturnsOnCall

func (fake *ServiceDiscovery) GetProxyWorkloadLabelsReturnsOnCall(i int, result1 model.LabelsCollection, result2 error)

func (*ServiceDiscovery) GetService

func (fake *ServiceDiscovery) GetService(hostname model.Hostname) (*model.Service, error)

func (*ServiceDiscovery) GetServiceArgsForCall

func (fake *ServiceDiscovery) GetServiceArgsForCall(i int) model.Hostname

func (*ServiceDiscovery) GetServiceCallCount

func (fake *ServiceDiscovery) GetServiceCallCount() int

func (*ServiceDiscovery) GetServiceReturns

func (fake *ServiceDiscovery) GetServiceReturns(result1 *model.Service, result2 error)

func (*ServiceDiscovery) GetServiceReturnsOnCall

func (fake *ServiceDiscovery) GetServiceReturnsOnCall(i int, result1 *model.Service, result2 error)

func (*ServiceDiscovery) InstancesByPort

func (fake *ServiceDiscovery) InstancesByPort(hostname model.Hostname, servicePort int, labels model.LabelsCollection) ([]*model.ServiceInstance, error)

func (*ServiceDiscovery) InstancesByPortArgsForCall

func (fake *ServiceDiscovery) InstancesByPortArgsForCall(i int) (model.Hostname, int, model.LabelsCollection)

func (*ServiceDiscovery) InstancesByPortCallCount

func (fake *ServiceDiscovery) InstancesByPortCallCount() int

func (*ServiceDiscovery) InstancesByPortReturns

func (fake *ServiceDiscovery) InstancesByPortReturns(result1 []*model.ServiceInstance, result2 error)

func (*ServiceDiscovery) InstancesByPortReturnsOnCall

func (fake *ServiceDiscovery) InstancesByPortReturnsOnCall(i int, result1 []*model.ServiceInstance, result2 error)

func (*ServiceDiscovery) Invocations

func (fake *ServiceDiscovery) Invocations() map[string][][]interface{}

func (*ServiceDiscovery) ManagementPorts

func (fake *ServiceDiscovery) ManagementPorts(addr string) model.PortList

func (*ServiceDiscovery) ManagementPortsArgsForCall

func (fake *ServiceDiscovery) ManagementPortsArgsForCall(i int) string

func (*ServiceDiscovery) ManagementPortsCallCount

func (fake *ServiceDiscovery) ManagementPortsCallCount() int

func (*ServiceDiscovery) ManagementPortsReturns

func (fake *ServiceDiscovery) ManagementPortsReturns(result1 model.PortList)

func (*ServiceDiscovery) ManagementPortsReturnsOnCall

func (fake *ServiceDiscovery) ManagementPortsReturnsOnCall(i int, result1 model.PortList)

func (*ServiceDiscovery) Services

func (fake *ServiceDiscovery) Services() ([]*model.Service, error)

func (*ServiceDiscovery) ServicesCallCount

func (fake *ServiceDiscovery) ServicesCallCount() int

func (*ServiceDiscovery) ServicesReturns

func (fake *ServiceDiscovery) ServicesReturns(result1 []*model.Service, result2 error)

func (*ServiceDiscovery) ServicesReturnsOnCall

func (fake *ServiceDiscovery) ServicesReturnsOnCall(i int, result1 []*model.Service, result2 error)

func (*ServiceDiscovery) WorkloadHealthCheckInfo

func (fake *ServiceDiscovery) WorkloadHealthCheckInfo(addr string) model.ProbeList

func (*ServiceDiscovery) WorkloadHealthCheckInfoArgsForCall

func (fake *ServiceDiscovery) WorkloadHealthCheckInfoArgsForCall(i int) string

func (*ServiceDiscovery) WorkloadHealthCheckInfoCallCount

func (fake *ServiceDiscovery) WorkloadHealthCheckInfoCallCount() int

func (*ServiceDiscovery) WorkloadHealthCheckInfoReturns

func (fake *ServiceDiscovery) WorkloadHealthCheckInfoReturns(result1 model.ProbeList)

func (*ServiceDiscovery) WorkloadHealthCheckInfoReturnsOnCall

func (fake *ServiceDiscovery) WorkloadHealthCheckInfoReturnsOnCall(i int, result1 model.ProbeList)

Jump to

Keyboard shortcuts

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