Versions in this module Expand all Collapse all v1 v1.0.1 Nov 4, 2022 v1.0.0 Nov 3, 2022 Changes in this version + type DisallowOperationOnPathPolicy struct + Details string + Operation Operation + Path Path + func (d DisallowOperationOnPathPolicy) GetDetails() string + func (d DisallowOperationOnPathPolicy) Test(operationSpec OperationSpec) bool + type DisallowPathPolicy struct + Details string + Path Path + func (d DisallowPathPolicy) GetDetails() string + func (d DisallowPathPolicy) Test(operationSpec OperationSpec) bool + type ForceRegexMatchPolicy struct + Details string + Expression regexp.Regexp + Path Path + func (m ForceRegexMatchPolicy) GetDetails() string + func (m ForceRegexMatchPolicy) Test(operationSpec OperationSpec) bool + type ForceTypeOnPathPolicy struct + Details string + Kind reflect.Kind + Path Path + func (f ForceTypeOnPathPolicy) GetDetails() string + func (f ForceTypeOnPathPolicy) Test(operationSpec OperationSpec) bool + type Operation string + const AddOperation + const CopyOperation + const MoveOperation + const RemoveOperation + const ReplaceOperation + type OperationSpec struct + From Path + Operation Operation + Path Path + Value interface{} + func (o OperationSpec) Valid() bool + type Parser struct + Policies []Policy + func NewParser(policies ...Policy) *Parser + func (p Parser) Parse(operationSpecs ...OperationSpec) (bson.A, error) + type Path string + func (p Path) Valid() bool + type Policy interface + GetDetails func() string + Test func(operationSpec OperationSpec) bool