stackdriver

package
v0.0.0-...-5e5ceee Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UseRealStackdriver

func UseRealStackdriver() bool

Types

type Config

type Config struct {
	// Cluster to be used in a multicluster environment
	Cluster cluster.Cluster
}

type Instance

type Instance interface {
	Address() string
	// Gets the namespace in which stackdriver is deployed.
	GetStackdriverNamespace() string
	ListTimeSeries(namespace, project string) ([]*monitoringpb.TimeSeries, error)
	ListLogEntries(lt LogType, namespace, project string) ([]*loggingpb.LogEntry, error)
	ListTraces(namespace, project string) ([]*cloudtracepb.Trace, error)
}

Instance represents a deployed Stackdriver app instance in a Kubernetes cluster.

func New

func New(ctx resource.Context, c Config) (i Instance, err error)

New returns a new instance of stackdriver.

func NewOrFail

func NewOrFail(t test.Failer, ctx resource.Context, c Config, realSD bool) Instance

NewOrFail returns a new Stackdriver instance or fails test.

type LogType

type LogType int
const (
	ServerAccessLog LogType = iota
	ServerAuditLog
)

Jump to

Keyboard shortcuts

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