istio: Index | Files

package helper

import ""


Package Files


func ToOpts Uses

func ToOpts(cfg *config.Params, logger adapter.Logger) (opts []gapiopts.ClientOption)

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

func ToStringMap Uses

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

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

type Metadata Uses

type Metadata struct {
    ProjectID   string
    Location    string
    ClusterName string

Metadata keeps metadata about the project which this stackdriver adapter is running on.

func (*Metadata) FillProjectMetadata Uses

func (md *Metadata) FillProjectMetadata(in map[string]string)

FillProjectMetadata fills project metadata for the given map if the key matches and the value is empty.

type MetadataGenerator Uses

type MetadataGenerator interface {
    GenerateMetadata() Metadata

MetadataGenerator creates metadata based on the given metadata functions.

func NewMetadataGenerator Uses

func NewMetadataGenerator(shouldFill shouldFillFn, projectIDFn, locationFn, clusterNameFn metadataFn) MetadataGenerator

NewMetadataGenerator creates a MetadataGenerator with the given functions.

Package helper imports 4 packages (graph) and is imported by 10 packages. Updated 2019-11-14. Refresh now. Tools for package owners.