helpers

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvTrue is the string value "true" used for environment variable checks
	EnvTrue = "true"
)

Variables

View Source
var SDKAPIFactoryKey = Key{}

A Key used to store the SDKFactory in a Context

Functions

func ApplicationSummary added in v0.1.6

func ApplicationSummary(app kkComponents.Application) (id string, name string)

ApplicationSummary represents the common fields needed from an application union

func GetAllAppAuthStrategies added in v0.0.14

func GetAllAppAuthStrategies(ctx context.Context, kkClient AppAuthStrategiesAPI) ([]any, error)

GetAllAppAuthStrategies fetches all app auth strategies with pagination

func GetAllGatewayConsumerGroupConsumers added in v0.4.0

func GetAllGatewayConsumerGroupConsumers(
	ctx context.Context,
	requestPageSize int64,
	cpID string,
	groupID string,
	kkClient *kk.SDK,
) ([]kkComps.Consumer, error)

func GetAllGatewayConsumerGroupPlugins added in v0.4.0

func GetAllGatewayConsumerGroupPlugins(
	ctx context.Context,
	requestPageSize int64,
	cpID string,
	groupID string,
	kkClient *kk.SDK,
) ([]kkComps.Plugin, error)

func GetAllGatewayConsumerGroups added in v0.4.0

func GetAllGatewayConsumerGroups(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK,
) ([]kkComps.ConsumerGroup, error)

func GetAllGatewayConsumerPlugins added in v0.4.0

func GetAllGatewayConsumerPlugins(
	ctx context.Context,
	requestPageSize int64,
	cpID string,
	consumerID string,
	kkClient *kk.SDK,
) ([]kkComps.Plugin, error)

func GetAllGatewayConsumers

func GetAllGatewayConsumers(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK,
) ([]kkComps.Consumer, error)

func GetAllGatewayPlugins added in v0.4.0

func GetAllGatewayPlugins(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK,
) ([]kkComps.Plugin, error)

func GetAllGatewayRoutePlugins added in v0.4.0

func GetAllGatewayRoutePlugins(
	ctx context.Context,
	requestPageSize int64,
	cpID string,
	routeID string,
	kkClient *kk.SDK,
) ([]kkComps.Plugin, error)

func GetAllGatewayRoutes

func GetAllGatewayRoutes(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK,
) ([]kkComps.Route, error)

func GetAllGatewayServicePlugins added in v0.4.0

func GetAllGatewayServicePlugins(
	ctx context.Context,
	requestPageSize int64,
	cpID string,
	serviceID string,
	kkClient *kk.SDK,
) ([]kkComps.Plugin, error)

func GetAllGatewayServices

func GetAllGatewayServices(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK,
) ([]kkComps.ServiceOutput, error)

func GetAllGatewayTargetsForUpstream added in v0.4.0

func GetAllGatewayTargetsForUpstream(
	ctx context.Context,
	requestPageSize int64,
	cpID string,
	upstreamID string,
	kkClient *kk.SDK,
) ([]kkComps.Target, error)

func GetAllGatewayUpstreams added in v0.4.0

func GetAllGatewayUpstreams(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK,
) ([]kkComps.Upstream, error)

func GetAllPortals added in v0.0.14

func GetAllPortals(ctx context.Context, requestPageSize int64, kkClient *kkSDK.SDK,
) ([]kkComps.ListPortalsResponsePortal, error)

GetAllPortals fetches all portals with pagination

func GetControlPlaneID

func GetControlPlaneID(ctx context.Context, kkClient ControlPlaneAPI, cpName string) (string, error)

func GetDocumentsForAPI added in v0.0.14

func GetDocumentsForAPI(ctx context.Context, kkClient APIDocumentAPI, apiID string) ([]any, error)

GetDocumentsForAPI fetches all document objects for a specific API

func GetImplementationsForAPI added in v0.0.14

func GetImplementationsForAPI(ctx context.Context, kkClient APIImplementationAPI, apiID string) ([]any, error)

GetImplementationsForAPI fetches all implementation objects for a specific API

func GetPublicationsForAPI added in v0.0.14

func GetPublicationsForAPI(ctx context.Context, kkClient APIPublicationAPI, apiID string) ([]any, error)

GetPublicationsForAPI fetches all publication objects for a specific API

func GetVersionsForAPI added in v0.1.0

func GetVersionsForAPI(ctx context.Context, kkClient APIVersionAPI, apiID string) ([]any, error)

GetVersionsForAPI fetches all version objects for a specific API

func HasCustomDomainForPortal added in v0.0.14

func HasCustomDomainForPortal(ctx context.Context, portalAPI PortalAPI, portalID string) bool

HasCustomDomainForPortal checks if a portal has a custom domain configured

func HasPortalAuthSettings added in v0.0.14

func HasPortalAuthSettings(ctx context.Context, portalAPI PortalAPI, portalID string) bool

HasPortalAuthSettings checks if a portal has auth settings configured

func HasPortalCustomization added in v0.0.14

func HasPortalCustomization(ctx context.Context, portalAPI PortalAPI, portalID string) bool

HasPortalCustomization checks if a portal has customization settings configured

func HasPortalSettings added in v0.0.14

func HasPortalSettings(_ context.Context, _ PortalAPI, _ string) bool

HasPortalSettings checks if the portal has settings that can be exported Returns false if the operation isn't supported

func HydratePortalAuthSettingsOIDCConfig added in v0.6.0

func HydratePortalAuthSettingsOIDCConfig(
	settings *kkComponents.PortalAuthenticationSettingsResponse,
	rawResponse *http.Response,
) error

HydratePortalAuthSettingsOIDCConfig restores oidc_config from the raw API payload when SDK unmarshalling omits it.

func Int64 added in v0.0.14

func Int64(v int64) *int64

Int64 is a helper to convert int64 to *int64

Types

type APIAPI added in v0.0.14

type APIAPI interface {
	// API operations
	ListApis(ctx context.Context, request kkOps.ListApisRequest,
		opts ...kkOps.Option) (*kkOps.ListApisResponse, error)
	FetchAPI(ctx context.Context, apiID string,
		opts ...kkOps.Option) (*kkOps.FetchAPIResponse, error)
	CreateAPI(ctx context.Context, request kkComps.CreateAPIRequest,
		opts ...kkOps.Option) (*kkOps.CreateAPIResponse, error)
	UpdateAPI(ctx context.Context, apiID string, request kkComps.UpdateAPIRequest,
		opts ...kkOps.Option) (*kkOps.UpdateAPIResponse, error)
	DeleteAPI(ctx context.Context, apiID string,
		opts ...kkOps.Option) (*kkOps.DeleteAPIResponse, error)
}

APIAPI defines the interface for operations on APIs (parent resource only)

type APIAPIImpl added in v0.1.0

type APIAPIImpl struct {
	SDK *kkSDK.SDK
}

APIAPIImpl provides an implementation of the APIFullAPI interface It implements both APIAPI and all child resource operations for backward compatibility

func (*APIAPIImpl) CreateAPI added in v0.1.0

func (a *APIAPIImpl) CreateAPI(ctx context.Context, request kkComps.CreateAPIRequest,
	opts ...kkOps.Option,
) (*kkOps.CreateAPIResponse, error)

CreateAPI implements the APIAPI interface

func (*APIAPIImpl) CreateAPIDocument added in v0.1.0

func (a *APIAPIImpl) CreateAPIDocument(ctx context.Context, apiID string, request kkComps.CreateAPIDocumentRequest,
	opts ...kkOps.Option,
) (*kkOps.CreateAPIDocumentResponse, error)

CreateAPIDocument implements the APIAPI interface

func (*APIAPIImpl) CreateAPIVersion added in v0.1.0

func (a *APIAPIImpl) CreateAPIVersion(ctx context.Context, apiID string, request kkComps.CreateAPIVersionRequest,
	opts ...kkOps.Option,
) (*kkOps.CreateAPIVersionResponse, error)

CreateAPIVersion implements the APIAPI interface

func (*APIAPIImpl) DeleteAPI added in v0.1.0

func (a *APIAPIImpl) DeleteAPI(ctx context.Context, apiID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteAPIResponse, error)

DeleteAPI implements the APIAPI interface

func (*APIAPIImpl) DeleteAPIDocument added in v0.1.0

func (a *APIAPIImpl) DeleteAPIDocument(ctx context.Context, apiID string, documentID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteAPIDocumentResponse, error)

DeleteAPIDocument implements the APIAPI interface

func (*APIAPIImpl) DeleteAPIVersion added in v0.1.0

func (a *APIAPIImpl) DeleteAPIVersion(ctx context.Context, request kkOps.DeleteAPIVersionRequest,
	opts ...kkOps.Option,
) (*kkOps.DeleteAPIVersionResponse, error)

DeleteAPIVersion implements the APIAPI interface

func (*APIAPIImpl) DeletePublication added in v0.1.0

func (a *APIAPIImpl) DeletePublication(ctx context.Context, apiID string, portalID string,
	opts ...kkOps.Option,
) (*kkOps.DeletePublicationResponse, error)

DeletePublication implements the APIAPI interface

func (*APIAPIImpl) FetchAPI added in v0.1.0

func (a *APIAPIImpl) FetchAPI(ctx context.Context, apiID string,
	opts ...kkOps.Option,
) (*kkOps.FetchAPIResponse, error)

FetchAPI implements the APIAPI interface

func (*APIAPIImpl) FetchAPIDocument added in v0.1.0

func (a *APIAPIImpl) FetchAPIDocument(ctx context.Context, apiID string, documentID string,
	opts ...kkOps.Option,
) (*kkOps.FetchAPIDocumentResponse, error)

FetchAPIDocument implements the APIAPI interface

func (*APIAPIImpl) ListAPIDocuments added in v0.1.0

func (a *APIAPIImpl) ListAPIDocuments(ctx context.Context, request kkOps.ListAPIDocumentsRequest,
	opts ...kkOps.Option,
) (*kkOps.ListAPIDocumentsResponse, error)

ListAPIDocuments implements the APIAPI interface

func (*APIAPIImpl) ListAPIImplementations added in v0.1.0

func (a *APIAPIImpl) ListAPIImplementations(ctx context.Context, request kkOps.ListAPIImplementationsRequest,
	opts ...kkOps.Option,
) (*kkOps.ListAPIImplementationsResponse, error)

ListAPIImplementations implements the APIAPI interface Note: Implementation management is not yet available in the SDK

func (*APIAPIImpl) ListAPIPublications added in v0.1.0

func (a *APIAPIImpl) ListAPIPublications(ctx context.Context, request kkOps.ListAPIPublicationsRequest,
	opts ...kkOps.Option,
) (*kkOps.ListAPIPublicationsResponse, error)

ListAPIPublications implements the APIAPI interface

func (*APIAPIImpl) ListAPIVersions added in v0.1.0

func (a *APIAPIImpl) ListAPIVersions(ctx context.Context, request kkOps.ListAPIVersionsRequest,
	opts ...kkOps.Option,
) (*kkOps.ListAPIVersionsResponse, error)

ListAPIVersions implements the APIAPI interface

func (*APIAPIImpl) ListApis added in v0.1.0

func (a *APIAPIImpl) ListApis(ctx context.Context, request kkOps.ListApisRequest,
	opts ...kkOps.Option,
) (*kkOps.ListApisResponse, error)

ListApis implements the APIAPI interface

func (*APIAPIImpl) PublishAPIToPortal added in v0.1.0

func (a *APIAPIImpl) PublishAPIToPortal(ctx context.Context, request kkOps.PublishAPIToPortalRequest,
	opts ...kkOps.Option,
) (*kkOps.PublishAPIToPortalResponse, error)

PublishAPIToPortal implements the APIAPI interface

func (*APIAPIImpl) UpdateAPI added in v0.1.0

func (a *APIAPIImpl) UpdateAPI(ctx context.Context, apiID string, request kkComps.UpdateAPIRequest,
	opts ...kkOps.Option,
) (*kkOps.UpdateAPIResponse, error)

UpdateAPI implements the APIAPI interface

func (*APIAPIImpl) UpdateAPIDocument added in v0.1.0

func (a *APIAPIImpl) UpdateAPIDocument(
	ctx context.Context, apiID string, documentID string, request kkComps.APIDocument,
	opts ...kkOps.Option,
) (*kkOps.UpdateAPIDocumentResponse, error)

UpdateAPIDocument implements the APIAPI interface

func (*APIAPIImpl) UpdateAPIVersion added in v0.1.0

func (a *APIAPIImpl) UpdateAPIVersion(ctx context.Context, request kkOps.UpdateAPIVersionRequest,
	opts ...kkOps.Option,
) (*kkOps.UpdateAPIVersionResponse, error)

UpdateAPIVersion implements the APIAPI interface

type APIDocumentAPI added in v0.0.14

type APIDocumentAPI interface {
	// API Document operations
	CreateAPIDocument(ctx context.Context, apiID string, request kkComponents.CreateAPIDocumentRequest,
		opts ...kkOps.Option) (*kkOps.CreateAPIDocumentResponse, error)
	UpdateAPIDocument(ctx context.Context, apiID string, documentID string, request kkComponents.APIDocument,
		opts ...kkOps.Option) (*kkOps.UpdateAPIDocumentResponse, error)
	DeleteAPIDocument(ctx context.Context, apiID string, documentID string,
		opts ...kkOps.Option) (*kkOps.DeleteAPIDocumentResponse, error)
	ListAPIDocuments(ctx context.Context, apiID string, filter *kkComponents.APIDocumentFilterParameters,
		opts ...kkOps.Option) (*kkOps.ListAPIDocumentsResponse, error)
	FetchAPIDocument(ctx context.Context, apiID string, documentID string,
		opts ...kkOps.Option) (*kkOps.FetchAPIDocumentResponse, error)
}

APIDocumentAPI defines the interface for operations on API Documents

type APIDocumentAPIImpl added in v0.1.0

type APIDocumentAPIImpl struct {
	SDK *kkSDK.SDK
}

APIDocumentAPIImpl provides an implementation of the APIDocumentAPI interface

func (*APIDocumentAPIImpl) CreateAPIDocument added in v0.1.0

CreateAPIDocument implements the APIDocumentAPI interface

func (*APIDocumentAPIImpl) DeleteAPIDocument added in v0.1.0

func (a *APIDocumentAPIImpl) DeleteAPIDocument(ctx context.Context, apiID string, documentID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteAPIDocumentResponse, error)

DeleteAPIDocument implements the APIDocumentAPI interface

func (*APIDocumentAPIImpl) FetchAPIDocument added in v0.1.0

func (a *APIDocumentAPIImpl) FetchAPIDocument(ctx context.Context, apiID string, documentID string,
	opts ...kkOps.Option,
) (*kkOps.FetchAPIDocumentResponse, error)

FetchAPIDocument implements the APIDocumentAPI interface

func (*APIDocumentAPIImpl) ListAPIDocuments added in v0.1.0

ListAPIDocuments implements the APIDocumentAPI interface

func (*APIDocumentAPIImpl) UpdateAPIDocument added in v0.1.0

func (a *APIDocumentAPIImpl) UpdateAPIDocument(
	ctx context.Context, apiID string, documentID string, request kkComponents.APIDocument,
	opts ...kkOps.Option,
) (*kkOps.UpdateAPIDocumentResponse, error)

UpdateAPIDocument implements the APIDocumentAPI interface

type APIFullAPI added in v0.1.0

type APIFullAPI interface {
	APIAPI

	// API Version operations
	CreateAPIVersion(ctx context.Context, apiID string, request kkComps.CreateAPIVersionRequest,
		opts ...kkOps.Option) (*kkOps.CreateAPIVersionResponse, error)
	ListAPIVersions(ctx context.Context, request kkOps.ListAPIVersionsRequest,
		opts ...kkOps.Option) (*kkOps.ListAPIVersionsResponse, error)
	UpdateAPIVersion(ctx context.Context, request kkOps.UpdateAPIVersionRequest,
		opts ...kkOps.Option) (*kkOps.UpdateAPIVersionResponse, error)
	DeleteAPIVersion(ctx context.Context, request kkOps.DeleteAPIVersionRequest,
		opts ...kkOps.Option) (*kkOps.DeleteAPIVersionResponse, error)

	// API Publication operations
	PublishAPIToPortal(ctx context.Context, request kkOps.PublishAPIToPortalRequest,
		opts ...kkOps.Option) (*kkOps.PublishAPIToPortalResponse, error)
	DeletePublication(ctx context.Context, apiID string, portalID string,
		opts ...kkOps.Option) (*kkOps.DeletePublicationResponse, error)
	ListAPIPublications(ctx context.Context, request kkOps.ListAPIPublicationsRequest,
		opts ...kkOps.Option) (*kkOps.ListAPIPublicationsResponse, error)

	// API Implementation operations
	// Note: SDK does not support create/update operations for implementations
	ListAPIImplementations(ctx context.Context, request kkOps.ListAPIImplementationsRequest,
		opts ...kkOps.Option) (*kkOps.ListAPIImplementationsResponse, error)

	// API Document operations
	CreateAPIDocument(ctx context.Context, apiID string, request kkComps.CreateAPIDocumentRequest,
		opts ...kkOps.Option) (*kkOps.CreateAPIDocumentResponse, error)
	UpdateAPIDocument(ctx context.Context, apiID string, documentID string, request kkComps.APIDocument,
		opts ...kkOps.Option) (*kkOps.UpdateAPIDocumentResponse, error)
	DeleteAPIDocument(ctx context.Context, apiID string, documentID string,
		opts ...kkOps.Option) (*kkOps.DeleteAPIDocumentResponse, error)
	ListAPIDocuments(ctx context.Context, request kkOps.ListAPIDocumentsRequest,
		opts ...kkOps.Option) (*kkOps.ListAPIDocumentsResponse, error)
	FetchAPIDocument(ctx context.Context, apiID string, documentID string,
		opts ...kkOps.Option) (*kkOps.FetchAPIDocumentResponse, error)
}

APIFullAPI defines the complete interface including child resources This is a temporary interface to maintain backward compatibility TODO: Remove this interface once all code is updated to use specific interfaces

type APIImplementationAPI added in v0.0.14

type APIImplementationAPI interface {
	// API Implementation operations
	ListAPIImplementations(ctx context.Context, request kkOps.ListAPIImplementationsRequest,
		opts ...kkOps.Option) (*kkOps.ListAPIImplementationsResponse, error)
	CreateAPIImplementation(ctx context.Context, apiID string, apiImplementation kkComponents.APIImplementation,
		opts ...kkOps.Option) (*kkOps.CreateAPIImplementationResponse, error)
	DeleteAPIImplementation(ctx context.Context, apiID string, implementationID string,
		opts ...kkOps.Option) (*kkOps.DeleteAPIImplementationResponse, error)
}

APIImplementationAPI defines the interface for operations on API Implementations

type APIImplementationAPIImpl added in v0.1.0

type APIImplementationAPIImpl struct {
	SDK *kkSDK.SDK
}

APIImplementationAPIImpl provides an implementation of the APIImplementationAPI interface

func (*APIImplementationAPIImpl) CreateAPIImplementation added in v0.2.0

func (a *APIImplementationAPIImpl) CreateAPIImplementation(ctx context.Context,
	apiID string, apiImplementation kkComponents.APIImplementation,
	opts ...kkOps.Option,
) (*kkOps.CreateAPIImplementationResponse, error)

CreateAPIImplementation implements the APIImplementationAPI interface

func (*APIImplementationAPIImpl) DeleteAPIImplementation added in v0.2.0

func (a *APIImplementationAPIImpl) DeleteAPIImplementation(ctx context.Context,
	apiID string, implementationID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteAPIImplementationResponse, error)

DeleteAPIImplementation implements the APIImplementationAPI interface

func (*APIImplementationAPIImpl) ListAPIImplementations added in v0.1.0

ListAPIImplementations implements the APIImplementationAPI interface

type APIPublicationAPI added in v0.0.14

type APIPublicationAPI interface {
	// API Publication operations
	PublishAPIToPortal(ctx context.Context, request kkOps.PublishAPIToPortalRequest,
		opts ...kkOps.Option) (*kkOps.PublishAPIToPortalResponse, error)
	DeletePublication(ctx context.Context, apiID string, portalID string,
		opts ...kkOps.Option) (*kkOps.DeletePublicationResponse, error)
	ListAPIPublications(ctx context.Context, request kkOps.ListAPIPublicationsRequest,
		opts ...kkOps.Option) (*kkOps.ListAPIPublicationsResponse, error)
}

APIPublicationAPI defines the interface for operations on API Publications

type APIPublicationAPIImpl added in v0.1.0

type APIPublicationAPIImpl struct {
	SDK         *kkSDK.SDK
	BaseURL     string
	Token       string
	TokenSource apiutil.TokenSource
	HTTPClient  kkSDK.HTTPClient
}

