registry

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRunnerRegistry added in v0.1.0

func NewRunnerRegistry(ctx context.Context, cfg *RegistryConfig) (*redis.Client, error)

NewRunnerRegistry creates and returns a new registry client. It uses the host and port from the provided config.

Types

type RegistryConfig

type RegistryConfig struct {
	Host string `env:"REDIS_HOST,required"`
	Port string `env:"REDIS_PORT,required"`
}

RegistryConfig defines the set of environment variables required for creating a registry client.

func NewConfig

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

NewConfig creates a new RegistryConfig from environment variables.

func (*RegistryConfig) ToFlags added in v0.1.0

func (c *RegistryConfig) ToFlags(set *cli.FlagSet)

ToFlags binds the config to a CLI flag set.

type WorkerPoolInfo added in v0.1.0

type WorkerPoolInfo struct {
	Name          string `json:"name"`
	ProjectID     string `json:"project_id"`
	ProjectNumber string `json:"project_number"`
	Location      string `json:"location"`
}

WorkerPoolInfo holds information about a discovered worker pool and its project.

Jump to

Keyboard shortcuts

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