apiserver: k8s.io/apiserver/pkg/endpoints/openapi Index | Files | Directories

package openapi

import "k8s.io/apiserver/pkg/endpoints/openapi"


Package Files


func GetOperationIDAndTags Uses

func GetOperationIDAndTags(r *restful.Route) (string, []string, error)

GetOperationIDAndTags returns a customize operation ID and a list of tags for kubernetes API server's OpenAPI spec to prevent duplicate IDs.

func ToValidOperationID Uses

func ToValidOperationID(s string, capitalizeFirstLetter bool) string

ToValidOperationID makes an string a valid op ID (e.g. removing punctuations and whitespaces and make it camel case)

type DefinitionNamer Uses

type DefinitionNamer struct {
    // contains filtered or unexported fields

DefinitionNamer is the type to customize OpenAPI definition name.

func NewDefinitionNamer Uses

func NewDefinitionNamer(schemes ...*runtime.Scheme) *DefinitionNamer

NewDefinitionNamer constructs a new DefinitionNamer to be used to customize OpenAPI spec.

func (*DefinitionNamer) GetDefinitionName Uses

func (d *DefinitionNamer) GetDefinitionName(name string) (string, spec.Extensions)

GetDefinitionName returns the name and tags for a given definition



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