client

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0, Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ApplyYamlFunc = applyYamlSpec
)

Functions

func GenerateYamlFromFilePath

func GenerateYamlFromFilePath(path string) ([]byte, error)

func GenerateYamlFromUrl

func GenerateYamlFromUrl(url string) ([]byte, error)

func ParseAndProcessK8sObjects

func ParseAndProcessK8sObjects(ctx vdocontext.VDOContext, c client.Client, data []byte, namespace string, action Action) (appliedSpec bool, err error)

ParseAndProcessK8sObjects executes ApplyYamlFunc for each object in the provided YAML. If an error is returned then no further objects are processed. The data may be a single YAML document or multidoc YAML. When a non-empty namespace is provided then all objects are assigned the the namespace prior to any other actions being performed with or to the object.

func ParseMatrixYaml

func ParseMatrixYaml(config string) (models.CompatMatrix, error)

Types

type Action

type Action int
const (
	CREATE Action = iota
	UPDATE
	DELETE
)

Jump to

Keyboard shortcuts

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