pkgind

command module
v0.0.0-...-a55ed3c Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

README

Build Status Go Report Card

Package Indexer

Clients will connect to this package Indexer and inform which packages should be indexed, and which dependencies they might have on other packages.

Messages from clients follow this pattern:

<command>|<package>|<dependencies>\n

Where:

  • <command> is mandatory, and is either INDEX, REMOVE, or QUERY

  • <package> is mandatory, the name of the package referred to by the command, e.g. mysql, openssl, pkg-config, postgresql, etc.

  • <dependencies> is optional, and if present it will be a comma-delimited list of packages that need to be present before <package> is installed. e.g. cmake,sphinx-doc,xz

  • The message always ends with the character \n

Build the binaries

$ make

To run the test:

$ make test

To start the pkgind server:

$ ./bin/pkgind -h

To use the client pkgindctl:

$ ./bin/pkgindctl -h

Run using pkgIndctl

INDEX: pkgIndctl index --package=cloog --dependencies=a,b,c

REMOVE: pkgIndctl index --package=cloog

QUERY: pkgIndctl query --package=cloog

Here are some sample messages:

INDEX|cloog|gmp,isl,pkg-config\n
INDEX|ceylon|\n
REMOVE|cloog|\n
QUERY|cloog|\n

Run within a container

DOCKER: docker run --rm -p 8080:8080 hectorj2f/pkgind start

RKT: rkt run --port=host:8080 docker://hectorj2f/pkgind --exec=/usr/local/bin/pkgind -- start

Further Steps

Check more detailed documentation: docs

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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