Documentation
¶
Index ¶
- Constants
- func ConsumerACLDecodeId(s string) (string, string, string)
- func ConsumerBasicDecodeId(s string) (string, string, string)
- func ConsumerDecodeId(s string) (string, string)
- func ConsumerHMACDecodeId(s string) (string, string, string)
- func ConsumerJWTDecodeId(s string) (string, string, string)
- func ConsumerKeyDecodeId(s string) (string, string, string)
- func CustomPluginSchemaDecodeId(s string) (string, string)
- func PluginDecodeId(s string) (string, string)
- func RouteDecodeId(s string) (string, string)
- func ServiceDecodeId(s string) (string, string)
- func TeamRoleDecodeId(s string) (string, string)
- func TeamUserDecodeId(s string) (string, string)
- func UserRoleDecodeId(s string) (string, string)
- type AuthenticationSettings
- type Client
- type Consumer
- type ConsumerACL
- type ConsumerBasic
- type ConsumerCollection
- type ConsumerHMAC
- type ConsumerJWT
- type ConsumerKey
- type ControlPlane
- type ControlPlaneCollection
- type ControlPlaneConfig
- type CustomPluginSchema
- type CustomPluginSchemaItem
- type EntityId
- type IdentityProvider
- type ListService
- type ListServiceCollection
- type Node
- type NodeCollection
- type Plugin
- type PluginCollection
- type PluginField
- type PluginSchema
- type RequestError
- type Role
- type RoleCollection
- type RoleGroup
- type Route
- type RouteCollection
- type Service
- type ServiceCollection
- type Team
- type TeamCollection
- type TeamMapping
- type TeamMappings
- type TeamRole
- type TeamRoleCollection
- type TeamUser
- type User
- type UserCollection
- type UserRole
- type UserRoleCollection
Constants ¶
View Source
const ( AuthenticationSettingsId = "authentication-settings" AuthenticationSettingsPath = "v3/" + AuthenticationSettingsId )
View Source
const ( ApplicationJson = "application/json" Bearer = "Bearer" KonnectDomain = "api.konghq.com" GlobalRegion = "global" IdSeparator = ":" FilterName = "filter[name]" FilterNameContains = "filter[name][contains]" FilterNameEquals = "filter[name][eq]" FilterFullName = "filter[full_name]" FilterFullNameContains = "filter[full_name][contains]" FilterEmail = "filter[email]" FilterEmailContains = "filter[email][contains]" FilterActive = "filter[active]" FilterRoleName = "filter[role_name]" FilterRoleNameContains = "filter[role_name][contains]" FilterEntityTypeName = "filter[entity_type_name]" FilterEntityTypeNameContains = "filter[entity_type_name][contains]" )
View Source
const ( ConsumerPath = ControlPlanePathGet + "/core-entities/consumers" ConsumerPathGet = ConsumerPath + "/%s" )
View Source
const ( ConsumerACLPath = ControlPlanePathGet + "/core-entities/consumers/%s/acls" ConsumerACLPathGet = ConsumerACLPath + "/%s" )
View Source
const ( ConsumerBasicPath = ControlPlanePathGet + "/core-entities/consumers/%s/basic-auth" ConsumerBasicPathGet = ConsumerBasicPath + "/%s" )
View Source
const ( ConsumerHMACPath = ControlPlanePathGet + "/core-entities/consumers/%s/hmac-auth" ConsumerHMACPathGet = ConsumerHMACPath + "/%s" )
View Source
const ( ConsumerJWTPath = ControlPlanePathGet + "/core-entities/consumers/%s/jwt" ConsumerJWTPathGet = ConsumerJWTPath + "/%s" )
View Source
const ( ConsumerKeyPath = ControlPlanePathGet + "/core-entities/consumers/%s/key-auth" ConsumerKeyPathGet = ConsumerKeyPath + "/%s" )
View Source
const ( ControlPlanePath = "v2/control-planes" ControlPlanePathGet = ControlPlanePath + "/%s" )
View Source
const ( CustomPluginSchemaPath = ControlPlanePathGet + "/core-entities/plugin-schemas" CustomPluginSchemaPathGet = CustomPluginSchemaPath + "/%s" )
View Source
const ( IdentityProviderId = "identity-provider" IdentityProviderPath = "v3/" + IdentityProviderId EmailClaim = "email" NameClaim = "name" GroupsClaim = "groups" )
View Source
const ( NodePath = ControlPlanePathGet + "/nodes" NodePathGet = NodePath + "/%s" )
View Source
const ( PluginPath = ControlPlanePathGet + "/core-entities/plugins" PluginPathGet = PluginPath + "/%s" PluginSchemaPath = ControlPlanePathGet + "/core-entities/schemas/plugins/%s" )
View Source
const ( RolePath = "v3/roles" ControlPlanesDisplayName = "Control Planes" ServicesDisplayName = "Services" )
View Source
const ( RoutePath = ControlPlanePathGet + "/core-entities/routes" RoutePathGet = RoutePath + "/%s" )
View Source
const ( ServicePath = ControlPlanePathGet + "/core-entities/services" ServicePathGet = ServicePath + "/%s" )
View Source
const ( TeamPath = "v3/teams" TeamPathGet = TeamPath + "/%s" )
View Source
const ( TeamMappingsId = "team-mappings" TeamMappingsPath = IdentityProviderPath + "/" + TeamMappingsId )
View Source
const ( TeamRolePath = "v3/teams/%s/assigned-roles" TeamRolePathCreate = TeamRolePath TeamRolePathDelete = TeamRolePath + "/%s" )
View Source
const ( TeamUserPath = "v3/teams/%s/users" TeamUserPathCreate = TeamUserPath TeamUserPathDelete = TeamUserPath + "/%s" )
View Source
const ( UserPath = "v3/users" UserPathGet = UserPath + "/%s" )
View Source
const ( UserRolePath = "v3/users/%s/assigned-roles" UserRolePathCreate = UserRolePath UserRolePathDelete = UserRolePath + "/%s" )
Variables ¶
This section is empty.
Functions ¶
func ConsumerACLDecodeId ¶ added in v0.1.17
func ConsumerBasicDecodeId ¶ added in v0.1.17
func ConsumerDecodeId ¶ added in v0.1.6
func ConsumerHMACDecodeId ¶ added in v0.1.17
func ConsumerJWTDecodeId ¶ added in v0.1.17
func ConsumerKeyDecodeId ¶ added in v0.1.17
func CustomPluginSchemaDecodeId ¶ added in v0.2.4
func PluginDecodeId ¶ added in v0.1.6
func RouteDecodeId ¶ added in v0.1.5
func ServiceDecodeId ¶ added in v0.1.4
func TeamRoleDecodeId ¶ added in v0.1.3
func TeamUserDecodeId ¶ added in v0.1.2
func UserRoleDecodeId ¶ added in v0.1.3
Types ¶
type AuthenticationSettings ¶ added in v0.1.2
type Client ¶
type Client struct { DefaultTags []string // contains filtered or unexported fields }
func (*Client) HttpRequest ¶
type Consumer ¶ added in v0.1.6
type Consumer struct { ControlPlaneId string `json:"-"` Id string `json:"id"` Username string `json:"username"` CustomId string `json:"custom_id"` AllTags []string `json:"tags"` Tags []string `json:"-"` }
func (*Consumer) ConsumerEncodeId ¶ added in v0.1.6
type ConsumerACL ¶ added in v0.1.17
type ConsumerACL struct { ControlPlaneId string `json:"-"` ConsumerId string `json:"-"` Id string `json:"id"` Group string `json:"group"` AllTags []string `json:"tags"` Tags []string `json:"-"` }
func (*ConsumerACL) ConsumerACLEncodeId ¶ added in v0.1.17
func (ca *ConsumerACL) ConsumerACLEncodeId() string
type ConsumerBasic ¶ added in v0.1.17
type ConsumerBasic struct { ControlPlaneId string `json:"-"` ConsumerId string `json:"-"` Id string `json:"id"` Username string `json:"username"` Password string `json:"password"` PasswordHash string `json:"-"` AllTags []string `json:"tags"` Tags []string `json:"-"` }
func (*ConsumerBasic) ConsumerBasicEncodeId ¶ added in v0.1.17
func (cb *ConsumerBasic) ConsumerBasicEncodeId() string
type ConsumerCollection ¶ added in v0.1.6
type ConsumerCollection struct {
Consumers []Consumer `json:"data"`
}
type ConsumerHMAC ¶ added in v0.1.17
type ConsumerHMAC struct { ControlPlaneId string `json:"-"` ConsumerId string `json:"-"` Id string `json:"id"` Username string `json:"username"` Secret string `json:"secret,omitempty"` AllTags []string `json:"tags"` Tags []string `json:"-"` }
func (*ConsumerHMAC) ConsumerHMACEncodeId ¶ added in v0.1.17
func (ch *ConsumerHMAC) ConsumerHMACEncodeId() string
type ConsumerJWT ¶ added in v0.1.17
type ConsumerJWT struct { ControlPlaneId string `json:"-"` ConsumerId string `json:"-"` Id string `json:"id"` Key string `json:"key,omitempty"` Algorithm string `json:"algorithm"` RSAPublicKey string `json:"rsa_public_key,omitempty"` Secret string `json:"secret,omitempty"` AllTags []string `json:"tags"` Tags []string `json:"-"` }
func (*ConsumerJWT) ConsumerJWTEncodeId ¶ added in v0.1.17
func (cj *ConsumerJWT) ConsumerJWTEncodeId() string
type ConsumerKey ¶ added in v0.1.17
type ConsumerKey struct { ControlPlaneId string `json:"-"` ConsumerId string `json:"-"` Id string `json:"id"` Key string `json:"key,omitempty"` AllTags []string `json:"tags"` Tags []string `json:"-"` }
func (*ConsumerKey) ConsumerKeyEncodeId ¶ added in v0.1.17
func (ck *ConsumerKey) ConsumerKeyEncodeId() string
type ControlPlane ¶ added in v0.1.15
type ControlPlane struct { Id string `json:"id,omitempty"` Name string `json:"name,omitempty"` Description string `json:"description"` Config *ControlPlaneConfig `json:"config,omitempty"` }
type ControlPlaneCollection ¶ added in v0.1.15
type ControlPlaneCollection struct {
ControlPlanes []ControlPlane `json:"data"`
}
type ControlPlaneConfig ¶ added in v0.1.15
type CustomPluginSchema ¶ added in v0.2.4
type CustomPluginSchema struct { ControlPlaneId string `json:"-"` Name string `json:"name"` SchemaLua string `json:"lua_schema"` }
func (*CustomPluginSchema) CustomPluginSchemaEncodeId ¶ added in v0.2.4
func (s *CustomPluginSchema) CustomPluginSchemaEncodeId() string
type CustomPluginSchemaItem ¶ added in v0.2.4
type CustomPluginSchemaItem struct {
Item CustomPluginSchema `json:"item"`
}
type IdentityProvider ¶ added in v0.1.2
type IdentityProvider struct { Issuer string `json:"issuer,omitempty"` LoginPath string `json:"login_path,omitempty"` ClientId string `json:"client_id,omitempty"` ClientSecret string `json:"client_secret,omitempty"` Scopes []string `json:"scopes,omitempty"` ClaimMappings map[string]string `json:"claim_mappings,omitempty"` }
type ListService ¶ added in v0.2.10
type ListService struct { ControlPlaneId string `json:"-"` Id string `json:"id"` Name string `json:"name"` Retries int `json:"retries"` Protocol string `json:"protocol"` Host string `json:"host"` Port int `json:"port"` Path string `json:"path"` ConnectTimeout int `json:"connect_timeout"` ReadTimeout int `json:"read_timeout"` WriteTimeout int `json:"write_timeout"` Enabled bool `json:"enabled"` AllTags []string `json:"tags"` Tags []string `json:"-"` }
func (*ListService) ServiceEncodeId ¶ added in v0.2.10
func (s *ListService) ServiceEncodeId() string
type ListServiceCollection ¶ added in v0.2.10
type ListServiceCollection struct {
Services []ListService `json:"data"`
}
type NodeCollection ¶ added in v0.1.4
type NodeCollection struct {
Nodes []Node `json:"items"`
}
type Plugin ¶ added in v0.1.6
type Plugin struct { ControlPlaneId string `json:"-"` Id string `json:"id"` Name string `json:"name"` InstanceName string `json:"instance_name"` Protocols []string `json:"protocols"` Enabled bool `json:"enabled"` Config map[string]interface{} `json:"config"` ConfigAll map[string]interface{} `json:"-"` Route *EntityId `json:"route,omitempty"` Service *EntityId `json:"service,omitempty"` Consumer *EntityId `json:"consumer,omitempty"` AllTags []string `json:"tags"` Tags []string `json:"-"` }
func (*Plugin) PluginEncodeId ¶ added in v0.1.6
type PluginCollection ¶ added in v0.1.6
type PluginCollection struct {
Plugins []Plugin `json:"data"`
}
type PluginField ¶ added in v0.1.6
type PluginField struct { Type string `json:"type"` Default interface{} `json:"default"` Fields []map[string]PluginField `json:"fields"` ShorthandFields []map[string]PluginField `json:"shorthand_fields"` }
type PluginSchema ¶ added in v0.1.6
type PluginSchema struct {
Fields []map[string]PluginField `json:"fields"`
}
type RequestError ¶
func (*RequestError) Error ¶
func (r *RequestError) Error() string
type RoleCollection ¶ added in v0.1.3
type Route ¶ added in v0.1.5
type Route struct { ControlPlaneId string `json:"-"` Id string `json:"id"` Name string `json:"name"` Protocols []string `json:"protocols"` Methods []string `json:"methods"` Hosts []string `json:"hosts"` Paths []string `json:"paths"` Headers map[string][]string `json:"headers"` HTTPSRedirectStatusCode int `json:"https_redirect_status_code"` RegexPriority int `json:"regex_priority"` StripPath bool `json:"strip_path"` PathHandling string `json:"path_handling"` PreserveHost bool `json:"preserve_host"` RequestBuffering bool `json:"request_buffering"` ResponseBuffering bool `json:"response_buffering"` Service *EntityId `json:"service,omitempty"` AllTags []string `json:"tags"` Tags []string `json:"-"` }
func (*Route) RouteEncodeId ¶ added in v0.1.5
type RouteCollection ¶ added in v0.1.5
type RouteCollection struct {
Routes []Route `json:"data"`
}
type Service ¶ added in v0.1.4
type Service struct { ControlPlaneId string `json:"-"` Id string `json:"id"` Name string `json:"name"` Retries int `json:"retries"` Protocol string `json:"protocol"` Host string `json:"host"` Port int `json:"port"` Path string `json:"path"` ConnectTimeout int `json:"connect_timeout"` ReadTimeout int `json:"read_timeout"` WriteTimeout int `json:"write_timeout"` Enabled bool `json:"enabled"` AllTags []string `json:"tags"` Tags []string `json:"-"` }
func (*Service) ServiceEncodeId ¶ added in v0.1.4
type ServiceCollection ¶ added in v0.1.4
type ServiceCollection struct {
Services []Service `json:"data"`
}
type TeamCollection ¶ added in v0.1.2
type TeamCollection struct {
Teams []Team `json:"data"`
}
type TeamMapping ¶ added in v0.1.9
type TeamMappings ¶ added in v0.1.9
type TeamMappings struct { MappingsRead []TeamMapping `json:"data,omitempty"` MappingsWrite []TeamMapping `json:"mappings,omitempty"` }
type TeamRole ¶ added in v0.1.3
type TeamRole struct { Id string `json:"id,omitempty"` TeamId string `json:"-"` RoleDisplayName string `json:"role_name,omitempty"` EntityId string `json:"entity_id,omitempty"` EntityTypeDisplayName string `json:"entity_type_name,omitempty"` EntityRegion string `json:"entity_region,omitempty"` }
func (*TeamRole) TeamRoleEncodeId ¶ added in v0.1.3
type TeamRoleCollection ¶ added in v0.1.3
type TeamRoleCollection struct {
TeamRoles []TeamRole `json:"data"`
}
type TeamUser ¶ added in v0.1.2
func (*TeamUser) TeamUserEncodeId ¶ added in v0.1.2
type UserCollection ¶ added in v0.1.2
type UserCollection struct {
Users []User `json:"data"`
}
type UserRole ¶ added in v0.1.3
type UserRole struct { Id string `json:"id,omitempty"` UserId string `json:"-"` RoleDisplayName string `json:"role_name,omitempty"` EntityId string `json:"entity_id,omitempty"` EntityTypeDisplayName string `json:"entity_type_name,omitempty"` EntityRegion string `json:"entity_region,omitempty"` }
func (*UserRole) UserRoleEncodeId ¶ added in v0.1.3
type UserRoleCollection ¶ added in v0.1.3
type UserRoleCollection struct {
UserRoles []UserRole `json:"data"`
}
Source Files
¶
- authentication_settings.go
- client.go
- consumer.go
- consumer_acl.go
- consumer_basic.go
- consumer_hmac.go
- consumer_jwt.go
- consumer_key.go
- control_plane.go
- custom_plugin_schema.go
- identity_provider.go
- node.go
- plugin.go
- request_error.go
- role.go
- route.go
- service.go
- team.go
- team_mappings.go
- team_role.go
- team_user.go
- user.go
- user_role.go
Click to show internal directories.
Click to hide internal directories.