Help us shape the future of Go! Take the 2026 Go Developer Survey

yamlutil

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineManifests

func CombineManifests(base []byte, manifests ...[]byte) []byte

CombineManifests combines given manifests with a base manifest and adds yaml style separation. Nothing is appended if the manifest is empty or base already contains a trailing separator.

func GenerateCombinedGlobalManifest

func GenerateCombinedGlobalManifest() (*os.File, error)

GenerateCombinedGlobalManifest creates a temporary manifest yaml containing all standard global resource manifests combined into 1 file

func GenerateCombinedNamespacedManifest

func GenerateCombinedNamespacedManifest() (*os.File, error)

GenerateCombinedNamespacedManifest creates a temporary manifest yaml containing all standard namespaced resource manifests combined into 1 file

Types

type Scanner

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

Scanner scans a yaml manifest file for manifest tokens delimited by "---". See bufio.Scanner for semantics.

func NewYAMLScanner

func NewYAMLScanner(b []byte) *Scanner

func (*Scanner) Bytes

func (s *Scanner) Bytes() []byte

func (*Scanner) Err

func (s *Scanner) Err() error

func (*Scanner) Scan

func (s *Scanner) Scan() bool

func (*Scanner) Text

func (s *Scanner) Text() string

Jump to

Keyboard shortcuts

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