openapi_rule

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayOpenapiRuleService

type GatewayOpenapiRuleService interface {
	Clone(context.Context) GatewayOpenapiRuleService
	CreateOrUpdateLimitRule(consumerId, packageId string, limits []exdto.LimitType) error
	CreateLimitRule(*dto.DiceArgsDto, *dto.OpenLimitRuleDto) (bool, bool, error)
	UpdateLimitRule(string, *dto.OpenLimitRuleDto) (*dto.OpenLimitRuleInfoDto, error)
	GetLimitRules(*dto.GetOpenLimitRulesDto) (common.NewPageQuery, error)
	DeleteLimitRule(string) (bool, error)
	CreateRule(dto.DiceInfo, *dto.OpenapiRule, *service.SessionHelper) error
	UpdateRule(string, *dto.OpenapiRule) (*orm.GatewayPackageRule, error)
	// use session if helper not nil
	GetPackageRules(string, *service.SessionHelper, ...dto.RuleCategory) ([]dto.OpenapiRuleInfo, error)
	GetApiRules(string, ...dto.RuleCategory) ([]dto.OpenapiRuleInfo, error)
	DeleteRule(string, *service.SessionHelper) error
	// recycle plugins
	DeleteByPackage(*orm.GatewayPackage) error
	DeleteByPackageApi(*orm.GatewayPackage, *orm.GatewayPackageApi) error
	SetPackageKongPolicies(*orm.GatewayPackage, *service.SessionHelper) error
	SetPackageApiKongPolicies(packageApi *orm.GatewayPackageApi, useKong bool, session *service.SessionHelper) error
	GetGatewayProvider(az string) (string, error)
	CreateOrUpdatePlugin(gatewayProvider string, adapter gateway_providers.GatewayAdapter, dto *dto.OpenapiRule, helper *service.SessionHelper) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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