file

command
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2017 License: Apache-2.0 Imports: 14 Imported by: 0

README

InfraKit Instance Plugin - File

A reference implementation of an Instance Plugin that can accept any configuration and writes the configuration to disk as provision. It is useful for testing and debugging.

Building

Begin by building plugin binaries.

Usage

The plugin can be started without any arguments and will default to using unix socket in ~/.infrakit/plugins for communications with the CLI and other plugins:

$ build/infrakit-instance-file --dir=./test
INFO[0000] Listening at: ~/.infrakit/plugins/instance-file

This starts the plugin using ./test as directory and instance-file as name.

You can give the another plugin instance a different name via the listen flag:

$ build/infrakit-instance-file --name=another-file --dir=./test
INFO[0000] Listening at: ~/.infrakit/plugins/another-file

Be sure to verify that the plugin is discoverable.

Note that there should be two file instance plugins running now with different names (instance-file, and another-file).

See the CLI Doc for details on accessing the instance plugin via CLI.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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