resource

package
v1.13.5 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 3 more Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCircuitBreakerVersions

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

*

  • @brief 创建熔断规则版本

func CreateCircuitBreakers

func CreateCircuitBreakers(namespace *api.Namespace) []*api.CircuitBreaker

*

  • @brief 创建测试熔断规则

func CreateClient

func CreateClient(index uint32) *api.Client

*

  • @brief 创建客户端

func CreateConfigRelease

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

*

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

func CreateInstances

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

*

  • @brief 创建测试服务实例

func CreateNamespaces

func CreateNamespaces() []*api.Namespace

*

  • @brief 创建测试命名空间

func CreateRateLimits

func CreateRateLimits(services []*api.Service) []*api.Rule

*

  • @brief 创建测试限流规则

func CreateServices

func CreateServices(namespace *api.Namespace) []*api.Service

CreateServices creates services

func MockConfigFiles

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

func MockConfigGroups

func MockConfigGroups(ns *api.Namespace) []*api.ConfigFileGroup

func UpdateCircuitBreakers

func UpdateCircuitBreakers(circuitBreakers []*api.CircuitBreaker)

*

  • @brief 更新测试熔断规则

func UpdateInstances

func UpdateInstances(instances []*api.Instance)

*

  • @brief 更新测试服务实例

func UpdateNamespaces

func UpdateNamespaces(namespaces []*api.Namespace)

*

  • @brief 更新测试命名空间

func UpdateRateLimits

func UpdateRateLimits(rateLimits []*api.Rule)

*

  • @brief 更新测试限流规则

func UpdateServices

func UpdateServices(services []*api.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