APIPublicationAPIImpl provides an implementation of the APIPublicationAPI interface

func (*APIPublicationAPIImpl) DeletePublication added in v0.1.0

func (a *APIPublicationAPIImpl) DeletePublication(ctx context.Context, apiID string, portalID string,
	opts ...kkOps.Option,
) (*kkOps.DeletePublicationResponse, error)

DeletePublication implements the APIPublicationAPI interface

func (*APIPublicationAPIImpl) ListAPIPublications added in v0.1.0

ListAPIPublications implements the APIPublicationAPI interface

func (*APIPublicationAPIImpl) PublishAPIToPortal added in v0.1.0

PublishAPIToPortal implements the APIPublicationAPI interface

type APIVersionAPI added in v0.1.0

type APIVersionAPI interface {
	// API Version operations
	CreateAPIVersion(ctx context.Context, apiID string, request kkComps.CreateAPIVersionRequest,
		opts ...kkOps.Option) (*kkOps.CreateAPIVersionResponse, error)
	ListAPIVersions(ctx context.Context, request kkOps.ListAPIVersionsRequest,
		opts ...kkOps.Option) (*kkOps.ListAPIVersionsResponse, error)
	UpdateAPIVersion(ctx context.Context, request kkOps.UpdateAPIVersionRequest,
		opts ...kkOps.Option) (*kkOps.UpdateAPIVersionResponse, error)
	DeleteAPIVersion(ctx context.Context, apiID string, versionID string,
		opts ...kkOps.Option) (*kkOps.DeleteAPIVersionResponse, error)
	FetchAPIVersion(ctx context.Context, apiID string, versionID string,
		opts ...kkOps.Option) (*kkOps.FetchAPIVersionResponse, error)
}

APIVersionAPI defines the interface for operations on API Versions

type APIVersionAPIImpl added in v0.1.0

type APIVersionAPIImpl struct {
	SDK *kkSDK.SDK
}

APIVersionAPIImpl provides an implementation of the APIVersionAPI interface

func (*APIVersionAPIImpl) CreateAPIVersion added in v0.1.0

func (a *APIVersionAPIImpl) CreateAPIVersion(ctx context.Context, apiID string, request kkComps.CreateAPIVersionRequest,
	opts ...kkOps.Option,
) (*kkOps.CreateAPIVersionResponse, error)

CreateAPIVersion implements the APIVersionAPI interface

func (*APIVersionAPIImpl) DeleteAPIVersion added in v0.1.0

func (a *APIVersionAPIImpl) DeleteAPIVersion(ctx context.Context, apiID string, versionID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteAPIVersionResponse, error)

DeleteAPIVersion implements the APIVersionAPI interface

func (*APIVersionAPIImpl) FetchAPIVersion added in v0.1.4

func (a *APIVersionAPIImpl) FetchAPIVersion(ctx context.Context, apiID string, versionID string,
	opts ...kkOps.Option,
) (*kkOps.FetchAPIVersionResponse, error)

FetchAPIVersion implements the APIVersionAPI interface

func (*APIVersionAPIImpl) ListAPIVersions added in v0.1.0

ListAPIVersions implements the APIVersionAPI interface

func (*APIVersionAPIImpl) UpdateAPIVersion added in v0.1.0

UpdateAPIVersion implements the APIVersionAPI interface

type AppAuthStrategiesAPI added in v0.0.14

type AppAuthStrategiesAPI interface {
	ListAppAuthStrategies(ctx context.Context, request kkOPS.ListAppAuthStrategiesRequest,
		opts ...kkOPS.Option) (*kkOPS.ListAppAuthStrategiesResponse, error)
	GetAppAuthStrategy(ctx context.Context, id string) (*kkOPS.GetAppAuthStrategyResponse, error)
	CreateAppAuthStrategy(ctx context.Context,
		strategy kkComps.CreateAppAuthStrategyRequest) (*kkOPS.CreateAppAuthStrategyResponse, error)
	UpdateAppAuthStrategy(ctx context.Context, id string,
		strategy kkComps.UpdateAppAuthStrategyRequest) (*kkOPS.UpdateAppAuthStrategyResponse, error)
	DeleteAppAuthStrategy(ctx context.Context, id string) (*kkOPS.DeleteAppAuthStrategyResponse, error)
}

type AppAuthStrategiesAPIImpl added in v0.1.0

type AppAuthStrategiesAPIImpl struct {
	SDK *kkSDK.SDK
}

AppAuthStrategiesAPIImpl provides an implementation of the AppAuthStrategiesAPI interface

func (*AppAuthStrategiesAPIImpl) CreateAppAuthStrategy added in v0.1.0

CreateAppAuthStrategy implements the AppAuthStrategiesAPI interface

func (*AppAuthStrategiesAPIImpl) DeleteAppAuthStrategy added in v0.1.0

DeleteAppAuthStrategy implements the AppAuthStrategiesAPI interface

func (*AppAuthStrategiesAPIImpl) GetAppAuthStrategy added in v0.1.0

GetAppAuthStrategy implements the AppAuthStrategiesAPI interface

func (*AppAuthStrategiesAPIImpl) ListAppAuthStrategies added in v0.1.0

ListAppAuthStrategies implements the AppAuthStrategiesAPI interface

func (*AppAuthStrategiesAPIImpl) UpdateAppAuthStrategy added in v0.1.0

UpdateAppAuthStrategy implements the AppAuthStrategiesAPI interface

type AssetsAPI added in v0.3.5

type AssetsAPI interface {
	GetPortalAssetLogo(ctx context.Context, portalID string,
		opts ...kkOps.Option) (*kkOps.GetPortalAssetLogoResponse, error)
	GetPortalAssetLogoRaw(ctx context.Context, portalID string,
		opts ...kkOps.Option) (*kkOps.GetPortalAssetLogoRawResponse, error)
		opts ...kkOps.Option) (*kkOps.ReplacePortalAssetLogoResponse, error)

	// Favicon operations
	GetPortalAssetFavicon(ctx context.Context, portalID string,
		opts ...kkOps.Option) (*kkOps.GetPortalAssetFaviconResponse, error)
	GetPortalAssetFaviconRaw(ctx context.Context, portalID string,
		opts ...kkOps.Option) (*kkOps.GetPortalAssetFaviconRawResponse, error)
	ReplacePortalAssetFavicon(ctx context.Context, portalID string, request *kkComponents.ReplacePortalImageAsset,
		opts ...kkOps.Option) (*kkOps.ReplacePortalAssetFaviconResponse, error)
}

AssetsAPI defines the interface for operations on Portal Assets

type AssetsAPIImpl added in v0.3.5

type AssetsAPIImpl struct {
	SDK *kkSDK.SDK
}

AssetsAPIImpl provides an implementation of the AssetsAPI interface

func (*AssetsAPIImpl) GetPortalAssetFavicon added in v0.3.5

func (a *AssetsAPIImpl) GetPortalAssetFavicon(
	ctx context.Context, portalID string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalAssetFaviconResponse, error)

GetPortalAssetFavicon implements the AssetsAPI interface

func (*AssetsAPIImpl) GetPortalAssetFaviconRaw added in v0.3.5

func (a *AssetsAPIImpl) GetPortalAssetFaviconRaw(
	ctx context.Context, portalID string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalAssetFaviconRawResponse, error)

GetPortalAssetFaviconRaw implements the AssetsAPI interface

func (a *AssetsAPIImpl) GetPortalAssetLogo(
	ctx context.Context, portalID string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalAssetLogoResponse, error)

GetPortalAssetLogo implements the AssetsAPI interface

func (*AssetsAPIImpl) GetPortalAssetLogoRaw added in v0.3.5

func (a *AssetsAPIImpl) GetPortalAssetLogoRaw(
	ctx context.Context, portalID string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalAssetLogoRawResponse, error)

GetPortalAssetLogoRaw implements the AssetsAPI interface

func (*AssetsAPIImpl) ReplacePortalAssetFavicon added in v0.3.5

func (a *AssetsAPIImpl) ReplacePortalAssetFavicon(
	ctx context.Context, portalID string, request *kkComponents.ReplacePortalImageAsset,
	opts ...kkOps.Option,
) (*kkOps.ReplacePortalAssetFaviconResponse, error)

ReplacePortalAssetFavicon implements the AssetsAPI interface

func (a *AssetsAPIImpl) ReplacePortalAssetLogo(
	ctx context.Context, portalID string, request *kkComponents.ReplacePortalImageAsset,
	opts ...kkOps.Option,
) (*kkOps.ReplacePortalAssetLogoResponse, error)

ReplacePortalAssetLogo implements the AssetsAPI interface

type AuditLogDestination added in v0.10.0

type AuditLogDestination struct {
	ID                  string
	Name                string
	Endpoint            string
	LogFormat           string
	SkipSSLVerification *bool
	CreatedAt           string
	UpdatedAt           string
}

AuditLogDestination captures fields used to identify Konnect audit-log webhook destinations.

type AuditLogDestinationsAPI added in v0.10.0

type AuditLogDestinationsAPI interface {
	ListAuditLogDestinations(ctx context.Context) ([]AuditLogDestination, error)
}

AuditLogDestinationsAPI exposes organization audit-log destination lookup operations.

type AuditLogDestinationsAPIImpl added in v0.10.0

type AuditLogDestinationsAPIImpl struct {
	Token      string
	HTTPClient kkSDK.HTTPClient
}

AuditLogDestinationsAPIImpl provides raw HTTP access for endpoints not present in the SDK.

func (*AuditLogDestinationsAPIImpl) ListAuditLogDestinations added in v0.10.0

func (a *AuditLogDestinationsAPIImpl) ListAuditLogDestinations(ctx context.Context) ([]AuditLogDestination, error)

type CatalogServicesAPI added in v0.3.6

type CatalogServicesAPI interface {
	ListCatalogServices(ctx context.Context, request kkOps.ListCatalogServicesRequest,
		opts ...kkOps.Option) (*kkOps.ListCatalogServicesResponse, error)
	CreateCatalogService(ctx context.Context, request kkComps.CreateCatalogService,
		opts ...kkOps.Option) (*kkOps.CreateCatalogServiceResponse, error)
	UpdateCatalogService(ctx context.Context, id string, request kkComps.UpdateCatalogService,
		opts ...kkOps.Option) (*kkOps.UpdateCatalogServiceResponse, error)
	DeleteCatalogService(ctx context.Context, id string,
		opts ...kkOps.Option) (*kkOps.DeleteCatalogServiceResponse, error)
	FetchCatalogService(ctx context.Context, id string,
		opts ...kkOps.Option) (*kkOps.FetchCatalogServiceResponse, error)
}

CatalogServicesAPI defines the interface for catalog service operations needed by the CLI.

type CatalogServicesAPIImpl added in v0.3.6

type CatalogServicesAPIImpl struct {
	SDK *kkSDK.SDK
}

CatalogServicesAPIImpl provides the real SDK implementation.

func (*CatalogServicesAPIImpl) CreateCatalogService added in v0.3.6

func (*CatalogServicesAPIImpl) DeleteCatalogService added in v0.3.6

func (c *CatalogServicesAPIImpl) DeleteCatalogService(ctx context.Context, id string,
	opts ...kkOps.Option,
) (*kkOps.DeleteCatalogServiceResponse, error)

func (*CatalogServicesAPIImpl) FetchCatalogService added in v0.3.6

func (c *CatalogServicesAPIImpl) FetchCatalogService(ctx context.Context, id string,
	opts ...kkOps.Option,
) (*kkOps.FetchCatalogServiceResponse, error)

func (*CatalogServicesAPIImpl) ListCatalogServices added in v0.3.6

func (*CatalogServicesAPIImpl) UpdateCatalogService added in v0.3.6

type ControlPlaneAPI

type ControlPlaneAPI interface {
	ListControlPlanes(ctx context.Context, request kkOPS.ListControlPlanesRequest,
		opts ...kkOPS.Option) (*kkOPS.ListControlPlanesResponse, error)
	CreateControlPlane(ctx context.Context, request kkCOM.CreateControlPlaneRequest,
		opts ...kkOPS.Option) (*kkOPS.CreateControlPlaneResponse, error)
	GetControlPlane(ctx context.Context, id string,
		opts ...kkOPS.Option) (*kkOPS.GetControlPlaneResponse, error)
	UpdateControlPlane(ctx context.Context, id string, updateControlPlaneRequest kkCOM.UpdateControlPlaneRequest,
		opts ...kkOPS.Option) (*kkOPS.UpdateControlPlaneResponse, error)
	DeleteControlPlane(ctx context.Context, id string,
		opts ...kkOPS.Option) (*kkOPS.DeleteControlPlaneResponse, error)
}

type ControlPlaneGroupsAPI added in v0.3.0

type ControlPlaneGroupsAPI interface {
	GetControlPlanesIDGroupMemberships(
		ctx context.Context,
		request kkOPS.GetControlPlanesIDGroupMembershipsRequest,
		opts ...kkOPS.Option,
	) (*kkOPS.GetControlPlanesIDGroupMembershipsResponse, error)

	PutControlPlanesIDGroupMemberships(
		ctx context.Context,
		id string,
		groupMembership *kkCOM.GroupMembership,
		opts ...kkOPS.Option,
	) (*kkOPS.PutControlPlanesIDGroupMembershipsResponse, error)

	PostControlPlanesIDGroupMembershipsRemove(
		ctx context.Context,
		id string,
		groupMembership *kkCOM.GroupMembership,
		opts ...kkOPS.Option,
	) (*kkOPS.PostControlPlanesIDGroupMembershipsRemoveResponse, error)
}

ControlPlaneGroupsAPI defines the subset of SDK operations required for managing control plane group memberships.

type DCRProviderListPayload added in v0.8.0

type DCRProviderListPayload struct {
	Data  []any
	Total float64
}

DCRProviderListPayload contains raw DCR provider response payloads.

type DCRProvidersAPI added in v0.8.0

type DCRProvidersAPI interface {
	ListDcrProviders(ctx context.Context, request kkOPS.ListDcrProvidersRequest,
		opts ...kkOPS.Option) (*kkOPS.ListDcrProvidersResponse, error)
	ListDcrProviderPayloads(ctx context.Context, request kkOPS.ListDcrProvidersRequest) (*DCRProviderListPayload, error)
	CreateDcrProvider(ctx context.Context,
		provider kkComps.CreateDcrProviderRequest) (*kkOPS.CreateDcrProviderResponse, error)
	UpdateDcrProvider(ctx context.Context, id string,
		provider kkComps.UpdateDcrProviderRequest) (*kkOPS.UpdateDcrProviderResponse, error)
	DeleteDcrProvider(ctx context.Context, id string) (*kkOPS.DeleteDcrProviderResponse, error)
}

type DCRProvidersAPIImpl added in v0.8.0

type DCRProvidersAPIImpl struct {
	SDK         *kkSDK.SDK
	BaseURL     string
	Token       string
	TokenSource apiutil.TokenSource
	HTTPClient  kkSDK.HTTPClient
}

DCRProvidersAPIImpl provides an implementation of the DCRProvidersAPI interface

func (*DCRProvidersAPIImpl) CreateDcrProvider added in v0.8.0

func (*DCRProvidersAPIImpl) DeleteDcrProvider added in v0.8.0

func (a *DCRProvidersAPIImpl) DeleteDcrProvider(ctx context.Context,
	id string,
) (*kkOPS.DeleteDcrProviderResponse, error)

func (*DCRProvidersAPIImpl) ListDcrProviderPayloads added in v0.8.0

func (a *DCRProvidersAPIImpl) ListDcrProviderPayloads(
	ctx context.Context,
	request kkOPS.ListDcrProvidersRequest,
) (*DCRProviderListPayload, error)

func (*DCRProvidersAPIImpl) ListDcrProviders added in v0.8.0

func (*DCRProvidersAPIImpl) UpdateDcrProvider added in v0.8.0

type DashboardsAPI added in v1.0.0

type DashboardsAPI interface {
	DashboardsList(ctx context.Context, request kkOps.DashboardsListRequest,
		opts ...kkOps.Option) (*kkOps.DashboardsListResponse, error)
	DashboardsCreate(ctx context.Context, request kkComps.DashboardUpdateRequest,
		opts ...kkOps.Option) (*kkOps.DashboardsCreateResponse, error)
	DashboardsGet(ctx context.Context, dashboardID string,
		opts ...kkOps.Option) (*kkOps.DashboardsGetResponse, error)
	DashboardsUpdate(ctx context.Context, dashboardID string, request kkComps.DashboardUpdateRequest,
		opts ...kkOps.Option) (*kkOps.DashboardsUpdateResponse, error)
	DashboardsDelete(ctx context.Context, dashboardID string,
		opts ...kkOps.Option) (*kkOps.DashboardsDeleteResponse, error)
}

DashboardsAPI defines the interface for Analytics dashboard operations needed by kongctl.

type DashboardsAPIImpl added in v1.0.0

type DashboardsAPIImpl struct {
	SDK *kkSDK.SDK
}

DashboardsAPIImpl provides the real SDK implementation.

func (*DashboardsAPIImpl) DashboardsCreate added in v1.0.0

func (*DashboardsAPIImpl) DashboardsDelete added in v1.0.0

func (d *DashboardsAPIImpl) DashboardsDelete(ctx context.Context, dashboardID string,
	opts ...kkOps.Option,
) (*kkOps.DashboardsDeleteResponse, error)

func (*DashboardsAPIImpl) DashboardsGet added in v1.0.0

func (d *DashboardsAPIImpl) DashboardsGet(ctx context.Context, dashboardID string,
	opts ...kkOps.Option,
) (*kkOps.DashboardsGetResponse, error)

func (*DashboardsAPIImpl) DashboardsList added in v1.0.0

func (*DashboardsAPIImpl) DashboardsUpdate added in v1.0.0

func (d *DashboardsAPIImpl) DashboardsUpdate(
	ctx context.Context,
	dashboardID string,
	request kkComps.DashboardUpdateRequest,
	opts ...kkOps.Option,
) (*kkOps.DashboardsUpdateResponse, error)

type DataPlaneCertificateAPI added in v0.10.0

type DataPlaneCertificateAPI interface {
	ListDpClientCertificates(
		ctx context.Context,
		controlPlaneID string,
		opts ...kkOps.Option,
	) (*kkOps.ListDpClientCertificatesResponse, error)
	CreateDataplaneCertificate(
		ctx context.Context,
		controlPlaneID string,
		request *kkComps.DataPlaneClientCertificateRequest,
		opts ...kkOps.Option,
	) (*kkOps.CreateDataplaneCertificateResponse, error)
	GetDataplaneCertificate(
		ctx context.Context,
		controlPlaneID string,
		certificateID string,
		opts ...kkOps.Option,
	) (*kkOps.GetDataplaneCertificateResponse, error)
	DeleteDataplaneCertificate(
		ctx context.Context,
		controlPlaneID string,
		certificateID string,
		opts ...kkOps.Option,
	) (*kkOps.DeleteDataplaneCertificateResponse, error)
}

type DataPlaneCertificateAPIImpl added in v0.10.0

type DataPlaneCertificateAPIImpl struct {
	SDK *kkSDK.SDK
}

func (*DataPlaneCertificateAPIImpl) CreateDataplaneCertificate added in v0.10.0

func (a *DataPlaneCertificateAPIImpl) CreateDataplaneCertificate(
	ctx context.Context,
	controlPlaneID string,
	request *kkComps.DataPlaneClientCertificateRequest,
	opts ...kkOps.Option,
) (*kkOps.CreateDataplaneCertificateResponse, error)

func (*DataPlaneCertificateAPIImpl) DeleteDataplaneCertificate added in v0.10.0

func (a *DataPlaneCertificateAPIImpl) DeleteDataplaneCertificate(
	ctx context.Context,
	controlPlaneID string,
	certificateID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteDataplaneCertificateResponse, error)

func (*DataPlaneCertificateAPIImpl) GetDataplaneCertificate added in v0.10.0

func (a *DataPlaneCertificateAPIImpl) GetDataplaneCertificate(
	ctx context.Context,
	controlPlaneID string,
	certificateID string,
	opts ...kkOps.Option,
) (*kkOps.GetDataplaneCertificateResponse, error)

func (*DataPlaneCertificateAPIImpl) ListDpClientCertificates added in v0.10.0

func (a *DataPlaneCertificateAPIImpl) ListDpClientCertificates(
	ctx context.Context,
	controlPlaneID string,
	opts ...kkOps.Option,
) (*kkOps.ListDpClientCertificatesResponse, error)

type EGWControlPlaneAPI added in v0.3.7

