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 ¶
ToStringMap converts a map[string]interface{} to a map[string]string
Types ¶
type Metadata ¶
Metadata keeps metadata about the project which this stackdriver adapter is running on.
func (*Metadata) FillProjectMetadata ¶
FillProjectMetadata fills project metadata for the given map if the key matches and the value is empty.
type MetadataGenerator ¶
type MetadataGenerator struct {
// contains filtered or unexported fields
}
MetadataGenerator creates metadata based on the given metadata functions.
func NewMetadataGenerator ¶
func NewMetadataGenerator(shouldFill shouldFillFn, projectIDFn, locationFn, clusterNameFn metadataFn) *MetadataGenerator
NewMetadataGenerator creates a MetadataGenerator with the given functions.
func (*MetadataGenerator) GenerateMetadata ¶
func (mg *MetadataGenerator) GenerateMetadata() Metadata
GenerateMetadata generates a Metadata struct if the condition is fulfilled.
Click to show internal directories.
Click to hide internal directories.