patchset

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

package patchset provides types to store json patch set mapping to struct fields.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PatchSet

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

func NewEmptyPatchSet added in v0.3.0

func NewEmptyPatchSet() *PatchSet

func NewPatchSet

func NewPatchSet(data map[accesstypes.Field]any) *PatchSet

func (*PatchSet) Data

func (p *PatchSet) Data() map[accesstypes.Field]any

func (*PatchSet) Get added in v0.2.2

func (p *PatchSet) Get(field accesstypes.Field) any

func (*PatchSet) HasKey added in v0.2.2

func (p *PatchSet) HasKey() bool

func (*PatchSet) Key added in v0.3.0

func (p *PatchSet) Key(field accesstypes.Field) any

func (*PatchSet) KeyData added in v0.2.2

func (p *PatchSet) KeyData() map[accesstypes.Field]any

func (*PatchSet) Len

func (p *PatchSet) Len() int

func (*PatchSet) Set

func (p *PatchSet) Set(field accesstypes.Field, value any)

func (*PatchSet) SetKey added in v0.2.2

func (p *PatchSet) SetKey(field accesstypes.Field, value any)

func (*PatchSet) StructFields

func (p *PatchSet) StructFields() []accesstypes.Field

Jump to

Keyboard shortcuts

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