type EGWControlPlaneAPI interface {
	// Event Gateway Control Plane operations
	ListEGWControlPlanes(ctx context.Context, request kkOps.ListEventGatewaysRequest,
		opts ...kkOps.Option) (*kkOps.ListEventGatewaysResponse, error)
	FetchEGWControlPlane(ctx context.Context, gatewayID string,
		opts ...kkOps.Option) (*kkOps.GetEventGatewayResponse, error)
	CreateEGWControlPlane(ctx context.Context, request kkComps.CreateGatewayRequest,
		opts ...kkOps.Option) (*kkOps.CreateEventGatewayResponse, error)
	UpdateEGWControlPlane(ctx context.Context, gatewayID string, request kkComps.UpdateGatewayRequest,
		opts ...kkOps.Option) (*kkOps.UpdateEventGatewayResponse, error)
	DeleteEGWControlPlane(ctx context.Context, gatewayID string,
		opts ...kkOps.Option) (*kkOps.DeleteEventGatewayResponse, error)
}

type EGWControlPlaneAPIImpl added in v0.3.7

type EGWControlPlaneAPIImpl struct {
	SDK *kkSDK.SDK
}

EGWControlPlaneAPIImpl provides an implementation of the EGWControlPlaneAPI interface. It implements all Event Gateway Control Plane operations defined by EGWControlPlaneAPI.

func (*EGWControlPlaneAPIImpl) CreateEGWControlPlane added in v0.3.7

func (*EGWControlPlaneAPIImpl) DeleteEGWControlPlane added in v0.3.7

func (a *EGWControlPlaneAPIImpl) DeleteEGWControlPlane(ctx context.Context, gatewayID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteEventGatewayResponse, error)

func (*EGWControlPlaneAPIImpl) FetchEGWControlPlane added in v0.3.7

func (a *EGWControlPlaneAPIImpl) FetchEGWControlPlane(ctx context.Context, gatewayID string,
	opts ...kkOps.Option,
) (*kkOps.GetEventGatewayResponse, error)

func (*EGWControlPlaneAPIImpl) ListEGWControlPlanes added in v0.3.7

func (*EGWControlPlaneAPIImpl) UpdateEGWControlPlane added in v0.3.7

func (a *EGWControlPlaneAPIImpl) UpdateEGWControlPlane(
	ctx context.Context,
	gatewayID string,
	request kkComps.UpdateGatewayRequest,
	opts ...kkOps.Option,
) (*kkOps.UpdateEventGatewayResponse, error)

type EventGatewayBackendClusterAPI added in v0.3.8

type EventGatewayBackendClusterAPI interface {
	// Event Gateway Backend Cluster operations
	ListEventGatewayBackendClusters(ctx context.Context, request kkOps.ListEventGatewayBackendClustersRequest,
		opts ...kkOps.Option) (*kkOps.ListEventGatewayBackendClustersResponse, error)
	FetchEventGatewayBackendCluster(ctx context.Context, gatewayID string, clusterID string,
		opts ...kkOps.Option) (*kkOps.GetEventGatewayBackendClusterResponse, error)
	CreateEventGatewayBackendCluster(ctx context.Context, gatewayID string, request kkComps.CreateBackendClusterRequest,
		opts ...kkOps.Option) (*kkOps.CreateEventGatewayBackendClusterResponse, error)
	UpdateEventGatewayBackendCluster(
		ctx context.Context,
		gatewayID string,
		clusterID string,
		request kkComps.UpdateBackendClusterRequest,
		opts ...kkOps.Option,
	) (*kkOps.UpdateEventGatewayBackendClusterResponse, error)
	DeleteEventGatewayBackendCluster(ctx context.Context, gatewayID string, clusterID string,
		opts ...kkOps.Option) (*kkOps.DeleteEventGatewayBackendClusterResponse, error)
}

type EventGatewayBackendClusterAPIImpl added in v0.3.8

type EventGatewayBackendClusterAPIImpl struct {
	SDK *kkSDK.SDK
}

EventGatewayBackendClusterAPIImpl provides an implementation of the EventGatewayBackendClusterAPI interface. It implements all Event Gateway Backend Cluster operations defined by EventGatewayBackendClusterAPI.

func (*EventGatewayBackendClusterAPIImpl) CreateEventGatewayBackendCluster added in v0.3.8

func (*EventGatewayBackendClusterAPIImpl) DeleteEventGatewayBackendCluster added in v0.3.8

func (a *EventGatewayBackendClusterAPIImpl) DeleteEventGatewayBackendCluster(
	ctx context.Context,
	gatewayID string,
	clusterID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteEventGatewayBackendClusterResponse, error)

func (*EventGatewayBackendClusterAPIImpl) FetchEventGatewayBackendCluster added in v0.3.8

func (a *EventGatewayBackendClusterAPIImpl) FetchEventGatewayBackendCluster(
	ctx context.Context,
	gatewayID string,
	clusterID string,
	opts ...kkOps.Option,
) (*kkOps.GetEventGatewayBackendClusterResponse, error)

func (*EventGatewayBackendClusterAPIImpl) ListEventGatewayBackendClusters added in v0.3.8

func (*EventGatewayBackendClusterAPIImpl) UpdateEventGatewayBackendCluster added in v0.3.8

func (a *EventGatewayBackendClusterAPIImpl) UpdateEventGatewayBackendCluster(
	ctx context.Context,
	gatewayID string,
	clusterID string,
	request kkComps.UpdateBackendClusterRequest,
	opts ...kkOps.Option,
) (*kkOps.UpdateEventGatewayBackendClusterResponse, error)

type EventGatewayClusterPolicyAPI added in v0.8.0

EventGatewayClusterPolicyAPI defines the interface for Event Gateway Virtual Cluster Cluster-level Policy operations

type EventGatewayClusterPolicyAPIImpl added in v0.8.0

type EventGatewayClusterPolicyAPIImpl struct {
	SDK *kkSDK.SDK
}

EventGatewayClusterPolicyAPIImpl provides an implementation of the EventGatewayClusterPolicyAPI interface.

func (*EventGatewayClusterPolicyAPIImpl) CreateEventGatewayVirtualClusterClusterLevelPolicy added in v0.8.0

func (*EventGatewayClusterPolicyAPIImpl) DeleteEventGatewayVirtualClusterClusterLevelPolicy added in v0.8.0

func (*EventGatewayClusterPolicyAPIImpl) GetEventGatewayVirtualClusterClusterLevelPolicy added in v0.8.0

func (*EventGatewayClusterPolicyAPIImpl) ListEventGatewayVirtualClusterClusterLevelPolicies added in v0.8.0

func (*EventGatewayClusterPolicyAPIImpl) UpdateEventGatewayVirtualClusterClusterLevelPolicy added in v0.8.0

type EventGatewayConsumePolicyAPI added in v0.8.0

EventGatewayConsumePolicyAPI defines the interface for Event Gateway Virtual Cluster Consume Policy operations.

type EventGatewayConsumePolicyAPIImpl added in v0.8.0

type EventGatewayConsumePolicyAPIImpl struct {
	SDK *kkSDK.SDK
}

EventGatewayConsumePolicyAPIImpl provides an implementation of the EventGatewayConsumePolicyAPI interface.

func (*EventGatewayConsumePolicyAPIImpl) CreateEventGatewayVirtualClusterConsumePolicy added in v0.8.0

func (*EventGatewayConsumePolicyAPIImpl) DeleteEventGatewayVirtualClusterConsumePolicy added in v0.8.0

func (*EventGatewayConsumePolicyAPIImpl) GetEventGatewayVirtualClusterConsumePolicy added in v0.8.0

func (*EventGatewayConsumePolicyAPIImpl) ListEventGatewayVirtualClusterConsumePolicies added in v0.8.0

func (*EventGatewayConsumePolicyAPIImpl) UpdateEventGatewayVirtualClusterConsumePolicy added in v0.8.0

type EventGatewayDataPlaneCertificateAPI added in v0.6.0

type EventGatewayDataPlaneCertificateAPI interface {
	// Event Gateway Data Plane Certificate operations
	ListEventGatewayDataPlaneCertificates(ctx context.Context,
		request kkOps.ListEventGatewayDataPlaneCertificatesRequest,
		opts ...kkOps.Option) (*kkOps.ListEventGatewayDataPlaneCertificatesResponse, error)
	FetchEventGatewayDataPlaneCertificate(ctx context.Context, gatewayID string, certificateID string,
		opts ...kkOps.Option) (*kkOps.GetEventGatewayDataPlaneCertificateResponse, error)
	CreateEventGatewayDataPlaneCertificate(ctx context.Context, gatewayID string,
		request kkComps.CreateEventGatewayDataPlaneCertificateRequest,
		opts ...kkOps.Option) (*kkOps.CreateEventGatewayDataPlaneCertificateResponse, error)
	UpdateEventGatewayDataPlaneCertificate(
		ctx context.Context,
		gatewayID string,
		certificateID string,
		request kkComps.UpdateEventGatewayDataPlaneCertificateRequest,
		opts ...kkOps.Option,
	) (*kkOps.UpdateEventGatewayDataPlaneCertificateResponse, error)
	DeleteEventGatewayDataPlaneCertificate(ctx context.Context, gatewayID string, certificateID string,
		opts ...kkOps.Option) (*kkOps.DeleteEventGatewayDataPlaneCertificateResponse, error)
}

type EventGatewayDataPlaneCertificateAPIImpl added in v0.6.0

type EventGatewayDataPlaneCertificateAPIImpl struct {
	SDK *kkSDK.SDK
}

EventGatewayDataPlaneCertificateAPIImpl provides an implementation of the EventGatewayDataPlaneCertificateAPI interface. It implements all Event Gateway Data Plane Certificate operations.

func (*EventGatewayDataPlaneCertificateAPIImpl) CreateEventGatewayDataPlaneCertificate added in v0.6.0

func (*EventGatewayDataPlaneCertificateAPIImpl) DeleteEventGatewayDataPlaneCertificate added in v0.6.0

func (a *EventGatewayDataPlaneCertificateAPIImpl) DeleteEventGatewayDataPlaneCertificate(
	ctx context.Context,
	gatewayID string,
	certificateID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteEventGatewayDataPlaneCertificateResponse, error)

func (*EventGatewayDataPlaneCertificateAPIImpl) FetchEventGatewayDataPlaneCertificate added in v0.6.0

func (a *EventGatewayDataPlaneCertificateAPIImpl) FetchEventGatewayDataPlaneCertificate(
	ctx context.Context,
	gatewayID string,
	certificateID string,
	opts ...kkOps.Option,
) (*kkOps.GetEventGatewayDataPlaneCertificateResponse, error)

func (*EventGatewayDataPlaneCertificateAPIImpl) ListEventGatewayDataPlaneCertificates added in v0.6.0

func (*EventGatewayDataPlaneCertificateAPIImpl) UpdateEventGatewayDataPlaneCertificate added in v0.6.0

type EventGatewayListenerAPI added in v0.5.0

type EventGatewayListenerAPI interface {
	// Event Gateway Listener operations
	ListEventGatewayListeners(ctx context.Context, request kkOps.ListEventGatewayListenersRequest,
		opts ...kkOps.Option) (*kkOps.ListEventGatewayListenersResponse, error)
	FetchEventGatewayListener(ctx context.Context, gatewayID string, listenerID string,
		opts ...kkOps.Option) (*kkOps.GetEventGatewayListenerResponse, error)
	CreateEventGatewayListener(ctx context.Context, gatewayID string, request kkComps.CreateEventGatewayListenerRequest,
		opts ...kkOps.Option) (*kkOps.CreateEventGatewayListenerResponse, error)
	UpdateEventGatewayListener(
		ctx context.Context,
		gatewayID string,
		listenerID string,
		request kkComps.UpdateEventGatewayListenerRequest,
		opts ...kkOps.Option,
	) (*kkOps.UpdateEventGatewayListenerResponse, error)
	DeleteEventGatewayListener(ctx context.Context, gatewayID string, listenerID string,
		opts ...kkOps.Option) (*kkOps.DeleteEventGatewayListenerResponse, error)
}

type EventGatewayListenerAPIImpl added in v0.5.0

type EventGatewayListenerAPIImpl struct {
	SDK *kkSDK.SDK
}

EventGatewayListenerAPIImpl provides an implementation of the EventGatewayListenerAPI interface. It implements all Event Gateway Listener operations defined by EventGatewayListenerAPI.

func (*EventGatewayListenerAPIImpl) CreateEventGatewayListener added in v0.5.0

func (*EventGatewayListenerAPIImpl) DeleteEventGatewayListener added in v0.5.0

func (a *EventGatewayListenerAPIImpl) DeleteEventGatewayListener(
	ctx context.Context,
	gatewayID string,
	listenerID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteEventGatewayListenerResponse, error)

func (*EventGatewayListenerAPIImpl) FetchEventGatewayListener added in v0.5.0

func (a *EventGatewayListenerAPIImpl) FetchEventGatewayListener(
	ctx context.Context,
	gatewayID string,
	listenerID string,
	opts ...kkOps.Option,
) (*kkOps.GetEventGatewayListenerResponse, error)

func (*EventGatewayListenerAPIImpl) ListEventGatewayListeners added in v0.5.0

func (*EventGatewayListenerAPIImpl) UpdateEventGatewayListener added in v0.5.0

func (a *EventGatewayListenerAPIImpl) UpdateEventGatewayListener(
	ctx context.Context,
	gatewayID string,
	listenerID string,
	request kkComps.UpdateEventGatewayListenerRequest,
	opts ...kkOps.Option,
) (*kkOps.UpdateEventGatewayListenerResponse, error)

type EventGatewayListenerPolicyAPI added in v0.5.0

type EventGatewayListenerPolicyAPI interface {
	// Event Gateway Listener Policy operations
	ListEventGatewayListenerPolicies(ctx context.Context,
		request kkOps.ListEventGatewayListenerPoliciesRequest,
		opts ...kkOps.Option) (*kkOps.ListEventGatewayListenerPoliciesResponse, error)
	GetEventGatewayListenerPolicy(ctx context.Context,
		request kkOps.GetEventGatewayListenerPolicyRequest,
		opts ...kkOps.Option) (*kkOps.GetEventGatewayListenerPolicyResponse, error)
	CreateEventGatewayListenerPolicy(ctx context.Context,
		request kkOps.CreateEventGatewayListenerPolicyRequest,
		opts ...kkOps.Option) (*kkOps.CreateEventGatewayListenerPolicyResponse, error)
	UpdateEventGatewayListenerPolicy(ctx context.Context,
		request kkOps.UpdateEventGatewayListenerPolicyRequest,
		opts ...kkOps.Option) (*kkOps.UpdateEventGatewayListenerPolicyResponse, error)
	DeleteEventGatewayListenerPolicy(ctx context.Context,
		request kkOps.DeleteEventGatewayListenerPolicyRequest,
		opts ...kkOps.Option) (*kkOps.DeleteEventGatewayListenerPolicyResponse, error)
}

type EventGatewayListenerPolicyAPIImpl added in v0.5.0

type EventGatewayListenerPolicyAPIImpl struct {
	SDK *kkSDK.SDK
}

EventGatewayListenerPolicyAPIImpl provides an implementation of the EventGatewayListenerPolicyAPI interface.

func (*EventGatewayListenerPolicyAPIImpl) CreateEventGatewayListenerPolicy added in v0.5.0

func (*EventGatewayListenerPolicyAPIImpl) DeleteEventGatewayListenerPolicy added in v0.5.0

func (*EventGatewayListenerPolicyAPIImpl) GetEventGatewayListenerPolicy added in v0.5.0

func (*EventGatewayListenerPolicyAPIImpl) ListEventGatewayListenerPolicies added in v0.5.0

func (*EventGatewayListenerPolicyAPIImpl) UpdateEventGatewayListenerPolicy added in v0.5.0

type EventGatewayProducePolicyAPI added in v0.8.0

EventGatewayProducePolicyAPI defines the interface for Event Gateway Virtual Cluster Produce Policy operations

type EventGatewayProducePolicyAPIImpl added in v0.8.0

type EventGatewayProducePolicyAPIImpl struct {
	SDK *kkSDK.SDK
}

EventGatewayProducePolicyAPIImpl provides an implementation of the EventGatewayProducePolicyAPI interface.

func (*EventGatewayProducePolicyAPIImpl) CreateEventGatewayVirtualClusterProducePolicy added in v0.8.0

func (*EventGatewayProducePolicyAPIImpl) DeleteEventGatewayVirtualClusterProducePolicy added in v0.8.0

func (*EventGatewayProducePolicyAPIImpl) GetEventGatewayVirtualClusterProducePolicy added in v0.8.0

func (*EventGatewayProducePolicyAPIImpl) ListEventGatewayVirtualClusterProducePolicies added in v0.8.0

func (*EventGatewayProducePolicyAPIImpl) UpdateEventGatewayVirtualClusterProducePolicy added in v0.8.0

type EventGatewaySchemaRegistryAPI added in v0.8.0

type EventGatewaySchemaRegistryAPI interface {
	ListEventGatewaySchemaRegistries(
		ctx context.Context,
		request kkOps.ListEventGatewaySchemaRegistriesRequest,
		opts ...kkOps.Option,
	) (*kkOps.ListEventGatewaySchemaRegistriesResponse, error)

	GetEventGatewaySchemaRegistry(
		ctx context.Context,
		gatewayID string,
		schemaRegistryID string,
		opts ...kkOps.Option,
	) (*kkOps.GetEventGatewaySchemaRegistryResponse, error)

	CreateEventGatewaySchemaRegistry(
		ctx context.Context,
		gatewayID string,
		request kkComps.SchemaRegistryCreate,
		opts ...kkOps.Option,
	) (*kkOps.CreateEventGatewaySchemaRegistryResponse, error)

	UpdateEventGatewaySchemaRegistry(
		ctx context.Context,
		gatewayID string,
		schemaRegistryID string,
		request kkComps.SchemaRegistryUpdate,
		opts ...kkOps.Option,
	) (*kkOps.UpdateEventGatewaySchemaRegistryResponse, error)

	DeleteEventGatewaySchemaRegistry(
		ctx context.Context,
		gatewayID string,
		schemaRegistryID string,
		opts ...kkOps.Option,
	) (*kkOps.DeleteEventGatewaySchemaRegistryResponse, error)
}

EventGatewaySchemaRegistryAPI defines operations for Event Gateway Schema Registries.

type EventGatewaySchemaRegistryAPIImpl added in v0.8.0

type EventGatewaySchemaRegistryAPIImpl struct {
	SDK *kkSDK.SDK
}

EventGatewaySchemaRegistryAPIImpl implements EventGatewaySchemaRegistryAPI using the Konnect SDK.

func (*EventGatewaySchemaRegistryAPIImpl) CreateEventGatewaySchemaRegistry added in v0.8.0

func (a *EventGatewaySchemaRegistryAPIImpl) CreateEventGatewaySchemaRegistry(
	ctx context.Context,
	gatewayID string,
	request kkComps.SchemaRegistryCreate,
	opts ...kkOps.Option,
) (*kkOps.CreateEventGatewaySchemaRegistryResponse, error)

func (*EventGatewaySchemaRegistryAPIImpl) DeleteEventGatewaySchemaRegistry added in v0.8.0

func (a *EventGatewaySchemaRegistryAPIImpl) DeleteEventGatewaySchemaRegistry(
	ctx context.Context,
	gatewayID string,
	schemaRegistryID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteEventGatewaySchemaRegistryResponse, error)

func (*EventGatewaySchemaRegistryAPIImpl) GetEventGatewaySchemaRegistry added in v0.8.0

func (a *EventGatewaySchemaRegistryAPIImpl) GetEventGatewaySchemaRegistry(
	ctx context.Context,
	gatewayID string,
	schemaRegistryID string,
	opts ...kkOps.Option,
) (*kkOps.GetEventGatewaySchemaRegistryResponse, error)

func (*EventGatewaySchemaRegistryAPIImpl) ListEventGatewaySchemaRegistries added in v0.8.0

func (*EventGatewaySchemaRegistryAPIImpl) UpdateEventGatewaySchemaRegistry added in v0.8.0

func (a *EventGatewaySchemaRegistryAPIImpl) UpdateEventGatewaySchemaRegistry(
	ctx context.Context,
	gatewayID string,
	schemaRegistryID string,
	request kkComps.SchemaRegistryUpdate,
	opts ...kkOps.Option,
) (*kkOps.UpdateEventGatewaySchemaRegistryResponse, error)

type EventGatewayStaticKeyAPI added in v0.8.0

type EventGatewayStaticKeyAPI interface {
	ListEventGatewayStaticKeys(ctx context.Context,
		request kkOps.ListEventGatewayStaticKeysRequest,
		opts ...kkOps.Option) (*kkOps.ListEventGatewayStaticKeysResponse, error)
	GetEventGatewayStaticKey(ctx context.Context,
		request kkOps.GetEventGatewayStaticKeyRequest,
		opts ...kkOps.Option) (*kkOps.GetEventGatewayStaticKeyResponse, error)
	CreateEventGatewayStaticKey(ctx context.Context,
		request kkOps.CreateEventGatewayStaticKeyRequest,
		opts ...kkOps.Option) (*kkOps.CreateEventGatewayStaticKeyResponse, error)
	DeleteEventGatewayStaticKey(ctx context.Context,
		request kkOps.DeleteEventGatewayStaticKeyRequest,
		opts ...kkOps.Option) (*kkOps.DeleteEventGatewayStaticKeyResponse, error)
}

