tribe

package
v0.13.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HandlerRegistrationName = "tribe"
)
View Source
const (
	TaskStateQueryResponseSizeLimit int = 1024
)

Variables

View Source
var (

	// Flags consumed by snapd
	Flags = []cli.Flag{flTribeNodeName, flTribe, flTribeSeed, flTribeAdvertiseAddr, flTribeAdvertisePort}
)

Functions

func New

func New(cfg *Config) (*tribe, error)

Types

type Config

type Config struct {
	Name                      string             `json:"name,omitempty"yaml:"name,omitempty"`
	Enable                    bool               `json:"enable,omitempty"yaml:"enable,omitempty"`
	BindAddr                  string             `json:"bind_addr,omitempty"yaml:"bind_addr,omitempty"`
	BindPort                  int                `json:"bind_port,omitempty"yaml:"bind_port,omitempty"`
	Seed                      string             `json:"seed,omitempty"yaml:"seed,omitempty"`
	MemberlistConfig          *memberlist.Config `json:"-"yaml:"-"`
	RestAPIProto              string             `json:"-"yaml:"-"`
	RestAPIPassword           string             `json:"-"yaml:"-"`
	RestAPIPort               int                `json:"-"yaml:"-"`
	RestAPIInsecureSkipVerify string             `json:"-"yaml:"-"`
}

holds the configuration passed in through the SNAP config file

func GetDefaultConfig

func GetDefaultConfig() *Config

get the default snapd configuration

type LClock

type LClock struct {
	Inc uint64
}

func (*LClock) Increment

func (l *LClock) Increment() LTime

Increment

func (*LClock) Time

func (l *LClock) Time() LTime

Time returns the current value of the clock

func (*LClock) Update

func (l *LClock) Update(lt LTime)

Update

type LTime

type LTime uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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