Documentation
¶
Index ¶
- Constants
- Variables
- func ApplicationSummary(app kkComponents.Application) (id string, name string)
- func GetAllAppAuthStrategies(ctx context.Context, kkClient AppAuthStrategiesAPI) ([]any, error)
- func GetAllGatewayConsumerGroupConsumers(ctx context.Context, requestPageSize int64, cpID string, groupID string, ...) ([]kkComps.Consumer, error)
- func GetAllGatewayConsumerGroupPlugins(ctx context.Context, requestPageSize int64, cpID string, groupID string, ...) ([]kkComps.Plugin, error)
- func GetAllGatewayConsumerGroups(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK) ([]kkComps.ConsumerGroup, error)
- func GetAllGatewayConsumerPlugins(ctx context.Context, requestPageSize int64, cpID string, consumerID string, ...) ([]kkComps.Plugin, error)
- func GetAllGatewayConsumers(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK) ([]kkComps.Consumer, error)
- func GetAllGatewayPlugins(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK) ([]kkComps.Plugin, error)
- func GetAllGatewayRoutePlugins(ctx context.Context, requestPageSize int64, cpID string, routeID string, ...) ([]kkComps.Plugin, error)
- func GetAllGatewayRoutes(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK) ([]kkComps.Route, error)
- func GetAllGatewayServicePlugins(ctx context.Context, requestPageSize int64, cpID string, serviceID string, ...) ([]kkComps.Plugin, error)
- func GetAllGatewayServices(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK) ([]kkComps.ServiceOutput, error)
- func GetAllGatewayTargetsForUpstream(ctx context.Context, requestPageSize int64, cpID string, upstreamID string, ...) ([]kkComps.Target, error)
- func GetAllGatewayUpstreams(ctx context.Context, requestPageSize int64, cpID string, kkClient *kk.SDK) ([]kkComps.Upstream, error)
- func GetAllPortals(ctx context.Context, requestPageSize int64, kkClient *kkSDK.SDK) ([]kkComps.ListPortalsResponsePortal, error)
- func GetControlPlaneID(ctx context.Context, kkClient ControlPlaneAPI, cpName string) (string, error)
- func GetDocumentsForAPI(ctx context.Context, kkClient APIDocumentAPI, apiID string) ([]any, error)
- func GetImplementationsForAPI(ctx context.Context, kkClient APIImplementationAPI, apiID string) ([]any, error)
- func GetPublicationsForAPI(ctx context.Context, kkClient APIPublicationAPI, apiID string) ([]any, error)
- func GetVersionsForAPI(ctx context.Context, kkClient APIVersionAPI, apiID string) ([]any, error)
- func HasCustomDomainForPortal(ctx context.Context, portalAPI PortalAPI, portalID string) bool
- func HasPortalAuthSettings(ctx context.Context, portalAPI PortalAPI, portalID string) bool
- func HasPortalCustomization(ctx context.Context, portalAPI PortalAPI, portalID string) bool
- func HasPortalSettings(_ context.Context, _ PortalAPI, _ string) bool
- func Int64(v int64) *int64
- type APIAPI
- type APIAPIImpl
- func (a *APIAPIImpl) CreateAPI(ctx context.Context, request kkComps.CreateAPIRequest, opts ...kkOps.Option) (*kkOps.CreateAPIResponse, error)
- func (a *APIAPIImpl) CreateAPIDocument(ctx context.Context, apiID string, request kkComps.CreateAPIDocumentRequest, ...) (*kkOps.CreateAPIDocumentResponse, error)
- func (a *APIAPIImpl) CreateAPIVersion(ctx context.Context, apiID string, request kkComps.CreateAPIVersionRequest, ...) (*kkOps.CreateAPIVersionResponse, error)
- func (a *APIAPIImpl) DeleteAPI(ctx context.Context, apiID string, opts ...kkOps.Option) (*kkOps.DeleteAPIResponse, error)
- func (a *APIAPIImpl) DeleteAPIDocument(ctx context.Context, apiID string, documentID string, opts ...kkOps.Option) (*kkOps.DeleteAPIDocumentResponse, error)
- func (a *APIAPIImpl) DeleteAPIVersion(ctx context.Context, request kkOps.DeleteAPIVersionRequest, ...) (*kkOps.DeleteAPIVersionResponse, error)
- func (a *APIAPIImpl) DeletePublication(ctx context.Context, apiID string, portalID string, opts ...kkOps.Option) (*kkOps.DeletePublicationResponse, error)
- func (a *APIAPIImpl) FetchAPI(ctx context.Context, apiID string, opts ...kkOps.Option) (*kkOps.FetchAPIResponse, error)
- func (a *APIAPIImpl) FetchAPIDocument(ctx context.Context, apiID string, documentID string, opts ...kkOps.Option) (*kkOps.FetchAPIDocumentResponse, error)
- func (a *APIAPIImpl) ListAPIDocuments(ctx context.Context, request kkOps.ListAPIDocumentsRequest, ...) (*kkOps.ListAPIDocumentsResponse, error)
- func (a *APIAPIImpl) ListAPIImplementations(ctx context.Context, request kkOps.ListAPIImplementationsRequest, ...) (*kkOps.ListAPIImplementationsResponse, error)
- func (a *APIAPIImpl) ListAPIPublications(ctx context.Context, request kkOps.ListAPIPublicationsRequest, ...) (*kkOps.ListAPIPublicationsResponse, error)
- func (a *APIAPIImpl) ListAPIVersions(ctx context.Context, request kkOps.ListAPIVersionsRequest, ...) (*kkOps.ListAPIVersionsResponse, error)
- func (a *APIAPIImpl) ListApis(ctx context.Context, request kkOps.ListApisRequest, opts ...kkOps.Option) (*kkOps.ListApisResponse, error)
- func (a *APIAPIImpl) PublishAPIToPortal(ctx context.Context, request kkOps.PublishAPIToPortalRequest, ...) (*kkOps.PublishAPIToPortalResponse, error)
- func (a *APIAPIImpl) UpdateAPI(ctx context.Context, apiID string, request kkComps.UpdateAPIRequest, ...) (*kkOps.UpdateAPIResponse, error)
- func (a *APIAPIImpl) UpdateAPIDocument(ctx context.Context, apiID string, documentID string, ...) (*kkOps.UpdateAPIDocumentResponse, error)
- func (a *APIAPIImpl) UpdateAPIVersion(ctx context.Context, request kkOps.UpdateAPIVersionRequest, ...) (*kkOps.UpdateAPIVersionResponse, error)
- type APIDocumentAPI
- type APIDocumentAPIImpl
- func (a *APIDocumentAPIImpl) CreateAPIDocument(ctx context.Context, apiID string, ...) (*kkOps.CreateAPIDocumentResponse, error)
- func (a *APIDocumentAPIImpl) DeleteAPIDocument(ctx context.Context, apiID string, documentID string, opts ...kkOps.Option) (*kkOps.DeleteAPIDocumentResponse, error)
- func (a *APIDocumentAPIImpl) FetchAPIDocument(ctx context.Context, apiID string, documentID string, opts ...kkOps.Option) (*kkOps.FetchAPIDocumentResponse, error)
- func (a *APIDocumentAPIImpl) ListAPIDocuments(ctx context.Context, apiID string, ...) (*kkOps.ListAPIDocumentsResponse, error)
- func (a *APIDocumentAPIImpl) UpdateAPIDocument(ctx context.Context, apiID string, documentID string, ...) (*kkOps.UpdateAPIDocumentResponse, error)
- type APIFullAPI
- type APIImplementationAPI
- type APIImplementationAPIImpl
- func (a *APIImplementationAPIImpl) CreateAPIImplementation(ctx context.Context, apiID string, ...) (*kkOps.CreateAPIImplementationResponse, error)
- func (a *APIImplementationAPIImpl) DeleteAPIImplementation(ctx context.Context, apiID string, implementationID string, ...) (*kkOps.DeleteAPIImplementationResponse, error)
- func (a *APIImplementationAPIImpl) ListAPIImplementations(ctx context.Context, request kkOps.ListAPIImplementationsRequest, ...) (*kkOps.ListAPIImplementationsResponse, error)
- type APIPublicationAPI
- type APIPublicationAPIImpl
- func (a *APIPublicationAPIImpl) DeletePublication(ctx context.Context, apiID string, portalID string, opts ...kkOps.Option) (*kkOps.DeletePublicationResponse, error)
- func (a *APIPublicationAPIImpl) ListAPIPublications(ctx context.Context, request kkOps.ListAPIPublicationsRequest, ...) (*kkOps.ListAPIPublicationsResponse, error)
- func (a *APIPublicationAPIImpl) PublishAPIToPortal(ctx context.Context, request kkOps.PublishAPIToPortalRequest, ...) (*kkOps.PublishAPIToPortalResponse, error)
- type APIVersionAPI
- type APIVersionAPIImpl
- func (a *APIVersionAPIImpl) CreateAPIVersion(ctx context.Context, apiID string, request kkComps.CreateAPIVersionRequest, ...) (*kkOps.CreateAPIVersionResponse, error)
- func (a *APIVersionAPIImpl) DeleteAPIVersion(ctx context.Context, apiID string, versionID string, opts ...kkOps.Option) (*kkOps.DeleteAPIVersionResponse, error)
- func (a *APIVersionAPIImpl) FetchAPIVersion(ctx context.Context, apiID string, versionID string, opts ...kkOps.Option) (*kkOps.FetchAPIVersionResponse, error)
- func (a *APIVersionAPIImpl) ListAPIVersions(ctx context.Context, request kkOps.ListAPIVersionsRequest, ...) (*kkOps.ListAPIVersionsResponse, error)
- func (a *APIVersionAPIImpl) UpdateAPIVersion(ctx context.Context, request kkOps.UpdateAPIVersionRequest, ...) (*kkOps.UpdateAPIVersionResponse, error)
- type AppAuthStrategiesAPI
- type AppAuthStrategiesAPIImpl
- func (a *AppAuthStrategiesAPIImpl) CreateAppAuthStrategy(ctx context.Context, strategy kkComps.CreateAppAuthStrategyRequest) (*kkOPS.CreateAppAuthStrategyResponse, error)
- func (a *AppAuthStrategiesAPIImpl) DeleteAppAuthStrategy(ctx context.Context, id string) (*kkOPS.DeleteAppAuthStrategyResponse, error)
- func (a *AppAuthStrategiesAPIImpl) GetAppAuthStrategy(ctx context.Context, id string) (*kkOPS.GetAppAuthStrategyResponse, error)
- func (a *AppAuthStrategiesAPIImpl) ListAppAuthStrategies(ctx context.Context, request kkOPS.ListAppAuthStrategiesRequest, ...) (*kkOPS.ListAppAuthStrategiesResponse, error)
- func (a *AppAuthStrategiesAPIImpl) UpdateAppAuthStrategy(ctx context.Context, id string, strategy kkComps.UpdateAppAuthStrategyRequest) (*kkOPS.UpdateAppAuthStrategyResponse, error)
- type AssetsAPI
- type AssetsAPIImpl
- func (a *AssetsAPIImpl) GetPortalAssetFavicon(ctx context.Context, portalID string, opts ...kkOps.Option) (*kkOps.GetPortalAssetFaviconResponse, error)
- func (a *AssetsAPIImpl) GetPortalAssetFaviconRaw(ctx context.Context, portalID string, opts ...kkOps.Option) (*kkOps.GetPortalAssetFaviconRawResponse, error)
- func (a *AssetsAPIImpl) GetPortalAssetLogo(ctx context.Context, portalID string, opts ...kkOps.Option) (*kkOps.GetPortalAssetLogoResponse, error)
- func (a *AssetsAPIImpl) GetPortalAssetLogoRaw(ctx context.Context, portalID string, opts ...kkOps.Option) (*kkOps.GetPortalAssetLogoRawResponse, error)
- func (a *AssetsAPIImpl) ReplacePortalAssetFavicon(ctx context.Context, portalID string, ...) (*kkOps.ReplacePortalAssetFaviconResponse, error)
- func (a *AssetsAPIImpl) ReplacePortalAssetLogo(ctx context.Context, portalID string, ...) (*kkOps.ReplacePortalAssetLogoResponse, error)
- type CatalogServicesAPI
- type CatalogServicesAPIImpl
- func (c *CatalogServicesAPIImpl) CreateCatalogService(ctx context.Context, request kkComps.CreateCatalogService, ...) (*kkOps.CreateCatalogServiceResponse, error)
- func (c *CatalogServicesAPIImpl) DeleteCatalogService(ctx context.Context, id string, opts ...kkOps.Option) (*kkOps.DeleteCatalogServiceResponse, error)
- func (c *CatalogServicesAPIImpl) FetchCatalogService(ctx context.Context, id string, opts ...kkOps.Option) (*kkOps.FetchCatalogServiceResponse, error)
- func (c *CatalogServicesAPIImpl) ListCatalogServices(ctx context.Context, request kkOps.ListCatalogServicesRequest, ...) (*kkOps.ListCatalogServicesResponse, error)
- func (c *CatalogServicesAPIImpl) UpdateCatalogService(ctx context.Context, id string, request kkComps.UpdateCatalogService, ...) (*kkOps.UpdateCatalogServiceResponse, error)
- type ControlPlaneAPI
- type ControlPlaneGroupsAPI
- type EGWControlPlaneAPI
- type EGWControlPlaneAPIImpl
- func (a *EGWControlPlaneAPIImpl) CreateEGWControlPlane(ctx context.Context, request kkComps.CreateGatewayRequest, ...) (*kkOps.CreateEventGatewayResponse, error)
- func (a *EGWControlPlaneAPIImpl) DeleteEGWControlPlane(ctx context.Context, gatewayID string, opts ...kkOps.Option) (*kkOps.DeleteEventGatewayResponse, error)
- func (a *EGWControlPlaneAPIImpl) FetchEGWControlPlane(ctx context.Context, gatewayID string, opts ...kkOps.Option) (*kkOps.GetEventGatewayResponse, error)
- func (a *EGWControlPlaneAPIImpl) ListEGWControlPlanes(ctx context.Context, request kkOps.ListEventGatewaysRequest, ...) (*kkOps.ListEventGatewaysResponse, error)
- func (a *EGWControlPlaneAPIImpl) UpdateEGWControlPlane(ctx context.Context, gatewayID string, request kkComps.UpdateGatewayRequest, ...) (*kkOps.UpdateEventGatewayResponse, error)
- type EventGatewayBackendClusterAPI
- type EventGatewayBackendClusterAPIImpl
- func (a *EventGatewayBackendClusterAPIImpl) CreateEventGatewayBackendCluster(ctx context.Context, gatewayID string, ...) (*kkOps.CreateEventGatewayBackendClusterResponse, error)
- func (a *EventGatewayBackendClusterAPIImpl) DeleteEventGatewayBackendCluster(ctx context.Context, gatewayID string, clusterID string, opts ...kkOps.Option) (*kkOps.DeleteEventGatewayBackendClusterResponse, error)
- func (a *EventGatewayBackendClusterAPIImpl) FetchEventGatewayBackendCluster(ctx context.Context, gatewayID string, clusterID string, opts ...kkOps.Option) (*kkOps.GetEventGatewayBackendClusterResponse, error)
- func (a *EventGatewayBackendClusterAPIImpl) ListEventGatewayBackendClusters(ctx context.Context, request kkOps.ListEventGatewayBackendClustersRequest, ...) (*kkOps.ListEventGatewayBackendClustersResponse, error)
- func (a *EventGatewayBackendClusterAPIImpl) UpdateEventGatewayBackendCluster(ctx context.Context, gatewayID string, clusterID string, ...) (*kkOps.UpdateEventGatewayBackendClusterResponse, error)
- type EventGatewayVirtualClusterAPI
- type EventGatewayVirtualClusterAPIImpl
- func (a *EventGatewayVirtualClusterAPIImpl) CreateEventGatewayVirtualCluster(ctx context.Context, gatewayID string, ...) (*kkOps.CreateEventGatewayVirtualClusterResponse, error)
- func (a *EventGatewayVirtualClusterAPIImpl) DeleteEventGatewayVirtualCluster(ctx context.Context, gatewayID string, clusterID string, opts ...kkOps.Option) (*kkOps.DeleteEventGatewayVirtualClusterResponse, error)
- func (a *EventGatewayVirtualClusterAPIImpl) FetchEventGatewayVirtualCluster(ctx context.Context, gatewayID string, clusterID string, opts ...kkOps.Option) (*kkOps.GetEventGatewayVirtualClusterResponse, error)
- func (a *EventGatewayVirtualClusterAPIImpl) ListEventGatewayVirtualClusters(ctx context.Context, request kkOps.ListEventGatewayVirtualClustersRequest, ...) (*kkOps.ListEventGatewayVirtualClustersResponse, error)
- func (a *EventGatewayVirtualClusterAPIImpl) UpdateEventGatewayVirtualCluster(ctx context.Context, gatewayID string, clusterID string, ...) (*kkOps.UpdateEventGatewayVirtualClusterResponse, error)
- type GatewayServiceAPI
- type Key
- type KonnectSDK
- func (k *KonnectSDK) GetAPIAPI() APIFullAPI
- func (k *KonnectSDK) GetAPIDocumentAPI() APIDocumentAPI
- func (k *KonnectSDK) GetAPIImplementationAPI() APIImplementationAPI
- func (k *KonnectSDK) GetAPIPublicationAPI() APIPublicationAPI
- func (k *KonnectSDK) GetAPIVersionAPI() APIVersionAPI
- func (k *KonnectSDK) GetAppAuthStrategiesAPI() AppAuthStrategiesAPI
- func (k *KonnectSDK) GetAssetsAPI() AssetsAPI
- func (k *KonnectSDK) GetCatalogServicesAPI() CatalogServicesAPI
- func (k *KonnectSDK) GetControlPlaneAPI() ControlPlaneAPI
- func (k *KonnectSDK) GetControlPlaneGroupsAPI() ControlPlaneGroupsAPI
- func (k *KonnectSDK) GetEventGatewayBackendClusterAPI() EventGatewayBackendClusterAPI
- func (k *KonnectSDK) GetEventGatewayControlPlaneAPI() EGWControlPlaneAPI
- func (k *KonnectSDK) GetEventGatewayVirtualClusterAPI() EventGatewayVirtualClusterAPI
- func (k *KonnectSDK) GetGatewayServiceAPI() GatewayServiceAPI
- func (k *KonnectSDK) GetMeAPI() MeAPI
- func (k *KonnectSDK) GetOrganizationTeamAPI() OrganizationTeamAPI
- func (k *KonnectSDK) GetPortalAPI() PortalAPI
- func (k *KonnectSDK) GetPortalApplicationAPI() PortalApplicationAPI
- func (k *KonnectSDK) GetPortalApplicationRegistrationAPI() PortalApplicationRegistrationAPI
- func (k *KonnectSDK) GetPortalAuthSettingsAPI() PortalAuthSettingsAPI
- func (k *KonnectSDK) GetPortalCustomDomainAPI() PortalCustomDomainAPI
- func (k *KonnectSDK) GetPortalCustomizationAPI() PortalCustomizationAPI
- func (k *KonnectSDK) GetPortalDeveloperAPI() PortalDeveloperAPI
- func (k *KonnectSDK) GetPortalEmailsAPI() PortalEmailsAPI
- func (k *KonnectSDK) GetPortalPageAPI() PortalPageAPI
- func (k *KonnectSDK) GetPortalSnippetAPI() PortalSnippetAPI
- func (k *KonnectSDK) GetPortalTeamAPI() PortalTeamAPI
- func (k *KonnectSDK) GetPortalTeamMembershipAPI() PortalTeamMembershipAPI
- func (k *KonnectSDK) GetPortalTeamRolesAPI() PortalTeamRolesAPI
- func (k *KonnectSDK) GetSystemAccountAPI() SystemAccountAPI
- type MeAPI
- type MockControlPlaneAPI
- func (_m *MockControlPlaneAPI) CreateControlPlane(ctx context.Context, request components.CreateControlPlaneRequest, ...) (*operations.CreateControlPlaneResponse, error)
- func (_m *MockControlPlaneAPI) DeleteControlPlane(ctx context.Context, id string, opts ...operations.Option) (*operations.DeleteControlPlaneResponse, error)
- func (_m *MockControlPlaneAPI) EXPECT() *MockControlPlaneAPI_Expecter
- func (_m *MockControlPlaneAPI) GetControlPlane(ctx context.Context, id string, opts ...operations.Option) (*operations.GetControlPlaneResponse, error)
- func (_m *MockControlPlaneAPI) ListControlPlanes(ctx context.Context, request operations.ListControlPlanesRequest, ...) (*operations.ListControlPlanesResponse, error)
- func (_m *MockControlPlaneAPI) UpdateControlPlane(ctx context.Context, id string, ...) (*operations.UpdateControlPlaneResponse, error)
- type MockControlPlaneAPI_CreateControlPlane_Call
- func (_c *MockControlPlaneAPI_CreateControlPlane_Call) Return(_a0 *operations.CreateControlPlaneResponse, _a1 error) *MockControlPlaneAPI_CreateControlPlane_Call
- func (_c *MockControlPlaneAPI_CreateControlPlane_Call) Run(...) *MockControlPlaneAPI_CreateControlPlane_Call
- func (_c *MockControlPlaneAPI_CreateControlPlane_Call) RunAndReturn(...) *MockControlPlaneAPI_CreateControlPlane_Call
- type MockControlPlaneAPI_DeleteControlPlane_Call
- func (_c *MockControlPlaneAPI_DeleteControlPlane_Call) Return(_a0 *operations.DeleteControlPlaneResponse, _a1 error) *MockControlPlaneAPI_DeleteControlPlane_Call
- func (_c *MockControlPlaneAPI_DeleteControlPlane_Call) Run(run func(ctx context.Context, id string, opts ...operations.Option)) *MockControlPlaneAPI_DeleteControlPlane_Call
- func (_c *MockControlPlaneAPI_DeleteControlPlane_Call) RunAndReturn(...) *MockControlPlaneAPI_DeleteControlPlane_Call
- type MockControlPlaneAPI_Expecter
- func (_e *MockControlPlaneAPI_Expecter) CreateControlPlane(ctx interface{}, request interface{}, opts ...interface{}) *MockControlPlaneAPI_CreateControlPlane_Call
- func (_e *MockControlPlaneAPI_Expecter) DeleteControlPlane(ctx interface{}, id interface{}, opts ...interface{}) *MockControlPlaneAPI_DeleteControlPlane_Call
- func (_e *MockControlPlaneAPI_Expecter) GetControlPlane(ctx interface{}, id interface{}, opts ...interface{}) *MockControlPlaneAPI_GetControlPlane_Call
- func (_e *MockControlPlaneAPI_Expecter) ListControlPlanes(ctx interface{}, request interface{}, opts ...interface{}) *MockControlPlaneAPI_ListControlPlanes_Call
- func (_e *MockControlPlaneAPI_Expecter) UpdateControlPlane(ctx interface{}, id interface{}, updateControlPlaneRequest interface{}, ...) *MockControlPlaneAPI_UpdateControlPlane_Call
- type MockControlPlaneAPI_GetControlPlane_Call
- func (_c *MockControlPlaneAPI_GetControlPlane_Call) Return(_a0 *operations.GetControlPlaneResponse, _a1 error) *MockControlPlaneAPI_GetControlPlane_Call
- func (_c *MockControlPlaneAPI_GetControlPlane_Call) Run(run func(ctx context.Context, id string, opts ...operations.Option)) *MockControlPlaneAPI_GetControlPlane_Call
- func (_c *MockControlPlaneAPI_GetControlPlane_Call) RunAndReturn(...) *MockControlPlaneAPI_GetControlPlane_Call
- type MockControlPlaneAPI_ListControlPlanes_Call
- func (_c *MockControlPlaneAPI_ListControlPlanes_Call) Return(_a0 *operations.ListControlPlanesResponse, _a1 error) *MockControlPlaneAPI_ListControlPlanes_Call
- func (_c *MockControlPlaneAPI_ListControlPlanes_Call) Run(...) *MockControlPlaneAPI_ListControlPlanes_Call
- func (_c *MockControlPlaneAPI_ListControlPlanes_Call) RunAndReturn(...) *MockControlPlaneAPI_ListControlPlanes_Call
- type MockControlPlaneAPI_UpdateControlPlane_Call
- func (_c *MockControlPlaneAPI_UpdateControlPlane_Call) Return(_a0 *operations.UpdateControlPlaneResponse, _a1 error) *MockControlPlaneAPI_UpdateControlPlane_Call
- func (_c *MockControlPlaneAPI_UpdateControlPlane_Call) Run(run func(ctx context.Context, id string, ...)) *MockControlPlaneAPI_UpdateControlPlane_Call
- func (_c *MockControlPlaneAPI_UpdateControlPlane_Call) RunAndReturn(...) *MockControlPlaneAPI_UpdateControlPlane_Call
- type MockControlPlaneGroupsAPI
- func (m *MockControlPlaneGroupsAPI) EXPECT() *mock.Mock
- func (m *MockControlPlaneGroupsAPI) GetControlPlanesIDGroupMemberships(ctx context.Context, request kkOps.GetControlPlanesIDGroupMembershipsRequest, ...) (*kkOps.GetControlPlanesIDGroupMembershipsResponse, error)
- func (m *MockControlPlaneGroupsAPI) PutControlPlanesIDGroupMemberships(ctx context.Context, id string, groupMembership *kkComps.GroupMembership, ...) (*kkOps.PutControlPlanesIDGroupMembershipsResponse, error)
- type MockKonnectSDK
- func (m *MockKonnectSDK) GetAPIAPI() APIFullAPI
- func (m *MockKonnectSDK) GetAPIDocumentAPI() APIDocumentAPI
- func (m *MockKonnectSDK) GetAPIImplementationAPI() APIImplementationAPI
- func (m *MockKonnectSDK) GetAPIPublicationAPI() APIPublicationAPI
- func (m *MockKonnectSDK) GetAPIVersionAPI() APIVersionAPI
- func (m *MockKonnectSDK) GetAppAuthStrategiesAPI() AppAuthStrategiesAPI
- func (m *MockKonnectSDK) GetAssetsAPI() AssetsAPI
- func (m *MockKonnectSDK) GetCatalogServicesAPI() CatalogServicesAPI
- func (m *MockKonnectSDK) GetControlPlaneAPI() ControlPlaneAPI
- func (m *MockKonnectSDK) GetControlPlaneGroupsAPI() ControlPlaneGroupsAPI
- func (m *MockKonnectSDK) GetEventGatewayBackendClusterAPI() EventGatewayBackendClusterAPI
- func (m *MockKonnectSDK) GetEventGatewayControlPlaneAPI() EGWControlPlaneAPI
- func (m *MockKonnectSDK) GetEventGatewayVirtualClusterAPI() EventGatewayVirtualClusterAPI
- func (m *MockKonnectSDK) GetGatewayServiceAPI() GatewayServiceAPI
- func (m *MockKonnectSDK) GetMeAPI() MeAPI
- func (m *MockKonnectSDK) GetOrganizationTeamAPI() OrganizationTeamAPI
- func (m *MockKonnectSDK) GetPortalAPI() PortalAPI
- func (m *MockKonnectSDK) GetPortalApplicationAPI() PortalApplicationAPI
- func (m *MockKonnectSDK) GetPortalApplicationRegistrationAPI() PortalApplicationRegistrationAPI
- func (m *MockKonnectSDK) GetPortalAuthSettingsAPI() PortalAuthSettingsAPI
- func (m *MockKonnectSDK) GetPortalCustomDomainAPI() PortalCustomDomainAPI
- func (m *MockKonnectSDK) GetPortalCustomizationAPI() PortalCustomizationAPI
- func (m *MockKonnectSDK) GetPortalDeveloperAPI() PortalDeveloperAPI
- func (m *MockKonnectSDK) GetPortalEmailsAPI() PortalEmailsAPI
- func (m *MockKonnectSDK) GetPortalPageAPI() PortalPageAPI
- func (m *MockKonnectSDK) GetPortalSnippetAPI() PortalSnippetAPI
- func (m *MockKonnectSDK) GetPortalTeamAPI() PortalTeamAPI
- func (m *MockKonnectSDK) GetPortalTeamMembershipAPI() PortalTeamMembershipAPI
- func (m *MockKonnectSDK) GetPortalTeamRolesAPI() PortalTeamRolesAPI
- func (m *MockKonnectSDK) GetSystemAccountAPI() SystemAccountAPI
- type MockKonnectSDKFactory
- type OrganizationTeamAPI
- type OrganizationTeamAPIImpl
- func (t *OrganizationTeamAPIImpl) CreateOrganizationTeam(ctx context.Context, team *kkComps.CreateTeam) (*kkOps.CreateTeamResponse, error)
- func (t *OrganizationTeamAPIImpl) DeleteOrganizationTeam(ctx context.Context, id string) (*kkOps.DeleteTeamResponse, error)
- func (t *OrganizationTeamAPIImpl) GetOrganizationTeam(ctx context.Context, id string) (*kkOps.GetTeamResponse, error)
- func (t *OrganizationTeamAPIImpl) ListOrganizationTeams(ctx context.Context, request kkOps.ListTeamsRequest) (*kkOps.ListTeamsResponse, error)
- func (t *OrganizationTeamAPIImpl) UpdateOrganizationTeam(ctx context.Context, id string, team *kkComps.UpdateTeam) (*kkOps.UpdateTeamResponse, error)
- type PageInfo
- type PortalAPI
- type PortalAPIImpl
- func (p *PortalAPIImpl) CreatePortal(ctx context.Context, portal kkComps.CreatePortal) (*kkOps.CreatePortalResponse, error)
- func (p *PortalAPIImpl) DeletePortal(ctx context.Context, id string, force bool) (*kkOps.DeletePortalResponse, error)
- func (p *PortalAPIImpl) GetPortal(ctx context.Context, id string) (*kkOps.GetPortalResponse, error)
- func (p *PortalAPIImpl) ListPortals(ctx context.Context, request kkOps.ListPortalsRequest) (*kkOps.ListPortalsResponse, error)
- func (p *PortalAPIImpl) UpdatePortal(ctx context.Context, id string, portal kkComps.UpdatePortal) (*kkOps.UpdatePortalResponse, error)
- type PortalApplicationAPI
- type PortalApplicationAPIImpl
- func (p *PortalApplicationAPIImpl) DeleteApplication(ctx context.Context, portalID string, applicationID string, ...) (*kkOps.DeleteApplicationResponse, error)
- func (p *PortalApplicationAPIImpl) GetApplication(ctx context.Context, portalID string, applicationID string, ...) (*kkOps.GetApplicationResponse, error)
- func (p *PortalApplicationAPIImpl) ListApplications(ctx context.Context, request kkOps.ListApplicationsRequest, ...) (*kkOps.ListApplicationsResponse, error)
- type PortalApplicationRegistrationAPI
- type PortalApplicationRegistrationAPIImpl
- func (p *PortalApplicationRegistrationAPIImpl) DeleteApplicationRegistration(ctx context.Context, request kkOps.DeleteApplicationRegistrationRequest, ...) (*kkOps.DeleteApplicationRegistrationResponse, error)
- func (p *PortalApplicationRegistrationAPIImpl) GetApplicationRegistration(ctx context.Context, request kkOps.GetApplicationRegistrationRequest, ...) (*kkOps.GetApplicationRegistrationResponse, error)
- func (p *PortalApplicationRegistrationAPIImpl) ListRegistrations(ctx context.Context, request kkOps.ListRegistrationsRequest, ...) (*kkOps.ListRegistrationsResponse, error)
- type PortalAuthSettingsAPI
- type PortalAuthSettingsAPIImpl
- func (p *PortalAuthSettingsAPIImpl) GetPortalAuthenticationSettings(ctx context.Context, portalID string, opts ...kkOps.Option) (*kkOps.GetPortalAuthenticationSettingsResponse, error)
- func (p *PortalAuthSettingsAPIImpl) UpdatePortalAuthenticationSettings(ctx context.Context, portalID string, ...) (*kkOps.UpdatePortalAuthenticationSettingsResponse, error)
- type PortalCustomDomainAPI
- type PortalCustomDomainAPIImpl
- func (p *PortalCustomDomainAPIImpl) CreatePortalCustomDomain(ctx context.Context, portalID string, ...) (*kkOps.CreatePortalCustomDomainResponse, error)
- func (p *PortalCustomDomainAPIImpl) DeletePortalCustomDomain(ctx context.Context, portalID string, opts ...kkOps.Option) (*kkOps.DeletePortalCustomDomainResponse, error)
- func (p *PortalCustomDomainAPIImpl) GetPortalCustomDomain(ctx context.Context, portalID string, opts ...kkOps.Option) (*kkOps.GetPortalCustomDomainResponse, error)
- func (p *PortalCustomDomainAPIImpl) UpdatePortalCustomDomain(ctx context.Context, portalID string, ...) (*kkOps.UpdatePortalCustomDomainResponse, error)
- type PortalCustomizationAPI
- type PortalCustomizationAPIImpl
- func (p *PortalCustomizationAPIImpl) GetPortalCustomization(ctx context.Context, portalID string, opts ...kkOps.Option) (*kkOps.GetPortalCustomizationResponse, error)
- func (p *PortalCustomizationAPIImpl) UpdatePortalCustomization(ctx context.Context, portalID string, ...) (*kkOps.UpdatePortalCustomizationResponse, error)
- type PortalDeveloperAPI
- type PortalDeveloperAPIImpl
- func (p *PortalDeveloperAPIImpl) GetDeveloper(ctx context.Context, portalID string, developerID string, opts ...kkOps.Option) (*kkOps.GetDeveloperResponse, error)
- func (p *PortalDeveloperAPIImpl) ListPortalDevelopers(ctx context.Context, request kkOps.ListPortalDevelopersRequest, ...) (*kkOps.ListPortalDevelopersResponse, error)
- type PortalEmailsAPI
- type PortalEmailsAPIImpl
- func (p *PortalEmailsAPIImpl) CreatePortalEmailConfig(ctx context.Context, portalID string, body kkComps.PostPortalEmailConfig, ...) (*kkOps.CreatePortalEmailConfigResponse, error)
- func (p *PortalEmailsAPIImpl) DeletePortalCustomEmailTemplate(ctx context.Context, portalID string, templateName kkComps.EmailTemplateName, ...) (*kkOps.DeletePortalCustomEmailTemplateResponse, error)
- func (p *PortalEmailsAPIImpl) DeletePortalEmailConfig(ctx context.Context, portalID string, opts ...kkOps.Option) (*kkOps.DeletePortalEmailConfigResponse, error)
- func (p *PortalEmailsAPIImpl) GetEmailConfig(ctx context.Context, portalID string, opts ...kkOps.Option) (*kkOps.GetEmailConfigResponse, error)
- func (p *PortalEmailsAPIImpl) GetEmailDomain(ctx context.Context, emailDomain string, opts ...kkOps.Option) (*kkOps.GetEmailDomainResponse, error)
- func (p *PortalEmailsAPIImpl) GetPortalCustomEmailTemplate(ctx context.Context, portalID string, templateName kkComps.EmailTemplateName, ...) (*kkOps.GetPortalCustomEmailTemplateResponse, error)
- func (p *PortalEmailsAPIImpl) ListEmailDomains(ctx context.Context, request kkOps.ListEmailDomainsRequest, ...) (*kkOps.ListEmailDomainsResponse, error)
- func (p *PortalEmailsAPIImpl) ListPortalCustomEmailTemplates(ctx context.Context, portalID string, opts ...kkOps.Option) (*kkOps.ListPortalCustomEmailTemplatesResponse, error)
- func (p *PortalEmailsAPIImpl) UpdatePortalCustomEmailTemplate(ctx context.Context, request kkOps.UpdatePortalCustomEmailTemplateRequest, ...) (*kkOps.UpdatePortalCustomEmailTemplateResponse, error)
- func (p *PortalEmailsAPIImpl) UpdatePortalEmailConfig(ctx context.Context, portalID string, body *kkComps.PatchPortalEmailConfig, ...) (*kkOps.UpdatePortalEmailConfigResponse, error)
- type PortalPageAPI
- type PortalPageAPIImpl
- func (p *PortalPageAPIImpl) CreatePortalPage(ctx context.Context, portalID string, ...) (*kkOps.CreatePortalPageResponse, error)
- func (p *PortalPageAPIImpl) DeletePortalPage(ctx context.Context, portalID string, pageID string, opts ...kkOps.Option) (*kkOps.DeletePortalPageResponse, error)
- func (p *PortalPageAPIImpl) GetPortalPage(ctx context.Context, portalID string, pageID string, opts ...kkOps.Option) (*kkOps.GetPortalPageResponse, error)
- func (p *PortalPageAPIImpl) ListPortalPages(ctx context.Context, request kkOps.ListPortalPagesRequest, ...) (*kkOps.ListPortalPagesResponse, error)
- func (p *PortalPageAPIImpl) UpdatePortalPage(ctx context.Context, request kkOps.UpdatePortalPageRequest, ...) (*kkOps.UpdatePortalPageResponse, error)
- type PortalSnippetAPI
- type PortalSnippetAPIImpl
- func (p *PortalSnippetAPIImpl) CreatePortalSnippet(ctx context.Context, portalID string, ...) (*kkOps.CreatePortalSnippetResponse, error)
- func (p *PortalSnippetAPIImpl) DeletePortalSnippet(ctx context.Context, portalID string, snippetID string, opts ...kkOps.Option) (*kkOps.DeletePortalSnippetResponse, error)
- func (p *PortalSnippetAPIImpl) GetPortalSnippet(ctx context.Context, portalID string, snippetID string, opts ...kkOps.Option) (*kkOps.GetPortalSnippetResponse, error)
- func (p *PortalSnippetAPIImpl) ListPortalSnippets(ctx context.Context, request kkOps.ListPortalSnippetsRequest, ...) (*kkOps.ListPortalSnippetsResponse, error)
- func (p *PortalSnippetAPIImpl) UpdatePortalSnippet(ctx context.Context, request kkOps.UpdatePortalSnippetRequest, ...) (*kkOps.UpdatePortalSnippetResponse, error)
- type PortalTeamAPI
- type PortalTeamAPIImpl
- func (p *PortalTeamAPIImpl) CreatePortalTeam(ctx context.Context, portalID string, ...) (*kkOps.CreatePortalTeamResponse, error)
- func (p *PortalTeamAPIImpl) DeletePortalTeam(ctx context.Context, teamID string, portalID string, opts ...kkOps.Option) (*kkOps.DeletePortalTeamResponse, error)
- func (p *PortalTeamAPIImpl) GetPortalTeam(ctx context.Context, teamID string, portalID string, opts ...kkOps.Option) (*kkOps.GetPortalTeamResponse, error)
- func (p *PortalTeamAPIImpl) ListPortalTeams(ctx context.Context, request kkOps.ListPortalTeamsRequest, ...) (*kkOps.ListPortalTeamsResponse, error)
- func (p *PortalTeamAPIImpl) UpdatePortalTeam(ctx context.Context, request kkOps.UpdatePortalTeamRequest, ...) (*kkOps.UpdatePortalTeamResponse, error)
- type PortalTeamMembershipAPI
- type PortalTeamMembershipAPIImpl
- type PortalTeamRolesAPI
- type PortalTeamRolesAPIImpl
- func (p *PortalTeamRolesAPIImpl) AssignRoleToPortalTeams(ctx context.Context, request kkOps.AssignRoleToPortalTeamsRequest, ...) (*kkOps.AssignRoleToPortalTeamsResponse, error)
- func (p *PortalTeamRolesAPIImpl) ListPortalTeamRoles(ctx context.Context, request kkOps.ListPortalTeamRolesRequest, ...) (*kkOps.ListPortalTeamRolesResponse, error)
- func (p *PortalTeamRolesAPIImpl) RemoveRoleFromPortalTeam(ctx context.Context, request kkOps.RemoveRoleFromPortalTeamRequest, ...) (*kkOps.RemoveRoleFromPortalTeamResponse, error)
- type SDKAPI
- type SDKAPIFactory
- type SnippetInfo
- type SystemAccountAPI
- type SystemAccountAPIImpl
Constants ¶
const (
// EnvTrue is the string value "true" used for environment variable checks
EnvTrue = "true"
)
Variables ¶
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 GetAllGatewayConsumerGroupPlugins ¶ added in v0.4.0
func GetAllGatewayConsumerGroups ¶ added in v0.4.0
func GetAllGatewayConsumerPlugins ¶ added in v0.4.0
func GetAllGatewayConsumers ¶
func GetAllGatewayPlugins ¶ added in v0.4.0
func GetAllGatewayRoutePlugins ¶ added in v0.4.0
func GetAllGatewayRoutes ¶
func GetAllGatewayServicePlugins ¶ added in v0.4.0
func GetAllGatewayServices ¶
func GetAllGatewayTargetsForUpstream ¶ added in v0.4.0
func GetAllGatewayUpstreams ¶ added in v0.4.0
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 GetDocumentsForAPI ¶ added in v0.0.14
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
GetVersionsForAPI fetches all version objects for a specific API
func HasCustomDomainForPortal ¶ added in v0.0.14
HasCustomDomainForPortal checks if a portal has a custom domain configured
func HasPortalAuthSettings ¶ added in v0.0.14
HasPortalAuthSettings checks if a portal has auth settings configured
func HasPortalCustomization ¶ added in v0.0.14
HasPortalCustomization checks if a portal has customization settings configured
func HasPortalSettings ¶ added in v0.0.14
HasPortalSettings checks if the portal has settings that can be exported Returns false if the operation isn't supported
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
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
APIDocumentAPIImpl provides an implementation of the APIDocumentAPI interface
func (*APIDocumentAPIImpl) CreateAPIDocument ¶ added in v0.1.0
func (a *APIDocumentAPIImpl) CreateAPIDocument( ctx context.Context, apiID string, request kkComponents.CreateAPIDocumentRequest, opts ...kkOps.Option, ) (*kkOps.CreateAPIDocumentResponse, error)
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
func (a *APIDocumentAPIImpl) ListAPIDocuments(ctx context.Context, apiID string, filter *kkComponents.APIDocumentFilterParameters, opts ...kkOps.Option, ) (*kkOps.ListAPIDocumentsResponse, error)
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
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
func (a *APIImplementationAPIImpl) ListAPIImplementations(ctx context.Context, request kkOps.ListAPIImplementationsRequest, opts ...kkOps.Option, ) (*kkOps.ListAPIImplementationsResponse, error)
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
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
func (a *APIPublicationAPIImpl) ListAPIPublications(ctx context.Context, request kkOps.ListAPIPublicationsRequest, opts ...kkOps.Option, ) (*kkOps.ListAPIPublicationsResponse, error)
ListAPIPublications implements the APIPublicationAPI interface
func (*APIPublicationAPIImpl) PublishAPIToPortal ¶ added in v0.1.0
func (a *APIPublicationAPIImpl) PublishAPIToPortal(ctx context.Context, request kkOps.PublishAPIToPortalRequest, opts ...kkOps.Option, ) (*kkOps.PublishAPIToPortalResponse, error)
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
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
func (a *APIVersionAPIImpl) ListAPIVersions(ctx context.Context, request kkOps.ListAPIVersionsRequest, opts ...kkOps.Option, ) (*kkOps.ListAPIVersionsResponse, error)
ListAPIVersions implements the APIVersionAPI interface
func (*APIVersionAPIImpl) UpdateAPIVersion ¶ added in v0.1.0
func (a *APIVersionAPIImpl) UpdateAPIVersion(ctx context.Context, request kkOps.UpdateAPIVersionRequest, opts ...kkOps.Option, ) (*kkOps.UpdateAPIVersionResponse, error)
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
AppAuthStrategiesAPIImpl provides an implementation of the AppAuthStrategiesAPI interface
func (*AppAuthStrategiesAPIImpl) CreateAppAuthStrategy ¶ added in v0.1.0
func (a *AppAuthStrategiesAPIImpl) CreateAppAuthStrategy(ctx context.Context, strategy kkComps.CreateAppAuthStrategyRequest, ) (*kkOPS.CreateAppAuthStrategyResponse, error)
CreateAppAuthStrategy implements the AppAuthStrategiesAPI interface
func (*AppAuthStrategiesAPIImpl) DeleteAppAuthStrategy ¶ added in v0.1.0
func (a *AppAuthStrategiesAPIImpl) DeleteAppAuthStrategy(ctx context.Context, id string, ) (*kkOPS.DeleteAppAuthStrategyResponse, error)
DeleteAppAuthStrategy implements the AppAuthStrategiesAPI interface
func (*AppAuthStrategiesAPIImpl) GetAppAuthStrategy ¶ added in v0.1.0
func (a *AppAuthStrategiesAPIImpl) GetAppAuthStrategy(ctx context.Context, id string, ) (*kkOPS.GetAppAuthStrategyResponse, error)
GetAppAuthStrategy implements the AppAuthStrategiesAPI interface
func (*AppAuthStrategiesAPIImpl) ListAppAuthStrategies ¶ added in v0.1.0
func (a *AppAuthStrategiesAPIImpl) ListAppAuthStrategies(ctx context.Context, request kkOPS.ListAppAuthStrategiesRequest, opts ...kkOPS.Option, ) (*kkOPS.ListAppAuthStrategiesResponse, error)
ListAppAuthStrategies implements the AppAuthStrategiesAPI interface
func (*AppAuthStrategiesAPIImpl) UpdateAppAuthStrategy ¶ added in v0.1.0
func (a *AppAuthStrategiesAPIImpl) UpdateAppAuthStrategy(ctx context.Context, id string, strategy kkComps.UpdateAppAuthStrategyRequest, ) (*kkOPS.UpdateAppAuthStrategyResponse, error)
UpdateAppAuthStrategy implements the AppAuthStrategiesAPI interface
type AssetsAPI ¶ added in v0.3.5
type AssetsAPI interface {
// Logo operations
GetPortalAssetLogo(ctx context.Context, portalID string,
opts ...kkOps.Option) (*kkOps.GetPortalAssetLogoResponse, error)
GetPortalAssetLogoRaw(ctx context.Context, portalID string,
opts ...kkOps.Option) (*kkOps.GetPortalAssetLogoRawResponse, error)
ReplacePortalAssetLogo(ctx context.Context, portalID string, request *kkComponents.ReplacePortalImageAsset,
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
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 (*AssetsAPIImpl) GetPortalAssetLogo ¶ added in v0.3.5
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 (*AssetsAPIImpl) ReplacePortalAssetLogo ¶ added in v0.3.5
func (a *AssetsAPIImpl) ReplacePortalAssetLogo( ctx context.Context, portalID string, request *kkComponents.ReplacePortalImageAsset, opts ...kkOps.Option, ) (*kkOps.ReplacePortalAssetLogoResponse, error)
ReplacePortalAssetLogo implements the AssetsAPI interface
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
CatalogServicesAPIImpl provides the real SDK implementation.
func (*CatalogServicesAPIImpl) CreateCatalogService ¶ added in v0.3.6
func (c *CatalogServicesAPIImpl) CreateCatalogService(ctx context.Context, request kkComps.CreateCatalogService, opts ...kkOps.Option, ) (*kkOps.CreateCatalogServiceResponse, error)
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 (c *CatalogServicesAPIImpl) ListCatalogServices(ctx context.Context, request kkOps.ListCatalogServicesRequest, opts ...kkOps.Option, ) (*kkOps.ListCatalogServicesResponse, error)
func (*CatalogServicesAPIImpl) UpdateCatalogService ¶ added in v0.3.6
func (c *CatalogServicesAPIImpl) UpdateCatalogService( ctx context.Context, id string, request kkComps.UpdateCatalogService, opts ...kkOps.Option, ) (*kkOps.UpdateCatalogServiceResponse, error)
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)
}
ControlPlaneGroupsAPI defines the subset of SDK operations required for managing control plane group memberships.
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
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 (a *EGWControlPlaneAPIImpl) CreateEGWControlPlane(ctx context.Context, request kkComps.CreateGatewayRequest, opts ...kkOps.Option, ) (*kkOps.CreateEventGatewayResponse, error)
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 (a *EGWControlPlaneAPIImpl) ListEGWControlPlanes(ctx context.Context, request kkOps.ListEventGatewaysRequest, opts ...kkOps.Option, ) (*kkOps.ListEventGatewaysResponse, error)
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
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 (a *EventGatewayBackendClusterAPIImpl) CreateEventGatewayBackendCluster( ctx context.Context, gatewayID string, request kkComps.CreateBackendClusterRequest, opts ...kkOps.Option, ) (*kkOps.CreateEventGatewayBackendClusterResponse, error)
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 (a *EventGatewayBackendClusterAPIImpl) ListEventGatewayBackendClusters( ctx context.Context, request kkOps.ListEventGatewayBackendClustersRequest, opts ...kkOps.Option, ) (*kkOps.ListEventGatewayBackendClustersResponse, error)
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 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
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 (a *EventGatewayVirtualClusterAPIImpl) CreateEventGatewayVirtualCluster( ctx context.Context, gatewayID string, request kkComps.CreateVirtualClusterRequest, opts ...kkOps.Option, ) (*kkOps.CreateEventGatewayVirtualClusterResponse, error)
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 (a *EventGatewayVirtualClusterAPIImpl) ListEventGatewayVirtualClusters( ctx context.Context, request kkOps.ListEventGatewayVirtualClustersRequest, opts ...kkOps.Option, ) (*kkOps.ListEventGatewayVirtualClustersResponse, error)
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 KonnectSDK ¶
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) 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) GetEventGatewayBackendClusterAPI ¶ added in v0.3.8
func (k *KonnectSDK) GetEventGatewayBackendClusterAPI() EventGatewayBackendClusterAPI
Returns the implementation of the EventGatewayBackendCluster interface
func (*KonnectSDK) GetEventGatewayControlPlaneAPI ¶ added in v0.3.7
func (k *KonnectSDK) GetEventGatewayControlPlaneAPI() EGWControlPlaneAPI
Returns the implementation of the EGWControlPlaneAPI 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) 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) 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) 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
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 ¶
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 ¶
func (_m *MockControlPlaneAPI) CreateControlPlane(ctx context.Context, request components.CreateControlPlaneRequest, opts ...operations.Option) (*operations.CreateControlPlaneResponse, error)
CreateControlPlane provides a mock function with given fields: ctx, request, opts
func (*MockControlPlaneAPI) DeleteControlPlane ¶
func (_m *MockControlPlaneAPI) DeleteControlPlane(ctx context.Context, id string, opts ...operations.Option) (*operations.DeleteControlPlaneResponse, error)
DeleteControlPlane provides a mock function with given fields: ctx, id, opts
func (*MockControlPlaneAPI) EXPECT ¶
func (_m *MockControlPlaneAPI) EXPECT() *MockControlPlaneAPI_Expecter
func (*MockControlPlaneAPI) GetControlPlane ¶
func (_m *MockControlPlaneAPI) GetControlPlane(ctx context.Context, id string, opts ...operations.Option) (*operations.GetControlPlaneResponse, error)
GetControlPlane provides a mock function with given fields: ctx, id, opts
func (*MockControlPlaneAPI) ListControlPlanes ¶
func (_m *MockControlPlaneAPI) ListControlPlanes(ctx context.Context, request operations.ListControlPlanesRequest, opts ...operations.Option) (*operations.ListControlPlanesResponse, error)
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 ¶
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 (_c *MockControlPlaneAPI_CreateControlPlane_Call) Return(_a0 *operations.CreateControlPlaneResponse, _a1 error) *MockControlPlaneAPI_CreateControlPlane_Call
func (*MockControlPlaneAPI_CreateControlPlane_Call) Run ¶
func (_c *MockControlPlaneAPI_CreateControlPlane_Call) Run(run func(ctx context.Context, request components.CreateControlPlaneRequest, opts ...operations.Option)) *MockControlPlaneAPI_CreateControlPlane_Call
func (*MockControlPlaneAPI_CreateControlPlane_Call) RunAndReturn ¶
func (_c *MockControlPlaneAPI_CreateControlPlane_Call) RunAndReturn(run func(context.Context, components.CreateControlPlaneRequest, ...operations.Option) (*operations.CreateControlPlaneResponse, error)) *MockControlPlaneAPI_CreateControlPlane_Call
type MockControlPlaneAPI_DeleteControlPlane_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 (_c *MockControlPlaneAPI_DeleteControlPlane_Call) Return(_a0 *operations.DeleteControlPlaneResponse, _a1 error) *MockControlPlaneAPI_DeleteControlPlane_Call
func (*MockControlPlaneAPI_DeleteControlPlane_Call) Run ¶
func (_c *MockControlPlaneAPI_DeleteControlPlane_Call) Run(run func(ctx context.Context, id string, opts ...operations.Option)) *MockControlPlaneAPI_DeleteControlPlane_Call
func (*MockControlPlaneAPI_DeleteControlPlane_Call) RunAndReturn ¶
func (_c *MockControlPlaneAPI_DeleteControlPlane_Call) RunAndReturn(run func(context.Context, string, ...operations.Option) (*operations.DeleteControlPlaneResponse, error)) *MockControlPlaneAPI_DeleteControlPlane_Call
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 ¶
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 (_c *MockControlPlaneAPI_GetControlPlane_Call) Return(_a0 *operations.GetControlPlaneResponse, _a1 error) *MockControlPlaneAPI_GetControlPlane_Call
func (*MockControlPlaneAPI_GetControlPlane_Call) Run ¶
func (_c *MockControlPlaneAPI_GetControlPlane_Call) Run(run func(ctx context.Context, id string, opts ...operations.Option)) *MockControlPlaneAPI_GetControlPlane_Call
func (*MockControlPlaneAPI_GetControlPlane_Call) RunAndReturn ¶
func (_c *MockControlPlaneAPI_GetControlPlane_Call) RunAndReturn(run func(context.Context, string, ...operations.Option) (*operations.GetControlPlaneResponse, error)) *MockControlPlaneAPI_GetControlPlane_Call
type MockControlPlaneAPI_ListControlPlanes_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 (_c *MockControlPlaneAPI_ListControlPlanes_Call) Return(_a0 *operations.ListControlPlanesResponse, _a1 error) *MockControlPlaneAPI_ListControlPlanes_Call
func (*MockControlPlaneAPI_ListControlPlanes_Call) Run ¶
func (_c *MockControlPlaneAPI_ListControlPlanes_Call) Run(run func(ctx context.Context, request operations.ListControlPlanesRequest, opts ...operations.Option)) *MockControlPlaneAPI_ListControlPlanes_Call
func (*MockControlPlaneAPI_ListControlPlanes_Call) RunAndReturn ¶
func (_c *MockControlPlaneAPI_ListControlPlanes_Call) RunAndReturn(run func(context.Context, operations.ListControlPlanesRequest, ...operations.Option) (*operations.ListControlPlanesResponse, error)) *MockControlPlaneAPI_ListControlPlanes_Call
type MockControlPlaneAPI_UpdateControlPlane_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 (_c *MockControlPlaneAPI_UpdateControlPlane_Call) Return(_a0 *operations.UpdateControlPlaneResponse, _a1 error) *MockControlPlaneAPI_UpdateControlPlane_Call
func (*MockControlPlaneAPI_UpdateControlPlane_Call) Run ¶
func (_c *MockControlPlaneAPI_UpdateControlPlane_Call) Run(run func(ctx context.Context, id string, updateControlPlaneRequest components.UpdateControlPlaneRequest, opts ...operations.Option)) *MockControlPlaneAPI_UpdateControlPlane_Call
func (*MockControlPlaneAPI_UpdateControlPlane_Call) RunAndReturn ¶
func (_c *MockControlPlaneAPI_UpdateControlPlane_Call) RunAndReturn(run func(context.Context, string, components.UpdateControlPlaneRequest, ...operations.Option) (*operations.UpdateControlPlaneResponse, error)) *MockControlPlaneAPI_UpdateControlPlane_Call
type MockControlPlaneGroupsAPI ¶ added in v0.3.0
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
func (m *MockControlPlaneGroupsAPI) GetControlPlanesIDGroupMemberships( ctx context.Context, request kkOps.GetControlPlanesIDGroupMembershipsRequest, opts ...kkOps.Option, ) (*kkOps.GetControlPlanesIDGroupMembershipsResponse, error)
GetControlPlanesIDGroupMemberships mocks the corresponding 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
APIDocumentFactory func() APIDocumentAPI
APIVersionFactory func() APIVersionAPI
APIPublicationFactory func() APIPublicationAPI
APIImplementationFactory func() APIImplementationAPI
AppAuthStrategiesFactory func() AppAuthStrategiesAPI
MeFactory func() MeAPI
GatewayServiceFactory func() GatewayServiceAPI
SystemAccountFactory func() SystemAccountAPI
OrganizationTeamFactory func() OrganizationTeamAPI
// Portal child resource factories
PortalPageFactory func() PortalPageAPI
PortalAuthSettingsFactory func() PortalAuthSettingsAPI
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
// Event Gateway Control Plane factory
EventGatewayControlPlaneFactory func() EGWControlPlaneAPI
EventGatewayBackendClusterFactory func() EventGatewayBackendClusterAPI
EventGatewayVirtualClusterFactory func() EventGatewayVirtualClusterAPI
}
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) 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) GetEventGatewayBackendClusterAPI ¶ added in v0.3.8
func (m *MockKonnectSDK) GetEventGatewayBackendClusterAPI() EventGatewayBackendClusterAPI
Returns a mock instance of the EventGatewayBackendClusterAPI
func (*MockKonnectSDK) GetEventGatewayControlPlaneAPI ¶ added in v0.3.7
func (m *MockKonnectSDK) GetEventGatewayControlPlaneAPI() EGWControlPlaneAPI
Returns a mock instance of the EGWControlPlaneAPI
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) 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) 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) 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
type MockKonnectSDKFactory ¶
This is a mock implementation of the SDKFactory interface which can associate a Testing.T instance with any MockKonnectSDK instances Built by it
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
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 PageInfo ¶ added in v0.0.14
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 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
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
func (p *PortalAPIImpl) ListPortals( ctx context.Context, request kkOps.ListPortalsRequest, ) (*kkOps.ListPortalsResponse, error)
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
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
func (p *PortalApplicationAPIImpl) ListApplications( ctx context.Context, request kkOps.ListApplicationsRequest, opts ...kkOps.Option, ) (*kkOps.ListApplicationsResponse, error)
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
PortalApplicationRegistrationAPIImpl provides an implementation of the PortalApplicationRegistrationAPI interface
func (*PortalApplicationRegistrationAPIImpl) DeleteApplicationRegistration ¶ added in v0.3.4
func (p *PortalApplicationRegistrationAPIImpl) DeleteApplicationRegistration( ctx context.Context, request kkOps.DeleteApplicationRegistrationRequest, opts ...kkOps.Option, ) (*kkOps.DeleteApplicationRegistrationResponse, error)
DeleteApplicationRegistration removes a specific application registration
func (*PortalApplicationRegistrationAPIImpl) GetApplicationRegistration ¶ added in v0.3.4
func (p *PortalApplicationRegistrationAPIImpl) GetApplicationRegistration( ctx context.Context, request kkOps.GetApplicationRegistrationRequest, opts ...kkOps.Option, ) (*kkOps.GetApplicationRegistrationResponse, error)
GetApplicationRegistration retrieves a specific application registration
func (*PortalApplicationRegistrationAPIImpl) ListRegistrations ¶ added in v0.3.4
func (p *PortalApplicationRegistrationAPIImpl) ListRegistrations( ctx context.Context, request kkOps.ListRegistrationsRequest, opts ...kkOps.Option, ) (*kkOps.ListRegistrationsResponse, error)
ListRegistrations lists application registrations scoped to a portal
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)
}
PortalAuthSettingsAPI defines the interface for portal authentication settings operations (singleton).
type PortalAuthSettingsAPIImpl ¶ added in v0.3.4
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) UpdatePortalAuthenticationSettings ¶ added in v0.3.4
func (p *PortalAuthSettingsAPIImpl) UpdatePortalAuthenticationSettings( ctx context.Context, portalID string, request *kkComponents.PortalAuthenticationSettingsUpdateRequest, opts ...kkOps.Option, ) (*kkOps.UpdatePortalAuthenticationSettingsResponse, error)
UpdatePortalAuthenticationSettings updates portal auth settings.
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
PortalCustomDomainAPIImpl provides an implementation of the PortalCustomDomainAPI interface
func (*PortalCustomDomainAPIImpl) CreatePortalCustomDomain ¶ added in v0.1.0
func (p *PortalCustomDomainAPIImpl) CreatePortalCustomDomain( ctx context.Context, portalID string, request kkComponents.CreatePortalCustomDomainRequest, opts ...kkOps.Option, ) (*kkOps.CreatePortalCustomDomainResponse, error)
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
func (p *PortalCustomDomainAPIImpl) UpdatePortalCustomDomain( ctx context.Context, portalID string, request kkComponents.UpdatePortalCustomDomainRequest, opts ...kkOps.Option, ) (*kkOps.UpdatePortalCustomDomainResponse, error)
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.PortalCustomization,
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
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.PortalCustomization, 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
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
func (p *PortalDeveloperAPIImpl) ListPortalDevelopers( ctx context.Context, request kkOps.ListPortalDevelopersRequest, opts ...kkOps.Option, ) (*kkOps.ListPortalDevelopersResponse, error)
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
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
func (p *PortalEmailsAPIImpl) ListEmailDomains( ctx context.Context, request kkOps.ListEmailDomainsRequest, opts ...kkOps.Option, ) (*kkOps.ListEmailDomainsResponse, error)
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
func (p *PortalEmailsAPIImpl) UpdatePortalCustomEmailTemplate( ctx context.Context, request kkOps.UpdatePortalCustomEmailTemplateRequest, opts ...kkOps.Option, ) (*kkOps.UpdatePortalCustomEmailTemplateResponse, error)
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 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
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
func (p *PortalPageAPIImpl) ListPortalPages( ctx context.Context, request kkOps.ListPortalPagesRequest, opts ...kkOps.Option, ) (*kkOps.ListPortalPagesResponse, error)
ListPortalPages implements the PortalPageAPI interface
func (*PortalPageAPIImpl) UpdatePortalPage ¶ added in v0.1.0
func (p *PortalPageAPIImpl) UpdatePortalPage( ctx context.Context, request kkOps.UpdatePortalPageRequest, opts ...kkOps.Option, ) (*kkOps.UpdatePortalPageResponse, error)
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
PortalSnippetAPIImpl provides an implementation of the PortalSnippetAPI interface
func (*PortalSnippetAPIImpl) CreatePortalSnippet ¶ added in v0.1.0
func (p *PortalSnippetAPIImpl) CreatePortalSnippet( ctx context.Context, portalID string, request kkComponents.CreatePortalSnippetRequest, opts ...kkOps.Option, ) (*kkOps.CreatePortalSnippetResponse, error)
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
func (p *PortalSnippetAPIImpl) ListPortalSnippets( ctx context.Context, request kkOps.ListPortalSnippetsRequest, opts ...kkOps.Option, ) (*kkOps.ListPortalSnippetsResponse, error)
ListPortalSnippets implements the PortalSnippetAPI interface
func (*PortalSnippetAPIImpl) UpdatePortalSnippet ¶ added in v0.1.0
func (p *PortalSnippetAPIImpl) UpdatePortalSnippet( ctx context.Context, request kkOps.UpdatePortalSnippetRequest, opts ...kkOps.Option, ) (*kkOps.UpdatePortalSnippetResponse, error)
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
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
func (p *PortalTeamAPIImpl) ListPortalTeams( ctx context.Context, request kkOps.ListPortalTeamsRequest, opts ...kkOps.Option, ) (*kkOps.ListPortalTeamsResponse, error)
ListPortalTeams lists developer teams for a portal
func (*PortalTeamAPIImpl) UpdatePortalTeam ¶ added in v0.3.3
func (p *PortalTeamAPIImpl) UpdatePortalTeam( ctx context.Context, request kkOps.UpdatePortalTeamRequest, opts ...kkOps.Option, ) (*kkOps.UpdatePortalTeamResponse, error)
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
PortalTeamMembershipAPIImpl provides an implementation backed by the SDK
func (*PortalTeamMembershipAPIImpl) ListPortalTeamDevelopers ¶ added in v0.3.5
func (p *PortalTeamMembershipAPIImpl) ListPortalTeamDevelopers( ctx context.Context, request kkOps.ListPortalTeamDevelopersRequest, opts ...kkOps.Option, ) (*kkOps.ListPortalTeamDevelopersResponse, error)
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
PortalTeamRolesAPIImpl provides an implementation of PortalTeamRolesAPI backed by the SDK
func (*PortalTeamRolesAPIImpl) AssignRoleToPortalTeams ¶ added in v0.3.4
func (p *PortalTeamRolesAPIImpl) AssignRoleToPortalTeams( ctx context.Context, request kkOps.AssignRoleToPortalTeamsRequest, opts ...kkOps.Option, ) (*kkOps.AssignRoleToPortalTeamsResponse, error)
AssignRoleToPortalTeams assigns a role to a portal team
func (*PortalTeamRolesAPIImpl) ListPortalTeamRoles ¶ added in v0.3.4
func (p *PortalTeamRolesAPIImpl) ListPortalTeamRoles( ctx context.Context, request kkOps.ListPortalTeamRolesRequest, opts ...kkOps.Option, ) (*kkOps.ListPortalTeamRolesResponse, error)
ListPortalTeamRoles lists assigned roles for a portal team
func (*PortalTeamRolesAPIImpl) RemoveRoleFromPortalTeam ¶ added in v0.3.4
func (p *PortalTeamRolesAPIImpl) RemoveRoleFromPortalTeam( ctx context.Context, request kkOps.RemoveRoleFromPortalTeamRequest, opts ...kkOps.Option, ) (*kkOps.RemoveRoleFromPortalTeamResponse, error)
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
GetAPIDocumentAPI() APIDocumentAPI
GetAPIVersionAPI() APIVersionAPI
GetAPIPublicationAPI() APIPublicationAPI
GetAPIImplementationAPI() APIImplementationAPI
GetAppAuthStrategiesAPI() AppAuthStrategiesAPI
GetMeAPI() MeAPI
GetGatewayServiceAPI() GatewayServiceAPI
GetSystemAccountAPI() SystemAccountAPI
GetOrganizationTeamAPI() OrganizationTeamAPI
// Portal child resource APIs
GetPortalPageAPI() PortalPageAPI
GetPortalAuthSettingsAPI() PortalAuthSettingsAPI
GetPortalCustomizationAPI() PortalCustomizationAPI
GetPortalCustomDomainAPI() PortalCustomDomainAPI
GetPortalSnippetAPI() PortalSnippetAPI
GetPortalApplicationAPI() PortalApplicationAPI
GetPortalApplicationRegistrationAPI() PortalApplicationRegistrationAPI
GetPortalDeveloperAPI() PortalDeveloperAPI
GetPortalTeamAPI() PortalTeamAPI
GetPortalTeamRolesAPI() PortalTeamRolesAPI
GetPortalTeamMembershipAPI() PortalTeamMembershipAPI
GetAssetsAPI() AssetsAPI
GetPortalEmailsAPI() PortalEmailsAPI
GetEventGatewayControlPlaneAPI() EGWControlPlaneAPI
GetEventGatewayBackendClusterAPI() EventGatewayBackendClusterAPI
GetEventGatewayVirtualClusterAPI() EventGatewayVirtualClusterAPI
}
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
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
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
SystemAccountAPIImpl provides a concrete implementation backed by the SDK.
func (*SystemAccountAPIImpl) GetSystemAccount ¶ added in v0.3.8
func (p *SystemAccountAPIImpl) GetSystemAccount(ctx context.Context, id string, ) (*kkOps.GetSystemAccountsIDResponse, error)
GetSystemAccount implements the SystemAccountAPI interface
func (*SystemAccountAPIImpl) ListSystemAccounts ¶ added in v0.3.8
func (p *SystemAccountAPIImpl) ListSystemAccounts(ctx context.Context, request kkOps.GetSystemAccountsRequest, ) (*kkOps.GetSystemAccountsResponse, error)
ListSystemAccounts implements the SystemAccountAPI interface
Source Files
¶
- api_documents.go
- api_implementations.go
- api_publications.go
- api_versions.go
- apis.go
- app_auth_strategies.go
- assets.go
- catalog_services.go
- consumergroups.go
- consumers.go
- control_plane_groups.go
- control_planes.go
- controlplaneapi_mock.go
- controlplanegroupsapi_mock.go
- event_gateway_backend_clusters.go
- event_gateway_control_plane.go
- event_gateway_virtual_clusters.go
- me.go
- organization_team.go
- plugins.go
- portal_application_registrations.go
- portal_applications.go
- portal_auth_settings.go
- portal_custom_domains.go
- portal_customizations.go
- portal_developers.go
- portal_emails.go
- portal_pages.go
- portal_snippets.go
- portal_team_membership.go
- portal_team_roles.go
- portal_teams.go
- portals.go
- routes.go
- sdk.go
- sdk_mock.go
- services.go
- system_accounts.go
- upstreams.go