integration

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IntegrationHandler

type IntegrationHandler struct {
	// contains filtered or unexported fields
}

IntegrationHandler manages all endpoints related to integrated applications, such as state.

func NewIntegrationHandler

func NewIntegrationHandler(manager IntegrationManager) IntegrationHandler

NewIntegrationHandler creates IntegrationHandler.

func (IntegrationHandler) Install

func (self IntegrationHandler) Install(ws *restful.WebService)

Install creates new endpoints for integrations. All information that any integration would want to expose by creating new endpoints should be kept here, i.e. helm integration might want to create endpoint to list available releases/charts.

By default endpoint for checking state of the integrations is installed. It allows user to check state of integration by accessing `<DASHBOARD_URL>/api/v1/integration/{name}/state`.

type IntegrationManager

type IntegrationManager interface {
	// IntegrationsGetter is responsible for listing all supported integrations.
	IntegrationsGetter
	// GetState returns state of integration based on its' id.
	GetState(id api.IntegrationID) (*api.IntegrationState, error)
	// Metric returns metric manager that is responsible for management of metric integrations.
	Metric() metric.MetricManager
}

IntegrationManager is responsible for management of all integrated applications.

func NewIntegrationManager

func NewIntegrationManager(manager client.ClientManager) IntegrationManager

NewIntegrationManager creates integration manager.

type IntegrationsGetter

type IntegrationsGetter interface {
	// List returns list of all supported integrations.
	List() []api.Integration
}

IntegrationsGetter is responsible for listing all supported integrations.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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