logging

package
v1.125.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListFieldDiffs added in v1.118.2

func ListFieldDiffs(l, r any) ([]string, error)

ListFieldDiffs returns a list of field paths where the values differ, for two arbitrary objects. If the objects are unstructured.Unstructured, use ListFieldDiffsForUnstructured for efficiency.

func ListFieldDiffsForUnstructured added in v1.118.2

func ListFieldDiffsForUnstructured(l, r *unstructured.Unstructured) ([]string, error)

ListFieldDiffsForUnstructured returns a list of field paths where the values differ, for two unstructured objects.

func LogBucketRef_ConvertToExternal added in v1.118.0

func LogBucketRef_ConvertToExternal(ctx context.Context, reader client.Reader, src client.Object, pRef **v1alpha1.ResourceRef) error

func MakeFQN

func MakeFQN(projectID, metricID string) string

MakeFQN constructions a fully qualified name for a LogMetric resources to be used in API calls. The format expected is: "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Func assumes values are well formed and validated.

func NewLogMetricModel added in v1.118.2

func NewLogMetricModel(ctx context.Context, config *config.ControllerConfig) (directbase.Model, error)

Types

type LogBucket added in v1.118.0

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

func LogBucketRef_Parse added in v1.118.0

func LogBucketRef_Parse(ctx context.Context, external string) (*LogBucket, error)

func (*LogBucket) FQN added in v1.118.0

func (b *LogBucket) FQN() string

func (*LogBucket) ProjectID added in v1.118.0

func (b *LogBucket) ProjectID() string

Jump to

Keyboard shortcuts

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