Documentation
¶
Index ¶
- Variables
- func ConvertToJsonRawMessage(data interface{}) gojson.RawMessage
- func ConvertToObject(data []byte, dest interface{}) interface{}
- func IsIngressGVK(gvk schema.GroupVersionKind) bool
- func IsListGVK(gvk schema.GroupVersionKind) bool
- func IsNamespaceGVK(gvk schema.GroupVersionKind) bool
- func IsNamespacePostCreate(gvk schema.GroupVersionKind) bool
- func IsPlacementGVK(gvk schema.GroupVersionKind) bool
- func IsTaskInitGVK(gvk schema.GroupVersionKind) bool
- func IsTaskletInitGVK(gvk schema.GroupVersionKind) bool
- func IsTaskletInstallGVK(gvk schema.GroupVersionKind) bool
- func IsTaskletPostInstallGVK(gvk schema.GroupVersionKind) bool
- func StepObjectToStepTemplate(so apiv2.StepObject) (apiv2.StepTemplate, error)
- func ToRuntimeObject(gvk schema.GroupVersionKind, b []byte) (runtime.Object, error)
- func ToStepTemplate(o runtime.Object) (apiv2.StepTemplate, error)
Constants ¶
This section is empty.
Variables ¶
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 ¶
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.