types

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectRef

type ObjectRef struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace,omitempty"`
}

ObjectRef references a Kubernetes object

func (ObjectRef) MarshalLog

func (ref ObjectRef) MarshalLog() interface{}

MarshalLog ensures that loggers with structured output ignore the String method.

We implement fmt.Stringer for non-structured logging, but we want the raw struct when using structured logs. Some logr implementations call String if it is present, so we want to convert this struct to something that doesn't have that method.

func (ObjectRef) String

func (ref ObjectRef) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL