util

package
v0.0.0-...-425e462 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignTypeKind

func AssignTypeKind(v interface{}) error

func CreateOrPatchClusterAlert

func CreateOrPatchClusterAlert(c cs.MonitoringV1alpha1Interface, meta metav1.ObjectMeta, transform func(alert *api.ClusterAlert) *api.ClusterAlert) (*api.ClusterAlert, kutil.VerbType, error)

func CreateOrPatchIncident

func CreateOrPatchIncident(c cs.MonitoringV1alpha1Interface, meta metav1.ObjectMeta, transform func(alert *api.Incident) *api.Incident) (*api.Incident, kutil.VerbType, error)

func CreateOrPatchNodeAlert

func CreateOrPatchNodeAlert(c cs.MonitoringV1alpha1Interface, meta metav1.ObjectMeta, transform func(alert *api.NodeAlert) *api.NodeAlert) (*api.NodeAlert, kutil.VerbType, error)

func CreateOrPatchPodAlert

func CreateOrPatchPodAlert(c cs.MonitoringV1alpha1Interface, meta metav1.ObjectMeta, transform func(alert *api.PodAlert) *api.PodAlert) (*api.PodAlert, kutil.VerbType, error)

func GetGroupVersionKind

func GetGroupVersionKind(v interface{}) schema.GroupVersionKind

func PatchIncident

func PatchIncident(c cs.MonitoringV1alpha1Interface, cur *api.Incident, transform func(*api.Incident) *api.Incident) (*api.Incident, kutil.VerbType, error)

func PatchIncidentObject

func PatchIncidentObject(c cs.MonitoringV1alpha1Interface, cur, mod *api.Incident) (*api.Incident, kutil.VerbType, error)

func PatchNodeAlert

func PatchNodeAlert(c cs.MonitoringV1alpha1Interface, cur *api.NodeAlert, transform func(*api.NodeAlert) *api.NodeAlert) (*api.NodeAlert, kutil.VerbType, error)

func PatchNodeAlertObject

func PatchNodeAlertObject(c cs.MonitoringV1alpha1Interface, cur, mod *api.NodeAlert) (*api.NodeAlert, kutil.VerbType, error)

func PatchPodAlert

func PatchPodAlert(c cs.MonitoringV1alpha1Interface, cur *api.PodAlert, transform func(*api.PodAlert) *api.PodAlert) (*api.PodAlert, kutil.VerbType, error)

func PatchPodAlertObject

func PatchPodAlertObject(c cs.MonitoringV1alpha1Interface, cur, mod *api.PodAlert) (*api.PodAlert, kutil.VerbType, error)

func TryUpdateClusterAlert

func TryUpdateClusterAlert(c cs.MonitoringV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.ClusterAlert) *api.ClusterAlert) (result *api.ClusterAlert, err error)

func TryUpdateIncident

func TryUpdateIncident(c cs.MonitoringV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.Incident) *api.Incident) (result *api.Incident, err error)

func TryUpdateNodeAlert

func TryUpdateNodeAlert(c cs.MonitoringV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.NodeAlert) *api.NodeAlert) (result *api.NodeAlert, err error)

func TryUpdatePodAlert

func TryUpdatePodAlert(c cs.MonitoringV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.PodAlert) *api.PodAlert) (result *api.PodAlert, err error)

func TryUpdateSearchlightPlugin

func TryUpdateSearchlightPlugin(c cs.MonitoringV1alpha1Interface, meta metav1.ObjectMeta, transform func(*api.SearchlightPlugin) *api.SearchlightPlugin) (result *api.SearchlightPlugin, err error)

func UpdateIncidentStatus

func UpdateIncidentStatus(
	c cs.MonitoringV1alpha1Interface,
	in *api.Incident,
	transform func(*api.IncidentStatus) *api.IncidentStatus,
	useSubresource ...bool,
) (result *api.Incident, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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