kube-openapi: k8s.io/kube-openapi/pkg/handler Index | Files

package handler

import "k8s.io/kube-openapi/pkg/handler"

Index

Package Files

handler.go

func ToProtoBinary Uses

func ToProtoBinary(json map[string]interface{}) ([]byte, error)

type OpenAPIService Uses

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

OpenAPIService is the service responsible for serving OpenAPI spec. It has the ability to safely change the spec while serving it.

func BuildAndRegisterOpenAPIVersionedService Uses

func BuildAndRegisterOpenAPIVersionedService(servePath string, webServices []*restful.WebService, config *common.Config, handler common.PathHandler) (*OpenAPIService, error)

BuildAndRegisterOpenAPIVersionedService builds the spec and registers a handler to provide access to it. Use this method if your OpenAPI spec is static. If you want to update the spec, use BuildOpenAPISpec then RegisterOpenAPIVersionedService.

func NewOpenAPIService Uses

func NewOpenAPIService(spec *spec.Swagger) (*OpenAPIService, error)

NewOpenAPIService builds an OpenAPIService starting with the given spec.

func RegisterOpenAPIVersionedService Uses

func RegisterOpenAPIVersionedService(spec *spec.Swagger, servePath string, handler common.PathHandler) (*OpenAPIService, error)

RegisterOpenAPIVersionedService registers a handler to provide access to provided swagger spec.

Deprecated: use OpenAPIService.RegisterOpenAPIVersionedService instead.

func (*OpenAPIService) RegisterOpenAPIVersionedService Uses

func (o *OpenAPIService) RegisterOpenAPIVersionedService(servePath string, handler common.PathHandler) error

RegisterOpenAPIVersionedService registers a handler to provide access to provided swagger spec.

func (*OpenAPIService) UpdateSpec Uses

func (o *OpenAPIService) UpdateSpec(openapiSpec *spec.Swagger) (err error)

Package handler imports 19 packages (graph) and is imported by 4 packages. Updated 2019-03-12. Refresh now. Tools for package owners.