package
17.12.1-ce-rc2+incompatible
Repository: https://github.com/mirantis/cli.git
Documentation: pkg.go.dev
# Functions
NewTruncIndex creates a new TruncIndex and initializes with a list of IDs.
# Variables
ErrEmptyPrefix is an error returned if the prefix was empty.
ErrIllegalChar is returned when a space is in the ID.
ErrNotExist is returned when ID or its prefix not found in index.
# Structs
ErrAmbiguousPrefix is returned if the prefix was ambiguous (multiple ids for the prefix).
TruncIndex allows the retrieval of string identifiers by any of their unique prefixes.