v1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FieldApplyConfiguration

type FieldApplyConfiguration struct {
	Path          *string `json:"path,omitempty"`
	CurrentValue  *string `json:"currentValue,omitempty"`
	ProposedValue *string `json:"proposedValue,omitempty"`
}

FieldApplyConfiguration represents a declarative configuration of the Field type for use with apply.

Field is a modified version of sigs.k8s.io/kustomize/kyaml/fn/framework.Field where CurrentValue and ProposedValue are strings instead of the original any type.

func Field

func Field() *FieldApplyConfiguration

FieldApplyConfiguration constructs a declarative configuration of the Field type for use with apply.

func (*FieldApplyConfiguration) WithCurrentValue

func (b *FieldApplyConfiguration) WithCurrentValue(value string) *FieldApplyConfiguration

WithCurrentValue sets the CurrentValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CurrentValue field is set to the value of the last call.

func (*FieldApplyConfiguration) WithPath

WithPath sets the Path field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Path field is set to the value of the last call.

func (*FieldApplyConfiguration) WithProposedValue

func (b *FieldApplyConfiguration) WithProposedValue(value string) *FieldApplyConfiguration

WithProposedValue sets the ProposedValue field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ProposedValue field is set to the value of the last call.

type ResultApplyConfiguration

type ResultApplyConfiguration struct {
	// Skipped indicates if the function was skipped due to a condition
	Skipped *bool `json:"skipped,omitempty"`
}

ResultApplyConfiguration represents a declarative configuration of the Result type for use with apply.

Result contains the structured result from an individual function

func Result

func Result() *ResultApplyConfiguration

ResultApplyConfiguration constructs a declarative configuration of the Result type for use with apply.

func (*ResultApplyConfiguration) WithSkipped

WithSkipped sets the Skipped field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Skipped field is set to the value of the last call.

type ResultItemApplyConfiguration

type ResultItemApplyConfiguration struct {
	Message     *string                  `json:"message,omitempty"`
	Severity    *framework.Severity      `json:"severity,omitempty"`
	ResourceRef *yaml.ResourceIdentifier `json:"resourceRef,omitempty"`
	Field       *FieldApplyConfiguration `json:"field,omitempty"`
	File        *framework.File          `json:"file,omitempty"`
	Tags        map[string]string        `json:"tags,omitempty"`
}

ResultItemApplyConfiguration represents a declarative configuration of the ResultItem type for use with apply.

ResultItem is a modified version of sigs.k8s.io/kustomize/kyaml/fn/framework.Result with a simplified Field field.

func ResultItem

func ResultItem() *ResultItemApplyConfiguration

ResultItemApplyConfiguration constructs a declarative configuration of the ResultItem type for use with apply.

func (*ResultItemApplyConfiguration) WithField

WithField sets the Field field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Field field is set to the value of the last call.

func (*ResultItemApplyConfiguration) WithFile

WithFile sets the File field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the File field is set to the value of the last call.

func (*ResultItemApplyConfiguration) WithMessage

WithMessage sets the Message field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Message field is set to the value of the last call.

func (*ResultItemApplyConfiguration) WithResourceRef

WithResourceRef sets the ResourceRef field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceRef field is set to the value of the last call.

func (*ResultItemApplyConfiguration) WithSeverity

WithSeverity sets the Severity field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Severity field is set to the value of the last call.

func (*ResultItemApplyConfiguration) WithTags

WithTags puts the entries into the Tags field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Tags field, overwriting an existing map entries in Tags field with the same key.

Jump to

Keyboard shortcuts

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