resource

package
v1.17.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCircuitBreakerVersions

func CreateCircuitBreakerVersions(circuitBreakers []*apifault.CircuitBreaker) []*apifault.CircuitBreaker

*

  • @brief 创建熔断规则版本

func CreateCircuitBreakers

func CreateCircuitBreakers(namespace *apimodel.Namespace) []*apifault.CircuitBreaker

*

  • @brief 创建测试熔断规则

func CreateClient

func CreateClient(index uint32) *apiservice.Client

*

  • @brief 创建客户端

func CreateConfigRelease

func CreateConfigRelease(services []*apiservice.Service, circuitBreakers []*apifault.CircuitBreaker) []*apiservice.ConfigRelease

*

  • @brief 创建测试发布熔断规则

func CreateInstances

func CreateInstances(service *apiservice.Service) []*apiservice.Instance

*

  • @brief 创建测试服务实例

func CreateNamespaces

func CreateNamespaces() []*apimodel.Namespace

*

  • @brief 创建测试命名空间

func CreateRateLimits

func CreateRateLimits(services []*apiservice.Service) []*apitraffic.Rule

*

  • @brief 创建测试限流规则

func CreateServices

func CreateServices(namespace *apimodel.Namespace) []*apiservice.Service

CreateServices creates services

func CreateServicesWithTotal added in v1.16.0

func CreateServicesWithTotal(namespace *apimodel.Namespace, total int) []*apiservice.Service

func MockConfigFiles

func MockConfigFiles(group *apiconfig.ConfigFileGroup) []*apiconfig.ConfigFile

func MockConfigGroups

func MockConfigGroups(ns *apimodel.Namespace) []*apiconfig.ConfigFileGroup

func UpdateCircuitBreakers

func UpdateCircuitBreakers(circuitBreakers []*apifault.CircuitBreaker)

*

  • @brief 更新测试熔断规则

func UpdateInstances

func UpdateInstances(instances []*apiservice.Instance)

*

  • @brief 更新测试服务实例

func UpdateNamespaces

func UpdateNamespaces(namespaces []*apimodel.Namespace)

*

  • @brief 更新测试命名空间

func UpdateRateLimits

func UpdateRateLimits(rateLimits []*apitraffic.Rule)

*

  • @brief 更新测试限流规则

func UpdateServices

func UpdateServices(services []*apiservice.Service)

UpdateServices 更新测试服务

Types

This section is empty.

Jump to

Keyboard shortcuts

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