admin

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Overview

Package admin provides an Admin server for Kong Control-plane.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListOptsFromReq

func ListOptsFromReq(listOpts *pbModel.PaginationRequest) ([]store.ListOptsFunc, error)

ListOptsFromReq validates & transforms a Protobuf pagination request message to a list of persistence store options. When a nil Protobuf pagination request is passed in, an empty slice of persistence store options and no error is returned.

func NewHandler

func NewHandler(opts HandlerOpts) (http.Handler, error)

func RegisterAdminService

func RegisterAdminService(server *grpc.Server, opts HandlerOpts)

Types

type CACertificateService

type CACertificateService struct {
	v1.UnimplementedCACertificateServiceServer
	CommonOpts
}

func (*CACertificateService) CreateCACertificate

func (*CACertificateService) DeleteCACertificate

func (*CACertificateService) GetCACertificate

func (*CACertificateService) ListCACertificates

func (*CACertificateService) UpsertCACertificate

type CertificateService

type CertificateService struct {
	v1.UnimplementedCertificateServiceServer
	CommonOpts
}

func (*CertificateService) CreateCertificate

func (*CertificateService) DeleteCertificate

func (*CertificateService) GetCertificate

func (*CertificateService) ListCertificates

func (*CertificateService) UpsertCertificate

type CommonOpts

type CommonOpts struct {
	// contains filtered or unexported fields
}

type ConsumerService

type ConsumerService struct {
	v1.UnimplementedConsumerServiceServer
	CommonOpts
}

func (*ConsumerService) CreateConsumer

func (*ConsumerService) DeleteConsumer

func (*ConsumerService) GetConsumer

func (*ConsumerService) ListConsumers

func (*ConsumerService) UpsertConsumer

type ContextKey

type ContextKey struct{}

ContextKey type must be used to manipulate the context of a request.

type HandlerOpts

type HandlerOpts struct {
	Logger *zap.Logger

	StoreLoader util.StoreLoader

	Validator plugin.Validator
}

type HandlerWrapper

type HandlerWrapper interface {
	Wrap(http.Handler) http.Handler
	server.GrpcInterceptorInjector
}

HandlerWrapper is used to wrap a http.Handler with another http.Handler.

type MetaService

type MetaService struct {
	v1.UnimplementedMetaServiceServer
	Logger *zap.Logger
}

func (*MetaService) GetVersion

type NodeService

type NodeService struct {
	v1.UnimplementedNodeServiceServer
	CommonOpts
}

func (*NodeService) CreateNode

func (s *NodeService) CreateNode(ctx context.Context,
	req *v1.CreateNodeRequest,
) (*v1.CreateNodeResponse, error)

func (*NodeService) DeleteNode

func (s *NodeService) DeleteNode(ctx context.Context,
	req *v1.DeleteNodeRequest,
) (*v1.DeleteNodeResponse, error)

func (*NodeService) GetNode

func (s *NodeService) GetNode(ctx context.Context,
	req *v1.GetNodeRequest,
) (*v1.GetNodeResponse, error)

func (*NodeService) ListNodes

func (s *NodeService) ListNodes(ctx context.Context,
	req *v1.ListNodesRequest,
) (*v1.ListNodesResponse, error)

func (*NodeService) UpsertNode

func (s *NodeService) UpsertNode(ctx context.Context,
	req *v1.UpsertNodeRequest,
) (*v1.UpsertNodeResponse, error)

type PluginSchemaService

type PluginSchemaService struct {
	v1.UnimplementedPluginSchemaServiceServer
	CommonOpts
	// contains filtered or unexported fields
}

func (*PluginSchemaService) CreateLuaPluginSchema

func (*PluginSchemaService) DeleteLuaPluginSchema

func (*PluginSchemaService) GetLuaPluginSchema

func (*PluginSchemaService) ListLuaPluginSchemas

func (*PluginSchemaService) UpsertLuaPluginSchema

type PluginService

type PluginService struct {
	v1.UnimplementedPluginServiceServer
	CommonOpts
	// contains filtered or unexported fields
}

func (*PluginService) CreatePlugin

func (*PluginService) DeletePlugin

func (*PluginService) GetAvailablePlugins

func (*PluginService) GetConfiguredPlugins

func (*PluginService) GetPlugin

func (s *PluginService) GetPlugin(ctx context.Context,
	req *v1.GetPluginRequest,
) (*v1.GetPluginResponse, error)

