handlers

package
v0.0.0-...-cbcb39d Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIData

type APIData struct {
	Name                  string
	ServiceName           string
	Description           string
	PublicDomain          string
	PathMatchType         string
	Operations            []Operation
	Plans                 []Plan
	RateLimitOperations   []*PlanOperation
	UnAuthGlobalDaily     string
	UnAuthGlobalMonthly   string
	UnAuthGlobalYearly    string
	UnAuthRemoteIPDaily   string
	UnAuthRemoteIPMonthly string
	UnAuthRemoteIPYearly  string
}

type APIHandler

type APIHandler struct {
	K8sClient client.Client
}

func (*APIHandler) ServeHTTP

func (a *APIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CreateNewAPIHandler

type CreateNewAPIHandler struct {
	K8sClient client.Client
}

func (*CreateNewAPIHandler) ServeHTTP

func (a *CreateNewAPIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type CreateRateLimitPlanHandler

type CreateRateLimitPlanHandler struct {
	K8sClient client.Client
}

func (*CreateRateLimitPlanHandler) ServeHTTP

type CreateUserHandler

type CreateUserHandler struct {
	K8sClient client.Client
}

func (*CreateUserHandler) ServeHTTP

func (a *CreateUserHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type DashboardAPI

type DashboardAPI struct {
	Name        string
	Description string
	Action      string
}

type DashboardData

type DashboardData struct {
	APIs []*DashboardAPI
}

type DashboardHandler

type DashboardHandler struct {
	K8sClient client.Client
}

func (*DashboardHandler) ServeHTTP

func (a *DashboardHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type ExportAPIHandler

type ExportAPIHandler struct {
	K8sClient client.Client
}

func (*ExportAPIHandler) ServeHTTP

func (a *ExportAPIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type NewAPIData

type NewAPIData struct {
	ServiceName string
	Operations  []Operation
}

type NewApiHandler

type NewApiHandler struct {
	K8sClient client.Client
}

func (*NewApiHandler) ServeHTTP

func (a *NewApiHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type NewRLPlanData

type NewRLPlanData struct {
	APIName          string
	APIDomain        string
	AuthOperations   []NewRLPlanOperation
	UnAuthOperations []NewRLPlanOperation
}

type NewRLPlanOperation

type NewRLPlanOperation struct {
	Operation   string
	OperationID string
}

type NewRateLimitPlanHandler

type NewRateLimitPlanHandler struct {
	K8sClient client.Client
}

func (*NewRateLimitPlanHandler) ServeHTTP

type NewUserAPIInfo

type NewUserAPIInfo struct {
	APIName string
	Plans   []*NewUserPlanInfo
}

type NewUserData

type NewUserData struct {
	APIs []*NewUserAPIInfo
}

type NewUserHandler

type NewUserHandler struct {
	K8sClient client.Client
}

func (*NewUserHandler) ServeHTTP

func (a *NewUserHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type NewUserPlanInfo

type NewUserPlanInfo struct {
	Name string
}

type Operation

type Operation struct {
	Method      string
	Path        string
	Security    string
	OperationID string
	Target      string
}

type Plan

type Plan struct {
	ID string
}

type PlanData

type PlanData struct {
	APIName           string
	APIDomain         string
	Name              string
	Description       string
	AuthGlobalDaily   string
	AuthGlobalMonthly string
	AuthGlobalYearly  string
	AuthOperations    []*PlanOperation
}

type PlanHandler

type PlanHandler struct {
	K8sClient client.Client
}

func (*PlanHandler) ServeHTTP

func (a *PlanHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type PlanOperation

type PlanOperation struct {
	Operation   string
	OperationID string
	Daily       string
	Monthly     string
	Yearly      string
}

type ServiceDiscoveryHandler

type ServiceDiscoveryHandler struct {
	K8sClient client.Client
}

func (*ServiceDiscoveryHandler) ServeHTTP

type UpdateUnAuthRateLimitHandler

type UpdateUnAuthRateLimitHandler struct {
	K8sClient client.Client
}

func (*UpdateUnAuthRateLimitHandler) ServeHTTP

type UserAPIInfo

type UserAPIInfo struct {
	APIName  string
	PlanName string
	Key      string
}

type UserData

type UserData struct {
	APIs []*UserAPIInfo
	Name string
	ID   string
}

type UserHandler

type UserHandler struct {
	K8sClient client.Client
}

func (*UserHandler) ServeHTTP

func (a *UserHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UsersHandler

type UsersHandler struct {
	K8sClient client.Client
}

func (*UsersHandler) ServeHTTP

func (a *UsersHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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