EventGatewayStaticKeyAPI defines the interface for Event Gateway Static Key operations.

type EventGatewayStaticKeyAPIImpl added in v0.8.0

type EventGatewayStaticKeyAPIImpl struct {
	SDK *kkSDK.SDK
}

EventGatewayStaticKeyAPIImpl provides an implementation of the EventGatewayStaticKeyAPI interface.

func (*EventGatewayStaticKeyAPIImpl) CreateEventGatewayStaticKey added in v0.8.0

func (*EventGatewayStaticKeyAPIImpl) DeleteEventGatewayStaticKey added in v0.8.0

func (*EventGatewayStaticKeyAPIImpl) GetEventGatewayStaticKey added in v0.8.0

func (*EventGatewayStaticKeyAPIImpl) ListEventGatewayStaticKeys added in v0.8.0

type EventGatewayTLSTrustBundleAPI added in v0.8.0

EventGatewayTLSTrustBundleAPI defines the interface for Event Gateway TLS Trust Bundle operations.

type EventGatewayTLSTrustBundleAPIImpl added in v0.8.0

type EventGatewayTLSTrustBundleAPIImpl struct {
	SDK *kkSDK.SDK
}

EventGatewayTLSTrustBundleAPIImpl provides an implementation of the EventGatewayTLSTrustBundleAPI interface.

func (*EventGatewayTLSTrustBundleAPIImpl) CreateEventGatewayTLSTrustBundle added in v0.8.0

func (*EventGatewayTLSTrustBundleAPIImpl) DeleteEventGatewayTLSTrustBundle added in v0.8.0

func (*EventGatewayTLSTrustBundleAPIImpl) GetEventGatewayTLSTrustBundle added in v0.8.0

func (*EventGatewayTLSTrustBundleAPIImpl) ListEventGatewayTLSTrustBundles added in v0.8.0

func (*EventGatewayTLSTrustBundleAPIImpl) UpdateEventGatewayTLSTrustBundle added in v0.8.0

type EventGatewayVirtualClusterAPI added in v0.4.0

type EventGatewayVirtualClusterAPI interface {
	// Event Gateway Virtual Cluster operations
	ListEventGatewayVirtualClusters(ctx context.Context, request kkOps.ListEventGatewayVirtualClustersRequest,
		opts ...kkOps.Option) (*kkOps.ListEventGatewayVirtualClustersResponse, error)
	FetchEventGatewayVirtualCluster(ctx context.Context, gatewayID string, clusterID string,
		opts ...kkOps.Option) (*kkOps.GetEventGatewayVirtualClusterResponse, error)
	CreateEventGatewayVirtualCluster(ctx context.Context, gatewayID string, request kkComps.CreateVirtualClusterRequest,
		opts ...kkOps.Option) (*kkOps.CreateEventGatewayVirtualClusterResponse, error)
	UpdateEventGatewayVirtualCluster(
		ctx context.Context,
		gatewayID string,
		clusterID string,
		request kkComps.UpdateVirtualClusterRequest,
		opts ...kkOps.Option,
	) (*kkOps.UpdateEventGatewayVirtualClusterResponse, error)
	DeleteEventGatewayVirtualCluster(ctx context.Context, gatewayID string, clusterID string,
		opts ...kkOps.Option) (*kkOps.DeleteEventGatewayVirtualClusterResponse, error)
}

type EventGatewayVirtualClusterAPIImpl added in v0.4.0

type EventGatewayVirtualClusterAPIImpl struct {
	SDK *kkSDK.SDK
}

EventGatewayVirtualClusterAPIImpl provides an implementation of the EventGatewayVirtualClusterAPI interface. It implements all Event Gateway Virtual Cluster operations defined by EventGatewayVirtualClusterAPI.

func (*EventGatewayVirtualClusterAPIImpl) CreateEventGatewayVirtualCluster added in v0.4.0

func (*EventGatewayVirtualClusterAPIImpl) DeleteEventGatewayVirtualCluster added in v0.4.0

func (a *EventGatewayVirtualClusterAPIImpl) DeleteEventGatewayVirtualCluster(
	ctx context.Context,
	gatewayID string,
	clusterID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteEventGatewayVirtualClusterResponse, error)

func (*EventGatewayVirtualClusterAPIImpl) FetchEventGatewayVirtualCluster added in v0.4.0

func (a *EventGatewayVirtualClusterAPIImpl) FetchEventGatewayVirtualCluster(
	ctx context.Context,
	gatewayID string,
	clusterID string,
	opts ...kkOps.Option,
) (*kkOps.GetEventGatewayVirtualClusterResponse, error)

func (*EventGatewayVirtualClusterAPIImpl) ListEventGatewayVirtualClusters added in v0.4.0

func (*EventGatewayVirtualClusterAPIImpl) UpdateEventGatewayVirtualCluster added in v0.4.0

func (a *EventGatewayVirtualClusterAPIImpl) UpdateEventGatewayVirtualCluster(
	ctx context.Context,
	gatewayID string,
	clusterID string,
	request kkComps.UpdateVirtualClusterRequest,
	opts ...kkOps.Option,
) (*kkOps.UpdateEventGatewayVirtualClusterResponse, error)

type GatewayServiceAPI added in v0.2.0

type GatewayServiceAPI interface {
	ListService(ctx context.Context, request kkOps.ListServiceRequest,
		opts ...kkOps.Option) (*kkOps.ListServiceResponse, error)
}

GatewayServiceAPI defines the interface for gateway service operations needed by the CLI.

type Key

type Key struct{}

type KonnectSDK

type KonnectSDK struct {
	SDK         *kkSDK.SDK
	BaseURL     string
	Token       string
	TokenSource apiutil.TokenSource
	HTTPClient  kkSDK.HTTPClient
	// contains filtered or unexported fields
}

This is the real implementation of the SDKAPI which wraps the actual SDK implmentation

func (*KonnectSDK) GetAPIAPI added in v0.0.14

func (k *KonnectSDK) GetAPIAPI() APIFullAPI

Returns the implementation of the APIAPI interface

func (*KonnectSDK) GetAPIDocumentAPI added in v0.0.14

func (k *KonnectSDK) GetAPIDocumentAPI() APIDocumentAPI

Returns the implementation of the APIDocumentAPI interface

func (*KonnectSDK) GetAPIImplementationAPI added in v0.0.14

func (k *KonnectSDK) GetAPIImplementationAPI() APIImplementationAPI

Returns the implementation of the APIImplementationAPI interface

func (*KonnectSDK) GetAPIPublicationAPI added in v0.0.14

func (k *KonnectSDK) GetAPIPublicationAPI() APIPublicationAPI

Returns the implementation of the APIPublicationAPI interface

func (*KonnectSDK) GetAPIVersionAPI added in v0.1.0

func (k *KonnectSDK) GetAPIVersionAPI() APIVersionAPI

Returns the implementation of the APIVersionAPI interface

func (*KonnectSDK) GetAppAuthStrategiesAPI added in v0.0.14

func (k *KonnectSDK) GetAppAuthStrategiesAPI() AppAuthStrategiesAPI

Returns the implementation of the AppAuthStrategiesAPI interface

func (*KonnectSDK) GetAssetsAPI added in v0.3.5

func (k *KonnectSDK) GetAssetsAPI() AssetsAPI

Returns the implementation of the AssetsAPI interface

func (*KonnectSDK) GetAuditLogDestinationsAPI added in v0.10.0

func (k *KonnectSDK) GetAuditLogDestinationsAPI() AuditLogDestinationsAPI

GetAuditLogDestinationsAPI returns the implementation of the AuditLogDestinationsAPI interface.

func (*KonnectSDK) GetCatalogServicesAPI added in v0.3.6

func (k *KonnectSDK) GetCatalogServicesAPI() CatalogServicesAPI

Returns the implementation of the CatalogServicesAPI interface

func (*KonnectSDK) GetControlPlaneAPI

func (k *KonnectSDK) GetControlPlaneAPI() ControlPlaneAPI

Returns the real implementation of the GetControlPlaneAPI from the Konnect SDK

func (*KonnectSDK) GetControlPlaneGroupsAPI added in v0.3.0

func (k *KonnectSDK) GetControlPlaneGroupsAPI() ControlPlaneGroupsAPI

Returns the implementation of the ControlPlaneGroupsAPI interface

func (*KonnectSDK) GetDCRProvidersAPI added in v0.8.0

func (k *KonnectSDK) GetDCRProvidersAPI() DCRProvidersAPI

Returns the implementation of the DCRProvidersAPI interface

func (*KonnectSDK) GetDashboardsAPI added in v1.0.0

func (k *KonnectSDK) GetDashboardsAPI() DashboardsAPI

Returns the implementation of the DashboardsAPI interface.

func (*KonnectSDK) GetDataPlaneCertificateAPI added in v0.10.0

func (k *KonnectSDK) GetDataPlaneCertificateAPI() DataPlaneCertificateAPI

func (*KonnectSDK) GetEventGatewayBackendClusterAPI added in v0.3.8

func (k *KonnectSDK) GetEventGatewayBackendClusterAPI() EventGatewayBackendClusterAPI

Returns the implementation of the EventGatewayBackendCluster interface

func (*KonnectSDK) GetEventGatewayClusterPolicyAPI added in v0.8.0

func (k *KonnectSDK) GetEventGatewayClusterPolicyAPI() EventGatewayClusterPolicyAPI

Returns the implementation of the EventGatewayClusterPolicyAPI interface

func (*KonnectSDK) GetEventGatewayConsumePolicyAPI added in v0.8.0

func (k *KonnectSDK) GetEventGatewayConsumePolicyAPI() EventGatewayConsumePolicyAPI

Returns the implementation of the EventGatewayConsumePolicyAPI interface

func (*KonnectSDK) GetEventGatewayControlPlaneAPI added in v0.3.7

func (k *KonnectSDK) GetEventGatewayControlPlaneAPI() EGWControlPlaneAPI

Returns the implementation of the EGWControlPlaneAPI interface

func (*KonnectSDK) GetEventGatewayDataPlaneCertificateAPI added in v0.6.0

func (k *KonnectSDK) GetEventGatewayDataPlaneCertificateAPI() EventGatewayDataPlaneCertificateAPI

Returns the implementation of the EventGatewayDataPlaneCertificateAPI interface

func (*KonnectSDK) GetEventGatewayListenerAPI added in v0.5.0

func (k *KonnectSDK) GetEventGatewayListenerAPI() EventGatewayListenerAPI

Returns the implementation of the EventGatewayListener interface

func (*KonnectSDK) GetEventGatewayListenerPolicyAPI added in v0.5.0

func (k *KonnectSDK) GetEventGatewayListenerPolicyAPI() EventGatewayListenerPolicyAPI

Returns the implementation of the EventGatewayListenerPolicyAPI interface

func (*KonnectSDK) GetEventGatewayProducePolicyAPI added in v0.8.0

func (k *KonnectSDK) GetEventGatewayProducePolicyAPI() EventGatewayProducePolicyAPI

Returns the implementation of the EventGatewayProducePolicyAPI interface

func (*KonnectSDK) GetEventGatewaySchemaRegistryAPI added in v0.8.0

func (k *KonnectSDK) GetEventGatewaySchemaRegistryAPI() EventGatewaySchemaRegistryAPI

GetEventGatewaySchemaRegistryAPI returns the implementation of the EventGatewaySchemaRegistryAPI interface.

func (*KonnectSDK) GetEventGatewayStaticKeyAPI added in v0.8.0

func (k *KonnectSDK) GetEventGatewayStaticKeyAPI() EventGatewayStaticKeyAPI

GetEventGatewayStaticKeyAPI returns the implementation of the EventGatewayStaticKeyAPI interface.

func (*KonnectSDK) GetEventGatewayTLSTrustBundleAPI added in v0.8.0

func (k *KonnectSDK) GetEventGatewayTLSTrustBundleAPI() EventGatewayTLSTrustBundleAPI

GetEventGatewayTLSTrustBundleAPI returns the implementation of the EventGatewayTLSTrustBundleAPI interface.

func (*KonnectSDK) GetEventGatewayVirtualClusterAPI added in v0.4.0

func (k *KonnectSDK) GetEventGatewayVirtualClusterAPI() EventGatewayVirtualClusterAPI

Returns the implementation of the EventGatewayVirtualCluster interface

func (*KonnectSDK) GetGatewayServiceAPI added in v0.2.0

func (k *KonnectSDK) GetGatewayServiceAPI() GatewayServiceAPI

Returns the implementation of the GatewayServiceAPI interface

func (*KonnectSDK) GetMeAPI added in v0.1.0

func (k *KonnectSDK) GetMeAPI() MeAPI

Returns the implementation of the MeAPI interface

func (*KonnectSDK) GetOrganizationTeamAPI added in v0.4.0

func (k *KonnectSDK) GetOrganizationTeamAPI() OrganizationTeamAPI

func (*KonnectSDK) GetOrganizationTeamMembershipAPI added in v1.0.0

func (k *KonnectSDK) GetOrganizationTeamMembershipAPI() OrganizationTeamMembershipAPI

GetOrganizationTeamMembershipAPI returns the implementation of the OrganizationTeamMembershipAPI interface.

func (*KonnectSDK) GetOrganizationTeamRolesAPI added in v1.0.0

func (k *KonnectSDK) GetOrganizationTeamRolesAPI() OrganizationTeamRolesAPI

Returns the implementation of the OrganizationTeamRolesAPI interface.

func (*KonnectSDK) GetOrganizationUsersAPI added in v1.0.0

func (k *KonnectSDK) GetOrganizationUsersAPI() OrganizationUsersAPI

GetOrganizationUsersAPI returns the implementation of the OrganizationUsersAPI interface.

func (*KonnectSDK) GetPersonalAccessTokenAPI added in v1.1.0

func (k *KonnectSDK) GetPersonalAccessTokenAPI() PersonalAccessTokenAPI

func (*KonnectSDK) GetPortalAPI added in v0.0.14

func (k *KonnectSDK) GetPortalAPI() PortalAPI

Returns the implementation of the PortalAPI interface

func (*KonnectSDK) GetPortalApplicationAPI added in v0.1.6

func (k *KonnectSDK) GetPortalApplicationAPI() PortalApplicationAPI

Returns the implementation of the PortalApplicationAPI interface

func (*KonnectSDK) GetPortalApplicationRegistrationAPI added in v0.3.4

func (k *KonnectSDK) GetPortalApplicationRegistrationAPI() PortalApplicationRegistrationAPI

Returns the implementation of the PortalApplicationRegistrationAPI interface

func (*KonnectSDK) GetPortalAuditLogsAPI added in v0.10.0

func (k *KonnectSDK) GetPortalAuditLogsAPI() PortalAuditLogsAPI

GetPortalAuditLogsAPI returns the implementation of the PortalAuditLogsAPI interface.

func (*KonnectSDK) GetPortalAuthSettingsAPI added in v0.3.4

func (k *KonnectSDK) GetPortalAuthSettingsAPI() PortalAuthSettingsAPI

Returns the implementation of the PortalAuthSettingsAPI interface

func (*KonnectSDK) GetPortalCustomDomainAPI added in v0.1.0

func (k *KonnectSDK) GetPortalCustomDomainAPI() PortalCustomDomainAPI

Returns the implementation of the PortalCustomDomainAPI interface

func (*KonnectSDK) GetPortalCustomizationAPI added in v0.1.0

func (k *KonnectSDK) GetPortalCustomizationAPI() PortalCustomizationAPI

Returns the implementation of the PortalCustomizationAPI interface

func (*KonnectSDK) GetPortalDeveloperAPI added in v0.1.6

func (k *KonnectSDK) GetPortalDeveloperAPI() PortalDeveloperAPI

Returns the implementation of the PortalDeveloperAPI interface

func (*KonnectSDK) GetPortalEmailsAPI added in v0.3.5

func (k *KonnectSDK) GetPortalEmailsAPI() PortalEmailsAPI

GetPortalEmailsAPI returns the implementation of the PortalEmailsAPI interface.

func (*KonnectSDK) GetPortalIPAllowListAPI added in v0.10.0

func (k *KonnectSDK) GetPortalIPAllowListAPI() PortalIPAllowListAPI

Returns the implementation of the PortalIPAllowListAPI interface

func (*KonnectSDK) GetPortalIdentityProviderAPI added in v0.9.0

func (k *KonnectSDK) GetPortalIdentityProviderAPI() PortalIdentityProviderAPI

Returns the implementation of the PortalIdentityProviderAPI interface

func (*KonnectSDK) GetPortalIntegrationsAPI added in v0.10.0

func (k *KonnectSDK) GetPortalIntegrationsAPI() PortalIntegrationsAPI

Returns the implementation of the PortalIntegrationsAPI interface

func (*KonnectSDK) GetPortalPageAPI added in v0.1.0

func (k *KonnectSDK) GetPortalPageAPI() PortalPageAPI

Returns the implementation of the PortalPageAPI interface

func (*KonnectSDK) GetPortalSnippetAPI added in v0.1.0

func (k *KonnectSDK) GetPortalSnippetAPI() PortalSnippetAPI

Returns the implementation of the PortalSnippetAPI interface

func (*KonnectSDK) GetPortalTeamAPI added in v0.1.6

func (k *KonnectSDK) GetPortalTeamAPI() PortalTeamAPI

Returns the implementation of the PortalTeamAPI interface

func (*KonnectSDK) GetPortalTeamMembershipAPI added in v0.3.5

func (k *KonnectSDK) GetPortalTeamMembershipAPI() PortalTeamMembershipAPI

Returns the implementation of the PortalTeamMembershipAPI interface

func (*KonnectSDK) GetPortalTeamRolesAPI added in v0.3.4

func (k *KonnectSDK) GetPortalTeamRolesAPI() PortalTeamRolesAPI

Returns the implementation of the PortalTeamRolesAPI interface

func (*KonnectSDK) GetSystemAccountAPI added in v0.3.8

func (k *KonnectSDK) GetSystemAccountAPI() SystemAccountAPI

func (*KonnectSDK) GetSystemAccountAccessTokenAPI added in v1.1.0

func (k *KonnectSDK) GetSystemAccountAccessTokenAPI() SystemAccountAccessTokenAPI

func (*KonnectSDK) GetSystemAccountRolesAPI added in v1.0.0

func (k *KonnectSDK) GetSystemAccountRolesAPI() SystemAccountRolesAPI

func (*KonnectSDK) GetSystemAccountTeamMembershipAPI added in v1.0.0

func (k *KonnectSDK) GetSystemAccountTeamMembershipAPI() SystemAccountTeamMembershipAPI

type MeAPI added in v0.1.0

type MeAPI interface {
	GetUsersMe(ctx context.Context, opts ...kkOps.Option) (*kkOps.GetUsersMeResponse, error)
	GetOrganizationsMe(ctx context.Context, opts ...kkOps.Option) (*kkOps.GetOrganizationsMeResponse, error)
}

MeAPI interface for the Me API operations

type MockControlPlaneAPI

type MockControlPlaneAPI struct {
	mock.Mock
}

MockControlPlaneAPI is an autogenerated mock type for the ControlPlaneAPI type

func NewMockControlPlaneAPI

func NewMockControlPlaneAPI(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockControlPlaneAPI

NewMockControlPlaneAPI creates a new instance of MockControlPlaneAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockControlPlaneAPI) CreateControlPlane

CreateControlPlane provides a mock function with given fields: ctx, request, opts

func (*MockControlPlaneAPI) DeleteControlPlane

DeleteControlPlane provides a mock function with given fields: ctx, id, opts

func (*MockControlPlaneAPI) EXPECT

func (*MockControlPlaneAPI) GetControlPlane

GetControlPlane provides a mock function with given fields: ctx, id, opts

func (*MockControlPlaneAPI) ListControlPlanes

ListControlPlanes provides a mock function with given fields: ctx, request, opts

func (*MockControlPlaneAPI) UpdateControlPlane

func (_m *MockControlPlaneAPI) UpdateControlPlane(ctx context.Context, id string, updateControlPlaneRequest components.UpdateControlPlaneRequest, opts ...operations.Option) (*operations.UpdateControlPlaneResponse, error)

UpdateControlPlane provides a mock function with given fields: ctx, id, updateControlPlaneRequest, opts

type MockControlPlaneAPI_CreateControlPlane_Call

type MockControlPlaneAPI_CreateControlPlane_Call struct {
	*mock.Call
}

MockControlPlaneAPI_CreateControlPlane_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateControlPlane'

