MCPcopy Create free account
hub / github.com/github/gh-aw / validateRunnerConfig

Function validateRunnerConfig

pkg/workflow/runner_config.go:40–53  ·  view source on GitHub ↗

validateRunnerConfig validates the runner topology configuration. It returns an error if the topology value is not recognized.

(config *RunnerConfig)

Source from the content-addressed store, hash-verified

38// validateRunnerConfig validates the runner topology configuration.
39// It returns an error if the topology value is not recognized.
40func validateRunnerConfig(config *RunnerConfig) error {
41 if config == nil {
42 return nil
43 }
44
45 switch config.Topology {
46 case RunnerTopologyArcDind:
47 return nil
48 case "":
49 return nil
50 default:
51 return fmt.Errorf("unsupported runner.topology value %q; supported values: %q", config.Topology, RunnerTopologyArcDind)
52 }
53}

Callers 2

TestValidateRunnerConfigFunction · 0.85
validateWorkflowDataMethod · 0.85

Calls 1

ErrorfMethod · 0.45

Tested by 1

TestValidateRunnerConfigFunction · 0.68