filters

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2014 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorBadFormat = errors.New("bad format of filter (expected name=value)")

Functions

func ToParam

func ToParam(a Args) (string, error)

packs the Args into an string for easy transport from client to server

Types

type Args

type Args map[string][]string

func FromParam

func FromParam(p string) (Args, error)

unpacks the filter Args

func ParseFlag

func ParseFlag(arg string, prev Args) (Args, error)

Parse the argument to the filter flag. Like

`docker ps -f 'created=today' -f 'image.name=ubuntu*'`

If prev map is provided, then it is appended to, and returned. By default a new map is created.

Jump to

Keyboard shortcuts

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