func (*MockControlPlaneAPI_CreateControlPlane_Call) Return

func (*MockControlPlaneAPI_CreateControlPlane_Call) Run

type MockControlPlaneAPI_DeleteControlPlane_Call

type MockControlPlaneAPI_DeleteControlPlane_Call struct {
	*mock.Call
}

MockControlPlaneAPI_DeleteControlPlane_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteControlPlane'

func (*MockControlPlaneAPI_DeleteControlPlane_Call) Return

func (*MockControlPlaneAPI_DeleteControlPlane_Call) Run

type MockControlPlaneAPI_Expecter

type MockControlPlaneAPI_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockControlPlaneAPI_Expecter) CreateControlPlane

func (_e *MockControlPlaneAPI_Expecter) CreateControlPlane(ctx interface{}, request interface{}, opts ...interface{}) *MockControlPlaneAPI_CreateControlPlane_Call

CreateControlPlane is a helper method to define mock.On call

  • ctx context.Context
  • request components.CreateControlPlaneRequest
  • opts ...operations.Option

func (*MockControlPlaneAPI_Expecter) DeleteControlPlane

func (_e *MockControlPlaneAPI_Expecter) DeleteControlPlane(ctx interface{}, id interface{}, opts ...interface{}) *MockControlPlaneAPI_DeleteControlPlane_Call

DeleteControlPlane is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • opts ...operations.Option

func (*MockControlPlaneAPI_Expecter) GetControlPlane

func (_e *MockControlPlaneAPI_Expecter) GetControlPlane(ctx interface{}, id interface{}, opts ...interface{}) *MockControlPlaneAPI_GetControlPlane_Call

GetControlPlane is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • opts ...operations.Option

func (*MockControlPlaneAPI_Expecter) ListControlPlanes

func (_e *MockControlPlaneAPI_Expecter) ListControlPlanes(ctx interface{}, request interface{}, opts ...interface{}) *MockControlPlaneAPI_ListControlPlanes_Call

ListControlPlanes is a helper method to define mock.On call

  • ctx context.Context
  • request operations.ListControlPlanesRequest
  • opts ...operations.Option

func (*MockControlPlaneAPI_Expecter) UpdateControlPlane

func (_e *MockControlPlaneAPI_Expecter) UpdateControlPlane(ctx interface{}, id interface{}, updateControlPlaneRequest interface{}, opts ...interface{}) *MockControlPlaneAPI_UpdateControlPlane_Call

UpdateControlPlane is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • updateControlPlaneRequest components.UpdateControlPlaneRequest
  • opts ...operations.Option

type MockControlPlaneAPI_GetControlPlane_Call

type MockControlPlaneAPI_GetControlPlane_Call struct {
	*mock.Call
}

MockControlPlaneAPI_GetControlPlane_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetControlPlane'

func (*MockControlPlaneAPI_GetControlPlane_Call) Return

func (*MockControlPlaneAPI_GetControlPlane_Call) Run

type MockControlPlaneAPI_ListControlPlanes_Call

type MockControlPlaneAPI_ListControlPlanes_Call struct {
	*mock.Call
}

MockControlPlaneAPI_ListControlPlanes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListControlPlanes'

func (*MockControlPlaneAPI_ListControlPlanes_Call) Return

func (*MockControlPlaneAPI_ListControlPlanes_Call) Run

type MockControlPlaneAPI_UpdateControlPlane_Call

type MockControlPlaneAPI_UpdateControlPlane_Call struct {
	*mock.Call
}

MockControlPlaneAPI_UpdateControlPlane_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateControlPlane'

func (*MockControlPlaneAPI_UpdateControlPlane_Call) Return

func (*MockControlPlaneAPI_UpdateControlPlane_Call) Run

type MockControlPlaneGroupsAPI added in v0.3.0

type MockControlPlaneGroupsAPI struct {
	mock.Mock
}

MockControlPlaneGroupsAPI is a testify-based mock for ControlPlaneGroupsAPI.

func (*MockControlPlaneGroupsAPI) EXPECT added in v0.3.0

func (m *MockControlPlaneGroupsAPI) EXPECT() *mock.Mock

EXPECT provides access to the mock's expectation helper.

func (*MockControlPlaneGroupsAPI) GetControlPlanesIDGroupMemberships added in v0.3.0

GetControlPlanesIDGroupMemberships mocks the corresponding API call.

func (*MockControlPlaneGroupsAPI) PostControlPlanesIDGroupMembershipsRemove added in v1.1.0

func (m *MockControlPlaneGroupsAPI) PostControlPlanesIDGroupMembershipsRemove(
	ctx context.Context,
	id string,
	groupMembership *kkComps.GroupMembership,
	opts ...kkOps.Option,
) (*kkOps.PostControlPlanesIDGroupMembershipsRemoveResponse, error)

PostControlPlanesIDGroupMembershipsRemove mocks the remove API call.

func (*MockControlPlaneGroupsAPI) PutControlPlanesIDGroupMemberships added in v0.3.0

func (m *MockControlPlaneGroupsAPI) PutControlPlanesIDGroupMemberships(
	ctx context.Context,
	id string,
	groupMembership *kkComps.GroupMembership,
	opts ...kkOps.Option,
) (*kkOps.PutControlPlanesIDGroupMembershipsResponse, error)

PutControlPlanesIDGroupMemberships mocks the upsert API call.

type MockKonnectSDK

type MockKonnectSDK struct {
	Token                              string
	T                                  *testing.T
	CPAPIFactory                       func() ControlPlaneAPI
	ControlPlaneGroupsFactory          func() ControlPlaneGroupsAPI
	PortalFactory                      func() PortalAPI
	APIFactory                         func() APIFullAPI
	CatalogServicesFactory             func() CatalogServicesAPI
	DashboardsFactory                  func() DashboardsAPI
	APIDocumentFactory                 func() APIDocumentAPI
	APIVersionFactory                  func() APIVersionAPI
	APIPublicationFactory              func() APIPublicationAPI
	APIImplementationFactory           func() APIImplementationAPI
	AppAuthStrategiesFactory           func() AppAuthStrategiesAPI
	DCRProvidersFactory                func() DCRProvidersAPI
	MeFactory                          func() MeAPI
	PersonalAccessTokenFactory         func() PersonalAccessTokenAPI
	SystemAccountAccessTokenFactory    func() SystemAccountAccessTokenAPI
	GatewayServiceFactory              func() GatewayServiceAPI
	DataPlaneCertificateFactory        func() DataPlaneCertificateAPI
	SystemAccountFactory               func() SystemAccountAPI
	SystemAccountRolesFactory          func() SystemAccountRolesAPI
	SystemAccountTeamMembershipFactory func() SystemAccountTeamMembershipAPI
	OrganizationTeamFactory            func() OrganizationTeamAPI
	OrganizationTeamRolesFactory       func() OrganizationTeamRolesAPI
	OrganizationUsersFactory           func() OrganizationUsersAPI
	OrganizationMembershipFactory      func() OrganizationTeamMembershipAPI
	// Portal child resource factories
	PortalPageFactory                    func() PortalPageAPI
	PortalAuthSettingsFactory            func() PortalAuthSettingsAPI
	PortalIPAllowListFactory             func() PortalIPAllowListAPI
	PortalIntegrationsFactory            func() PortalIntegrationsAPI
	PortalIdentityProviderFactory        func() PortalIdentityProviderAPI
	PortalCustomizationFactory           func() PortalCustomizationAPI
	PortalCustomDomainFactory            func() PortalCustomDomainAPI
	PortalSnippetFactory                 func() PortalSnippetAPI
	PortalApplicationFactory             func() PortalApplicationAPI
	PortalApplicationRegistrationFactory func() PortalApplicationRegistrationAPI
	PortalDeveloperFactory               func() PortalDeveloperAPI
	PortalTeamFactory                    func() PortalTeamAPI
	PortalTeamRolesFactory               func() PortalTeamRolesAPI
	PortalTeamMembershipFactory          func() PortalTeamMembershipAPI
	AssetsFactory                        func() AssetsAPI
	PortalEmailsFactory                  func() PortalEmailsAPI
	PortalAuditLogsFactory               func() PortalAuditLogsAPI
	AuditLogDestinationsFactory          func() AuditLogDestinationsAPI

	// Event Gateway Control Plane factory
	EventGatewayControlPlaneFactory         func() EGWControlPlaneAPI
	EventGatewayBackendClusterFactory       func() EventGatewayBackendClusterAPI
	EventGatewayVirtualClusterFactory       func() EventGatewayVirtualClusterAPI
	EventGatewayListenerFactory             func() EventGatewayListenerAPI
	EventGatewayListenerPolicyFactory       func() EventGatewayListenerPolicyAPI
	EventGatewayClusterPolicyFactory        func() EventGatewayClusterPolicyAPI
	EventGatewayProducePolicyFactory        func() EventGatewayProducePolicyAPI
	EventGatewayConsumePolicyFactory        func() EventGatewayConsumePolicyAPI
	EventGatewayDataPlaneCertificateFactory func() EventGatewayDataPlaneCertificateAPI
	EventGatewaySchemaRegistryFactory       func() EventGatewaySchemaRegistryAPI
	EventGatewayStaticKeyFactory            func() EventGatewayStaticKeyAPI
	EventGatewayTLSTrustBundleFactory       func() EventGatewayTLSTrustBundleAPI
}

This is a mock implementation of the SDKAPI interface

func (*MockKonnectSDK) GetAPIAPI added in v0.0.14

func (m *MockKonnectSDK) GetAPIAPI() APIFullAPI

Returns a mock instance of the APIAPI

func (*MockKonnectSDK) GetAPIDocumentAPI added in v0.0.14

func (m *MockKonnectSDK) GetAPIDocumentAPI() APIDocumentAPI

Returns a mock instance of the APIDocumentAPI

func (*MockKonnectSDK) GetAPIImplementationAPI added in v0.0.14

func (m *MockKonnectSDK) GetAPIImplementationAPI() APIImplementationAPI

Returns a mock instance of the APIImplementationAPI

func (*MockKonnectSDK) GetAPIPublicationAPI added in v0.0.14

func (m *MockKonnectSDK) GetAPIPublicationAPI() APIPublicationAPI

Returns a mock instance of the APIPublicationAPI

func (*MockKonnectSDK) GetAPIVersionAPI added in v0.1.0

func (m *MockKonnectSDK) GetAPIVersionAPI() APIVersionAPI

Returns a mock instance of the APIVersionAPI

func (*MockKonnectSDK) GetAppAuthStrategiesAPI added in v0.0.14

func (m *MockKonnectSDK) GetAppAuthStrategiesAPI() AppAuthStrategiesAPI

Returns a mock instance of the AppAuthStrategiesAPI

func (*MockKonnectSDK) GetAssetsAPI added in v0.3.5

func (m *MockKonnectSDK) GetAssetsAPI() AssetsAPI

Returns a mock instance of the AssetsAPI

func (*MockKonnectSDK) GetAuditLogDestinationsAPI added in v0.10.0

func (m *MockKonnectSDK) GetAuditLogDestinationsAPI() AuditLogDestinationsAPI

Returns a mock instance of the AuditLogDestinationsAPI

func (*MockKonnectSDK) GetCatalogServicesAPI added in v0.3.6

func (m *MockKonnectSDK) GetCatalogServicesAPI() CatalogServicesAPI

Returns a mock instance of the CatalogServicesAPI

func (*MockKonnectSDK) GetControlPlaneAPI

func (m *MockKonnectSDK) GetControlPlaneAPI() ControlPlaneAPI

Returns a mock instance of the ControlPlaneAPI

func (*MockKonnectSDK) GetControlPlaneGroupsAPI added in v0.3.0

func (m *MockKonnectSDK) GetControlPlaneGroupsAPI() ControlPlaneGroupsAPI

Returns a mock instance of the ControlPlaneGroupsAPI

func (*MockKonnectSDK) GetDCRProvidersAPI added in v0.8.0

func (m *MockKonnectSDK) GetDCRProvidersAPI() DCRProvidersAPI

Returns a mock instance of the DCRProvidersAPI

func (*MockKonnectSDK) GetDashboardsAPI added in v1.0.0

func (m *MockKonnectSDK) GetDashboardsAPI() DashboardsAPI

Returns a mock instance of the DashboardsAPI.

func (*MockKonnectSDK) GetDataPlaneCertificateAPI added in v0.10.0

func (m *MockKonnectSDK) GetDataPlaneCertificateAPI() DataPlaneCertificateAPI

func (*MockKonnectSDK) GetEventGatewayBackendClusterAPI added in v0.3.8

func (m *MockKonnectSDK) GetEventGatewayBackendClusterAPI() EventGatewayBackendClusterAPI

Returns a mock instance of the EventGatewayBackendClusterAPI

func (*MockKonnectSDK) GetEventGatewayClusterPolicyAPI added in v0.8.0

func (m *MockKonnectSDK) GetEventGatewayClusterPolicyAPI() EventGatewayClusterPolicyAPI

Returns a mock instance of the EventGatewayClusterPolicyAPI

func (*MockKonnectSDK) GetEventGatewayConsumePolicyAPI added in v0.8.0

func (m *MockKonnectSDK) GetEventGatewayConsumePolicyAPI() EventGatewayConsumePolicyAPI

Returns a mock instance of the EventGatewayConsumePolicyAPI

func (*MockKonnectSDK) GetEventGatewayControlPlaneAPI added in v0.3.7

func (m *MockKonnectSDK) GetEventGatewayControlPlaneAPI() EGWControlPlaneAPI

Returns a mock instance of the EGWControlPlaneAPI

func (*MockKonnectSDK) GetEventGatewayDataPlaneCertificateAPI added in v0.6.0

func (m *MockKonnectSDK) GetEventGatewayDataPlaneCertificateAPI() EventGatewayDataPlaneCertificateAPI

Returns a mock instance of the EventGatewayDataPlaneCertificateAPI

func (*MockKonnectSDK) GetEventGatewayListenerAPI added in v0.5.0

func (m *MockKonnectSDK) GetEventGatewayListenerAPI() EventGatewayListenerAPI

Returns a mock instance of the EventGatewayListenerAPI

func (*MockKonnectSDK) GetEventGatewayListenerPolicyAPI added in v0.5.0

func (m *MockKonnectSDK) GetEventGatewayListenerPolicyAPI() EventGatewayListenerPolicyAPI

Returns a mock instance of the EventGatewayListenerPolicyAPI

func (*MockKonnectSDK) GetEventGatewayProducePolicyAPI added in v0.8.0

func (m *MockKonnectSDK) GetEventGatewayProducePolicyAPI() EventGatewayProducePolicyAPI

Returns a mock instance of the EventGatewayProducePolicyAPI

func (*MockKonnectSDK) GetEventGatewaySchemaRegistryAPI added in v0.8.0

func (m *MockKonnectSDK) GetEventGatewaySchemaRegistryAPI() EventGatewaySchemaRegistryAPI

Returns a mock instance of the EventGatewaySchemaRegistryAPI

func (*MockKonnectSDK) GetEventGatewayStaticKeyAPI added in v0.8.0

func (m *MockKonnectSDK) GetEventGatewayStaticKeyAPI() EventGatewayStaticKeyAPI

Returns a mock instance of the EventGatewayStaticKeyAPI

func (*MockKonnectSDK) GetEventGatewayTLSTrustBundleAPI added in v0.8.0

func (m *MockKonnectSDK) GetEventGatewayTLSTrustBundleAPI() EventGatewayTLSTrustBundleAPI

Returns a mock instance of the EventGatewayTLSTrustBundleAPI

func (*MockKonnectSDK) GetEventGatewayVirtualClusterAPI added in v0.4.0

func (m *MockKonnectSDK) GetEventGatewayVirtualClusterAPI() EventGatewayVirtualClusterAPI

Returns a mock instance of the EventGatewayVirtualClusterAPI

func (*MockKonnectSDK) GetGatewayServiceAPI added in v0.2.0

func (m *MockKonnectSDK) GetGatewayServiceAPI() GatewayServiceAPI

Returns a mock instance of the GatewayServiceAPI

func (*MockKonnectSDK) GetMeAPI added in v0.1.0

func (m *MockKonnectSDK) GetMeAPI() MeAPI

Returns a mock instance of the MeAPI

func (*MockKonnectSDK) GetOrganizationTeamAPI added in v0.4.0

func (m *MockKonnectSDK) GetOrganizationTeamAPI() OrganizationTeamAPI

Returns a mock instance of the OrganizationTeamAPI

func (*MockKonnectSDK) GetOrganizationTeamMembershipAPI added in v1.0.0

func (m *MockKonnectSDK) GetOrganizationTeamMembershipAPI() OrganizationTeamMembershipAPI

func (*MockKonnectSDK) GetOrganizationTeamRolesAPI added in v1.0.0

func (m *MockKonnectSDK) GetOrganizationTeamRolesAPI() OrganizationTeamRolesAPI

Returns a mock instance of the OrganizationTeamRolesAPI.

func (*MockKonnectSDK) GetOrganizationUsersAPI added in v1.0.0

func (m *MockKonnectSDK) GetOrganizationUsersAPI() OrganizationUsersAPI

func (*MockKonnectSDK) GetPersonalAccessTokenAPI added in v1.1.0

func (m *MockKonnectSDK) GetPersonalAccessTokenAPI() PersonalAccessTokenAPI

func (*MockKonnectSDK) GetPortalAPI added in v0.0.14

func (m *MockKonnectSDK) GetPortalAPI() PortalAPI

Returns a mock instance of the PortalAPI

func (*MockKonnectSDK) GetPortalApplicationAPI added in v0.1.6

func (m *MockKonnectSDK) GetPortalApplicationAPI() PortalApplicationAPI

Returns a mock instance of the PortalApplicationAPI

func (*MockKonnectSDK) GetPortalApplicationRegistrationAPI added in v0.3.4

func (m *MockKonnectSDK) GetPortalApplicationRegistrationAPI() PortalApplicationRegistrationAPI

Returns a mock instance of the PortalApplicationRegistrationAPI

func (*MockKonnectSDK) GetPortalAuditLogsAPI added in v0.10.0

func (m *MockKonnectSDK) GetPortalAuditLogsAPI() PortalAuditLogsAPI

Returns a mock instance of the PortalAuditLogsAPI

func (*MockKonnectSDK) GetPortalAuthSettingsAPI added in v0.3.4

func (m *MockKonnectSDK) GetPortalAuthSettingsAPI() PortalAuthSettingsAPI

Returns a mock instance of the PortalAuthSettingsAPI

func (*MockKonnectSDK) GetPortalCustomDomainAPI added in v0.1.0

func (m *MockKonnectSDK) GetPortalCustomDomainAPI() PortalCustomDomainAPI

Returns a mock instance of the PortalCustomDomainAPI

func (*MockKonnectSDK) GetPortalCustomizationAPI added in v0.1.0

func (m *MockKonnectSDK) GetPortalCustomizationAPI() PortalCustomizationAPI

Returns a mock instance of the PortalCustomizationAPI

func (*MockKonnectSDK) GetPortalDeveloperAPI added in v0.1.6

func (m *MockKonnectSDK) GetPortalDeveloperAPI() PortalDeveloperAPI

Returns a mock instance of the PortalDeveloperAPI

func (*MockKonnectSDK) GetPortalEmailsAPI added in v0.3.5

func (m *MockKonnectSDK) GetPortalEmailsAPI() PortalEmailsAPI

Returns a mock instance of the PortalEmailsAPI

func (*MockKonnectSDK) GetPortalIPAllowListAPI added in v0.10.0

func (m *MockKonnectSDK) GetPortalIPAllowListAPI() PortalIPAllowListAPI

Returns a mock instance of the PortalIPAllowListAPI

func (*MockKonnectSDK) GetPortalIdentityProviderAPI added in v0.9.0

func (m *MockKonnectSDK) GetPortalIdentityProviderAPI() PortalIdentityProviderAPI

Returns a mock instance of the PortalIdentityProviderAPI

func (*MockKonnectSDK) GetPortalIntegrationsAPI added in v0.10.0

func (m *MockKonnectSDK) GetPortalIntegrationsAPI() PortalIntegrationsAPI

Returns a mock instance of the PortalIntegrationsAPI

func (*MockKonnectSDK) GetPortalPageAPI added in v0.1.0

func (m *MockKonnectSDK) GetPortalPageAPI() PortalPageAPI

Returns a mock instance of the PortalPageAPI

func (*MockKonnectSDK) GetPortalSnippetAPI added in v0.1.0

func (m *MockKonnectSDK) GetPortalSnippetAPI() PortalSnippetAPI

Returns a mock instance of the PortalSnippetAPI

func (*MockKonnectSDK) GetPortalTeamAPI added in v0.1.6

func (m *MockKonnectSDK) GetPortalTeamAPI() PortalTeamAPI

