Documentation
¶
Index ¶
- type FieldApplyConfiguration
- type ResultApplyConfiguration
- type ResultItemApplyConfiguration
- func (b *ResultItemApplyConfiguration) WithField(value *FieldApplyConfiguration) *ResultItemApplyConfiguration
- func (b *ResultItemApplyConfiguration) WithFile(value framework.File) *ResultItemApplyConfiguration
- func (b *ResultItemApplyConfiguration) WithMessage(value string) *ResultItemApplyConfiguration
- func (b *ResultItemApplyConfiguration) WithResourceRef(value yaml.ResourceIdentifier) *ResultItemApplyConfiguration
- func (b *ResultItemApplyConfiguration) WithSeverity(value framework.Severity) *ResultItemApplyConfiguration
- func (b *ResultItemApplyConfiguration) WithTags(entries map[string]string) *ResultItemApplyConfiguration
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 ¶
func (b *FieldApplyConfiguration) WithPath(value string) *FieldApplyConfiguration
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 ¶
func (b *ResultApplyConfiguration) WithSkipped(value bool) *ResultApplyConfiguration
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 ¶
func (b *ResultItemApplyConfiguration) WithField(value *FieldApplyConfiguration) *ResultItemApplyConfiguration
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 ¶
func (b *ResultItemApplyConfiguration) WithFile(value framework.File) *ResultItemApplyConfiguration
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 ¶
func (b *ResultItemApplyConfiguration) WithMessage(value string) *ResultItemApplyConfiguration
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 ¶
func (b *ResultItemApplyConfiguration) WithResourceRef(value yaml.ResourceIdentifier) *ResultItemApplyConfiguration
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 ¶
func (b *ResultItemApplyConfiguration) WithSeverity(value framework.Severity) *ResultItemApplyConfiguration
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 ¶
func (b *ResultItemApplyConfiguration) WithTags(entries map[string]string) *ResultItemApplyConfiguration
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.