Documentation ¶
Index ¶
- Variables
- func Compare(c *CompareCase)
- func CreateRoute(route kong.Route) (bool, error)
- func DefaultConsumer() *gokong.ConsumerRequest
- func DefaultRoute() *gokong.RouteRequest
- func DefaultService() *gokong.ServiceRequest
- func DefaultTarget() *gokong.TargetRequest
- func DefaultUpstream() *gokong.UpstreamRequest
- func GetBodys(c *CompareCase) (string, string)
- func GetKongConfigExportData() ([]byte, error)
- func GetKongDeckExportData() ([]byte, error)
- func GetResps(c *CompareCase) (*http.Response, *http.Response)
- func PurgeAll(kongCli gokong.KongAdminClient) error
- func TestMigrate(mode string) error
- type CompareCase
- type TestCase
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UpstreamAddr = "http://172.17.0.1:7024" UpstreamAddr2 = "http://172.17.0.1:7025" UpstreamAddr7026 = "http://172.17.0.1:7026" ApisixConfigYamlPath = "../../repos/apisix-docker/example/apisix_conf/config.yaml" KongAdminAddress = "http://127.0.0.1:8001" KongAdminRouteURI = "/routes" TestKongDeckMode = "kong/deck" TestKongConfigMode = "kong/config" )
Functions ¶
func DefaultConsumer ¶
func DefaultConsumer() *gokong.ConsumerRequest
func DefaultRoute ¶
func DefaultRoute() *gokong.RouteRequest
func DefaultService ¶
func DefaultService() *gokong.ServiceRequest
func DefaultTarget ¶
func DefaultTarget() *gokong.TargetRequest
func DefaultUpstream ¶
func DefaultUpstream() *gokong.UpstreamRequest
func GetBodys ¶
func GetBodys(c *CompareCase) (string, string)
func GetKongConfigExportData ¶
func GetKongDeckExportData ¶
func PurgeAll ¶
func PurgeAll(kongCli gokong.KongAdminClient) error
func TestMigrate ¶
Types ¶
type CompareCase ¶
type TestCase ¶
type TestCase struct { RouteRequest *gokong.RouteRequest ServiceRequest *gokong.ServiceRequest }
Click to show internal directories.
Click to hide internal directories.