patch

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

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

A Set allows creating a set of patch operations that can be applied to a resource.

func (*Set) ForMap

func (p *Set) ForMap(path string, currValues, desiredValues map[string]*string, addSupported bool)

ForMap adds patch operations to this set at the specified path for replacing existing keys with new values and removing keys that no longer exist.

func (*Set) ForSlice

func (p *Set) ForSlice(path string, currValues, desiredValues []*string)

ForSlice adds patch operations to this set at the specified path for adding new values and removing old values.

func (*Set) GetPatchOperations

func (p *Set) GetPatchOperations() []*apigateway.PatchOperation

GetPatchOperations returns the patch operations applied to this set.

func (*Set) Remove

func (p *Set) Remove(path string)

Remove adds a patch operation to this set for removing the specified path.

func (*Set) Replace

func (p *Set) Replace(path string, desiredVal *string)

Replace adds a patch operation to this set for replacing the specified path with desiredVal.

Jump to

Keyboard shortcuts

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