Documentation
¶
Index ¶
- Variables
- func NewDeleteString(s string) string
- func NewDiffHeader(s string) string
- func NewInsertString(s string) string
- type Marshaler
- type Object
- type ObjectDiff
- type ObjectDiffBuilder
- type ObjectDiffer
- type ObjectHeader
- type ObjectMap
- type ObjectMeta
- type ObjectPair
- type ObjectPairMap
- type ObjectPairer
- type Unmarshaler
- type YamlMarshaler
- type YamlUnmarshaler
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLoadObject = errors.New("LoadObject")
Functions ¶
func NewDeleteString ¶
func NewDiffHeader ¶
func NewInsertString ¶
Types ¶
type ObjectDiff ¶
type ObjectDiff struct {
Pair *ObjectPair
Diff string
}
type ObjectDiffBuilder ¶
type ObjectDiffBuilder struct {
// contains filtered or unexported fields
}
func NewObjectDiffBuilder ¶
func NewObjectDiffBuilder(left, right string, diffContext int, color bool) *ObjectDiffBuilder
func (*ObjectDiffBuilder) ObjectDiff ¶
func (d *ObjectDiffBuilder) ObjectDiff(pair *ObjectPair) *ObjectDiff
type ObjectDiffer ¶
type ObjectDiffer interface {
ObjectDiff(pair *ObjectPair) *ObjectDiff
}
type ObjectHeader ¶
type ObjectHeader struct {
APIVersion string `yaml:"apiVersion"`
Kind string `yaml:"kind"`
Metadata ObjectMeta `yaml:"metadata"`
}
ObjectHeader is a seed of the Object ID.
func (ObjectHeader) IntoID ¶
func (s ObjectHeader) IntoID(sep string) string
type ObjectMap ¶
type ObjectMap struct {
// contains filtered or unexported fields
}
func NewObjectMap ¶
type ObjectMeta ¶
type ObjectPair ¶
ObjectPair is a pair of [Objects] that share the same ID.
func (*ObjectPair) IsMissing ¶
func (p *ObjectPair) IsMissing() bool
type ObjectPairMap ¶
type ObjectPairMap struct {
// contains filtered or unexported fields
}
func NewObjectPairMap ¶
func NewObjectPairMap(left, right *ObjectMap) *ObjectPairMap
func (*ObjectPairMap) ObjectPairs ¶
func (m *ObjectPairMap) ObjectPairs() []*ObjectPair
type ObjectPairer ¶
type ObjectPairer interface {
ObjectPairs() []*ObjectPair
}
type Unmarshaler ¶
type YamlMarshaler ¶
type YamlMarshaler struct {
// contains filtered or unexported fields
}
func NewYamlMarshaler ¶
func NewYamlMarshaler(indent int, literalStyleIfMultiline bool) *YamlMarshaler
type YamlUnmarshaler ¶
type YamlUnmarshaler[T any] struct { // contains filtered or unexported fields }
func NewYamlUnmarshaler ¶
func NewYamlUnmarshaler[T any](r io.Reader, t T, allowDuplicateMapKey bool) *YamlUnmarshaler[T]
Click to show internal directories.
Click to hide internal directories.