Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRunnerRegistry ¶ added in v0.1.0
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"`
RemoteConfig string `json:"remote_config,omitempty"`
PoolType string `json:"pool_type,omitempty"`
ExtraRunnerCount int `json:"extra_runner_count,omitempty"`
}
WorkerPoolInfo holds information about a discovered worker pool and its project.
Click to show internal directories.
Click to hide internal directories.