kubernetes/vendor/github.com/emicklei/go-restful/v3/parameter.go

const PathParameterKind

const QueryParameterKind

const BodyParameterKind

const HeaderParameterKind

const FormParameterKind

const MultiPartFormParameterKind

const CollectionFormatCSV

const CollectionFormatSSV

const CollectionFormatTSV

const CollectionFormatPipes

const CollectionFormatMulti

type CollectionFormat

func (cf CollectionFormat) String() string {}

type Parameter

type ParameterData

// Data returns the state of the Parameter
func (p *Parameter) Data() ParameterData {}

// Kind returns the parameter type indicator (see const for valid values)
func (p *Parameter) Kind() int {}

func (p *Parameter) bePath() *Parameter {}

func (p *Parameter) beQuery() *Parameter {}

func (p *Parameter) beBody() *Parameter {}

func (p *Parameter) beHeader() *Parameter {}

func (p *Parameter) beForm() *Parameter {}

func (p *Parameter) beMultiPartForm() *Parameter {}

// Required sets the required field and returns the receiver
func (p *Parameter) Required(required bool) *Parameter {}

// AllowMultiple sets the allowMultiple field and returns the receiver
func (p *Parameter) AllowMultiple(multiple bool) *Parameter {}

// AddExtension adds or updates a key=value pair to the extension map
func (p *Parameter) AddExtension(key string, value interface{}

// AllowEmptyValue sets the AllowEmptyValue field and returns the receiver
func (p *Parameter) AllowEmptyValue(multiple bool) *Parameter {}

// AllowableValues is deprecated. Use PossibleValues instead. Both will be set.
func (p *Parameter) AllowableValues(values map[string]string) *Parameter {}

// PossibleValues sets the possible values field and returns the receiver
func (p *Parameter) PossibleValues(values []string) *Parameter {}

// DataType sets the dataType field and returns the receiver
func (p *Parameter) DataType(typeName string) *Parameter {}

// DataFormat sets the dataFormat field for Swagger UI
func (p *Parameter) DataFormat(formatName string) *Parameter {}

// DefaultValue sets the default value field and returns the receiver
func (p *Parameter) DefaultValue(stringRepresentation string) *Parameter {}

// Description sets the description value field and returns the receiver
func (p *Parameter) Description(doc string) *Parameter {}

// CollectionFormat sets the collection format for an array type
func (p *Parameter) CollectionFormat(format CollectionFormat) *Parameter {}

// Pattern sets the pattern field and returns the receiver
func (p *Parameter) Pattern(pattern string) *Parameter {}

// Minimum sets the minimum field and returns the receiver
func (p *Parameter) Minimum(minimum float64) *Parameter {}

// Maximum sets the maximum field and returns the receiver
func (p *Parameter) Maximum(maximum float64) *Parameter {}

// MinLength sets the minLength field and returns the receiver
func (p *Parameter) MinLength(minLength int64) *Parameter {}

// MaxLength sets the maxLength field and returns the receiver
func (p *Parameter) MaxLength(maxLength int64) *Parameter {}

// MinItems sets the minItems field and returns the receiver
func (p *Parameter) MinItems(minItems int64) *Parameter {}

// MaxItems sets the maxItems field and returns the receiver
func (p *Parameter) MaxItems(maxItems int64) *Parameter {}

// UniqueItems sets the uniqueItems field and returns the receiver
func (p *Parameter) UniqueItems(uniqueItems bool) *Parameter {}