model

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2016 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRepo

type IRepo interface {
	FilterNodeGroups(gName string) ([]NodeGroup, error)
	FilterNodeGroupsAndNodes(gName string, nNames ...string) ([]NodeGroup, error)
	FilterNodes(gName string, nNames ...string) ([]Node, error)
}

IRepo repo interface

type Node

type Node struct {
	Name     string `yaml:"Name"`
	Host     string `yaml:"Host"`
	Port     int    `yaml:"Port"`
	User     string `yaml:"User"`
	Password string `yaml:"Password"`
	KeyPath  string `yaml:"KeyPath"`
}

Node store info for host

type NodeGroup

type NodeGroup struct {
	Name     string `yaml:"GroupName"`
	User     string `yaml:"User"`
	Password string `yaml:"Password"`
	KeyPath  string `yaml:"KeyPath"`
	Port     int    `yaml:"Port"`
	Nodes    []Node `yaml:"Nodes"`
}

NodeGroup store info for node group

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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