parser

package
v1.6.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceParser

type ResourceParser struct {
	client.Client
	// contains filtered or unexported fields
}

ResourceParser is responsible for parsing any watched resource that has a registered handler

func New

func New(client client.Client, log logr.Logger) *ResourceParser

func (*ResourceParser) Diff

func (p *ResourceParser) Diff() ([]byte, error)

func (*ResourceParser) GetBuffer

func (p *ResourceParser) GetBuffer() v1.ClusterSpec

func (*ResourceParser) Parse

Parse parses the watched resource and returns a byte array that represents a patch to be applied to the target resource

func (*ResourceParser) RegisterHandlerForGVK

func (p *ResourceParser) RegisterHandlerForGVK(gvk schema.GroupVersionKind, parser handler.ObjectHandler)

RegisterHandlerForGVK registers a handler for a specific GroupVersionKind

func (*ResourceParser) SetBuffer

func (p *ResourceParser) SetBuffer(buffer v1.ClusterSpec)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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