Documentation ¶
Index ¶
- Constants
- Variables
- func MarshalKongToKIC(content *file.Content, builderType string, format string) ([]byte, error)
- func SerializeObjectDroppingFields(obj interface{}, format string) ([]byte, error)
- func WriteContentToFile(content *file.Content, filename string, format file.Format, yamlOrJSON string) error
- type Director
- type IBuilder
- type KICContent
- type KICv2GatewayAPIBuilder
- type KICv2IngressAPIBuilder
- type KICv3GatewayAPIBuider
- type KICv3IngressAPIBuilder
Constants ¶
View Source
const ( KICV3GATEWAY = "KICV3_GATEWAY" KICV3INGRESS = "KICV3_INGRESS" KICV2GATEWAY = "KICV2_GATEWAY" KICV2INGRESS = "KICV2_INGRESS" KICAPIVersion = "configuration.konghq.com/v1" KICAPIVersionV1Beta1 = "configuration.konghq.com/v1beta1" GatewayAPIVersionV1Beta1 = "gateway.networking.k8s.io/v1beta1" GatewayAPIVersionV1 = "gateway.networking.k8s.io/v1" KongPluginKind = "KongPlugin" SecretKind = "Secret" IngressKind = "KongIngress" UpstreamPolicyKind = "KongUpstreamPolicy" IngressClass = "kubernetes.io/ingress.class" )
Variables ¶
View Source
var ClassName = "kong"
ClassName is set by the CLI flag --class-name
Functions ¶
func MarshalKongToKIC ¶
Types ¶
type KICContent ¶
type KICContent struct { KongIngresses []kicv1.KongIngress `json:"kongIngresses,omitempty" yaml:",omitempty"` KongPlugins []kicv1.KongPlugin `json:"kongPlugins,omitempty" yaml:",omitempty"` KongClusterPlugins []kicv1.KongClusterPlugin `json:"clusterPlugins,omitempty" yaml:",omitempty"` Ingresses []k8snetv1.Ingress `json:"ingresses,omitempty" yaml:",omitempty"` Services []k8scorev1.Service `json:"services,omitempty" yaml:",omitempty"` Secrets []k8scorev1.Secret `json:"secrets,omitempty" yaml:",omitempty"` KongConsumers []kicv1.KongConsumer `json:"consumers,omitempty" yaml:",omitempty"` KongConsumerGroups []kicv1beta1.KongConsumerGroup `json:"consumerGroups,omitempty" yaml:",omitempty"` HTTPRoutes []k8sgwapiv1.HTTPRoute `json:"httpRoutes,omitempty" yaml:",omitempty"` KongUpstreamPolicies []kicv1beta1.KongUpstreamPolicy `json:"upstreamPolicies,omitempty" yaml:",omitempty"` }
KICContent represents a serialized Kong state for KIC. +k8s:deepcopy-gen=true
type KICv2GatewayAPIBuilder ¶
type KICv2GatewayAPIBuilder struct {
// contains filtered or unexported fields
}
type KICv2IngressAPIBuilder ¶
type KICv2IngressAPIBuilder struct {
// contains filtered or unexported fields
}
type KICv3GatewayAPIBuider ¶
type KICv3GatewayAPIBuider struct {
// contains filtered or unexported fields
}
type KICv3IngressAPIBuilder ¶
type KICv3IngressAPIBuilder struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.