keeper

package
v5.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandSpecWithDependencies added in v5.8.0

func ExpandSpecWithDependencies(specs map[string]types.Spec, index string) (*types.Spec, error)

ExpandSpecWithDependencies is the public version of expandSpecWithDependencies. It expands a spec by resolving all its dependencies (inherited specs) from a provided spec map.

func GetASpec

func GetASpec(specIndex, getToTopMostPath string, ctxArg *sdk.Context, keeper *keeper.Keeper) (specRet types.Spec, err error)

func GetAllSpecsFromFile added in v5.8.0

func GetAllSpecsFromFile(path string) (map[string]types.Spec, error)

GetAllSpecsFromFile loads all specs from a single file without expansion. Returns a map of specs keyed by their chain ID (Index).

func GetAllSpecsFromLocalDir added in v5.8.0

func GetAllSpecsFromLocalDir(specPath string) (map[string]types.Spec, error)

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 added in v5.8.0

func GetAllSpecsFromPath(path string) (map[string]types.Spec, error)

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 added in v5.4.1

func GetSpecFromGit(repoURL string, index string) (types.Spec, error)

GetSpecFromGit fetches a spec from a GitHub repository (unauthenticated). Deprecated: Use specfetcher.FetchSpecFromGitHub for new code.

func GetSpecFromGitLab added in v5.8.0

func GetSpecFromGitLab(repoURL string, index string) (types.Spec, error)

GetSpecFromGitLab fetches a spec from a GitLab repository (unauthenticated). Deprecated: Use specfetcher.FetchSpecFromGitLab for new code.

func GetSpecFromGitLabWithToken added in v5.8.0

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 added in v5.5.1

func GetSpecFromGitWithToken(repoURL string, index string, githubToken string) (types.Spec, error)

GetSpecFromGitWithToken fetches a spec from a GitHub repository with optional authentication. Deprecated: Use specfetcher.FetchSpecFromGitHub for new code.

func GetSpecFromLocalDir added in v5.4.1

func GetSpecFromLocalDir(specPath string, index string) (types.Spec, error)

func GetSpecFromPath

func GetSpecFromPath(path string, specIndex string, ctxArg *sdk.Context, keeper *keeper.Keeper) (specRet types.Spec, err error)

func SpecKeeper

func SpecKeeper(t testing.TB) (*keeper.Keeper, sdk.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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