config

package
v1.0.24 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseConfiguration

func ParseConfiguration()

func ValidateConfiguration

func ValidateConfiguration()

Types

type ProjectAdvanced added in v1.0.24

type ProjectAdvanced struct {
	ProjectID                 string `json:"projectId"`
	ImpersonateServiceAccount string `json:"impersonateServiceAccount"`
}

func ResolvedProjects added in v1.0.24

func ResolvedProjects() []ProjectAdvanced

ResolvedProjects returns the effective list of projects derived from ProjectID, ProjectIDs and ProjectsAdvanced. It assumes ValidateConfiguration has been called and the mutual-exclusion rules have been enforced.

type ProjectsAdvanced added in v1.0.24

type ProjectsAdvanced []ProjectAdvanced

func (*ProjectsAdvanced) UnmarshalText added in v1.0.24

func (p *ProjectsAdvanced) UnmarshalText(text []byte) error

type Specification

type Specification struct {
	//STEADYBIT_EXTENSION_CREDENTIALS_KEYFILE_PATH
	CredentialsKeyfilePath string `json:"credentialsKeyfilePath" required:"false" split_words:"true"`
	//STEADYBIT_EXTENSION_PROJECT_ID - legacy single-project config, kept for backward compatibility.
	ProjectId string `json:"projectId" required:"false" split_words:"true"`
	//STEADYBIT_EXTENSION_PROJECT_IDS - comma-separated list of GCP project IDs to discover. Uses the same credentials for all projects.
	ProjectIds []string `json:"projectIds" required:"false" split_words:"true"`
	//STEADYBIT_EXTENSION_PROJECTS_ADVANCED - JSON array of {projectId, impersonateServiceAccount}. Enables per-project service-account impersonation.
	ProjectsAdvanced ProjectsAdvanced `json:"projectsAdvanced" required:"false" split_words:"true"`
	//STEADYBIT_EXTENSION_WORKER_THREADS - number of goroutines used to fan out discovery across projects.
	WorkerThreads int `json:"workerThreads" required:"false" split_words:"true" default:"1"`
	//STEADYBIT_EXTENSION_COMPUTE_ENDPOINT - override the Compute API endpoint. Intended for testing only; when set the client skips authentication.
	ComputeEndpoint               string   `json:"computeEndpoint" required:"false" split_words:"true"`
	DiscoveryAttributesExcludesVM []string `json:"discoveryAttributesExcludesVM" required:"false" split_words:"true"`
	EnrichVMDataForTargetTypes    []string `` /* 534-byte string literal not displayed */
}

Specification is the configuration specification for the extension. Configuration values can be applied through environment variables. Learn more through the documentation of the envconfig package. https://github.com/kelseyhightower/envconfig

var (
	Config Specification
)

Jump to

Keyboard shortcuts

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