Documentation ¶
Index ¶
- func CreateObject(cfg string) runtime.Object
- func CreateSecret(secretName string) *api.Secret
- func CreateService(name, port, endpoints string) (*api.Service, *api.Endpoints)
- func MarshalBackends(habackends ...*hatypes.Backend) string
- func MarshalBackendsWeight(habackends ...*hatypes.Backend) string
- func MarshalHost(hafront *hatypes.Host) string
- func MarshalHosts(hafronts ...*hatypes.Host) string
- func MarshalTCPServices(hatcpserviceports ...*hatypes.TCPServicePort) string
- type CacheMock
- func (c *CacheMock) GetCASecretPath(defaultNamespace, secretName string, track convtypes.TrackingTarget) (ca, crl convtypes.File, err error)
- func (c *CacheMock) GetConfigMap(configMapName string) (*api.ConfigMap, error)
- func (c *CacheMock) GetDHSecretPath(defaultNamespace, secretName string) (convtypes.File, error)
- func (c *CacheMock) GetEndpoints(service *api.Service) (*api.Endpoints, error)
- func (c *CacheMock) GetGateway(gatewayName string) (*gateway.Gateway, error)
- func (c *CacheMock) GetGatewayList() ([]*gateway.Gateway, error)
- func (c *CacheMock) GetHTTPRouteList(namespace string, match map[string]string) ([]*gateway.HTTPRoute, error)
- func (c *CacheMock) GetIngress(ingressName string) (*networking.Ingress, error)
- func (c *CacheMock) GetIngressClass(className string) (*networking.IngressClass, error)
- func (c *CacheMock) GetIngressList() ([]*networking.Ingress, error)
- func (c *CacheMock) GetPasswdSecretContent(defaultNamespace, secretName string, track convtypes.TrackingTarget) ([]byte, error)
- func (c *CacheMock) GetPod(podName string) (*api.Pod, error)
- func (c *CacheMock) GetPodNamespace() string
- func (c *CacheMock) GetService(defaultNamespace, serviceName string) (*api.Service, error)
- func (c *CacheMock) GetTLSSecretPath(defaultNamespace, secretName string, track convtypes.TrackingTarget) (convtypes.CrtFile, error)
- func (c *CacheMock) GetTerminatingPods(service *api.Service, track convtypes.TrackingTarget) ([]*api.Pod, error)
- func (c *CacheMock) NeedFullSync() bool
- func (c *CacheMock) SwapChangedObjects() *convtypes.ChangedObjects
- type SecretContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSecret ¶ added in v0.13.0
CreateSecret ...
func CreateService ¶
CreateService ...
func MarshalBackends ¶ added in v0.13.0
MarshalBackends ...
func MarshalBackendsWeight ¶ added in v0.13.0
MarshalBackendsWeight ...
func MarshalHosts ¶ added in v0.13.0
MarshalHosts ...
func MarshalTCPServices ¶ added in v0.13.0
func MarshalTCPServices(hatcpserviceports ...*hatypes.TCPServicePort) string
MarshalTCPServices ...
Types ¶
type CacheMock ¶
type CacheMock struct { Changed *convtypes.ChangedObjects IngList []*networking.Ingress IngClassList []*networking.IngressClass SvcList []*api.Service GwList []*gateway.Gateway GwClassList []*gateway.GatewayClass HTTPRouteList []*gateway.HTTPRoute EpList map[string]*api.Endpoints ConfigMapList map[string]*api.ConfigMap TermPodList map[string][]*api.Pod PodList map[string]*api.Pod SecretTLSPath map[string]string SecretCAPath map[string]string SecretCRLPath map[string]string SecretDHPath map[string]string SecretContent SecretContent // contains filtered or unexported fields }
CacheMock ...
func (*CacheMock) GetCASecretPath ¶
func (c *CacheMock) GetCASecretPath(defaultNamespace, secretName string, track convtypes.TrackingTarget) (ca, crl convtypes.File, err error)
GetCASecretPath ...
func (*CacheMock) GetConfigMap ¶ added in v0.12.1
GetConfigMap ...
func (*CacheMock) GetDHSecretPath ¶
GetDHSecretPath ...
func (*CacheMock) GetEndpoints ¶
GetEndpoints ...
func (*CacheMock) GetGateway ¶ added in v0.13.0
GetGateway ...
func (*CacheMock) GetGatewayList ¶ added in v0.13.0
GetGatewayList ...
func (*CacheMock) GetHTTPRouteList ¶ added in v0.13.0
func (c *CacheMock) GetHTTPRouteList(namespace string, match map[string]string) ([]*gateway.HTTPRoute, error)
GetHTTPRouteList ...
func (*CacheMock) GetIngress ¶ added in v0.11.1
func (c *CacheMock) GetIngress(ingressName string) (*networking.Ingress, error)
GetIngress ...
func (*CacheMock) GetIngressClass ¶ added in v0.12.1
func (c *CacheMock) GetIngressClass(className string) (*networking.IngressClass, error)
GetIngressClass ...
func (*CacheMock) GetIngressList ¶ added in v0.11.1
func (c *CacheMock) GetIngressList() ([]*networking.Ingress, error)
GetIngressList ...
func (*CacheMock) GetPasswdSecretContent ¶ added in v0.13.0
func (c *CacheMock) GetPasswdSecretContent(defaultNamespace, secretName string, track convtypes.TrackingTarget) ([]byte, error)
GetPasswdSecretContent ...
func (*CacheMock) GetPodNamespace ¶ added in v0.12.1
GetPodNamespace ...
func (*CacheMock) GetService ¶
GetService ...
func (*CacheMock) GetTLSSecretPath ¶
func (c *CacheMock) GetTLSSecretPath(defaultNamespace, secretName string, track convtypes.TrackingTarget) (convtypes.CrtFile, error)
GetTLSSecretPath ...
func (*CacheMock) GetTerminatingPods ¶
func (c *CacheMock) GetTerminatingPods(service *api.Service, track convtypes.TrackingTarget) ([]*api.Pod, error)
GetTerminatingPods ...
func (*CacheMock) NeedFullSync ¶ added in v0.11.1
NeedFullSync ...
func (*CacheMock) SwapChangedObjects ¶ added in v0.11.1
func (c *CacheMock) SwapChangedObjects() *convtypes.ChangedObjects
SwapChangedObjects ...
Click to show internal directories.
Click to hide internal directories.