discovery

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GCPFolderID         string        `env:"GCP_FOLDER_ID"`
	LabelQuery          []string      `env:"LABEL_QUERY"`
	MaxRetryAttempts    int           `env:"MAX_RETRY_ATTEMPTS,default=3"`
	BackoffInitialDelay time.Duration `env:"BACKOFF_INITIAL_DELAY,default=500ms"`
}

Config defines the set of environment variables required for running the runner-discovery job.

func NewConfig

func NewConfig(ctx context.Context) (*Config, error)

NewConfig creates a new Config from environment variables.

func (*Config) Validate

func (cfg *Config) Validate() error

Validate validates the runner-discovery config after load.

type RunnerDiscovery

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

RunnerDiscovery is the main struct for the runner-discovery job.

func NewRunnerDiscovery

func NewRunnerDiscovery(ctx context.Context, config *Config, rc *redisapi.Client) (*RunnerDiscovery, error)

func (*RunnerDiscovery) Run

func (rd *RunnerDiscovery) Run(ctx context.Context) error

Run discovers worker pool projects and caches them in a runner registry.

Jump to

Keyboard shortcuts

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