server

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateManifestZipResponse

func GenerateManifestZipResponse(w http.ResponseWriter, manifestsMap map[string][]byte, ch *ConnectionsHandler, connectionName string)

func NewRouter

func NewRouter(ctx context.Context, deps HandlerDeps) *http.ServeMux

Types

type ArgoCDHandler

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

func NewArgoCDHandler

func NewArgoCDHandler(theIntegration integration.Integration[integration.ArgoCDIntegrationData], k8sNamespace string, logger *zap.Logger) *ArgoCDHandler

func (*ArgoCDHandler) DeleteIntegration

func (ah *ArgoCDHandler) DeleteIntegration(ctx context.Context) http.HandlerFunc

func (*ArgoCDHandler) GetIntegrations

func (ah *ArgoCDHandler) GetIntegrations(ctx context.Context) http.HandlerFunc

func (*ArgoCDHandler) PutIntegrationData

func (ah *ArgoCDHandler) PutIntegrationData(ctx context.Context) http.HandlerFunc

type ConnectionsHandler

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

func NewConnectionsHandler

func NewConnectionsHandler(
	octantConnection connection.Connection[connection.OctantConnectionData],
	k8sNamespace string,
	logger *zap.Logger,
) *ConnectionsHandler

func (*ConnectionsHandler) DeleteConnectionByName

func (ch *ConnectionsHandler) DeleteConnectionByName(ctx context.Context) http.HandlerFunc

func (*ConnectionsHandler) GenerateManifestsForGivenConnection

func (ch *ConnectionsHandler) GenerateManifestsForGivenConnection() http.HandlerFunc

func (*ConnectionsHandler) GetConnectionByName

func (ch *ConnectionsHandler) GetConnectionByName(ctx context.Context) http.HandlerFunc

func (*ConnectionsHandler) GetConnectionStatus

func (ch *ConnectionsHandler) GetConnectionStatus(ctx context.Context) http.HandlerFunc

func (*ConnectionsHandler) SaveConnectionData

func (ch *ConnectionsHandler) SaveConnectionData(ctx context.Context) http.HandlerFunc

type DatadogHandler

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

func NewDatadogHandler

func NewDatadogHandler(theIntegration integration.Integration[integration.DataDogIntegrationData], k8sNamespace string, logger *zap.Logger) *DatadogHandler

func (*DatadogHandler) DeleteIntegration

func (dh *DatadogHandler) DeleteIntegration(ctx context.Context) http.HandlerFunc

func (*DatadogHandler) GetIntegrations

func (dh *DatadogHandler) GetIntegrations(ctx context.Context) http.HandlerFunc

func (*DatadogHandler) PutIntegrationData

func (dh *DatadogHandler) PutIntegrationData(ctx context.Context) http.HandlerFunc

type HandlerDeps

type HandlerDeps struct {
	Logger                 *zap.Logger
	ValkeyClient           valkey.Client
	VariableReader         *datacorevariables.ValkeyAdapter
	SlowValueReadThreshold time.Duration
	AuditAdapter           *audit.AuditAdapter
	EventPublisher         publisher.Publisher
	ConfigMapController    *datacorekube.HubConfigMapController
	Deduper                *adapter.Deduper
	OpAMPServer            *opamp.OpAMPControlServer
	K8sClient              kubernetes.Interface
	K8sNamespace           string
	HTTPClient             *http.Client
	PrometheusClient       promv1.API
}

Jump to

Keyboard shortcuts

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