func (*PluginService) ListPlugins

func (*PluginService) UpsertPlugin

type RouteService

type RouteService struct {
	v1.UnimplementedRouteServiceServer
	CommonOpts
}

func (*RouteService) CreateRoute

func (s *RouteService) CreateRoute(ctx context.Context,
	req *v1.CreateRouteRequest,
) (*v1.CreateRouteResponse, error)

func (*RouteService) DeleteRoute

func (s *RouteService) DeleteRoute(ctx context.Context,
	req *v1.DeleteRouteRequest,
) (*v1.DeleteRouteResponse, error)

func (*RouteService) GetRoute

func (s *RouteService) GetRoute(ctx context.Context,
	req *v1.GetRouteRequest,
) (*v1.GetRouteResponse, error)

func (*RouteService) ListRoutes

func (s *RouteService) ListRoutes(ctx context.Context,
	req *v1.ListRoutesRequest,
) (*v1.ListRoutesResponse, error)

func (*RouteService) UpsertRoute

func (s *RouteService) UpsertRoute(ctx context.Context,
	req *v1.UpsertRouteRequest,
) (*v1.UpsertRouteResponse, error)

type SNIService

type SNIService struct {
	v1.UnimplementedSNIServiceServer
	CommonOpts
}

func (*SNIService) CreateSNI

func (s *SNIService) CreateSNI(ctx context.Context, req *v1.CreateSNIRequest) (*v1.CreateSNIResponse, error)

func (*SNIService) DeleteSNI

func (s *SNIService) DeleteSNI(ctx context.Context, req *v1.DeleteSNIRequest) (*v1.DeleteSNIResponse, error)

func (*SNIService) GetSNI

func (s *SNIService) GetSNI(ctx context.Context, req *v1.GetSNIRequest) (*v1.GetSNIResponse, error)

func (*SNIService) ListSNIs

func (s *SNIService) ListSNIs(ctx context.Context, req *v1.ListSNIsRequest) (*v1.ListSNIsResponse, error)

func (*SNIService) UpsertSNI

func (s *SNIService) UpsertSNI(ctx context.Context, req *v1.UpsertSNIRequest) (*v1.UpsertSNIResponse, error)

type SchemasService

type SchemasService struct {
	v1.UnimplementedSchemasServiceServer

	CommonOpts
	// contains filtered or unexported fields
}

func (*SchemasService) GetLuaSchemasPlugin

func (*SchemasService) GetSchemas

func (*SchemasService) ValidateCACertificateSchema

func (*SchemasService) ValidateCertificateSchema

func (*SchemasService) ValidateConsumerSchema

func (*SchemasService) ValidateLuaPlugin

func (*SchemasService) ValidatePluginSchema

func (*SchemasService) ValidateRouteSchema

func (*SchemasService) ValidateSNISchema

func (*SchemasService) ValidateServiceSchema

func (*SchemasService) ValidateTargetSchema

func (*SchemasService) ValidateUpstreamSchema

type ServiceService

type ServiceService struct {
	v1.UnimplementedServiceServiceServer
	CommonOpts
}

func (*ServiceService) CreateService

func (*ServiceService) DeleteService

func (*ServiceService) GetService

func (*ServiceService) ListServices

func (*ServiceService) UpsertService

type StatusService

type StatusService struct {
	v1.UnimplementedStatusServiceServer
	CommonOpts
}

func (*StatusService) GetHash

func (s *StatusService) GetHash(ctx context.Context,
	req *v1.GetHashRequest,
) (*v1.GetHashResponse, error)

type TargetService

type TargetService struct {
	v1.UnimplementedTargetServiceServer
	CommonOpts
}

func (*TargetService) CreateTarget

func (*TargetService) DeleteTarget

func (*TargetService) GetTarget

func (s *TargetService) GetTarget(ctx context.Context,
	req *v1.GetTargetRequest,
) (*v1.GetTargetResponse, error)

func (*TargetService) ListTargets

func (*TargetService) UpsertTarget

type UpstreamService

type UpstreamService struct {
	v1.UnimplementedUpstreamServiceServer
	CommonOpts
}

func (*UpstreamService) CreateUpstream

func (*UpstreamService) DeleteUpstream

func (*UpstreamService) GetUpstream

func (*UpstreamService) ListUpstreams

func (*UpstreamService) UpsertUpstream

Jump to

Keyboard shortcuts

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