Returns a mock instance of the PortalTeamAPI

func (*MockKonnectSDK) GetPortalTeamMembershipAPI added in v0.3.5

func (m *MockKonnectSDK) GetPortalTeamMembershipAPI() PortalTeamMembershipAPI

Returns a mock instance of the PortalTeamMembershipAPI

func (*MockKonnectSDK) GetPortalTeamRolesAPI added in v0.3.4

func (m *MockKonnectSDK) GetPortalTeamRolesAPI() PortalTeamRolesAPI

Returns a mock instance of the PortalTeamRolesAPI

func (*MockKonnectSDK) GetSystemAccountAPI added in v0.3.8

func (m *MockKonnectSDK) GetSystemAccountAPI() SystemAccountAPI

Returns a mock instance of the SystemAccountAPI

func (*MockKonnectSDK) GetSystemAccountAccessTokenAPI added in v1.1.0

func (m *MockKonnectSDK) GetSystemAccountAccessTokenAPI() SystemAccountAccessTokenAPI

func (*MockKonnectSDK) GetSystemAccountRolesAPI added in v1.0.0

func (m *MockKonnectSDK) GetSystemAccountRolesAPI() SystemAccountRolesAPI

func (*MockKonnectSDK) GetSystemAccountTeamMembershipAPI added in v1.0.0

func (m *MockKonnectSDK) GetSystemAccountTeamMembershipAPI() SystemAccountTeamMembershipAPI

type MockKonnectSDKFactory

type MockKonnectSDKFactory struct {
	T *testing.T
}

This is a mock implementation of the SDKFactory interface which can associate a Testing.T instance with any MockKonnectSDK instances Built by it

func (*MockKonnectSDKFactory) Build

func (m *MockKonnectSDKFactory) Build(token string) (SDKAPI, error)

Returns the mock implementation of the SDKAPI interface

type NormalizedDCRProviderPayload added in v0.8.0

type NormalizedDCRProviderPayload struct {
	ID             string
	Name           string
	DisplayName    string
	DisplayNameSet bool
	ProviderType   string
	Issuer         string
	DCRConfig      map[string]any
	Labels         map[string]string
}

NormalizedDCRProviderPayload contains the common DCR provider fields returned by Konnect across list/create/update flows.

func NormalizeDCRProviderPayload added in v0.8.0

func NormalizeDCRProviderPayload(data any) (*NormalizedDCRProviderPayload, error)

type OrganizationTeamAPI added in v0.4.0

type OrganizationTeamAPI interface {
	ListOrganizationTeams(ctx context.Context, request kkOps.ListTeamsRequest) (*kkOps.ListTeamsResponse, error)
	GetOrganizationTeam(ctx context.Context, id string) (*kkOps.GetTeamResponse, error)
	CreateOrganizationTeam(ctx context.Context, team *kkComps.CreateTeam) (*kkOps.CreateTeamResponse, error)
	UpdateOrganizationTeam(ctx context.Context, id string,
		team *kkComps.UpdateTeam) (*kkOps.UpdateTeamResponse, error)
	DeleteOrganizationTeam(ctx context.Context, id string) (*kkOps.DeleteTeamResponse, error)
}

OrganizationTeamAPI defines the interface for operations on Teams

type OrganizationTeamAPIImpl added in v0.4.0

type OrganizationTeamAPIImpl struct {
	SDK *kkSDK.SDK
}

OrganizationTeamAPIImpl provides an implementation of the OrganizationTeamAPI interface

func (*OrganizationTeamAPIImpl) CreateOrganizationTeam added in v0.4.0

func (t *OrganizationTeamAPIImpl) CreateOrganizationTeam(
	ctx context.Context,
	team *kkComps.CreateTeam,
) (*kkOps.CreateTeamResponse, error)

func (*OrganizationTeamAPIImpl) DeleteOrganizationTeam added in v0.4.0

func (t *OrganizationTeamAPIImpl) DeleteOrganizationTeam(
	ctx context.Context,
	id string,
) (*kkOps.DeleteTeamResponse, error)

func (*OrganizationTeamAPIImpl) GetOrganizationTeam added in v0.4.0

func (t *OrganizationTeamAPIImpl) GetOrganizationTeam(ctx context.Context, id string) (*kkOps.GetTeamResponse, error)

func (*OrganizationTeamAPIImpl) ListOrganizationTeams added in v0.4.0

func (t *OrganizationTeamAPIImpl) ListOrganizationTeams(
	ctx context.Context, request kkOps.ListTeamsRequest,
) (*kkOps.ListTeamsResponse, error)

func (*OrganizationTeamAPIImpl) UpdateOrganizationTeam added in v0.4.0

func (t *OrganizationTeamAPIImpl) UpdateOrganizationTeam(
	ctx context.Context,
	id string,
	team *kkComps.UpdateTeam,
) (*kkOps.UpdateTeamResponse, error)

type OrganizationTeamMembershipAPI added in v1.0.0

type OrganizationTeamMembershipAPI interface {
	ListTeamUsers(
		ctx context.Context,
		request kkOps.ListTeamUsersRequest,
		opts ...kkOps.Option,
	) (*kkOps.ListTeamUsersResponse, error)
	ListUserTeams(
		ctx context.Context,
		request kkOps.ListUserTeamsRequest,
		opts ...kkOps.Option,
	) (*kkOps.ListUserTeamsResponse, error)
	AddUserToTeam(
		ctx context.Context,
		teamID string,
		addUserToTeam *kkComps.AddUserToTeam,
		opts ...kkOps.Option,
	) (*kkOps.AddUserToTeamResponse, error)
	RemoveUserFromTeam(
		ctx context.Context,
		userID string,
		teamID string,
		opts ...kkOps.Option,
	) (*kkOps.RemoveUserFromTeamResponse, error)
}

OrganizationTeamMembershipAPI defines the interface for organization team membership operations.

type OrganizationTeamMembershipAPIImpl added in v1.0.0

type OrganizationTeamMembershipAPIImpl struct {
	SDK *kkSDK.SDK
}

OrganizationTeamMembershipAPIImpl provides an SDK-backed implementation.

func (*OrganizationTeamMembershipAPIImpl) AddUserToTeam added in v1.0.0

func (o *OrganizationTeamMembershipAPIImpl) AddUserToTeam(
	ctx context.Context,
	teamID string,
	addUserToTeam *kkComps.AddUserToTeam,
	opts ...kkOps.Option,
) (*kkOps.AddUserToTeamResponse, error)

func (*OrganizationTeamMembershipAPIImpl) ListTeamUsers added in v1.0.0

func (*OrganizationTeamMembershipAPIImpl) ListUserTeams added in v1.0.0

func (*OrganizationTeamMembershipAPIImpl) RemoveUserFromTeam added in v1.0.0

func (o *OrganizationTeamMembershipAPIImpl) RemoveUserFromTeam(
	ctx context.Context,
	userID string,
	teamID string,
	opts ...kkOps.Option,
) (*kkOps.RemoveUserFromTeamResponse, error)

type OrganizationTeamRolesAPI added in v1.0.0

type OrganizationTeamRolesAPI interface {
	ListTeamRoles(
		ctx context.Context,
		teamID string,
		filter *kkOps.ListTeamRolesQueryParamFilter,
		opts ...kkOps.Option,
	) (*kkOps.ListTeamRolesResponse, error)
	ListUserRoles(
		ctx context.Context,
		userID string,
		filter *kkOps.ListUserRolesQueryParamFilter,
		opts ...kkOps.Option,
	) (*kkOps.ListUserRolesResponse, error)
	TeamsAssignRole(
		ctx context.Context,
		teamID string,
		assignRole *kkComps.AssignRole,
		opts ...kkOps.Option,
	) (*kkOps.TeamsAssignRoleResponse, error)
	TeamsRemoveRole(
		ctx context.Context,
		teamID string,
		roleID string,
		opts ...kkOps.Option,
	) (*kkOps.TeamsRemoveRoleResponse, error)
	UsersAssignRole(
		ctx context.Context,
		userID string,
		assignRole *kkComps.AssignRole,
		opts ...kkOps.Option,
	) (*kkOps.UsersAssignRoleResponse, error)
	UsersRemoveRole(
		ctx context.Context,
		userID string,
		roleID string,
		opts ...kkOps.Option,
	) (*kkOps.UsersRemoveRoleResponse, error)
}

OrganizationTeamRolesAPI defines the interface for organization team role operations.

type OrganizationTeamRolesAPIImpl added in v1.0.0

type OrganizationTeamRolesAPIImpl struct {
	SDK *kkSDK.SDK
}

OrganizationTeamRolesAPIImpl provides an SDK-backed implementation of OrganizationTeamRolesAPI.

func (*OrganizationTeamRolesAPIImpl) ListTeamRoles added in v1.0.0

func (*OrganizationTeamRolesAPIImpl) ListUserRoles added in v1.0.0

func (*OrganizationTeamRolesAPIImpl) TeamsAssignRole added in v1.0.0

func (o *OrganizationTeamRolesAPIImpl) TeamsAssignRole(
	ctx context.Context,
	teamID string,
	assignRole *kkComps.AssignRole,
	opts ...kkOps.Option,
) (*kkOps.TeamsAssignRoleResponse, error)

func (*OrganizationTeamRolesAPIImpl) TeamsRemoveRole added in v1.0.0

func (o *OrganizationTeamRolesAPIImpl) TeamsRemoveRole(
	ctx context.Context,
	teamID string,
	roleID string,
	opts ...kkOps.Option,
) (*kkOps.TeamsRemoveRoleResponse, error)

func (*OrganizationTeamRolesAPIImpl) UsersAssignRole added in v1.0.0

func (o *OrganizationTeamRolesAPIImpl) UsersAssignRole(
	ctx context.Context,
	userID string,
	assignRole *kkComps.AssignRole,
	opts ...kkOps.Option,
) (*kkOps.UsersAssignRoleResponse, error)

func (*OrganizationTeamRolesAPIImpl) UsersRemoveRole added in v1.0.0

func (o *OrganizationTeamRolesAPIImpl) UsersRemoveRole(
	ctx context.Context,
	userID string,
	roleID string,
	opts ...kkOps.Option,
) (*kkOps.UsersRemoveRoleResponse, error)

type OrganizationUsersAPI added in v1.0.0

type OrganizationUsersAPI interface {
	ListUsers(
		ctx context.Context,
		request kkOps.ListUsersRequest,
		opts ...kkOps.Option,
	) (*kkOps.ListUsersResponse, error)
	GetUser(ctx context.Context, userID string, opts ...kkOps.Option) (*kkOps.GetUserResponse, error)
}

OrganizationUsersAPI defines the interface for organization user lookup operations.

type OrganizationUsersAPIImpl added in v1.0.0

type OrganizationUsersAPIImpl struct {
	SDK *kkSDK.SDK
}

OrganizationUsersAPIImpl provides an SDK-backed implementation of OrganizationUsersAPI.

func (*OrganizationUsersAPIImpl) GetUser added in v1.0.0

func (o *OrganizationUsersAPIImpl) GetUser(
	ctx context.Context,
	userID string,
	opts ...kkOps.Option,
) (*kkOps.GetUserResponse, error)

func (*OrganizationUsersAPIImpl) ListUsers added in v1.0.0

type PageInfo added in v0.0.14

type PageInfo struct {
	ID   string
	Name string
	Slug string
}

PageInfo represents a portal page with minimal info needed for Terraform import

func GetPagesForPortal added in v0.0.14

func GetPagesForPortal(ctx context.Context, portalAPI PortalAPI, portalID string) ([]PageInfo, error)

GetPagesForPortal returns a list of pages for a portal with pagination This function is designed to be used with the dump command to export portal pages as Terraform import blocks.

type PersonalAccessTokenAPI added in v1.1.0

type PersonalAccessTokenAPI interface {
	ListUsersPersonalAccessTokens(
		ctx context.Context,
		userID string,
		opts ...kkOps.Option,
	) (*kkOps.ListUsersPersonalAccessTokensResponse, error)
	CreatePersonalAccessToken(
		ctx context.Context,
		userID string,
		request *kkComps.PersonalAccessTokenCreateRequest,
		opts ...kkOps.Option,
	) (*kkOps.CreatePersonalAccessTokenResponse, error)
	GetPersonalAccessTokenDetails(
		ctx context.Context,
		userID string,
		tokenID string,
		opts ...kkOps.Option,
	) (*kkOps.GetPersonalAccessTokenDetailsResponse, error)
	DeletePersonalAccessToken(
		ctx context.Context,
		userID string,
		tokenID string,
		opts ...kkOps.Option,
	) (*kkOps.DeletePersonalAccessTokenResponse, error)
}

type PersonalAccessTokenAPIImpl added in v1.1.0

type PersonalAccessTokenAPIImpl struct {
	SDK *kkSDK.SDK
}

func (*PersonalAccessTokenAPIImpl) CreatePersonalAccessToken added in v1.1.0

func (*PersonalAccessTokenAPIImpl) DeletePersonalAccessToken added in v1.1.0

func (p *PersonalAccessTokenAPIImpl) DeletePersonalAccessToken(
	ctx context.Context,
	userID string,
	tokenID string,
	opts ...kkOps.Option,
) (*kkOps.DeletePersonalAccessTokenResponse, error)

func (*PersonalAccessTokenAPIImpl) GetPersonalAccessTokenDetails added in v1.1.0

func (p *PersonalAccessTokenAPIImpl) GetPersonalAccessTokenDetails(
	ctx context.Context,
	userID string,
	tokenID string,
	opts ...kkOps.Option,
) (*kkOps.GetPersonalAccessTokenDetailsResponse, error)

func (*PersonalAccessTokenAPIImpl) ListUsersPersonalAccessTokens added in v1.1.0

func (p *PersonalAccessTokenAPIImpl) ListUsersPersonalAccessTokens(
	ctx context.Context,
	userID string,
	opts ...kkOps.Option,
) (*kkOps.ListUsersPersonalAccessTokensResponse, error)

type PortalAPI added in v0.0.14

type PortalAPI interface {
	// Portal operations
	ListPortals(ctx context.Context, request kkOps.ListPortalsRequest) (*kkOps.ListPortalsResponse, error)
	GetPortal(ctx context.Context, id string) (*kkOps.GetPortalResponse, error)
	CreatePortal(ctx context.Context, portal kkComps.CreatePortal) (*kkOps.CreatePortalResponse, error)
	UpdatePortal(ctx context.Context, id string,
		portal kkComps.UpdatePortal) (*kkOps.UpdatePortalResponse, error)
	DeletePortal(ctx context.Context, id string, force bool) (*kkOps.DeletePortalResponse, error)
}

PortalAPI defines the interface for operations on Developer Portals

type PortalAPIImpl added in v0.1.0

type PortalAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalAPIImpl provides an implementation of the PortalAPI interface

func (*PortalAPIImpl) CreatePortal added in v0.1.0

func (p *PortalAPIImpl) CreatePortal(
	ctx context.Context,
	portal kkComps.CreatePortal,
) (*kkOps.CreatePortalResponse, error)

CreatePortal implements the PortalAPI interface

func (*PortalAPIImpl) DeletePortal added in v0.1.0

func (p *PortalAPIImpl) DeletePortal(
	ctx context.Context,
	id string,
	force bool,
) (*kkOps.DeletePortalResponse, error)

DeletePortal implements the PortalAPI interface

func (*PortalAPIImpl) GetPortal added in v0.1.0

func (p *PortalAPIImpl) GetPortal(ctx context.Context, id string) (*kkOps.GetPortalResponse, error)

GetPortal implements the PortalAPI interface

func (*PortalAPIImpl) ListPortals added in v0.1.0

ListPortals implements the PortalAPI interface

func (*PortalAPIImpl) UpdatePortal added in v0.1.0

func (p *PortalAPIImpl) UpdatePortal(
	ctx context.Context,
	id string,
	portal kkComps.UpdatePortal,
) (*kkOps.UpdatePortalResponse, error)

UpdatePortal implements the PortalAPI interface

type PortalApplicationAPI added in v0.1.6

type PortalApplicationAPI interface {
	ListApplications(
		ctx context.Context,
		request kkOps.ListApplicationsRequest,
		opts ...kkOps.Option,
	) (*kkOps.ListApplicationsResponse, error)
	GetApplication(
		ctx context.Context,
		portalID string,
		applicationID string,
		opts ...kkOps.Option,
	) (*kkOps.GetApplicationResponse, error)
	DeleteApplication(
		ctx context.Context,
		portalID string,
		applicationID string,
		opts ...kkOps.Option,
	) (*kkOps.DeleteApplicationResponse, error)
}

PortalApplicationAPI defines the interface for operations on Portal Applications

type PortalApplicationAPIImpl added in v0.1.6

type PortalApplicationAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalApplicationAPIImpl provides an implementation of the PortalApplicationAPI interface

func (*PortalApplicationAPIImpl) DeleteApplication added in v0.3.4

func (p *PortalApplicationAPIImpl) DeleteApplication(
	ctx context.Context,
	portalID string,
	applicationID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteApplicationResponse, error)

DeleteApplication removes a specific application scoped to a portal

func (*PortalApplicationAPIImpl) GetApplication added in v0.1.6

func (p *PortalApplicationAPIImpl) GetApplication(
	ctx context.Context, portalID string, applicationID string,
	opts ...kkOps.Option,
) (*kkOps.GetApplicationResponse, error)

GetApplication returns a specific application scoped to a portal

func (*PortalApplicationAPIImpl) ListApplications added in v0.1.6

ListApplications lists all applications for the given portal

type PortalApplicationRegistrationAPI added in v0.3.4

type PortalApplicationRegistrationAPI interface {
	ListRegistrations(
		ctx context.Context,
		request kkOps.ListRegistrationsRequest,
		opts ...kkOps.Option,
	) (*kkOps.ListRegistrationsResponse, error)
	GetApplicationRegistration(
		ctx context.Context,
		request kkOps.GetApplicationRegistrationRequest,
		opts ...kkOps.Option,
	) (*kkOps.GetApplicationRegistrationResponse, error)
	DeleteApplicationRegistration(
		ctx context.Context,
		request kkOps.DeleteApplicationRegistrationRequest,
		opts ...kkOps.Option,
	) (*kkOps.DeleteApplicationRegistrationResponse, error)
}

PortalApplicationRegistrationAPI defines the interface for operations on Portal Application Registrations

type PortalApplicationRegistrationAPIImpl added in v0.3.4

type PortalApplicationRegistrationAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalApplicationRegistrationAPIImpl provides an implementation of the PortalApplicationRegistrationAPI interface

func (*PortalApplicationRegistrationAPIImpl) DeleteApplicationRegistration added in v0.3.4

DeleteApplicationRegistration removes a specific application registration

func (*PortalApplicationRegistrationAPIImpl) GetApplicationRegistration added in v0.3.4

GetApplicationRegistration retrieves a specific application registration

func (*PortalApplicationRegistrationAPIImpl) ListRegistrations added in v0.3.4

ListRegistrations lists application registrations scoped to a portal

type PortalAuditLogsAPI added in v0.10.0

type PortalAuditLogsAPI interface {
	GetPortalAuditLogWebhook(ctx context.Context, portalID string,
		opts ...kkOps.Option) (*kkOps.GetPortalAuditLogWebhookResponse, error)
	UpdatePortalAuditLogWebhook(ctx context.Context, portalID string,
		body *kkComps.UpdatePortalAuditLogWebhook,
		opts ...kkOps.Option,
	) (*kkOps.UpdatePortalAuditLogWebhookResponse, error)
	DeletePortalAuditLogWebhook(ctx context.Context, portalID string,
		opts ...kkOps.Option) (*kkOps.DeletePortalAuditLogWebhookResponse, error)
}

PortalAuditLogsAPI exposes portal audit-log webhook operations used by declarative config.

type PortalAuditLogsAPIImpl added in v0.10.0

type PortalAuditLogsAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalAuditLogsAPIImpl provides a concrete implementation backed by the SDK.

func (*PortalAuditLogsAPIImpl) DeletePortalAuditLogWebhook added in v0.10.0

func (p *PortalAuditLogsAPIImpl) DeletePortalAuditLogWebhook(ctx context.Context, portalID string,
	opts ...kkOps.Option,
) (*kkOps.DeletePortalAuditLogWebhookResponse, error)

func (*PortalAuditLogsAPIImpl) GetPortalAuditLogWebhook added in v0.10.0

func (p *PortalAuditLogsAPIImpl) GetPortalAuditLogWebhook(ctx context.Context, portalID string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalAuditLogWebhookResponse, error)

func (*PortalAuditLogsAPIImpl) UpdatePortalAuditLogWebhook added in v0.10.0

func (p *PortalAuditLogsAPIImpl) UpdatePortalAuditLogWebhook(
	ctx context.Context,
	portalID string,
	body *kkComps.UpdatePortalAuditLogWebhook,
	opts ...kkOps.Option,
) (*kkOps.UpdatePortalAuditLogWebhookResponse, error)

