files

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadManifest = errors.New("Invalid manifest") //nolint:staticcheck

Functions

func FindManifestFile added in v1.2.0

func FindManifestFile(source string) (string, error)

FindManifestFile resolves source to the path of a manifest file to validate. An explicit file path is returned as-is regardless of its name; a directory is searched for the conventional amp.yaml/amp.yml manifest. It returns ErrBadManifest if the source does not resolve to a manifest file.

func GetRemovedReadObjects added in v1.1.0

func GetRemovedReadObjects(oldRevision *openapi.Integration, newIntegration *openapi.Integration) []string

GetRemovedReadObjects returns a list of read objects that were removed from the old revision but not in the new integration. The comparison is case-insensitive.

func ParseManifest added in v0.1.13

func ParseManifest(yamlData []byte) (*openapi.Manifest, error)

func ValidateManifest added in v0.1.13

func ValidateManifest(manifest *openapi.Manifest) error

Types

type ZipResult added in v1.1.0

type ZipResult struct {
	Data     []byte
	Manifest *openapi.Manifest
}

func Zip

func Zip(source string) (*ZipResult, error)

Zip creates a zip archive of the given directory in-memory and returns the parsed manifest.

Jump to

Keyboard shortcuts

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