probe

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package probe implements the K8s readiness and liveliness probe handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	local.PluginLogDeps                               //inject
	HTTP                *rest.Plugin                  //inject optionally
	StatusCheck         statuscheck.AgentStatusReader //inject
}

Deps is here to group injected dependencies of plugin to not mix with other plugin fields.

type Plugin

type Plugin struct {
	Deps
	// contains filtered or unexported fields
}

Plugin struct holds all plugin-related data

func (*Plugin) AfterInit

func (p *Plugin) AfterInit() error

AfterInit is called by the Agent Core after all plugins have been initialized.

func (*Plugin) Close

func (p *Plugin) Close() error

Close is called by the Agent Core when it's time to clean up the plugin

func (*Plugin) Init

func (p *Plugin) Init() (err error)

Init is the plugin entry point called by the Agent Core

func (*Plugin) String

func (p *Plugin) String() string

String returns plugin name if it is set

Jump to

Keyboard shortcuts

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