assetpath

package
v0.0.0 Latest Latest
Warning

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

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

Documentation

Overview

Package assetpath resolves repository-relative asset paths from the current working directory by walking upward until go.mod, services/, and k8s/ match.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRepoRoot

func IsRepoRoot(dir string) bool

IsRepoRoot reports whether dir looks like the mcp-runtime repository root.

func ResolveRepoAssetPath

func ResolveRepoAssetPath(path string) (string, error)

ResolveRepoAssetPath finds a repo-relative path from the current working directory by walking upward until the asset exists. The repo assumes a flattened root layout (for example services/ and k8s/ at the top level).

func ResolveRepoRoot

func ResolveRepoRoot() (string, error)

ResolveRepoRoot walks upward from the working directory until IsRepoRoot reports true.

Types

This section is empty.

Jump to

Keyboard shortcuts

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