type PortalAuthSettingsAPI added in v0.3.4

type PortalAuthSettingsAPI interface {
	UpdatePortalAuthenticationSettings(
		ctx context.Context,
		portalID string,
		request *kkComponents.PortalAuthenticationSettingsUpdateRequest,
		opts ...kkOps.Option,
	) (*kkOps.UpdatePortalAuthenticationSettingsResponse, error)
	GetPortalAuthenticationSettings(
		ctx context.Context,
		portalID string,
		opts ...kkOps.Option,
	) (*kkOps.GetPortalAuthenticationSettingsResponse, error)
	ListPortalTeamGroupMappings(
		ctx context.Context,
		request kkOps.ListPortalTeamGroupMappingsRequest,
		opts ...kkOps.Option,
	) (*kkOps.ListPortalTeamGroupMappingsResponse, error)
	UpdatePortalTeamGroupMappings(
		ctx context.Context,
		portalID string,
		request *kkComponents.PortalTeamGroupMappingsUpdateRequest,
		opts ...kkOps.Option,
	) (*kkOps.UpdatePortalTeamGroupMappingsResponse, error)
}

PortalAuthSettingsAPI defines the interface for portal authentication settings operations (singleton).

type PortalAuthSettingsAPIImpl added in v0.3.4

type PortalAuthSettingsAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalAuthSettingsAPIImpl provides an implementation using the Konnect SDK.

func (*PortalAuthSettingsAPIImpl) GetPortalAuthenticationSettings added in v0.3.4

func (p *PortalAuthSettingsAPIImpl) GetPortalAuthenticationSettings(
	ctx context.Context,
	portalID string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalAuthenticationSettingsResponse, error)

GetPortalAuthenticationSettings fetches portal auth settings.

func (*PortalAuthSettingsAPIImpl) ListPortalTeamGroupMappings added in v1.0.0

ListPortalTeamGroupMappings lists portal team IdP group mappings.

func (*PortalAuthSettingsAPIImpl) UpdatePortalAuthenticationSettings added in v0.3.4

UpdatePortalAuthenticationSettings updates portal auth settings.

func (*PortalAuthSettingsAPIImpl) UpdatePortalTeamGroupMappings added in v1.0.0

UpdatePortalTeamGroupMappings partially updates portal team IdP group mappings.

type PortalCustomDomainAPI added in v0.1.0

type PortalCustomDomainAPI interface {
	// Portal Custom Domain operations (singleton resource per portal)
	CreatePortalCustomDomain(ctx context.Context, portalID string, request kkComponents.CreatePortalCustomDomainRequest,
		opts ...kkOps.Option) (*kkOps.CreatePortalCustomDomainResponse, error)
	UpdatePortalCustomDomain(ctx context.Context, portalID string, request kkComponents.UpdatePortalCustomDomainRequest,
		opts ...kkOps.Option) (*kkOps.UpdatePortalCustomDomainResponse, error)
	DeletePortalCustomDomain(ctx context.Context, portalID string,
		opts ...kkOps.Option) (*kkOps.DeletePortalCustomDomainResponse, error)
	GetPortalCustomDomain(ctx context.Context, portalID string,
		opts ...kkOps.Option) (*kkOps.GetPortalCustomDomainResponse, error)
}

PortalCustomDomainAPI defines the interface for operations on Portal Custom Domains

type PortalCustomDomainAPIImpl added in v0.1.0

type PortalCustomDomainAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalCustomDomainAPIImpl provides an implementation of the PortalCustomDomainAPI interface

func (*PortalCustomDomainAPIImpl) CreatePortalCustomDomain added in v0.1.0

CreatePortalCustomDomain implements the PortalCustomDomainAPI interface

func (*PortalCustomDomainAPIImpl) DeletePortalCustomDomain added in v0.1.0

func (p *PortalCustomDomainAPIImpl) DeletePortalCustomDomain(
	ctx context.Context, portalID string,
	opts ...kkOps.Option,
) (*kkOps.DeletePortalCustomDomainResponse, error)

DeletePortalCustomDomain implements the PortalCustomDomainAPI interface

func (*PortalCustomDomainAPIImpl) GetPortalCustomDomain added in v0.1.0

func (p *PortalCustomDomainAPIImpl) GetPortalCustomDomain(
	ctx context.Context, portalID string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalCustomDomainResponse, error)

GetPortalCustomDomain implements the PortalCustomDomainAPI interface

func (*PortalCustomDomainAPIImpl) UpdatePortalCustomDomain added in v0.1.0

UpdatePortalCustomDomain implements the PortalCustomDomainAPI interface

type PortalCustomizationAPI added in v0.1.0

type PortalCustomizationAPI interface {
	// Portal Customization operations (singleton resource - no create/delete)
	UpdatePortalCustomization(ctx context.Context, portalID string, request *kkComponents.PortalCustomizationV3,
		opts ...kkOps.Option) (*kkOps.UpdatePortalCustomizationResponse, error)
	GetPortalCustomization(ctx context.Context, portalID string,
		opts ...kkOps.Option) (*kkOps.GetPortalCustomizationResponse, error)
}

PortalCustomizationAPI defines the interface for operations on Portal Customizations

type PortalCustomizationAPIImpl added in v0.1.0

type PortalCustomizationAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalCustomizationAPIImpl provides an implementation of the PortalCustomizationAPI interface

func (*PortalCustomizationAPIImpl) GetPortalCustomization added in v0.1.0

func (p *PortalCustomizationAPIImpl) GetPortalCustomization(
	ctx context.Context, portalID string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalCustomizationResponse, error)

GetPortalCustomization implements the PortalCustomizationAPI interface

func (*PortalCustomizationAPIImpl) UpdatePortalCustomization added in v0.1.0

func (p *PortalCustomizationAPIImpl) UpdatePortalCustomization(
	ctx context.Context, portalID string, request *kkComponents.PortalCustomizationV3,
	opts ...kkOps.Option,
) (*kkOps.UpdatePortalCustomizationResponse, error)

UpdatePortalCustomization implements the PortalCustomizationAPI interface

type PortalDeveloperAPI added in v0.1.6

type PortalDeveloperAPI interface {
	ListPortalDevelopers(
		ctx context.Context,
		request kkOps.ListPortalDevelopersRequest,
		opts ...kkOps.Option,
	) (*kkOps.ListPortalDevelopersResponse, error)
	GetDeveloper(
		ctx context.Context,
		portalID string,
		developerID string,
		opts ...kkOps.Option,
	) (*kkOps.GetDeveloperResponse, error)
}

PortalDeveloperAPI defines the interface for operations on portal developers

type PortalDeveloperAPIImpl added in v0.1.6

type PortalDeveloperAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalDeveloperAPIImpl provides an implementation backed by the SDK

func (*PortalDeveloperAPIImpl) GetDeveloper added in v0.1.6

func (p *PortalDeveloperAPIImpl) GetDeveloper(
	ctx context.Context, portalID string, developerID string,
	opts ...kkOps.Option,
) (*kkOps.GetDeveloperResponse, error)

GetDeveloper fetches a specific developer for a portal

func (*PortalDeveloperAPIImpl) ListPortalDevelopers added in v0.1.6

ListPortalDevelopers lists developers for a portal

type PortalEmailsAPI added in v0.3.5

type PortalEmailsAPI interface {
	ListEmailDomains(ctx context.Context, request kkOps.ListEmailDomainsRequest,
		opts ...kkOps.Option) (*kkOps.ListEmailDomainsResponse, error)
	GetEmailDomain(ctx context.Context, emailDomain string,
		opts ...kkOps.Option) (*kkOps.GetEmailDomainResponse, error)
	GetEmailConfig(ctx context.Context, portalID string,
		opts ...kkOps.Option) (*kkOps.GetEmailConfigResponse, error)
	CreatePortalEmailConfig(ctx context.Context, portalID string, body kkComps.PostPortalEmailConfig,
		opts ...kkOps.Option) (*kkOps.CreatePortalEmailConfigResponse, error)
	UpdatePortalEmailConfig(ctx context.Context, portalID string, body *kkComps.PatchPortalEmailConfig,
		opts ...kkOps.Option) (*kkOps.UpdatePortalEmailConfigResponse, error)
	DeletePortalEmailConfig(ctx context.Context, portalID string,
		opts ...kkOps.Option) (*kkOps.DeletePortalEmailConfigResponse, error)
	ListPortalCustomEmailTemplates(ctx context.Context, portalID string,
		opts ...kkOps.Option) (*kkOps.ListPortalCustomEmailTemplatesResponse, error)
	GetPortalCustomEmailTemplate(ctx context.Context, portalID string, templateName kkComps.EmailTemplateName,
		opts ...kkOps.Option) (*kkOps.GetPortalCustomEmailTemplateResponse, error)
	UpdatePortalCustomEmailTemplate(ctx context.Context, request kkOps.UpdatePortalCustomEmailTemplateRequest,
		opts ...kkOps.Option) (*kkOps.UpdatePortalCustomEmailTemplateResponse, error)
	DeletePortalCustomEmailTemplate(ctx context.Context, portalID string, templateName kkComps.EmailTemplateName,
		opts ...kkOps.Option) (*kkOps.DeletePortalCustomEmailTemplateResponse, error)
}

PortalEmailsAPI exposes portal email operations used by the CLI.

type PortalEmailsAPIImpl added in v0.3.5

type PortalEmailsAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalEmailsAPIImpl provides a concrete implementation backed by the SDK.

func (*PortalEmailsAPIImpl) CreatePortalEmailConfig added in v0.3.5

func (p *PortalEmailsAPIImpl) CreatePortalEmailConfig(
	ctx context.Context, portalID string, body kkComps.PostPortalEmailConfig, opts ...kkOps.Option,
) (*kkOps.CreatePortalEmailConfigResponse, error)

CreatePortalEmailConfig delegates to the generated SDK.

func (*PortalEmailsAPIImpl) DeletePortalCustomEmailTemplate added in v0.3.5

func (p *PortalEmailsAPIImpl) DeletePortalCustomEmailTemplate(
	ctx context.Context, portalID string, templateName kkComps.EmailTemplateName, opts ...kkOps.Option,
) (*kkOps.DeletePortalCustomEmailTemplateResponse, error)

DeletePortalCustomEmailTemplate delegates to the generated SDK.

func (*PortalEmailsAPIImpl) DeletePortalEmailConfig added in v0.3.5

func (p *PortalEmailsAPIImpl) DeletePortalEmailConfig(
	ctx context.Context, portalID string, opts ...kkOps.Option,
) (*kkOps.DeletePortalEmailConfigResponse, error)

DeletePortalEmailConfig delegates to the generated SDK.

func (*PortalEmailsAPIImpl) GetEmailConfig added in v0.3.5

func (p *PortalEmailsAPIImpl) GetEmailConfig(
	ctx context.Context, portalID string, opts ...kkOps.Option,
) (*kkOps.GetEmailConfigResponse, error)

GetEmailConfig delegates to the generated SDK.

func (*PortalEmailsAPIImpl) GetEmailDomain added in v0.3.5

func (p *PortalEmailsAPIImpl) GetEmailDomain(
	ctx context.Context, emailDomain string, opts ...kkOps.Option,
) (*kkOps.GetEmailDomainResponse, error)

GetEmailDomain delegates to the generated SDK.

func (*PortalEmailsAPIImpl) GetPortalCustomEmailTemplate added in v0.3.5

func (p *PortalEmailsAPIImpl) GetPortalCustomEmailTemplate(
	ctx context.Context, portalID string, templateName kkComps.EmailTemplateName, opts ...kkOps.Option,
) (*kkOps.GetPortalCustomEmailTemplateResponse, error)

GetPortalCustomEmailTemplate delegates to the generated SDK.

func (*PortalEmailsAPIImpl) ListEmailDomains added in v0.3.5

ListEmailDomains delegates to the generated SDK.

func (*PortalEmailsAPIImpl) ListPortalCustomEmailTemplates added in v0.3.5

func (p *PortalEmailsAPIImpl) ListPortalCustomEmailTemplates(
	ctx context.Context, portalID string, opts ...kkOps.Option,
) (*kkOps.ListPortalCustomEmailTemplatesResponse, error)

ListPortalCustomEmailTemplates delegates to the generated SDK.

func (*PortalEmailsAPIImpl) UpdatePortalCustomEmailTemplate added in v0.3.5

UpdatePortalCustomEmailTemplate delegates to the generated SDK.

func (*PortalEmailsAPIImpl) UpdatePortalEmailConfig added in v0.3.5

func (p *PortalEmailsAPIImpl) UpdatePortalEmailConfig(
	ctx context.Context, portalID string, body *kkComps.PatchPortalEmailConfig, opts ...kkOps.Option,
) (*kkOps.UpdatePortalEmailConfigResponse, error)

UpdatePortalEmailConfig delegates to the generated SDK.

type PortalIPAllowListAPI added in v0.10.0

type PortalIPAllowListAPI interface {
	CreatePortalIPAllowList(
		ctx context.Context,
		portalID string,
		request *kkComponents.CreatePortalSourceIPRestriction,
		opts ...kkOps.Option,
	) (*kkOps.CreatePortalIPAllowListResponse, error)
	ListPortalIPAllowList(
		ctx context.Context,
		request kkOps.ListPortalIPAllowListRequest,
		opts ...kkOps.Option,
	) (*kkOps.ListPortalIPAllowListResponse, error)
	PutPortalIPAllowList(
		ctx context.Context,
		request kkOps.PutPortalIPAllowListRequest,
		opts ...kkOps.Option,
	) (*kkOps.PutPortalIPAllowListResponse, error)
	UpdatePortalIPAllowList(
		ctx context.Context,
		request kkOps.UpdatePortalIPAllowListRequest,
		opts ...kkOps.Option,
	) (*kkOps.UpdatePortalIPAllowListResponse, error)
	DeletePortalIPAllowList(
		ctx context.Context,
		portalID string,
		id string,
		opts ...kkOps.Option,
	) (*kkOps.DeletePortalIPAllowListResponse, error)
}

PortalIPAllowListAPI defines the interface for portal IP allow list operations.

type PortalIPAllowListAPIImpl added in v0.10.0

type PortalIPAllowListAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalIPAllowListAPIImpl provides an implementation using the Konnect SDK.

func (*PortalIPAllowListAPIImpl) CreatePortalIPAllowList added in v0.10.0

CreatePortalIPAllowList creates a portal IP allow list entry.

func (*PortalIPAllowListAPIImpl) DeletePortalIPAllowList added in v0.10.0

func (p *PortalIPAllowListAPIImpl) DeletePortalIPAllowList(
	ctx context.Context,
	portalID string,
	id string,
	opts ...kkOps.Option,
) (*kkOps.DeletePortalIPAllowListResponse, error)

DeletePortalIPAllowList deletes a portal IP allow list entry.

func (*PortalIPAllowListAPIImpl) ListPortalIPAllowList added in v0.10.0

ListPortalIPAllowList lists portal IP allow list entries.

func (*PortalIPAllowListAPIImpl) PutPortalIPAllowList added in v0.10.0

PutPortalIPAllowList replaces a portal IP allow list entry.

func (*PortalIPAllowListAPIImpl) UpdatePortalIPAllowList added in v0.10.0

UpdatePortalIPAllowList updates a portal IP allow list entry.

type PortalIdentityProviderAPI added in v0.9.0

type PortalIdentityProviderAPI interface {
	ListPortalIdentityProviders(
		ctx context.Context,
		request kkOps.GetPortalIdentityProvidersRequest,
		opts ...kkOps.Option,
	) (*kkOps.GetPortalIdentityProvidersResponse, error)
	GetPortalIdentityProvider(
		ctx context.Context,
		portalID string,
		id string,
		opts ...kkOps.Option,
	) (*kkOps.GetPortalIdentityProviderResponse, error)
	CreatePortalIdentityProvider(
		ctx context.Context,
		portalID string,
		request kkComps.CreateIdentityProvider,
		opts ...kkOps.Option,
	) (*kkOps.CreatePortalIdentityProviderResponse, error)
	UpdatePortalIdentityProvider(
		ctx context.Context,
		request kkOps.UpdatePortalIdentityProviderRequest,
		opts ...kkOps.Option,
	) (*kkOps.UpdatePortalIdentityProviderResponse, error)
	DeletePortalIdentityProvider(
		ctx context.Context,
		portalID string,
		id string,
		opts ...kkOps.Option,
	) (*kkOps.DeletePortalIdentityProviderResponse, error)
}

PortalIdentityProviderAPI defines the interface for portal identity provider operations.

type PortalIdentityProviderAPIImpl added in v0.9.0

type PortalIdentityProviderAPIImpl struct {
	SDK         *kkSDK.SDK
	BaseURL     string
	Token       string
	TokenSource apiutil.TokenSource
	HTTPClient  kkSDK.HTTPClient
}

PortalIdentityProviderAPIImpl provides an implementation backed by the SDK.

func (*PortalIdentityProviderAPIImpl) CreatePortalIdentityProvider added in v0.9.0

func (p *PortalIdentityProviderAPIImpl) CreatePortalIdentityProvider(
	ctx context.Context,
	portalID string,
	request kkComps.CreateIdentityProvider,
	opts ...kkOps.Option,
) (*kkOps.CreatePortalIdentityProviderResponse, error)

CreatePortalIdentityProvider creates a new identity provider for a portal.

func (*PortalIdentityProviderAPIImpl) DeletePortalIdentityProvider added in v0.9.0

func (p *PortalIdentityProviderAPIImpl) DeletePortalIdentityProvider(
	ctx context.Context,
	portalID string,
	id string,
	opts ...kkOps.Option,
) (*kkOps.DeletePortalIdentityProviderResponse, error)

DeletePortalIdentityProvider deletes an identity provider from a portal.

func (*PortalIdentityProviderAPIImpl) GetPortalIdentityProvider added in v0.9.0

func (p *PortalIdentityProviderAPIImpl) GetPortalIdentityProvider(
	ctx context.Context,
	portalID string,
	id string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalIdentityProviderResponse, error)

GetPortalIdentityProvider fetches a single identity provider for a portal.

func (*PortalIdentityProviderAPIImpl) ListPortalIdentityProviders added in v0.9.0

ListPortalIdentityProviders lists identity providers for a portal.

func (*PortalIdentityProviderAPIImpl) UpdatePortalIdentityProvider added in v0.9.0

UpdatePortalIdentityProvider updates an identity provider for a portal.

type PortalIntegrationsAPI added in v0.10.0

type PortalIntegrationsAPI interface {
	GetPortalIntegrations(
		ctx context.Context,
		portalID string,
		opts ...kkOps.Option,
	) (*kkOps.GetPortalIntegrationsResponse, error)
	UpsertPortalIntegrations(
		ctx context.Context,
		portalID string,
		portalIntegrations *kkComponents.PortalIntegrations,
		opts ...kkOps.Option,
	) (*kkOps.UpsertPortalIntegrationsResponse, error)
}

PortalIntegrationsAPI defines the interface for portal integrations operations (singleton).

type PortalIntegrationsAPIImpl added in v0.10.0

type PortalIntegrationsAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalIntegrationsAPIImpl provides an implementation using the Konnect SDK.

func (*PortalIntegrationsAPIImpl) GetPortalIntegrations added in v0.10.0

func (p *PortalIntegrationsAPIImpl) GetPortalIntegrations(
	ctx context.Context,
	portalID string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalIntegrationsResponse, error)

GetPortalIntegrations fetches portal integration configuration.

func (*PortalIntegrationsAPIImpl) UpsertPortalIntegrations added in v0.10.0

func (p *PortalIntegrationsAPIImpl) UpsertPortalIntegrations(
	ctx context.Context,
	portalID string,
	portalIntegrations *kkComponents.PortalIntegrations,
	opts ...kkOps.Option,
) (*kkOps.UpsertPortalIntegrationsResponse, error)

UpsertPortalIntegrations replaces portal integration configuration.

type PortalPageAPI added in v0.1.0

type PortalPageAPI interface {
	// Portal Page operations
	CreatePortalPage(ctx context.Context, portalID string, request kkComponents.CreatePortalPageRequest,
		opts ...kkOps.Option) (*kkOps.CreatePortalPageResponse, error)
	UpdatePortalPage(ctx context.Context, request kkOps.UpdatePortalPageRequest,
		opts ...kkOps.Option) (*kkOps.UpdatePortalPageResponse, error)
	DeletePortalPage(ctx context.Context, portalID string, pageID string,
		opts ...kkOps.Option) (*kkOps.DeletePortalPageResponse, error)
	ListPortalPages(ctx context.Context, request kkOps.ListPortalPagesRequest,
		opts ...kkOps.Option) (*kkOps.ListPortalPagesResponse, error)
	GetPortalPage(ctx context.Context, portalID string, pageID string,
		opts ...kkOps.Option) (*kkOps.GetPortalPageResponse, error)
}

