Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // K8sClient is used to operate k8s resources K8sClient clientset.Interface )
Functions ¶
func BuildPatch ¶
BuildPatch builds string patch from input p map, map key used as patch path, map value used as patch value.
func BuildWfrStatusPatch ¶
func BuildWfrStatusPatch(statusPhase v1alpha1.StatusPhase) ([]byte, error)
BuildWfrStatusPatch builds patch for updating status of workflowrun
Types ¶
type JSONPatch ¶
type JSONPatch struct { // Op represents operation type Op string `json:"op"` // Path represents elements will be operate Path string `json:"path"` // Value represents the new value of the operation elements Value string `json:"value"` }
JSONPatch contains information about application/json-patch+json type patch
Click to show internal directories.
Click to hide internal directories.