sdk

package
v1.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 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 CACertificatesSDK

type CACertificatesSDK interface {
	CreateCaCertificate(ctx context.Context, controlPlaneID string, caCertificate sdkkonnectcomp.CACertificateInput, opts ...sdkkonnectops.Option) (*sdkkonnectops.CreateCaCertificateResponse, error)
	UpsertCaCertificate(ctx context.Context, request sdkkonnectops.UpsertCaCertificateRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.UpsertCaCertificateResponse, error)
	DeleteCaCertificate(ctx context.Context, controlPlaneID string, caCertificateID string, opts ...sdkkonnectops.Option) (*sdkkonnectops.DeleteCaCertificateResponse, error)
	ListCaCertificate(ctx context.Context, request sdkkonnectops.ListCaCertificateRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.ListCaCertificateResponse, error)
}

CACertificatesSDK is the interface for the CACertificatesSDK.

type CertificatesSDK

type CertificatesSDK interface {
	CreateCertificate(ctx context.Context, controlPlaneID string, certificate sdkkonnectcomp.CertificateInput, opts ...sdkkonnectops.Option) (*sdkkonnectops.CreateCertificateResponse, error)
	UpsertCertificate(ctx context.Context, request sdkkonnectops.UpsertCertificateRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.UpsertCertificateResponse, error)
	DeleteCertificate(ctx context.Context, controlPlaneID string, certificateID string, opts ...sdkkonnectops.Option) (*sdkkonnectops.DeleteCertificateResponse, error)
	ListCertificate(ctx context.Context, request sdkkonnectops.ListCertificateRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.ListCertificateResponse, error)
}

CertificatesSDK is the interface for the CertificatesSDK.

type ConsumerGroupSDK

ConsumerGroupSDK is the interface for the Konnect ConsumerGroups SDK.

type ConsumersSDK

type ConsumersSDK interface {
	CreateConsumer(ctx context.Context, controlPlaneID string, consumerInput sdkkonnectcomp.ConsumerInput, opts ...sdkkonnectops.Option) (*sdkkonnectops.CreateConsumerResponse, error)
	UpsertConsumer(ctx context.Context, upsertConsumerRequest sdkkonnectops.UpsertConsumerRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.UpsertConsumerResponse, error)
	DeleteConsumer(ctx context.Context, controlPlaneID string, consumerID string, opts ...sdkkonnectops.Option) (*sdkkonnectops.DeleteConsumerResponse, error)
	ListConsumer(ctx context.Context, request sdkkonnectops.ListConsumerRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.ListConsumerResponse, error)
}

ConsumersSDK is the interface for the Konnect Consumers SDK.

type ControlPlaneGroupSDK

type ControlPlaneGroupSDK interface {
	PutControlPlanesIDGroupMemberships(ctx context.Context, id string, groupMembership *sdkkonnectcomp.GroupMembership, opts ...sdkkonnectops.Option) (*sdkkonnectops.PutControlPlanesIDGroupMembershipsResponse, error)
}

ControlPlaneGroupSDK is the interface for the Konnect ControlPlaneGroupSDK SDK.

type ControlPlaneSDK

ControlPlaneSDK is the interface for the Konnect ControlPlane SDK.

type DataPlaneClientCertificatesSDK

type DataPlaneClientCertificatesSDK interface {
	CreateDataplaneCertificate(ctx context.Context, cpID string, dpReq *sdkkonnectcomp.DataPlaneClientCertificateRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.CreateDataplaneCertificateResponse, error)
	DeleteDataplaneCertificate(ctx context.Context, controlPlaneID string, certificateID string, opts ...sdkkonnectops.Option) (*sdkkonnectops.DeleteDataplaneCertificateResponse, error)
}

DataPlaneClientCertificatesSDK is the interface for the DataPlaneClientCertificatesSDK.

type KeySetsSDK

type KeySetsSDK interface {
	CreateKeySet(ctx context.Context, controlPlaneID string, keySet sdkkonnectcomp.KeySetInput, opts ...sdkkonnectops.Option) (*sdkkonnectops.CreateKeySetResponse, error)
	UpsertKeySet(ctx context.Context, request sdkkonnectops.UpsertKeySetRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.UpsertKeySetResponse, error)
	DeleteKeySet(ctx context.Context, controlPlaneID string, keySetID string, opts ...sdkkonnectops.Option) (*sdkkonnectops.DeleteKeySetResponse, error)
	ListKeySet(ctx context.Context, request sdkkonnectops.ListKeySetRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.ListKeySetResponse, error)
}

KeySetsSDK is the interface for the KeySetsSDK.

