Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + const AclRoot + const ConsumerRoot + const HealthPath + const PluginRoot + const RouteRoot + const ServiceRoot + const TargetPath + const UpstreamRoot + var ErrInvalidReq = errors.New("kongAdapter: invalid request") + type KongAdapterImpl struct + Client *http.Client + KongAddr string + func (impl *KongAdapterImpl) AddPlugin(req *PluginReqDto) (*PluginRespDto, error) + func (impl *KongAdapterImpl) AddUpstreamTarget(upstreamId string, req *TargetDto) (*TargetDto, error) + func (impl *KongAdapterImpl) CheckPluginEnabled(pluginName string) (bool, error) + func (impl *KongAdapterImpl) CreateAclGroup(consumerId string, customId string) error + func (impl *KongAdapterImpl) CreateConsumer(req *ConsumerReqDto) (*ConsumerRespDto, error) + func (impl *KongAdapterImpl) CreateCredential(req *CredentialReqDto) (*CredentialDto, error) + func (impl *KongAdapterImpl) CreateOrUpdatePlugin(req *PluginReqDto) (*PluginRespDto, error) + func (impl *KongAdapterImpl) CreateOrUpdatePluginById(req *PluginReqDto) (*PluginRespDto, error) + func (impl *KongAdapterImpl) CreateOrUpdateRoute(req *RouteReqDto) (*RouteRespDto, error) + func (impl *KongAdapterImpl) CreateOrUpdateService(req *ServiceReqDto) (*ServiceRespDto, error) + func (impl *KongAdapterImpl) CreateUpstream(req *UpstreamDto) (*UpstreamDto, error) + func (impl *KongAdapterImpl) DeleteConsumer(id string) error + func (impl *KongAdapterImpl) DeleteCredential(consumerId, pluginName, credentialId string) error + func (impl *KongAdapterImpl) DeletePluginIfExist(req *PluginReqDto) error + func (impl *KongAdapterImpl) DeleteRoute(id string) error + func (impl *KongAdapterImpl) DeleteService(id string) error + func (impl *KongAdapterImpl) DeleteUpstreamTarget(upstreamId, targetId string) error + func (impl *KongAdapterImpl) GatewayProviderExist() bool + func (impl *KongAdapterImpl) GetCredentialList(consumerId, pluginName string) (*CredentialListDto, error) + func (impl *KongAdapterImpl) GetPlugin(req *PluginReqDto) (*PluginRespDto, error) + func (impl *KongAdapterImpl) GetRoutes() ([]RouteRespDto, error) + func (impl *KongAdapterImpl) GetRoutesWithTag(tag string) ([]RouteRespDto, error) + func (impl *KongAdapterImpl) GetUpstreamStatus(upstreamId string) (*UpstreamStatusRespDto, error) + func (impl *KongAdapterImpl) GetVersion() (string, error) + func (impl *KongAdapterImpl) PutPlugin(req *PluginReqDto) (*PluginRespDto, error) + func (impl *KongAdapterImpl) RemovePlugin(id string) error + func (impl *KongAdapterImpl) TouchRouteOAuthMethod(id string) error + func (impl *KongAdapterImpl) UpdatePlugin(req *PluginReqDto) (*PluginRespDto, error) + func (impl *KongAdapterImpl) UpdateRoute(req *RouteReqDto) (*RouteRespDto, error)