PortalPageAPI defines the interface for operations on Portal Pages

type PortalPageAPIImpl added in v0.1.0

type PortalPageAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalPageAPIImpl provides an implementation of the PortalPageAPI interface

func (*PortalPageAPIImpl) CreatePortalPage added in v0.1.0

func (p *PortalPageAPIImpl) CreatePortalPage(
	ctx context.Context, portalID string, request kkComponents.CreatePortalPageRequest,
	opts ...kkOps.Option,
) (*kkOps.CreatePortalPageResponse, error)

CreatePortalPage implements the PortalPageAPI interface

func (*PortalPageAPIImpl) DeletePortalPage added in v0.1.0

func (p *PortalPageAPIImpl) DeletePortalPage(
	ctx context.Context, portalID string, pageID string,
	opts ...kkOps.Option,
) (*kkOps.DeletePortalPageResponse, error)

DeletePortalPage implements the PortalPageAPI interface

func (*PortalPageAPIImpl) GetPortalPage added in v0.1.0

func (p *PortalPageAPIImpl) GetPortalPage(
	ctx context.Context, portalID string, pageID string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalPageResponse, error)

GetPortalPage implements the PortalPageAPI interface

func (*PortalPageAPIImpl) ListPortalPages added in v0.1.0

ListPortalPages implements the PortalPageAPI interface

func (*PortalPageAPIImpl) UpdatePortalPage added in v0.1.0

UpdatePortalPage implements the PortalPageAPI interface

type PortalSnippetAPI added in v0.1.0

type PortalSnippetAPI interface {
	// Portal Snippet operations
	CreatePortalSnippet(ctx context.Context, portalID string, request kkComponents.CreatePortalSnippetRequest,
		opts ...kkOps.Option) (*kkOps.CreatePortalSnippetResponse, error)
	UpdatePortalSnippet(ctx context.Context, request kkOps.UpdatePortalSnippetRequest,
		opts ...kkOps.Option) (*kkOps.UpdatePortalSnippetResponse, error)
	DeletePortalSnippet(ctx context.Context, portalID string, snippetID string,
		opts ...kkOps.Option) (*kkOps.DeletePortalSnippetResponse, error)
	ListPortalSnippets(ctx context.Context, request kkOps.ListPortalSnippetsRequest,
		opts ...kkOps.Option) (*kkOps.ListPortalSnippetsResponse, error)
	GetPortalSnippet(ctx context.Context, portalID string, snippetID string,
		opts ...kkOps.Option) (*kkOps.GetPortalSnippetResponse, error)
}

PortalSnippetAPI defines the interface for operations on Portal Snippets

type PortalSnippetAPIImpl added in v0.1.0

type PortalSnippetAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalSnippetAPIImpl provides an implementation of the PortalSnippetAPI interface

func (*PortalSnippetAPIImpl) CreatePortalSnippet added in v0.1.0

CreatePortalSnippet implements the PortalSnippetAPI interface

func (*PortalSnippetAPIImpl) DeletePortalSnippet added in v0.1.0

func (p *PortalSnippetAPIImpl) DeletePortalSnippet(
	ctx context.Context, portalID string, snippetID string,
	opts ...kkOps.Option,
) (*kkOps.DeletePortalSnippetResponse, error)

DeletePortalSnippet implements the PortalSnippetAPI interface

func (*PortalSnippetAPIImpl) GetPortalSnippet added in v0.1.0

func (p *PortalSnippetAPIImpl) GetPortalSnippet(
	ctx context.Context, portalID string, snippetID string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalSnippetResponse, error)

GetPortalSnippet implements the PortalSnippetAPI interface

func (*PortalSnippetAPIImpl) ListPortalSnippets added in v0.1.0

ListPortalSnippets implements the PortalSnippetAPI interface

func (*PortalSnippetAPIImpl) UpdatePortalSnippet added in v0.1.0

UpdatePortalSnippet implements the PortalSnippetAPI interface

type PortalTeamAPI added in v0.1.6

type PortalTeamAPI interface {
	ListPortalTeams(
		ctx context.Context,
		request kkOps.ListPortalTeamsRequest,
		opts ...kkOps.Option,
	) (*kkOps.ListPortalTeamsResponse, error)
	GetPortalTeam(
		ctx context.Context,
		teamID string,
		portalID string,
		opts ...kkOps.Option,
	) (*kkOps.GetPortalTeamResponse, error)
	CreatePortalTeam(
		ctx context.Context,
		portalID string,
		portalCreateTeamRequest *kkComps.PortalCreateTeamRequest,
		opts ...kkOps.Option,
	) (*kkOps.CreatePortalTeamResponse, error)
	UpdatePortalTeam(
		ctx context.Context,
		request kkOps.UpdatePortalTeamRequest,
		opts ...kkOps.Option,
	) (*kkOps.UpdatePortalTeamResponse, error)
	DeletePortalTeam(
		ctx context.Context,
		teamID string,
		portalID string,
		opts ...kkOps.Option,
	) (*kkOps.DeletePortalTeamResponse, error)
}

PortalTeamAPI defines the interface for portal team operations

type PortalTeamAPIImpl added in v0.1.6

type PortalTeamAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalTeamAPIImpl provides an implementation of PortalTeamAPI backed by the SDK

func (*PortalTeamAPIImpl) CreatePortalTeam added in v0.3.3

func (p *PortalTeamAPIImpl) CreatePortalTeam(
	ctx context.Context, portalID string, portalCreateTeamRequest *kkComps.PortalCreateTeamRequest,
	opts ...kkOps.Option,
) (*kkOps.CreatePortalTeamResponse, error)

CreatePortalTeam creates a new developer team for a portal

func (*PortalTeamAPIImpl) DeletePortalTeam added in v0.3.3

func (p *PortalTeamAPIImpl) DeletePortalTeam(
	ctx context.Context, teamID string, portalID string,
	opts ...kkOps.Option,
) (*kkOps.DeletePortalTeamResponse, error)

DeletePortalTeam deletes a developer team from a portal

func (*PortalTeamAPIImpl) GetPortalTeam added in v0.1.6

func (p *PortalTeamAPIImpl) GetPortalTeam(
	ctx context.Context, teamID string, portalID string,
	opts ...kkOps.Option,
) (*kkOps.GetPortalTeamResponse, error)

GetPortalTeam fetches a single developer team for a portal

func (*PortalTeamAPIImpl) ListPortalTeams added in v0.1.6

ListPortalTeams lists developer teams for a portal

func (*PortalTeamAPIImpl) UpdatePortalTeam added in v0.3.3

UpdatePortalTeam updates a developer team for a portal

type PortalTeamMembershipAPI added in v0.3.5

type PortalTeamMembershipAPI interface {
	ListPortalTeamDevelopers(
		ctx context.Context,
		request kkOps.ListPortalTeamDevelopersRequest,
		opts ...kkOps.Option,
	) (*kkOps.ListPortalTeamDevelopersResponse, error)
}

PortalTeamMembershipAPI defines the interface for developer team membership operations

type PortalTeamMembershipAPIImpl added in v0.3.5

type PortalTeamMembershipAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalTeamMembershipAPIImpl provides an implementation backed by the SDK

func (*PortalTeamMembershipAPIImpl) ListPortalTeamDevelopers added in v0.3.5

ListPortalTeamDevelopers lists developers for a specific team

type PortalTeamRolesAPI added in v0.3.4

type PortalTeamRolesAPI interface {
	ListPortalTeamRoles(
		ctx context.Context,
		request kkOps.ListPortalTeamRolesRequest,
		opts ...kkOps.Option,
	) (*kkOps.ListPortalTeamRolesResponse, error)
	AssignRoleToPortalTeams(
		ctx context.Context,
		request kkOps.AssignRoleToPortalTeamsRequest,
		opts ...kkOps.Option,
	) (*kkOps.AssignRoleToPortalTeamsResponse, error)
	RemoveRoleFromPortalTeam(
		ctx context.Context,
		request kkOps.RemoveRoleFromPortalTeamRequest,
		opts ...kkOps.Option,
	) (*kkOps.RemoveRoleFromPortalTeamResponse, error)
}

PortalTeamRolesAPI defines the interface for portal team role operations

type PortalTeamRolesAPIImpl added in v0.3.4

type PortalTeamRolesAPIImpl struct {
	SDK *kkSDK.SDK
}

PortalTeamRolesAPIImpl provides an implementation of PortalTeamRolesAPI backed by the SDK

func (*PortalTeamRolesAPIImpl) AssignRoleToPortalTeams added in v0.3.4

AssignRoleToPortalTeams assigns a role to a portal team

func (*PortalTeamRolesAPIImpl) ListPortalTeamRoles added in v0.3.4

ListPortalTeamRoles lists assigned roles for a portal team

func (*PortalTeamRolesAPIImpl) RemoveRoleFromPortalTeam added in v0.3.4

RemoveRoleFromPortalTeam removes an assigned role from a portal team

type SDKAPI

type SDKAPI interface {
	GetControlPlaneAPI() ControlPlaneAPI
	GetControlPlaneGroupsAPI() ControlPlaneGroupsAPI
	GetPortalAPI() PortalAPI
	GetAPIAPI() APIFullAPI // TODO: Change to APIAPI once refactoring is complete
	GetCatalogServicesAPI() CatalogServicesAPI
	GetDashboardsAPI() DashboardsAPI
	GetAPIDocumentAPI() APIDocumentAPI
	GetAPIVersionAPI() APIVersionAPI
	GetAPIPublicationAPI() APIPublicationAPI
	GetAPIImplementationAPI() APIImplementationAPI
	GetAppAuthStrategiesAPI() AppAuthStrategiesAPI
	GetDCRProvidersAPI() DCRProvidersAPI
	GetMeAPI() MeAPI
	GetPersonalAccessTokenAPI() PersonalAccessTokenAPI
	GetSystemAccountAccessTokenAPI() SystemAccountAccessTokenAPI
	GetGatewayServiceAPI() GatewayServiceAPI
	GetDataPlaneCertificateAPI() DataPlaneCertificateAPI
	GetSystemAccountAPI() SystemAccountAPI
	GetSystemAccountRolesAPI() SystemAccountRolesAPI
	GetSystemAccountTeamMembershipAPI() SystemAccountTeamMembershipAPI
	GetOrganizationTeamAPI() OrganizationTeamAPI
	GetOrganizationTeamRolesAPI() OrganizationTeamRolesAPI
	GetOrganizationUsersAPI() OrganizationUsersAPI
	GetOrganizationTeamMembershipAPI() OrganizationTeamMembershipAPI
	// Portal child resource APIs
	GetPortalPageAPI() PortalPageAPI
	GetPortalAuthSettingsAPI() PortalAuthSettingsAPI
	GetPortalIPAllowListAPI() PortalIPAllowListAPI
	GetPortalIntegrationsAPI() PortalIntegrationsAPI
	GetPortalIdentityProviderAPI() PortalIdentityProviderAPI
	GetPortalCustomizationAPI() PortalCustomizationAPI
	GetPortalCustomDomainAPI() PortalCustomDomainAPI
	GetPortalSnippetAPI() PortalSnippetAPI
	GetPortalApplicationAPI() PortalApplicationAPI
	GetPortalApplicationRegistrationAPI() PortalApplicationRegistrationAPI
	GetPortalDeveloperAPI() PortalDeveloperAPI
	GetPortalTeamAPI() PortalTeamAPI
	GetPortalTeamRolesAPI() PortalTeamRolesAPI
	GetPortalTeamMembershipAPI() PortalTeamMembershipAPI
	GetAssetsAPI() AssetsAPI
	GetPortalEmailsAPI() PortalEmailsAPI
	GetPortalAuditLogsAPI() PortalAuditLogsAPI
	GetAuditLogDestinationsAPI() AuditLogDestinationsAPI
	GetEventGatewayControlPlaneAPI() EGWControlPlaneAPI
	GetEventGatewayBackendClusterAPI() EventGatewayBackendClusterAPI
	GetEventGatewayVirtualClusterAPI() EventGatewayVirtualClusterAPI
	GetEventGatewayListenerAPI() EventGatewayListenerAPI
	GetEventGatewayListenerPolicyAPI() EventGatewayListenerPolicyAPI
	GetEventGatewayClusterPolicyAPI() EventGatewayClusterPolicyAPI
	GetEventGatewayProducePolicyAPI() EventGatewayProducePolicyAPI
	GetEventGatewayConsumePolicyAPI() EventGatewayConsumePolicyAPI
	GetEventGatewayDataPlaneCertificateAPI() EventGatewayDataPlaneCertificateAPI
	GetEventGatewaySchemaRegistryAPI() EventGatewaySchemaRegistryAPI
	GetEventGatewayStaticKeyAPI() EventGatewayStaticKeyAPI
	GetEventGatewayTLSTrustBundleAPI() EventGatewayTLSTrustBundleAPI
}

Provides an interface for the Konnect Go SDK "github.com/Kong/sdk-konnect-go" SDK struct allowing for easier testing and mocking

type SDKAPIFactory added in v0.0.13

type SDKAPIFactory func(cfg config.Hook, logger *slog.Logger) (SDKAPI, error)

A function that can build an SDKAPI with a given configuration

var DefaultSDKFactory SDKAPIFactory

DefaultSDKFactory can be overridden for testing purposes

type SnippetInfo added in v0.0.14

type SnippetInfo struct {
	ID   string
	Name string
}

SnippetInfo represents a portal snippet with minimal info needed for Terraform import

func GetSnippetsForPortal added in v0.0.14

func GetSnippetsForPortal(ctx context.Context, portalAPI PortalAPI, portalID string) ([]SnippetInfo, error)

GetSnippetsForPortal returns a list of snippets for a portal with pagination

type SystemAccountAPI added in v0.3.8

type SystemAccountAPI interface {
	// SystemAccount operations
	ListSystemAccounts(ctx context.Context,
		request kkOps.GetSystemAccountsRequest) (*kkOps.GetSystemAccountsResponse, error)
	GetSystemAccount(ctx context.Context,
		id string) (*kkOps.GetSystemAccountsIDResponse, error)
}

type SystemAccountAPIImpl added in v0.3.8

type SystemAccountAPIImpl struct {
	SDK *kkSDK.SDK
}

SystemAccountAPIImpl provides a concrete implementation backed by the SDK.

func (*SystemAccountAPIImpl) GetSystemAccount added in v0.3.8

GetSystemAccount implements the SystemAccountAPI interface

func (*SystemAccountAPIImpl) ListSystemAccounts added in v0.3.8

ListSystemAccounts implements the SystemAccountAPI interface

type SystemAccountAccessTokenAPI added in v1.1.0

type SystemAccountAccessTokenAPI interface {
	GetSystemAccountIDAccessTokens(
		ctx context.Context,
		request kkOps.GetSystemAccountIDAccessTokensRequest,
		opts ...kkOps.Option,
	) (*kkOps.GetSystemAccountIDAccessTokensResponse, error)
	PostSystemAccountsIDAccessTokens(
		ctx context.Context,
		accountID string,
		request *kkComps.CreateSystemAccountAccessToken,
		opts ...kkOps.Option,
	) (*kkOps.PostSystemAccountsIDAccessTokensResponse, error)
	GetSystemAccountsIDAccessTokensID(
		ctx context.Context,
		accountID string,
		tokenID string,
		opts ...kkOps.Option,
	) (*kkOps.GetSystemAccountsIDAccessTokensIDResponse, error)
	DeleteSystemAccountsIDAccessTokensID(
		ctx context.Context,
		accountID string,
		tokenID string,
		opts ...kkOps.Option,
	) (*kkOps.DeleteSystemAccountsIDAccessTokensIDResponse, error)
}

type SystemAccountAccessTokenAPIImpl added in v1.1.0

type SystemAccountAccessTokenAPIImpl struct {
	SDK *kkSDK.SDK
}

func (*SystemAccountAccessTokenAPIImpl) DeleteSystemAccountsIDAccessTokensID added in v1.1.0

func (s *SystemAccountAccessTokenAPIImpl) DeleteSystemAccountsIDAccessTokensID(
	ctx context.Context,
	accountID string,
	tokenID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteSystemAccountsIDAccessTokensIDResponse, error)

func (*SystemAccountAccessTokenAPIImpl) GetSystemAccountIDAccessTokens added in v1.1.0

func (*SystemAccountAccessTokenAPIImpl) GetSystemAccountsIDAccessTokensID added in v1.1.0

func (s *SystemAccountAccessTokenAPIImpl) GetSystemAccountsIDAccessTokensID(
	ctx context.Context,
	accountID string,
	tokenID string,
	opts ...kkOps.Option,
) (*kkOps.GetSystemAccountsIDAccessTokensIDResponse, error)

func (*SystemAccountAccessTokenAPIImpl) PostSystemAccountsIDAccessTokens added in v1.1.0

type SystemAccountRolesAPI added in v1.0.0

type SystemAccountRolesAPI interface {
	ListSystemAccountRoles(
		ctx context.Context,
		accountID string,
		filter *kkOps.GetSystemAccountsAccountIDAssignedRolesQueryParamFilter,
		opts ...kkOps.Option,
	) (*kkOps.GetSystemAccountsAccountIDAssignedRolesResponse, error)
	AssignSystemAccountRole(
		ctx context.Context,
		accountID string,
		assignRole *kkComps.AssignRole,
		opts ...kkOps.Option,
	) (*kkOps.PostSystemAccountsAccountIDAssignedRolesResponse, error)
	RemoveSystemAccountRole(
		ctx context.Context,
		accountID string,
		roleID string,
		opts ...kkOps.Option,
	) (*kkOps.DeleteSystemAccountsAccountIDAssignedRolesRoleIDResponse, error)
}

SystemAccountRolesAPI defines organization system account role operations.

type SystemAccountRolesAPIImpl added in v1.0.0

type SystemAccountRolesAPIImpl struct {
	SDK *kkSDK.SDK
}

SystemAccountRolesAPIImpl provides an SDK-backed implementation.

func (*SystemAccountRolesAPIImpl) AssignSystemAccountRole added in v1.0.0

func (s *SystemAccountRolesAPIImpl) AssignSystemAccountRole(
	ctx context.Context,
	accountID string,
	assignRole *kkComps.AssignRole,
	opts ...kkOps.Option,
) (*kkOps.PostSystemAccountsAccountIDAssignedRolesResponse, error)

func (*SystemAccountRolesAPIImpl) ListSystemAccountRoles added in v1.0.0

func (*SystemAccountRolesAPIImpl) RemoveSystemAccountRole added in v1.0.0

type SystemAccountTeamMembershipAPI added in v1.0.0

type SystemAccountTeamMembershipAPI interface {
	ListSystemAccountTeams(
		ctx context.Context,
		request kkOps.GetSystemAccountsAccountIDTeamsRequest,
		opts ...kkOps.Option,
	) (*kkOps.GetSystemAccountsAccountIDTeamsResponse, error)
	AddSystemAccountToTeam(
		ctx context.Context,
		teamID string,
		addSystemAccountToTeam *kkComps.AddSystemAccountToTeam,
		opts ...kkOps.Option,
	) (*kkOps.PostTeamsTeamIDSystemAccountsResponse, error)
	RemoveSystemAccountFromTeam(
		ctx context.Context,
		teamID string,
		accountID string,
		opts ...kkOps.Option,
	) (*kkOps.DeleteTeamsTeamIDSystemAccountsAccountIDResponse, error)
}

SystemAccountTeamMembershipAPI defines system account organization team membership operations.

type SystemAccountTeamMembershipAPIImpl added in v1.0.0

type SystemAccountTeamMembershipAPIImpl struct {
	SDK *kkSDK.SDK
}

SystemAccountTeamMembershipAPIImpl provides an SDK-backed implementation.

func (*SystemAccountTeamMembershipAPIImpl) AddSystemAccountToTeam added in v1.0.0

func (s *SystemAccountTeamMembershipAPIImpl) AddSystemAccountToTeam(
	ctx context.Context,
	teamID string,
	addSystemAccountToTeam *kkComps.AddSystemAccountToTeam,
	opts ...kkOps.Option,
) (*kkOps.PostTeamsTeamIDSystemAccountsResponse, error)

func (*SystemAccountTeamMembershipAPIImpl) ListSystemAccountTeams added in v1.0.0

func (*SystemAccountTeamMembershipAPIImpl) RemoveSystemAccountFromTeam added in v1.0.0

func (s *SystemAccountTeamMembershipAPIImpl) RemoveSystemAccountFromTeam(
	ctx context.Context,
	teamID string,
	accountID string,
	opts ...kkOps.Option,
) (*kkOps.DeleteTeamsTeamIDSystemAccountsAccountIDResponse, error)

Jump to

Keyboard shortcuts

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