overwrite

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

Types

type Config

type Config struct {

	// NewValue is the new piece of information used to overwrite the traversed
	// existing value.
	NewValue string
}

Config represents the configuration used to create a new overwrite value modifier.

func DefaultConfig

func DefaultConfig() Config

DefaultConfig provides a default configuration to create a new overwrite value modifier by best effort.

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service implements the overwrite value modifier.

func New

func New(config Config) (*Service, error)

New creates a new configured overwrite value modifier.

func (*Service) Modify

func (s *Service) Modify(value []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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