package truncindex
import "github.com/docker/docker/pkg/truncindex"
Index ¶
Variables ¶
Types ¶
type TruncIndex ¶
TruncIndex allows the retrieval of string identifiers by any of their unique prefixes. This is used to retrieve image and container IDs by more convenient shorthand prefixes.
func NewTruncIndex ¶
func NewTruncIndex(ids []string) (idx *TruncIndex)
func (*TruncIndex) Add ¶
func (idx *TruncIndex) Add(id string) error
func (*TruncIndex) Delete ¶
func (idx *TruncIndex) Delete(id string) error
func (*TruncIndex) Get ¶
func (idx *TruncIndex) Get(s string) (string, error)
Source Files ¶
- Version
- v1.1.0
- Published
- Jul 3, 2014
- Platform
- js/wasm
- Imports
- 5 packages
- Last checked
- 4 seconds ago –
Tools for package owners.