Documentation ¶
Index ¶
- type Framework
- func (f *Framework) AppNamespace() string
- func (f *Framework) ApplyResourceFromString(res string) error
- func (f *Framework) ApplyVirtualService(vs *VirtualServiceConfig) error
- func (f *Framework) ControlPlaneNamespace() string
- func (f *Framework) CreateConfigMap(name, key, value string) error
- func (f *Framework) CreateCurl(nameOpt ...string) string
- func (f *Framework) CreateCurlOutsideMesh(nameOpt ...string) string
- func (f *Framework) CreateHttpbinInMesh(nameOpt ...string)
- func (f *Framework) CreateHttpbinOutsideMesh(nameOpt ...string)
- func (f *Framework) CreateHttpbinService()
- func (f *Framework) CreateNginxInMeshTo(svc string, waitReady bool, nameOpt ...string) string
- func (f *Framework) CreateNginxOutsideMeshTo(svc string, waitReady bool, nameOpt ...string) string
- func (f *Framework) CreateNginxService()
- func (f *Framework) CreateUnavailableNginxInMeshTo(svc string, waitReady bool, nameOpt ...string) string
- func (f *Framework) CreateUnavailableNginxOutsideMeshTo(svc string, waitReady bool, nameOpt ...string) string
- func (f *Framework) CurlInPod(name string, args ...string) string
- func (f *Framework) DeletePod(namespace, name string) error
- func (f *Framework) DeletePodByLabel(namespace string, labels ...string) error
- func (f *Framework) DeleteResource(resourceType, namespace string, args ...string) error
- func (f *Framework) DeleteResourceFromString(res, name string) error
- func (f *Framework) GetDeploymentLogs(ns, name string) string
- func (f *Framework) GetDeploymentPodNames(namespace, name string) ([]string, error)
- func (f *Framework) GetHttpBinServiceFQDN(nameOpt ...string) string
- func (f *Framework) GetPodNamesByLabel(namespace string, labelSelector string) ([]string, error)
- func (f *Framework) GetServiceFQDN(name string) string
- func (f *Framework) GetSidecarRoutes(podName string) map[string]*apisix.Route
- func (f *Framework) GetSidecarStatus(podName string) *provisioner.XdsProvisionerStatus
- func (f *Framework) GetSidecarUpstreams(podName string) map[string]*apisix.Upstream
- func (f *Framework) MakeNginxAvailable(name string, waitReady bool)
- func (f *Framework) MakeNginxInsideMesh(name string, waitReady bool)
- func (f *Framework) MakeNginxOutsideMesh(name string, waitReady bool)
- func (f *Framework) MakeNginxUnavailable(name string)
- func (f *Framework) NewHTTPClientToNginx(name string) (*httpexpect.Expect, *k8s.Tunnel)
- func (f *Framework) RunKubectlCommand(args ...string) (string, error)
- func (f *Framework) ScaleNginx(name string, replicas int, waitReady bool)
- func (f *Framework) WaitForAmeshPluginConfigEvents(name string, typ string, status metav1.ConditionStatus) error
- func (f *Framework) WaitForCurlReady(nameOpt ...string)
- func (f *Framework) WaitForDeploymentPodsReady(name string, namespace ...string) error
- func (f *Framework) WaitForHttpbinReady(nameOpt ...string)
- func (f *Framework) WaitForNamespaceDeletion(namespace string)
- func (f *Framework) WaitForNginxReady(name string)
- func (f *Framework) WaitForPodsReady(name string) error
- func (f *Framework) WaitForServiceReady(ns, name string) (string, error)
- type ManifestArgs
- type NginxArgs
- type Options
- type RouteConfig
- type RouteDestinationConfig
- type RouteFaultAbortRule
- type RouteFaultDelayRule
- type RouteFaultRule
- type RouteMatchRule
- type RouteMirrorRule
- type VirtualServiceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Framework ¶
func NewDefaultFramework ¶
func NewDefaultFramework() *Framework
func NewFramework ¶
func (*Framework) AppNamespace ¶
func (*Framework) ApplyResourceFromString ¶
ApplyResourceFromString creates a Kubernetes resource from the given manifest.
func (*Framework) ApplyVirtualService ¶
func (f *Framework) ApplyVirtualService(vs *VirtualServiceConfig) error
func (*Framework) ControlPlaneNamespace ¶
func (*Framework) CreateConfigMap ¶
CreateConfigMap create a ConfigMap object which filled by the key/value specified by the caller.
func (*Framework) CreateCurl ¶
func (*Framework) CreateCurlOutsideMesh ¶
func (*Framework) CreateHttpbinInMesh ¶
func (*Framework) CreateHttpbinOutsideMesh ¶
func (*Framework) CreateHttpbinService ¶
func (f *Framework) CreateHttpbinService()
func (*Framework) CreateNginxInMeshTo ¶
func (*Framework) CreateNginxOutsideMeshTo ¶
func (*Framework) CreateNginxService ¶
func (f *Framework) CreateNginxService()
func (*Framework) CreateUnavailableNginxInMeshTo ¶
func (*Framework) CreateUnavailableNginxOutsideMeshTo ¶
func (*Framework) DeletePodByLabel ¶
DeletePod deletes a Kubernetes pod from the given namespace and labels.
func (*Framework) DeleteResource ¶
func (*Framework) DeleteResourceFromString ¶
DeleteResourceFromString deletes a Kubernetes resource from the given manifest.
func (*Framework) GetDeploymentLogs ¶
func (*Framework) GetDeploymentPodNames ¶
func (*Framework) GetHttpBinServiceFQDN ¶
GetHttpBinServiceFQDN returns the FQDN description for HttpBin service.
func (*Framework) GetPodNamesByLabel ¶
func (*Framework) GetServiceFQDN ¶
GetServiceFQDN returns the FQDN description for HttpBin service.
func (*Framework) GetSidecarRoutes ¶
func (*Framework) GetSidecarStatus ¶
func (f *Framework) GetSidecarStatus(podName string) *provisioner.XdsProvisionerStatus
func (*Framework) GetSidecarUpstreams ¶
func (*Framework) MakeNginxAvailable ¶
func (*Framework) MakeNginxInsideMesh ¶
func (*Framework) MakeNginxOutsideMesh ¶
func (*Framework) MakeNginxUnavailable ¶
func (*Framework) NewHTTPClientToNginx ¶
NewHTTPClientToNginx creates a http client which sends requests to nginx.
func (*Framework) RunKubectlCommand ¶
func (*Framework) ScaleNginx ¶
func (*Framework) WaitForAmeshPluginConfigEvents ¶
func (*Framework) WaitForCurlReady ¶
func (*Framework) WaitForDeploymentPodsReady ¶
func (*Framework) WaitForHttpbinReady ¶
func (*Framework) WaitForNamespaceDeletion ¶
func (*Framework) WaitForNginxReady ¶
func (*Framework) WaitForPodsReady ¶
type ManifestArgs ¶
type ManifestArgs struct { // Public arguments to render manifests. LocalRegistry string }
type RouteConfig ¶
type RouteConfig struct { Match *RouteMatchRule Fault *RouteFaultRule Destinations map[string]*RouteDestinationConfig Timeout float32 Mirror *RouteMirrorRule }
type RouteDestinationConfig ¶
type RouteDestinationConfig struct {
Weight int
}
type RouteFaultAbortRule ¶
type RouteFaultDelayRule ¶
type RouteFaultRule ¶
type RouteFaultRule struct { Abort *RouteFaultAbortRule Delay *RouteFaultDelayRule }
type RouteMatchRule ¶
type RouteMirrorRule ¶
type VirtualServiceConfig ¶
type VirtualServiceConfig struct { Host string Destinations []string Routes []*RouteConfig }
func (*VirtualServiceConfig) GenerateYAML ¶
func (vs *VirtualServiceConfig) GenerateYAML() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.