patch

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Intent *Intent

	OutputDir string
}

func NewGenerator

func NewGenerator(intent *Intent, outputDir string) *Generator

func (*Generator) Generate

func (g *Generator) Generate() error

type Intent

type Intent struct {
	IntentType string `json:"intent_type"`

	Target string `json:"target"`

	Namespace string `json:"namespace"`

	Replicas int `json:"replicas"`

	Reason string `json:"reason,omitempty"`

	Source string `json:"source,omitempty"`

	CorrelationID string `json:"correlation_id,omitempty"`
}

func LoadIntent

func LoadIntent(path string) (*Intent, error)

Jump to

Keyboard shortcuts

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