writers

package
v0.0.0-...-7ff9c78 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtifactWriter

type ArtifactWriter struct {
	// contains filtered or unexported fields
}

This is a simple wrapper for awriter for easier manipulation of artifact metadata

func NewArtifactWriter

func NewArtifactWriter(outputPath string) ArtifactWriter

func (*ArtifactWriter) WithArtifactDepends

func (d *ArtifactWriter) WithArtifactDepends(compatibleArtifacts []string, compatibleDevices []string, compatibleGroups []string)

func (*ArtifactWriter) WithArtifactProvides

func (d *ArtifactWriter) WithArtifactProvides(artifactName string, artifactGroup string)

func (*ArtifactWriter) WithDeltaRootfsPayload

func (d *ArtifactWriter) WithDeltaRootfsPayload(baseArtifactPath string, targetArtifactPath string) error

func (*ArtifactWriter) WithFullRootfsPayload

func (d *ArtifactWriter) WithFullRootfsPayload(pathToRootfs string) error

Below, "Updates" is equivalent to "payload" The "composer" is responsible for adding files that are relevant to a certain update type Only support two for now - full rootfs image and delta rootfs image payloads

func (*ArtifactWriter) WithPayloadClearsProvides

func (d *ArtifactWriter) WithPayloadClearsProvides(payloadClearsProvides []string)

func (*ArtifactWriter) WithPayloadDepends

func (d *ArtifactWriter) WithPayloadDepends(payloadDepends map[string]string)

func (*ArtifactWriter) WithPayloadProvides

func (d *ArtifactWriter) WithPayloadProvides(payloadProvides map[string]string)

func (*ArtifactWriter) Write

func (d *ArtifactWriter) Write() error

Writes the artifact and saves it to the specified file

Jump to

Keyboard shortcuts

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