Documentation
¶
Index ¶
- func ExpandSpecWithDependencies(specs map[string]types.Spec, index string) (*types.Spec, error)
- func GetAllSpecsFromFile(path string) (map[string]types.Spec, error)
- func GetAllSpecsFromLocalDir(specPath string) (map[string]types.Spec, error)
- func GetAllSpecsFromPath(path string) (map[string]types.Spec, error)
- func GetSpecFromGit(repoURL string, index string) (types.Spec, error)
- func GetSpecFromGitLab(repoURL string, index string) (types.Spec, error)
- func GetSpecFromGitLabWithToken(repoURL string, index string, gitlabToken string) (types.Spec, error)
- func GetSpecFromGitWithToken(repoURL string, index string, githubToken string) (types.Spec, error)
- func GetSpecFromLocalDir(specPath string, index string) (types.Spec, error)
- func GetSpecFromLocalDirs(specPaths []string, index string) (types.Spec, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpandSpecWithDependencies ¶
ExpandSpecWithDependencies is the public version of expandSpecWithDependencies. It expands a spec by resolving all its dependencies (inherited specs) from a provided spec map.
func GetAllSpecsFromFile ¶
GetAllSpecsFromFile loads all specs from a single file without expansion. Returns a map of specs keyed by their chain ID (Index).
func GetAllSpecsFromLocalDir ¶
GetAllSpecsFromLocalDir loads all specs from a local directory without expansion. Returns a map of specs keyed by their chain ID (Index). Later files in directory order override earlier ones for the same chain ID.
func GetAllSpecsFromPath ¶
GetAllSpecsFromPath loads all specs from a local path (file or directory) without expansion. Returns a map of specs keyed by their chain ID (Index).
func GetSpecFromGit ¶
GetSpecFromGit fetches a spec from a GitHub repository (unauthenticated). Deprecated: Use specfetcher.FetchSpecFromGitHub for new code.
func GetSpecFromGitLab ¶
GetSpecFromGitLab fetches a spec from a GitLab repository (unauthenticated). Deprecated: Use specfetcher.FetchSpecFromGitLab for new code.
func GetSpecFromGitLabWithToken ¶
func GetSpecFromGitLabWithToken(repoURL string, index string, gitlabToken string) (types.Spec, error)
GetSpecFromGitLabWithToken fetches a spec from a GitLab repository with optional authentication. Deprecated: Use specfetcher.FetchSpecFromGitLab for new code.
func GetSpecFromGitWithToken ¶
GetSpecFromGitWithToken fetches a spec from a GitHub repository with optional authentication. Deprecated: Use specfetcher.FetchSpecFromGitHub for new code.
func GetSpecFromLocalDir ¶
func GetSpecFromLocalDirs ¶
GetSpecFromLocalDirs loads specs from multiple directories, merging them into a single pool before resolving the requested spec and its dependencies. Later directories override earlier ones for the same spec index.
Types ¶
This section is empty.