Documentation
¶
Index ¶
Constants ¶
View Source
const IntentSchema = `` /* 1227-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
type KptMetadata ¶
type KptMetadata struct {
Name string `yaml:"name"`
}
type KptMutator ¶
type KptPipeline ¶
type KptPipeline struct {
Mutators []KptMutator `yaml:"mutators"`
}
type Kptfile ¶
type Kptfile struct {
APIVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
Metadata KptMetadata `yaml:"metadata"`
Info KptInfo `yaml:"info"`
Pipeline KptPipeline `yaml:"pipeline"`
}
type PatchFile ¶
type PatchFile struct {
APIVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
Metadata PatchMetadata `yaml:"metadata"`
Spec PatchSpec `yaml:"spec"`
}
type PatchMetadata ¶
type PatchPackage ¶
type PatchPackage struct {
Kptfile *Kptfile `yaml:"-"`
PatchFile *PatchFile `yaml:"-"`
OutputDir string `yaml:"-"`
Intent *Intent `yaml:"-"`
}
func NewPatchPackage ¶
func NewPatchPackage(intent *Intent, outputDir string) *PatchPackage
func (*PatchPackage) Generate ¶
func (p *PatchPackage) Generate() error
func (*PatchPackage) GetPackagePath ¶
func (p *PatchPackage) GetPackagePath() string
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) ValidateIntent ¶
func (*Validator) ValidateIntentFile ¶
func (*Validator) ValidateIntentMap ¶
Click to show internal directories.
Click to hide internal directories.