apiserver: k8s.io/apiserver/pkg/util/flowcontrol/format Index | Files

package format

import "k8s.io/apiserver/pkg/util/flowcontrol/format"

Index

Package Files

formatting.go

func BufferFlowSchemaSpec Uses

func BufferFlowSchemaSpec(buf *bytes.Buffer, fsSpec *fcv1a1.FlowSchemaSpec)

BufferFlowSchemaSpec writes a golang source expression for the given value to the given buffer

func BufferFmtPolicyRulesWithSubjectsSlim Uses

func BufferFmtPolicyRulesWithSubjectsSlim(buf *bytes.Buffer, rule fcv1a1.PolicyRulesWithSubjects)

BufferFmtPolicyRulesWithSubjectsSlim writes a golang source expression for the given value to the given buffer but excludes the leading type name

func BufferPriorityLevelConfigurationSpec Uses

func BufferPriorityLevelConfigurationSpec(buf *bytes.Buffer, plSpec *fcv1a1.PriorityLevelConfigurationSpec)

BufferPriorityLevelConfigurationSpec writes a golang source expression for the given value to the given buffer

func FmtFlowSchema Uses

func FmtFlowSchema(fs *fcv1a1.FlowSchema) string

FmtFlowSchema produces a golang source expression of the value.

func FmtFlowSchemaSpec Uses

func FmtFlowSchemaSpec(fsSpec *fcv1a1.FlowSchemaSpec) string

FmtFlowSchemaSpec produces a golang source expression equivalent to the given spec

func FmtPolicyRulesWithSubjects Uses

func FmtPolicyRulesWithSubjects(rule fcv1a1.PolicyRulesWithSubjects) string

FmtPolicyRulesWithSubjects produces a golang source expression of the value.

func FmtPolicyRulesWithSubjectsSlim Uses

func FmtPolicyRulesWithSubjectsSlim(rule fcv1a1.PolicyRulesWithSubjects) string

FmtPolicyRulesWithSubjectsSlim produces a golang source expression of the value but without the leading type name. See above for an example context where this is useful.

func FmtPriorityLevelConfiguration Uses

func FmtPriorityLevelConfiguration(pl *fcv1a1.PriorityLevelConfiguration) string

FmtPriorityLevelConfiguration returns a golang source expression equivalent to the given value

func FmtPriorityLevelConfigurationSpec Uses

func FmtPriorityLevelConfigurationSpec(plSpec *fcv1a1.PriorityLevelConfigurationSpec) string

FmtPriorityLevelConfigurationSpec returns a golang source expression equivalent to the given value

func FmtRequests Uses

func FmtRequests(list []*request.RequestInfo) string

FmtRequests produces a golang source expression of the value.

func FmtUsers Uses

func FmtUsers(list []user.Info) string

FmtUsers produces a golang source expression of the value.

func ToJSON Uses

func ToJSON(val interface{}) string

ToJSON converts using encoding/json and handles errors by formatting them

type Stringer Uses

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

Stringer marks the given value for custom formatting by this package.

func Fmt Uses

func Fmt(val interface{}) Stringer

Fmt marks the given value for custom formatting by this package.

func (Stringer) String Uses

func (sr Stringer) String() string

String formats to a string in full detail

Package format imports 6 packages (graph) and is imported by 2 packages. Updated 2020-02-14. Refresh now. Tools for package owners.