converter

package
v0.2.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidObject is retuned for invalid object
	ErrInvalidObject = errors.New("object does not support object interface")
)

Functions

func ConvertToJsonRawMessage

func ConvertToJsonRawMessage(data interface{}) gojson.RawMessage

func ConvertToObject

func ConvertToObject(data []byte, dest interface{}) interface{}

func IsIngressGVK

func IsIngressGVK(gvk schema.GroupVersionKind) bool

IsPlacementGVK checks gvk is placement

func IsListGVK

func IsListGVK(gvk schema.GroupVersionKind) bool

IsListGVK checks if gvk is of List Kind

func IsNamespaceGVK

func IsNamespaceGVK(gvk schema.GroupVersionKind) bool

IsNamespaceGVK checks if given gvk is namespace

func IsNamespacePostCreate

func IsNamespacePostCreate(gvk schema.GroupVersionKind) bool

IsNamespacePostCreate checks if given gvk should go into namespace post install

func IsPlacementGVK

func IsPlacementGVK(gvk schema.GroupVersionKind) bool

IsPlacementGVK checks gvk is placement

func IsTaskInitGVK

func IsTaskInitGVK(gvk schema.GroupVersionKind) bool

IsTaskInitGVK checks if given gvk should go into init phase of a Task

func IsTaskletInitGVK

func IsTaskletInitGVK(gvk schema.GroupVersionKind) bool

IsTaskletInitGVK checks if given gvk should go into init phase of a Tasklet

func IsTaskletInstallGVK

func IsTaskletInstallGVK(gvk schema.GroupVersionKind) bool

IsTaskletInstallGVK checks if given gvk should go into install phase of a Tasklet

func IsTaskletPostInstallGVK

func IsTaskletPostInstallGVK(gvk schema.GroupVersionKind) bool

IsTaskletPostInstallGVK checks if given gvk should go into post install phase of a TaskSet

func StepObjectToStepTemplate

func StepObjectToStepTemplate(so apiv2.StepObject) (apiv2.StepTemplate, error)

ToStepTemplate converts runtime.Object to StepTemplate

func ToRuntimeObject

func ToRuntimeObject(gvk schema.GroupVersionKind, b []byte) (runtime.Object, error)

ToRuntimeObject converts JSON bytes into runtime object of latest version

func ToStepTemplate

func ToStepTemplate(o runtime.Object) (apiv2.StepTemplate, error)

ToStepTemplate converts runtime.Object to StepTemplate

Types

This section is empty.

Jump to

Keyboard shortcuts

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