artifact

package
v0.98.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

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

Artifact represents the fully rendered manifests build from the holos rendering pipeline. Files are organized by keys representing paths relative to the current working directory. Values represent the file content.

func New

func New() *Artifact

func (*Artifact) Get

func (a *Artifact) Get(path string) (data []byte, ok bool)

Get gets the content of an artifact with read locking.

func (*Artifact) Keys

func (a *Artifact) Keys() []string

func (*Artifact) Save

func (a *Artifact) Save(dir, path string) error

Save writes a file to the filesystem.

func (*Artifact) Set

func (a *Artifact) Set(path string, data []byte) error

Set sets an artifact file with write locking. Set returns an error if the artifact was previously set.

Jump to

Keyboard shortcuts

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