kubernetes/vendor/github.com/prometheus/common/expfmt/expfmt.go

type Format

const TextVersion

const ProtoType

const ProtoProtocol

const protoFmt

const OpenMetricsType

const OpenMetricsVersion_0_0_1

const OpenMetricsVersion_1_0_0

const fmtUnknown

const fmtText

const fmtProtoDelim

const fmtProtoText

const fmtProtoCompact

const fmtOpenMetrics_1_0_0

const fmtOpenMetrics_0_0_1

const hdrContentType

const hdrAccept

type FormatType

const TypeUnknown

const TypeProtoCompact

const TypeProtoDelim

const TypeProtoText

const TypeTextPlain

const TypeOpenMetrics

// NewFormat generates a new Format from the type provided. Mostly used for
// tests, most Formats should be generated as part of content negotiation in
// encode.go. If a type has more than one version, the latest version will be
// returned.
func NewFormat(t FormatType) Format {}

// NewOpenMetricsFormat generates a new OpenMetrics format matching the
// specified version number.
func NewOpenMetricsFormat(version string) (Format, error) {}

// FormatType deduces an overall FormatType for the given format.
func (f Format) FormatType() FormatType {}

// ToEscapingScheme returns an EscapingScheme depending on the Format. Iff the
// Format contains a escaping=allow-utf-8 term, it will select NoEscaping. If a valid
// "escaping" term exists, that will be used. Otherwise, the global default will
// be returned.
func (format Format) ToEscapingScheme() model.EscapingScheme {}