events

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package events lists all the events supported by the Apatelet

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventFlag

type EventFlag = int32

EventFlag is a flag to be used by the Apatelet

type NodeEventFlag

type NodeEventFlag = EventFlag

NodeEventFlag is a node specific flag to be used by the Apatelet

const (
	// NodeCreatePodResponse determines how to respond to the CreatePod request
	// Can also be influenced on pod level
	NodeCreatePodResponse NodeEventFlag = iota

	// NodeUpdatePodResponse determines how to respond to the UpdatePod request
	// Can also be influenced on pod level
	NodeUpdatePodResponse

	// NodeDeletePodResponse determines how to respond to the DeletePod request
	// Can also be influenced on pod level
	NodeDeletePodResponse

	// NodeGetPodResponse determines how to respond to the GetPod request
	// Can also be influenced on pod level
	NodeGetPodResponse

	// NodeGetPodStatusResponse determines how to respond to the GetPodStatus request
	// Can also be influenced on pod level
	NodeGetPodStatusResponse

	// NodeGetPodsResponse determines how to respond to the GetPod request
	NodeGetPodsResponse

	// NodePingResponse determines how to respond to the Ping request
	NodePingResponse

	// NodeAddedLatency is the amount of nanoseconds of latency
	// Will default to 0 nano seconds
	NodeAddedLatency
)

type PodEventFlag

type PodEventFlag = EventFlag

PodEventFlag is a pod specific flag to be used by the Apatelet

const (
	// PodCreatePodResponse determines how to respond to the CreatePod request
	// Can also be influenced on node level
	PodCreatePodResponse PodEventFlag = iota

	// PodUpdatePodResponse determines how to respond to the UpdatePod request
	// Can also be influenced on node level
	PodUpdatePodResponse

	// PodDeletePodResponse determines how to respond to the DeletePod request
	// Can also be influenced on node level
	PodDeletePodResponse

	// PodGetPodResponse determines how to respond to the GetPod request
	// Can also be influenced on node level
	PodGetPodResponse

	// PodGetPodStatusResponse determines how to respond to the GetPodStatus request
	// Can also be influenced on node level
	PodGetPodStatusResponse

	// PodResources are resources for the pod. See stats.PodStats
	PodResources

	// PodStatus updates the status of a certain percentage of pods in the current configuration
	// Can be left empty to keep the status unchanged
	// If left empty, the pod_status_percentage will be ignored
	PodStatus
)

Jump to

Keyboard shortcuts

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