helper

package
v0.0.0-...-fd0897c Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToOpts

func ToOpts(cfg *config.Params) (opts []gapiopts.ClientOption)

ToOpts converts the Stackdriver config params to options for configuring Stackdriver clients.

func ToStringMap

func ToStringMap(in map[string]interface{}) map[string]string

ToStringMap converts a map[string]interface{} to a map[string]string

Types

type ProjectIDFiller

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

ProjectIDFiller checks and fills project id for stack adapter config.

func NewProjectIDFiller

func NewProjectIDFiller(s shouldFillFn, p projectIDFn) *ProjectIDFiller

NewProjectIDFiller creates a project id filler for stackdriver adapter config with the given functions.

func (*ProjectIDFiller) FillProjectID

func (p *ProjectIDFiller) FillProjectID(c adapter.Config)

FillProjectID tries to fill project ID in adapter config if it is empty.

Jump to

Keyboard shortcuts

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