Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllTypes = []EntityType{ Service, Route, Plugin, Certificate, SNI, CACertificate, Upstream, Target, Consumer, ACLGroup, BasicAuth, KeyAuth, HMACAuth, JWTAuth, OAuth2Cred, MTLSAuth, RBACRole, RBACEndpointPermission, ServicePackage, ServiceVersion, Document, }
AllTypes represents all types defined in the package.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity interface { Type() EntityType CRUDActions() crud.Actions PostProcessActions() crud.Actions Differ() Differ }
func NewEntity ¶
func NewEntity(t EntityType, opts EntityOpts) (Entity, error)
type EntityOpts ¶
type EntityType ¶
type EntityType string
EntityType defines a type of entity that is managed by decK.
const ( // Service identifies a Service in Kong. Service EntityType = "service" // Route identifies a Route in Kong. Route EntityType = "route" // Plugin identifies a Plugin in Kong. Plugin EntityType = "plugin" // Certificate identifies a Certificate in Kong. Certificate EntityType = "certificate" // SNI identifies a SNI in Kong. SNI EntityType = "sni" // CACertificate identifies a CACertificate in Kong. CACertificate EntityType = "ca-certificate" // Upstream identifies a Upstream in Kong. Upstream EntityType = "upstream" // Target identifies a Target in Kong. Target EntityType = "target" // Consumer identifies a Consumer in Kong. Consumer EntityType = "consumer" // ACLGroup identifies a ACLGroup in Kong. ACLGroup EntityType = "acl-group" // BasicAuth identifies a BasicAuth in Kong. BasicAuth EntityType = "basic-auth" // HMACAuth identifies a HMACAuth in Kong. HMACAuth EntityType = "hmac-auth" // JWTAuth identifies a JWTAuth in Kong. JWTAuth EntityType = "jwt-auth" // MTLSAuth identifies a MTLSAuth in Kong. MTLSAuth EntityType = "mtls-auth" // KeyAuth identifies aKeyAuth in Kong. KeyAuth EntityType = "key-auth" // OAuth2Cred identifies a OAuth2Cred in Kong. OAuth2Cred EntityType = "oauth2-cred" // RBACRole identifies a RBACRole in Kong Enterprise. RBACRole EntityType = "rbac-role" // RBACEndpointPermission identifies a RBACEndpointPermission in Kong Enterprise. RBACEndpointPermission EntityType = "rbac-endpoint-permission" // ServicePackage identifies a ServicePackage in Konnect. ServicePackage EntityType = "service-package" // ServiceVersion identifies a ServiceVersion in Konnect. ServiceVersion EntityType = "service-version" // Document identifies a Document in Konnect. Document EntityType = "document" )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.