Documentation
¶
Index ¶
- func BuildAuthStrategyRef(id, name string) string
- func BuildDCRProviderRef(id, name string) string
- func FetchControlPlaneGroupMembers(ctx context.Context, api helpers.ControlPlaneGroupsAPI, controlPlaneID string) ([]string, error)
- func KongctlMetaFromLabels(labels map[string]string) *declresources.KongctlMeta
- func MapAIGatewayToDeclarativeResource(gateway kkComps.AIGateway) declresources.AIGatewayResource
- func MapAPIToDeclarativeResource(api kkComps.APIResponseSchema) declresources.APIResource
- func MapAuthStrategyToDeclarativeResource(strategy kkComps.AppAuthStrategy) (declresources.ApplicationAuthStrategyResource, error)
- func MapControlPlaneToDeclarativeResource(cp kkComps.ControlPlane, memberIDs []string) declresources.ControlPlaneResource
- func MapDCRProviderToDeclarativeResource(data any) (declresources.DCRProviderResource, error)
- func MapDashboardToDeclarativeResource(dashboard kkComps.DashboardResponse) declresources.DashboardResource
- func MapEventGatewayToDeclarativeResource(egw kkComps.EventGatewayInfo) declresources.EventGatewayControlPlaneResource
- func MapIdentityAuthServer(value kkComps.AuthServer) declresources.IdentityAuthServerResource
- func MapIdentityClient(client kkComps.Client, scopes []string) declresources.IdentityAuthServerClientResource
- func MapIdentityDirectory(value kkComps.KongDirectory) declresources.IdentityDirectoryResource
- func MapKeyAuthStrategyToDeclarativeResource(strategy kkComps.AppAuthStrategy) (declresources.ApplicationAuthStrategyResource, error)
- func MapNormalizedDCRProvider(provider helpers.NormalizedDCRProviderPayload) declresources.DCRProviderResource
- func MapOIDCStrategyToDeclarativeResource(strategy kkComps.AppAuthStrategy) (declresources.ApplicationAuthStrategyResource, error)
- func MapOrganizationTeamToDeclarativeResource(team kkComps.TeamResponse) declresources.OrganizationTeamResource
- func MapPortalResponseToDeclarativeResource(portal kkComps.PortalResponse) declresources.PortalResource
- func MapPortalToDeclarativeResource(portal kkComps.ListPortalsResponsePortal) declresources.PortalResource
- func OmitSecrets(kind resources.ResourceType, value any, path string)
- func ProjectAs[R any, P interface{ ... }](payload any) (R, error)
- func PublicFields(value any) (map[string]any, error)
- func Root(payload any) (declresources.Resource, error)
- type Shape
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAuthStrategyRef ¶
func BuildDCRProviderRef ¶
func KongctlMetaFromLabels ¶
func KongctlMetaFromLabels(labels map[string]string) *declresources.KongctlMeta
func MapAIGatewayToDeclarativeResource ¶
func MapAIGatewayToDeclarativeResource(gateway kkComps.AIGateway) declresources.AIGatewayResource
func MapAPIToDeclarativeResource ¶
func MapAPIToDeclarativeResource(api kkComps.APIResponseSchema) declresources.APIResource
func MapAuthStrategyToDeclarativeResource ¶
func MapAuthStrategyToDeclarativeResource( strategy kkComps.AppAuthStrategy, ) (declresources.ApplicationAuthStrategyResource, error)
func MapControlPlaneToDeclarativeResource ¶
func MapControlPlaneToDeclarativeResource( cp kkComps.ControlPlane, memberIDs []string, ) declresources.ControlPlaneResource
func MapDCRProviderToDeclarativeResource ¶
func MapDCRProviderToDeclarativeResource(data any) (declresources.DCRProviderResource, error)
func MapDashboardToDeclarativeResource ¶
func MapDashboardToDeclarativeResource(dashboard kkComps.DashboardResponse) declresources.DashboardResource
func MapEventGatewayToDeclarativeResource ¶
func MapEventGatewayToDeclarativeResource(egw kkComps.EventGatewayInfo) declresources.EventGatewayControlPlaneResource
func MapIdentityAuthServer ¶
func MapIdentityAuthServer(value kkComps.AuthServer) declresources.IdentityAuthServerResource
func MapIdentityClient ¶
func MapIdentityClient( client kkComps.Client, scopes []string, ) declresources.IdentityAuthServerClientResource
func MapIdentityDirectory ¶
func MapIdentityDirectory(value kkComps.KongDirectory) declresources.IdentityDirectoryResource
func MapKeyAuthStrategyToDeclarativeResource ¶
func MapKeyAuthStrategyToDeclarativeResource( strategy kkComps.AppAuthStrategy, ) (declresources.ApplicationAuthStrategyResource, error)
func MapNormalizedDCRProvider ¶
func MapNormalizedDCRProvider(provider helpers.NormalizedDCRProviderPayload) declresources.DCRProviderResource
func MapOIDCStrategyToDeclarativeResource ¶
func MapOIDCStrategyToDeclarativeResource( strategy kkComps.AppAuthStrategy, ) (declresources.ApplicationAuthStrategyResource, error)
func MapOrganizationTeamToDeclarativeResource ¶
func MapOrganizationTeamToDeclarativeResource(team kkComps.TeamResponse) declresources.OrganizationTeamResource
func MapPortalResponseToDeclarativeResource ¶
func MapPortalResponseToDeclarativeResource(portal kkComps.PortalResponse) declresources.PortalResource
func MapPortalToDeclarativeResource ¶
func MapPortalToDeclarativeResource(portal kkComps.ListPortalsResponsePortal) declresources.PortalResource
func OmitSecrets ¶
func OmitSecrets(kind resources.ResourceType, value any, path string)
The reviewed write-only catalog is shared with loading and execution. Remove values even if a backend happens to return them; retain public array siblings.
Types ¶
type Shape ¶
Shape describes a declaration's registered document location and parent link.
func DeclarationShape ¶
func DeclarationShape(kind resources.ResourceType) (Shape, error)
DeclarationShape uses the registry and manifest schema rather than a second resource inventory. Identity's grouped document hierarchy is retained.