agreement

package
v0.16.1-beta Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestPort               = "rest_api_port"
	RestProtocol           = "rest_proto"
	RestInsecureSkipVerify = "rest_insecure"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agreement

type Agreement struct {
	Name            string             `json:"name"`
	PluginAgreement *pluginAgreement   `json:"plugin_agreement,omitempty"`
	TaskAgreement   *taskAgreement     `json:"task_agreement,omitempty"`
	Members         map[string]*Member `json:"members,omitempty"`
}

func New

func New(name string) *Agreement

type Member

type Member struct {
	Tags            map[string]string         `json:"tags,omitempty"`
	Name            string                    `json:"name"`
	Node            *memberlist.Node          `json:"-"`
	PluginAgreement *pluginAgreement          `json:"-"`
	TaskAgreements  map[string]*taskAgreement `json:"-"`
}

func NewMember

func NewMember(node *memberlist.Node) *Member

func (*Member) GetAddr

func (m *Member) GetAddr() net.IP

func (*Member) GetName

func (m *Member) GetName() string

func (*Member) GetRestInsecureSkipVerify

func (m *Member) GetRestInsecureSkipVerify() bool

func (*Member) GetRestPort

func (m *Member) GetRestPort() string

func (*Member) GetRestProto

func (m *Member) GetRestProto() string

type Plugin

type Plugin struct {
	Name_    string          `json:"name"`
	Version_ int             `json:"version"`
	Type_    core.PluginType `json:"type"`
}

func (Plugin) Name

func (p Plugin) Name() string

func (Plugin) TypeName

func (p Plugin) TypeName() string

func (Plugin) Version

func (p Plugin) Version() int

type Task

type Task struct {
	ID            string `json:"id"`
	StartOnCreate bool   `json:"start_on_create"`
}

Jump to

Keyboard shortcuts

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