Documentation
¶
Index ¶
Constants ¶
View Source
const GroupName = "gateway.tkestack.io"
GroupName is the api group name for gateway.
View Source
const Version = "v1"
Version is the api version for gateway.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoute ¶
func RegisterRoute(container *restful.Container, cfg *gatewayconfig.GatewayConfiguration, oauthConfig *oauth2.Config, oidcHTTPClient *http.Client, oidcAuthenticator *oidc.Authenticator, headerRequest bool) error
RegisterRoute is used to register prefix path routing matches for all configured backend components.
Types ¶
type Components ¶
type Components struct { Platform *GroupVersion `json:"platform,omitempty"` Business *GroupVersion `json:"business,omitempty"` Monitor *GroupVersion `json:"monitor,omitempty"` Notify *GroupVersion `json:"notify,omitempty"` Auth *GroupVersion `json:"auth,omitempty"` Registry *GroupVersion `json:"registry,omitempty"` Audit *GroupVersion `json:"audit,omitempty"` LogAgent *GroupVersion `json:"logagent,omitempty"` Application *GroupVersion `json:"application,omitempty"` Mesh *GroupVersion `json:"mesh,omitempty"` }
Components contains the service address of each module in TKE
type GroupVersion ¶
type SysInfo ¶
type SysInfo struct { Components Components `json:"components"` Registry *Registry `json:"registry,omitempty"` Auth *Auth `json:"auth,omitempty"` }
Click to show internal directories.
Click to hide internal directories.