kubernetes/vendor/k8s.io/klog/v2/k8s_references.go

type ObjectRef

func (ref ObjectRef) String() string {}

func (ref ObjectRef) WriteText(out *bytes.Buffer) {}

func (ref ObjectRef) writeUnquoted(out *bytes.Buffer) {}

// MarshalLog ensures that loggers with support for structured output will log
// as a struct by removing the String method via a custom type.
func (ref ObjectRef) MarshalLog() interface{}

var _

type KMetadata

// KObj returns ObjectRef from ObjectMeta
func KObj(obj KMetadata) ObjectRef {}

// KRef returns ObjectRef from name and namespace
func KRef(namespace, name string) ObjectRef {}

// KObjs returns slice of ObjectRef from an slice of ObjectMeta
//
// DEPRECATED: Use KObjSlice instead, it has better performance.
func KObjs(arg interface{}

// KObjSlice takes a slice of objects that implement the KMetadata interface
// and returns an object that gets logged as a slice of ObjectRef values or a
// string containing those values, depending on whether the logger prefers text
// output or structured output.
//
// An error string is logged when KObjSlice is not passed a suitable slice.
//
// Processing of the argument is delayed until the value actually gets logged,
// in contrast to KObjs where that overhead is incurred regardless of whether
// the result is needed.
func KObjSlice(arg interface{}

type kobjSlice

var _

var _

func (ks kobjSlice) String() string {}

func (ks kobjSlice) MarshalLog() interface{}

func (ks kobjSlice) process() (objs []interface{}

var nilToken

func (ks kobjSlice) WriteText(out *bytes.Buffer) {}