sdk

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneratedSDK added in v2.2.0

type GeneratedSDK interface {
	GetAIGatewayAgentsSDK() sdkkonnectgo.AIGatewayAgentsSDK
	GetAIGatewayAuthStrategiesSDK() sdkkonnectgo.AIGatewayAuthStrategiesSDK
	GetAIGatewayConsumersSDK() sdkkonnectgo.AIGatewayConsumersSDK
	GetAIGatewayConsumerGroupsSDK() sdkkonnectgo.AIGatewayConsumerGroupsSDK
	GetAIGatewayDataPlaneCertificatesSDK() sdkkonnectgo.AIGatewayDataPlaneCertificatesSDK
	GetAIGatewayMCPServersSDK() sdkkonnectgo.AIGatewayMCPServersSDK
	GetAIGatewayModelsSDK() sdkkonnectgo.AIGatewayModelsSDK
	GetAIGatewayModelProvidersSDK() sdkkonnectgo.AIGatewayModelProvidersSDK
	GetAIGatewayPoliciesSDK() sdkkonnectgo.AIGatewayPoliciesSDK
	GetEventGatewayBackendClustersSDK() sdkkonnectgo.EventGatewayBackendClustersSDK
	GetEventGatewayDataPlaneCertificatesSDK() sdkkonnectgo.EventGatewayDataPlaneCertificatesSDK
	GetEventGatewayListenersSDK() sdkkonnectgo.EventGatewayListenersSDK
	GetEventGatewayListenerPoliciesSDK() sdkkonnectgo.EventGatewayListenerPoliciesSDK
	GetEventGatewaySchemaRegistriesSDK() sdkkonnectgo.EventGatewaySchemaRegistriesSDK
	GetEventGatewayVirtualClustersSDK() sdkkonnectgo.EventGatewayVirtualClustersSDK
	GetEventGatewayVirtualClusterConsumePoliciesSDK() sdkkonnectgo.EventGatewayVirtualClusterConsumePoliciesSDK
	GetEventGatewayVirtualClusterPoliciesSDK() sdkkonnectgo.EventGatewayVirtualClusterPoliciesSDK
	GetEventGatewayVirtualClusterProducePoliciesSDK() sdkkonnectgo.EventGatewayVirtualClusterProducePoliciesSDK
	GetAIGatewaysSDK() sdkkonnectgo.AIGatewaysSDK
	GetConfigStoresSDK() sdkkonnectgo.ConfigStoresSDK
	GetEventGatewaysSDK() sdkkonnectgo.EventGatewaysSDK
	GetPortalsSDK() sdkkonnectgo.PortalsSDK
	GetPortalCustomDomainsSDK() sdkkonnectgo.PortalCustomDomainsSDK
	GetPortalCustomizationSDK() sdkkonnectgo.PortalCustomizationSDK
	GetPortalEmailsSDK() sdkkonnectgo.PortalEmailsSDK
	GetPortalsIPAllowListSDK() sdkkonnectgo.PortalsIPAllowListSDK
	GetPortalAuthSettingsSDK() sdkkonnectgo.PortalAuthSettingsSDK
	GetPortalPagesSDK() sdkkonnectgo.PortalPagesSDK
	GetPortalTeamsSDK() sdkkonnectgo.PortalTeamsSDK
}

GeneratedSDK is the interface for generated SDKs.

type SDKFactory

type SDKFactory interface {
	NewKonnectSDK(server server.Server, token SDKToken) SDKWrapper
}

SDKFactory is a factory for creating Konnect SDKs.

func NewSDKFactory

func NewSDKFactory(opts ...SDKFactoryOpt) SDKFactory

NewSDKFactory creates a new SDKFactory.

type SDKFactoryOpt added in v2.2.0

type SDKFactoryOpt func(*sdkFactory)

SDKFactoryOpt is a functional option for configuring the SDKFactory.

func WithHTTPClient added in v2.2.0

func WithHTTPClient(client *http.Client) SDKFactoryOpt

WithHTTPClient allows to set a custom HTTP client for the SDK, which can be useful for testing or customizing timeouts.

type SDKToken

type SDKToken string

SDKToken is a token used to authenticate with the Konnect SDK.

type SDKWrapper

type SDKWrapper interface {
	GetControlPlaneSDK() sdkkonnectgo.ControlPlanesSDK
	GetControlPlaneGroupSDK() sdkkonnectgo.ControlPlaneGroupsSDK
	GetServicesSDK() sdkkonnectgo.ServicesSDK
	GetRoutesSDK() sdkkonnectgo.RoutesSDK
	GetConsumersSDK() sdkkonnectgo.ConsumersSDK
	GetConsumerGroupsSDK() sdkkonnectgo.ConsumerGroupsSDK
	GetPluginSDK() sdkkonnectgo.PluginsSDK
	GetUpstreamsSDK() sdkkonnectgo.UpstreamsSDK
	GetTargetsSDK() sdkkonnectgo.TargetsSDK
	GetVaultSDK() sdkkonnectgo.VaultsSDK
	GetMeSDK() sdkkonnectgo.MeSDK
	GetBasicAuthCredentialsSDK() sdkkonnectgo.BasicAuthCredentialsSDK
	GetAPIKeyCredentialsSDK() sdkkonnectgo.APIKeysSDK
	GetACLCredentialsSDK() sdkkonnectgo.ACLsSDK
	GetJWTCredentialsSDK() sdkkonnectgo.JWTsSDK
	GetHMACCredentialsSDK() sdkkonnectgo.HMACAuthCredentialsSDK
	GetCACertificatesSDK() sdkkonnectgo.CACertificatesSDK
	GetCertificatesSDK() sdkkonnectgo.CertificatesSDK
	GetKeysSDK() sdkkonnectgo.KeysSDK
	GetKeySetsSDK() sdkkonnectgo.KeySetsSDK
	GetSNIsSDK() sdkkonnectgo.SNIsSDK
	GetDataPlaneCertificatesSDK() sdkkonnectgo.DPCertificatesSDK
	GetCloudGatewaysSDK() sdkkonnectgo.CloudGatewaysSDK
	GetMCPServersSDK() *sdkkonnectgo.MCPServers

	GeneratedSDK

	// GetServerURL returns the server URL for recording metrics.
	GetServerURL() string
	GetServer() server.Server
}

SDKWrapper is a wrapper of Konnect SDK to allow using mock SDKs in tests.

Jump to

Keyboard shortcuts

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