connector

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const ResourcesPageSize uint64 = 50

Variables

This section is empty.

Functions

This section is empty.

Types

type Grafana

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

Grafana represents the Baton connector for Grafana.

func New

func New(ctx context.Context, hostname, username, password string) (*Grafana, error)

New initializes a new instance of the Grafana connector.

func (*Grafana) Asset

func (g *Grafana) Asset(ctx context.Context, asset *v2.AssetRef) (string, io.ReadCloser, error)

Asset is used to fetch an asset based on an AssetRef.

func (*Grafana) Metadata

func (g *Grafana) Metadata(ctx context.Context) (*v2.ConnectorMetadata, error)

Metadata provides information about the Grafana connector.

func (*Grafana) ResourceSyncers

func (g *Grafana) ResourceSyncers(ctx context.Context) []connectorbuilder.ResourceSyncer

ResourceSyncers returns a list of syncers for different resource types.

func (*Grafana) Validate

func (g *Grafana) Validate(ctx context.Context) (annotations.Annotations, error)

Validate ensures the connector is properly configured and has valid API credentials.

Jump to

Keyboard shortcuts

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