bundle

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteCompressedArchive

func WriteCompressedArchive(b *Bundle, w io.Writer) error

func WriteFS

func WriteFS(b *Bundle, fsys billy.Filesystem, baseDir string) error

WriteFS writes a Bundle to the provide file-system.

func WriteYAML

func WriteYAML(b *Bundle) ([]byte, error)

Types

type Bundle

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

func New

func New() *Bundle

func ParsePolicies

func ParsePolicies(buf []byte) (*Bundle, error)

func (*Bundle) GetConstraintTemplates

func (b *Bundle) GetConstraintTemplates() []*ConstraintTemplate

func (*Bundle) GetConstraints

func (b *Bundle) GetConstraints() []*Constraint

func (*Bundle) Merge

func (b *Bundle) Merge(other *Bundle)

type Constraint

type Constraint struct {
	*unstructured.Unstructured
	// contains filtered or unexported fields
}

func (*Constraint) GetObject

func (c *Constraint) GetObject() *unstructured.Unstructured

func (*Constraint) MarshalJSON

func (c *Constraint) MarshalJSON() ([]byte, error)

type ConstraintTemplate

type ConstraintTemplate struct {
	*templates.ConstraintTemplate
	// contains filtered or unexported fields
}

func (*ConstraintTemplate) GetObject

func (*ConstraintTemplate) MarshalJSON

func (t *ConstraintTemplate) MarshalJSON() ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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