type KeysSDK

KeysSDK is the interface for the KeysSDK.

type KongCredentialACLSDK

KongCredentialACLSDK is the interface for the Konnect KongCredentialACLSDK.

type KongCredentialAPIKeySDK

KongCredentialAPIKeySDK is the interface for the Konnect KongCredentialAPIKeySDK.

type KongCredentialBasicAuthSDK

KongCredentialBasicAuthSDK is the interface for the Konnect KongCredentialBasicAuthSDK.

type KongCredentialHMACSDK

KongCredentialHMACSDK is the interface for the Konnect KongCredentialHMACSDK.

type KongCredentialJWTSDK

KongCredentialJWTSDK is the interface for the Konnect KongCredentialJWTSDK.

type MeSDK

type MeSDK interface {
	GetOrganizationsMe(ctx context.Context, opts ...sdkkonnectops.Option) (*sdkkonnectops.GetOrganizationsMeResponse, error)
}

MeSDK is the interface for Konnect "Me" SDK to get current organization.

type PluginSDK

PluginSDK is the interface for Konnect plugin SDK.

type RoutesSDK

RoutesSDK is the interface for the Konnect Routes SDK.

type SDKFactory

type SDKFactory interface {
	NewKonnectSDK(serverURL string, token SDKToken) SDKWrapper
}

SDKFactory is a factory for creating Konnect SDKs.

func NewSDKFactory

func NewSDKFactory() SDKFactory

NewSDKFactory creates a new SDKFactory.

type SDKToken

type SDKToken string

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

type SDKWrapper

type SDKWrapper interface {
	GetControlPlaneSDK() ControlPlaneSDK
	GetControlPlaneGroupSDK() ControlPlaneGroupSDK
	GetServicesSDK() ServicesSDK
	GetRoutesSDK() RoutesSDK
	GetConsumersSDK() ConsumersSDK
	GetConsumerGroupsSDK() ConsumerGroupSDK
	GetPluginSDK() PluginSDK
	GetUpstreamsSDK() UpstreamsSDK
	GetTargetsSDK() TargetsSDK
	GetVaultSDK() VaultSDK
	GetMeSDK() MeSDK
	GetBasicAuthCredentialsSDK() KongCredentialBasicAuthSDK
	GetAPIKeyCredentialsSDK() KongCredentialAPIKeySDK
	GetACLCredentialsSDK() KongCredentialACLSDK
	GetJWTCredentialsSDK() KongCredentialJWTSDK
	GetHMACCredentialsSDK() KongCredentialHMACSDK
	GetCACertificatesSDK() CACertificatesSDK
	GetCertificatesSDK() CertificatesSDK
	GetKeysSDK() KeysSDK
	GetKeySetsSDK() KeySetsSDK
	GetSNIsSDK() SNIsSDK
	GetDataPlaneCertificatesSDK() DataPlaneClientCertificatesSDK
}

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

type ServicesSDK

type ServicesSDK interface {
	CreateService(ctx context.Context, controlPlaneID string, service sdkkonnectcomp.ServiceInput, opts ...sdkkonnectops.Option) (*sdkkonnectops.CreateServiceResponse, error)
	UpsertService(ctx context.Context, req sdkkonnectops.UpsertServiceRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.UpsertServiceResponse, error)
	DeleteService(ctx context.Context, controlPlaneID, serviceID string, opts ...sdkkonnectops.Option) (*sdkkonnectops.DeleteServiceResponse, error)
	ListService(ctx context.Context, request sdkkonnectops.ListServiceRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.ListServiceResponse, error)
}

ServicesSDK is the interface for the Konnect Service SDK.

type UpstreamsSDK

type UpstreamsSDK interface {
	CreateUpstream(ctx context.Context, controlPlaneID string, upstream sdkkonnectcomp.UpstreamInput, opts ...sdkkonnectops.Option) (*sdkkonnectops.CreateUpstreamResponse, error)
	UpsertUpstream(ctx context.Context, req sdkkonnectops.UpsertUpstreamRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.UpsertUpstreamResponse, error)
	DeleteUpstream(ctx context.Context, controlPlaneID, upstreamID string, opts ...sdkkonnectops.Option) (*sdkkonnectops.DeleteUpstreamResponse, error)
	ListUpstream(ctx context.Context, request sdkkonnectops.ListUpstreamRequest, opts ...sdkkonnectops.Option) (*sdkkonnectops.ListUpstreamResponse, error)
}

UpstreamsSDK is the interface for the Konnect Upstream SDK.

type VaultSDK

VaultSDK is the interface for Konnect Vault SDK.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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