Documentation
¶
Index ¶
- Variables
- func DiscoverConfigPath(startDir string) (string, error)
- func RenderInitConfigTemplate(ctx context.Context, rootDir string) ([]byte, error)
- type CellRefConfig
- type DependentsConfig
- type ProjectConfig
- func (c *ProjectConfig) AllowedCells(ctx context.Context) ([]string, error)
- func (c *ProjectConfig) AllowedDependentRepos(ctx context.Context) ([]string, error)
- func (c *ProjectConfig) CanSubmitToCell(ctx context.Context, value string) (bool, error)
- func (c *ProjectConfig) CanonicalRepo(ctx context.Context) (string, error)
- func (c *ProjectConfig) CellNameFromRepo(ctx context.Context, repo string) (string, bool)
- func (c *ProjectConfig) DefaultRef(ctx context.Context) (string, error)
- func (c *ProjectConfig) DependentCells(ctx context.Context) ([]string, error)
- func (c *ProjectConfig) DependentRepos(ctx context.Context) ([]string, error)
- func (c *ProjectConfig) ExpandCellName(ctx context.Context, value string) (string, error)
- func (c *ProjectConfig) Path() string
- func (c *ProjectConfig) Pattern(ctx context.Context) (string, error)
- func (c *ProjectConfig) RootCell(ctx context.Context) (string, error)
- func (c *ProjectConfig) RootDir() string
- func (c *ProjectConfig) RootRef(ctx context.Context) (string, error)
- func (c *ProjectConfig) RootRepo(ctx context.Context) (string, error)
- func (c *ProjectConfig) SelfRef(ctx context.Context) (string, error)
- func (c *ProjectConfig) SelfRepo(ctx context.Context) (string, error)
- type StringOrCommand
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrConfigNotFound = errors.New("c2j config not found")
)
Functions ¶
func DiscoverConfigPath ¶
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 (*ProjectConfig) CanonicalRepo ¶
func (c *ProjectConfig) CanonicalRepo(ctx context.Context) (string, error)
func (*ProjectConfig) CellNameFromRepo ¶
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 (*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)
type StringOrCommand ¶
func (*StringOrCommand) UnmarshalYAML ¶
func (s *StringOrCommand) UnmarshalYAML(node *yaml.Node) error
Click to show internal directories.
Click to hide internal directories.