Documentation
¶
Overview ¶
Package ptr provides utilities for pointer operations using storage layer paths.
Index ¶
- func Ptr(data interface{}, path storage.Path) (interface{}, error)
- func ValidateASTArrayIndex(arr *ast.Array, s string, path storage.Path) (int, error)
- func ValidateArrayIndex(arr []interface{}, s string, path storage.Path) (int, error)
- func ValidateArrayIndexForWrite(arr []interface{}, s string, i int, path storage.Path) (int, error)
- func ValuePtr(data ast.Value, path storage.Path) (ast.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateASTArrayIndex ¶
func ValidateArrayIndex ¶
func ValidateArrayIndexForWrite ¶
ValidateArrayIndexForWrite also checks that `s` is a valid way to address an array element like `ValidateArrayIndex`, but returns a `resource_conflict` error if it is not.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.