interlock

package module
v0.0.0-...-cf87326 Latest Latest
Warning

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

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

README

Interlock

Dynamic, event-driven Docker plugin system using Swarm.

This fork relies on libcarina to connect directly to Carina for Swarm cluster access.

Usage

Run docker run carina/interlock list-plugins to show available plugins.

Example:

docker run carina/interlock --username $USERNAME \
                            --apikey $APIKEY \
                            --clustername boatie \
                            --plugin example start

Commandline options

  • --username: username for Carina
  • --api-key: API key for Carina
  • --clustername: swarm cluster to connect interlock to
  • --plugin: enable plugin
  • --debug: enable debug output
  • --version: show version and exit

Plugins

See the Plugins directory for available plugins and their corresponding readme.md for usage.

Name Description
Example Example Plugin for Reference
HAProxy HAProxy Load Balancer
Nginx Nginx Load Balancer
Stats Container stat forwarding to Carbon

License

Licensed under the Apache License, Version 2.0. See LICENSE for full license text.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SwarmUrl       string   `json:"swarm_url,omitempty"`
	EnabledPlugins []string `json:"enabled_plugins,omitempty"`
}

type InterlockConfig

type InterlockConfig struct {
	Version string `json:"version,omitempty"`
}

type Plugin

type Plugin interface {
	Info() *PluginInfo
	Init() error
	HandleEvent(event *dockerclient.Event) error
}

type PluginInfo

type PluginInfo struct {
	Name        string
	Version     string
	Description string
	Url         string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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