Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.0.82 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfigNotFound = errors.New("c2j config not found")
)

Functions

func DiscoverConfigPath

func DiscoverConfigPath(startDir string) (string, error)

func RenderInitConfigTemplate

func RenderInitConfigTemplate(ctx context.Context, rootDir string) ([]byte, error)

Types

type CellRefConfig

type CellRefConfig struct {
	Repo StringOrCommand `yaml:"repo"`
	Ref  StringOrCommand `yaml:"ref"`
}

type DependentsConfig

type DependentsConfig struct {
	Repos   []string
	Command string `yaml:"command"`
	Filter  string `yaml:"filter"`
	// contains filtered or unexported fields
}

func (*DependentsConfig) UnmarshalYAML

func (d *DependentsConfig) UnmarshalYAML(node *yaml.Node) error

type ProjectConfig

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

func LoadProjectConfig

func LoadProjectConfig(startDir string) (*ProjectConfig, error)

func (*ProjectConfig) AllowedCells

func (c *ProjectConfig) AllowedCells(ctx context.Context) ([]string, error)

func (*ProjectConfig) AllowedDependentRepos

func (c *ProjectConfig) AllowedDependentRepos(ctx context.Context) ([]string, error)

func (*ProjectConfig) CanSubmitToCell

func (c *ProjectConfig) CanSubmitToCell(ctx context.Context, value string) (bool, error)

func (*ProjectConfig) CanonicalRepo

func (c *ProjectConfig) CanonicalRepo(ctx context.Context) (string, error)

func (*ProjectConfig) CellNameFromRepo

func (c *ProjectConfig) CellNameFromRepo(ctx context.Context, repo string) (string, bool)

func (*ProjectConfig) CellResolution added in v0.0.54

func (c *ProjectConfig) CellResolution(ctx context.Context) (*cellref.Context, error)

CellResolution captures effective settings; workers never execute config commands.

func (*ProjectConfig) DefaultRef

func (c *ProjectConfig) DefaultRef(ctx context.Context) (string, error)

func (*ProjectConfig) DependentCells

func (c *ProjectConfig) DependentCells(ctx context.Context) ([]string, error)

func (*ProjectConfig) DependentRepos

func (c *ProjectConfig) DependentRepos(ctx context.Context) ([]string, error)

func (*ProjectConfig) ExpandCellName

func (c *ProjectConfig) ExpandCellName(ctx context.Context, value string) (string, error)

func (*ProjectConfig) JobDBURI added in v0.0.42

func (c *ProjectConfig) JobDBURI(ctx context.Context) (string, error)

func (*ProjectConfig) Path

func (c *ProjectConfig) Path() string

func (*ProjectConfig) Pattern

func (c *ProjectConfig) Pattern(ctx context.Context) (string, error)

func (*ProjectConfig) RootCell

func (c *ProjectConfig) RootCell(ctx context.Context) (string, error)

func (*ProjectConfig) RootDir

func (c *ProjectConfig) RootDir() string

func (*ProjectConfig) RootRef

func (c *ProjectConfig) RootRef(ctx context.Context) (string, error)

func (*ProjectConfig) RootRepo

func (c *ProjectConfig) RootRepo(ctx context.Context) (string, error)

func (*ProjectConfig) SelfRef

func (c *ProjectConfig) SelfRef(ctx context.Context) (string, error)

func (*ProjectConfig) SelfRepo

func (c *ProjectConfig) SelfRepo(ctx context.Context) (string, error)

type SelfConfig added in v0.0.5

type SelfConfig struct {
	Repo StringOrCommand `yaml:"repo"`
	Ref  StringOrCommand `yaml:"ref"`
}

type StringOrCommand

type StringOrCommand struct {
	Value   string
	Command string
}

func (*StringOrCommand) UnmarshalYAML

func (s *StringOrCommand) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

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