cmd

package
v0.0.0-...-6940e1a Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2018 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Overview

Copyright © 2018 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

View Source
var CONSTELLATION_PORT_OFFSET = 200
View Source
var GETH_PORT_OFFSET = 0
View Source
var PortSel struct {
	// contains filtered or unexported fields
}

port selection struct

View Source
var RAFT_PORT_OFFSET = 100
View Source
var RPC_PORT_OFFSET = 300

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type Configuration

type Configuration struct {
	Version  string             `yaml:"version"`
	Services map[string]Node    `yaml:"services"`
	Networks map[string]Network `yaml:"networks"`
}

type IPAM

type IPAM struct {
	Driver string   `yaml:"driver"`
	Config []Subnet `yaml:"config"`
}

type Inputs

type Inputs struct {
	NetworkName    string `mapstructure:"network_name"`
	PublicIP       string `mapstructure:"public_ip"`
	DockerSubnetIP string `mapstructure:"docker_ip"`
	PortRange      int    `mapstructure:"port_range"`
	Nodes          int
}

struct holds user provided input data

type Network

type Network struct {
	Driver string `yaml:"driver"`
	IPAM   IPAM   `yaml:"ipam"`
}

type Node

type Node struct {
	Image    string   `yaml:"image"`
	Restart  string   `yaml:"restart"`
	Volumes  []string `yaml:"volumes"`
	Networks []string `yaml:"networks"`
	Ports    []string `yaml:"ports"`
	User     string   `yaml:"user"`
}

type Subnet

type Subnet struct {
	Subnet string `yaml:"subnet"`
}

Jump to

Keyboard shortcuts

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