Documentation ¶
Index ¶
- func Diff(x, y string, o DiffOptions) string
- func Log() *slog.Logger
- func MatchSnapShot(options ...Option) types.GomegaMatcher
- func ObjectSnapshot(obj client.Object) client.Object
- func RemoveDynamicFields(o client.Object)
- func SetLogger(slogr *slog.Logger)
- func SnapShotMatcher(snapFile string, snapId string, diffOpts ...DiffOptions) *snapShotMatcher
- func UnstructuredMatch(matcher gomegatypes.GomegaMatcher, manifests []unstructured.Unstructured) (success bool, err error)
- func UnstructuredSnapShotMatcher(snapFile string, snapId string, diffOpts ...DiffOptions) *snapShotMatcher
- func UnstructuredSnapshotDiff(x, y string, o DiffOptions) string
- type DiffOptions
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Diff ¶ added in v0.0.6
func Diff(x, y string, o DiffOptions) string
func MatchSnapShot ¶
func MatchSnapShot(options ...Option) types.GomegaMatcher
func RemoveDynamicFields ¶
func SnapShotMatcher ¶
func SnapShotMatcher(snapFile string, snapId string, diffOpts ...DiffOptions) *snapShotMatcher
func UnstructuredMatch ¶ added in v0.0.6
func UnstructuredMatch(matcher gomegatypes.GomegaMatcher, manifests []unstructured.Unstructured) (success bool, err error)
func UnstructuredSnapShotMatcher ¶ added in v0.0.6
func UnstructuredSnapShotMatcher(snapFile string, snapId string, diffOpts ...DiffOptions) *snapShotMatcher
func UnstructuredSnapshotDiff ¶ added in v0.0.6
func UnstructuredSnapshotDiff(x, y string, o DiffOptions) string
Types ¶
type DiffOptions ¶ added in v0.0.6
type DiffOptions struct {
DiffContextLineN int
}
func WithDiffContextLineN ¶ added in v0.0.6
func WithDiffContextLineN(n int) DiffOptions
func (*DiffOptions) ContextLineN ¶ added in v0.0.6
func (o *DiffOptions) ContextLineN() int
Click to show internal directories.
Click to hide internal directories.