stackdriver

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(datasource *Stackdriver) error

func Default

func Default() Option

Default configures this datasource to be the default one.

func GCEAuthentication

func GCEAuthentication() Option

GCEAuthentication uses GCE default Service Account to authenticate to Stackdriver API.

func JWTAuthentication

func JWTAuthentication(jwt string) Option

JWTAuthentication uses the given ServiceAccount key file to authenticate to Stackdriver API.

type Stackdriver

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

func New

func New(name string, options ...Option) (Stackdriver, error)

func (Stackdriver) MarshalJSON

func (datasource Stackdriver) MarshalJSON() ([]byte, error)

func (Stackdriver) Name

func (datasource Stackdriver) Name() string

Jump to

Keyboard shortcuts

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