loader

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package loader parses one or more Tekton YAML files into a Bundle of typed resources keyed by name. Multi-document YAML is supported.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	Tasks        map[string]tektontypes.Task
	Pipelines    map[string]tektontypes.Pipeline
	PipelineRuns []tektontypes.PipelineRun // ordered as found
	TaskRuns     []tektontypes.TaskRun
}

Bundle holds all resources loaded from one or more files.

func LoadBytes

func LoadBytes(data []byte) (*Bundle, error)

LoadBytes parses one byte slice (possibly multi-doc) into a Bundle.

func LoadFiles

func LoadFiles(paths []string) (*Bundle, error)

LoadFiles loads every resource from the given file paths, returning a merged Bundle. Duplicate names within the same kind are an error.

Jump to

Keyboard shortcuts

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