manifests

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrProcessManifest = errors.New("error processing manifest file")

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	Content          []byte
	Filename         string
	RelativeFilename string
}

Manifest represents a single input manifest for a given config.

func (*Manifest) ExtractManifests

func (manifest *Manifest) ExtractManifests() []string

ExtractManifests extracts the manifests as YAML strings from a manifest with existing manifest content.

func (*Manifest) LoadContent

func (manifest *Manifest) LoadContent() error

LoadContent sets the Content field of the manifest in raw format as []byte.

type ManifestOptions

type ManifestOptions int
const (
	WithParentPath ManifestOptions = iota
)

type Manifests

type Manifests []*Manifest

Manifests represents a collection of manifests.

func ExpandManifests

func ExpandManifests(parentPath string, manifestPaths []string) (*Manifests, error)

ExpandManifests expands manifests from its globbed pattern and return the resultant manifest filenames from the glob.

Jump to

Keyboard shortcuts

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