kubernetes/vendor/github.com/go-openapi/jsonpointer/pointer.go

const emptyPointer

const pointerSeparator

const invalidStart

const notFound

var jsonPointableType

var jsonSetableType

type JSONPointable

type JSONSetable

// New creates a new json pointer for the given string
func New(jsonPointerString string) (Pointer, error) {}

type Pointer

// "Constructor", parses the given string JSON pointer
func (p *Pointer) parse(jsonPointerString string) error {}

// Get uses the pointer to retrieve a value from a JSON document
func (p *Pointer) Get(document any) (any, reflect.Kind, error) {}

// Set uses the pointer to set a value from a JSON document
func (p *Pointer) Set(document any, value any) (any, error) {}

// GetForToken gets a value for a json pointer token 1 level deep
func GetForToken(document any, decodedToken string) (any, reflect.Kind, error) {}

// SetForToken gets a value for a json pointer token 1 level deep
func SetForToken(document any, decodedToken string, value any) (any, error) {}

func isNil(input any) bool {}

func getSingleImpl(node any, decodedToken string, nameProvider *swag.NameProvider) (any, reflect.Kind, error) {}

func setSingleImpl(node, data any, decodedToken string, nameProvider *swag.NameProvider) error {}

func (p *Pointer) get(node any, nameProvider *swag.NameProvider) (any, reflect.Kind, error) {}

func (p *Pointer) set(node, data any, nameProvider *swag.NameProvider) error {}

// DecodedTokens returns the decoded tokens
func (p *Pointer) DecodedTokens() []string {}

// IsEmpty returns true if this is an empty json pointer
// this indicates that it points to the root document
func (p *Pointer) IsEmpty() bool {}

// Pointer to string representation function
func (p *Pointer) String() string {}

func (p *Pointer) Offset(document string) (int64, error) {}

func offsetSingleObject(dec *json.Decoder, decodedToken string) (int64, error) {}

func offsetSingleArray(dec *json.Decoder, decodedToken string) (int64, error) {}

// drainSingle drains a single level of object or array.
// The decoder has to guarantee the beginning delim (i.e. '{' or '[') has been consumed.
func drainSingle(dec *json.Decoder) error {}

const encRefTok0

const encRefTok1

const decRefTok0

const decRefTok1

// Unescape unescapes a json pointer reference token string to the original representation
func Unescape(token string) string {}

// Escape escapes a pointer reference token string
func Escape(token string) string {}