writer

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(context *Context, manifestToWrite manifest.Manifest) error

Write writes the manifest to the given path

Types

type Context

type Context struct {
	// Fs holds the abstraction of the file system.
	Fs afero.Fs

	// ManifestPath holds the path from where the manifest should be written to.
	ManifestPath string
}

Context holds all information for Write

type ManifestWriterError added in v2.10.0

type ManifestWriterError struct {
	ManifestPath string `json:"manifestPath"`
	Err          error  `json:"error"`
}

func (ManifestWriterError) Error added in v2.10.0

func (e ManifestWriterError) Error() string

func (ManifestWriterError) Unwrap added in v2.10.0

func (e ManifestWriterError) Unwrap() error

Jump to

Keyboard shortcuts

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