export

package
v1.28.4 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRef added in v1.28.2

func BuildRef(id, name string) string

func FetchControlPlaneGroupMembers

func FetchControlPlaneGroupMembers(
	ctx context.Context,
	api helpers.ControlPlaneGroupsAPI,
	controlPlaneID string,
) ([]string, error)

func KongctlMetaFromLabels

func KongctlMetaFromLabels(labels map[string]string) *declresources.KongctlMeta

func MapAIGatewayToDeclarativeResource

func MapAIGatewayToDeclarativeResource(gateway kkComps.AIGateway) declresources.AIGatewayResource

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 MapIdentityClient

func MapIdentityClient(
	client kkComps.Client,
	scopes []string,
) declresources.IdentityAuthServerClientResource

func MapPortalResponseToDeclarativeResource

func MapPortalResponseToDeclarativeResource(portal kkComps.PortalResponse) 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.

func ProjectAs

func ProjectAs[R any, P interface {
	*R
	resources.Resource
}](payload any) (R, error)

ProjectAs is the typed entry point for dump collectors. Adoption uses Project when the selected resource type is known at runtime.

func PublicFields

func PublicFields(value any) (map[string]any, error)

func Root

func Root(payload any) (declresources.Resource, error)

Root projects one adopted parent using the same mappers as dump. It does not traverse descendants; related independently owned resources remain untouched.

Types

type Shape

type Shape struct {
	Collection  []string
	ParentField string
	Resource    resources.Resource
}

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.

func Project

func Project(kind resources.ResourceType, payload any) (Shape, error)

Project decodes public API fields into the registered declaration, excluding server metadata while retaining declaration fields. Callers choose whether to omit secrets according to their export contract.

Jump to

Keyboard shortcuts

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