openshift

package
v0.111.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TypeStr is type of detector.
	TypeStr = "openshift"
)

Variables

This section is empty.

Functions

func NewDetector

NewDetector returns a detector which can detect resource attributes on OpenShift 4.

Types

type Config

type Config struct {
	// Address is the address of the openshift api server
	Address string `mapstructure:"address"`

	// Token is used to identify against the openshift api server
	Token string `mapstructure:"token"`

	// TLSSettings contains TLS configurations that are specific to client
	// connection used to communicate with the Openshift API.
	TLSSettings configtls.ClientConfig `mapstructure:"tls"`

	ResourceAttributes metadata.ResourceAttributesConfig `mapstructure:"resource_attributes"`
}

Config can contain user-specified inputs to overwrite default values. See `openshift.go#NewDetector` for more information.

func CreateDefaultConfig added in v0.81.0

func CreateDefaultConfig() Config

func (*Config) MergeWithDefaults

func (c *Config) MergeWithDefaults() error

MergeWithDefaults fills unset fields with default values.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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