agentfile

package
v1.9.16 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromStore

func FromStore(reference string) (string, error)

FromStore loads an agent configuration from the OCI content store

func IsLocalFile

func IsLocalFile(input string) bool

IsLocalFile checks if the input is a local file

func IsOCIReference added in v1.9.11

func IsOCIReference(input string) bool

IsOCIReference checks if the input is a valid OCI reference

func OciRefToFilename

func OciRefToFilename(ociRef string) string

OciRefToFilename converts an OCI reference to a safe, consistent filename Examples:

  • "docker.io/myorg/agent:v1" -> "docker.io_myorg_agent_v1.yaml"
  • "localhost:5000/test" -> "localhost_5000_test.yaml"

func Resolve

func Resolve(ctx context.Context, out *cli.Printer, agentFilename string) (string, error)

Resolve resolves an agent file reference (local file or OCI image) to a local file path

Types

This section is empty.

Jump to

Keyboard shortcuts

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