convert

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package convert provides a method to convert v1beta1 API objects to Results API proto objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InferGVK added in v0.5.0

InferGVK infers the GroupVersionKind from the Object via schemes. Currently only the Tekton scheme is supported.

func Status added in v0.5.0

Status maps a Run condition to a general Record status.

func ToLogProto added in v0.5.0

func ToLogProto(in metav1.Object, kind, name string) (*rpb.Any, error)

ToLogProto converts k8s object to log proto object.

func ToProto

func ToProto(in runtime.Object) (*rpb.Any, error)

ToProto converts k8s object to proto object.

func TypeName added in v0.5.0

func TypeName(in runtime.Object) string

TypeName returns a string representation of type Object type. We do not know of any formalized spec for identifying objects across API versions. Standard GVK string formatting does not produce something that's payload friendly (i.e. includes spaces). To get around this we append API Version + Kind (e.g. tekton.dev/v1beta1.TaskRun).

Types

This section is empty.

Jump to

Keyboard shortcuts

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