providers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package providers defines a common API for providers.

Index

Constants

View Source
const (
	Local  = "local"  // running as local process
	Kube   = "kube"   // running in Kubernetes pod
	Docker = "docker" // running in Docker container
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Env

type Env string

type Provider

type Provider interface {
	// Env returns the environment type of the provider.
	Env() string

	// Name returns a name of the provider.
	Name() string

	// Query runs query with list of parameters used as filters and returns a list
	// of Handler for
	Query(params ...map[string]string) ([]probe.Handler, error)
}

Provider provides ways to discover instances.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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