handler

package
v1.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// K8sClient is used to operate k8s resources
	K8sClient clientset.Interface
)

Functions

func BuildPatch

func BuildPatch(p map[string]string) ([]byte, error)

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

func Init

func Init(c clientset.Interface)

Init initializes the server resources handlers.

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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