Documentation ¶
Index ¶
- type ResourceParser
- func (p *ResourceParser) Diff() ([]byte, error)
- func (p *ResourceParser) GetBuffer() v1.ClusterSpec
- func (p *ResourceParser) Parse(ctx context.Context, res registryv1alpha1.WatchedResource) error
- func (p *ResourceParser) RegisterHandlerForGVK(gvk schema.GroupVersionKind, parser handler.ObjectHandler)
- func (p *ResourceParser) SetBuffer(buffer v1.ClusterSpec)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceParser ¶
ResourceParser is responsible for parsing any watched resource that has a registered handler
func (*ResourceParser) Diff ¶
func (p *ResourceParser) Diff() ([]byte, error)
func (*ResourceParser) GetBuffer ¶
func (p *ResourceParser) GetBuffer() v1.ClusterSpec
func (*ResourceParser) Parse ¶
func (p *ResourceParser) Parse(ctx context.Context, res registryv1alpha1.WatchedResource) error
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)
Click to show internal directories.
Click to hide internal directories.