diffuri

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Scheme = "saga-diff"

Variables

This section is empty.

Functions

func Build

func Build(reference Reference) (string, error)

func CanonicalRepository

func CanonicalRepository(value string) (string, error)

CanonicalRepository returns the portable identity persisted in manifests and diff URIs. Authentication userinfo is deliberately discarded.

func FileRepository

func FileRepository(value string) (string, error)

FileRepository constructs a canonical file repository URI for a local path.

func Matches

func Matches(selector, atom Reference) bool

func RepositoryFilePath

func RepositoryFilePath(value string) (string, error)

RepositoryFilePath resolves a canonical file repository URI on this host.

func Validate

func Validate(reference Reference) error

Types

type Reference

type Reference struct {
	Repository string
	Base       string
	Head       string
	Kind       string
	Path       string
	Side       string
	Start      int
	End        int
	Event      string
	OldPath    string
	NewPath    string
}

func Parse

func Parse(value string) (Reference, error)

Jump to

Keyboard shortcuts

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