helper

package
v0.0.0-...-701ea4a Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCPConfig

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

GCPConfig holds the metadata configuration

func GetDefaultConfig

func GetDefaultConfig() *GCPConfig

GetDefaultConfig returns the medatadata's default config

type GCPMetadata

type GCPMetadata struct {
	ContainerID *Info
	Region      *Info
	ProjectID   *Info
}

GCPMetadata holds the container's metadata

func GetMetaData

func GetMetaData(config *GCPConfig) *GCPMetadata

GetMetaData returns the container's metadata

func (*GCPMetadata) TagMap

func (metadata *GCPMetadata) TagMap(namespace string) map[string]string

TagMap returns the container's metadata in a map

type Info

type Info struct {
	TagName string
	Value   string
}

Info holds the GCP tag value format

Jump to

Keyboard shortcuts

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