jsonpatch

package
v0.0.0-...-201d816 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PatchOperation

type PatchOperation struct {
	Op    string      `json:"op,omitempty"`
	Path  string      `json:"path,omitempty"`
	Value interface{} `json:"value,omitempty"`
}

type PatchSet

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

func New

func New() *PatchSet

func (*PatchSet) IsEmpty

func (p *PatchSet) IsEmpty() bool

func (*PatchSet) Marshal

func (p *PatchSet) Marshal() ([]byte, error)

func (*PatchSet) WithRemove

func (p *PatchSet) WithRemove(path string, test TestCondition) *PatchSet

func (*PatchSet) WithTest

func (p *PatchSet) WithTest(path string, value interface{}) *PatchSet

type TestCondition

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

func NewTestCondition

func NewTestCondition(path string, value interface{}) TestCondition

Jump to

Keyboard shortcuts

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