Documentation
¶
Overview ¶
Manage raid profiles.
Index ¶
- func Add(profile Profile) error
- func AddAll(profiles []Profile) error
- func Contains(name string) bool
- func CreateRepoConfigs(repos []RepoDraft)
- func Remove(name string) error
- func Set(name string) error
- func Validate(path string) error
- func ValidateRepoConfig(path string) error
- func WriteFile(draft ProfileDraft, path string) error
- type Profile
- type ProfileDraft
- type Repo
- type RepoDraft
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRepoConfigs ¶
func CreateRepoConfigs(repos []RepoDraft)
CreateRepoConfigs writes a raid.yaml stub into each repository's local directory.
func ValidateRepoConfig ¶
ValidateRepoConfig validates a raid.yaml file against the repo JSON schema. Used by `raid profile add` to detect repo configs and adopt them as single-repo profiles.
func WriteFile ¶
func WriteFile(draft ProfileDraft, path string) error
WriteFile serializes draft to path as a YAML profile file.
Types ¶
type Profile ¶
func SynthesizeFromRepoConfig ¶
SynthesizeFromRepoConfig builds a single-repo profile from a raid.yaml at path. The returned profile's Path is the raid.yaml itself; lib.IsSingleRepo detects this and switches the load pipeline to repo-schema validation.
type ProfileDraft ¶
type ProfileDraft = lib.ProfileDraft
Click to show internal directories.
Click to hide internal directories.