data

package
Version: v0.0.0-...-f2f6987 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2014 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Id          bson.ObjectId `bson:"_id"                 codec:"-"`
	Alias       string        `bson:"alias"               codec:"alias"`
	Name        string        `bson:"name"                codec:"name,omitempty"`
	Version     string        `bson:"version"             codec:"version,omitempty"`
	Description string        `bson:"description"         codec:"description,omitempty"`
	Repository  string        `bson:"repository"          codec:"repository,omitempty"`
	CloneDir    string        `bson:"clone_dir,omitempty" codec:"clone_dir,omitempty"   json:"clone_dir"`
	Vars        Variables     `bson:"vars,omitempty"      codec:"vars,omitempty"        json:"variables"`
	Enabled     bool          `bson:"enabled"             codec:"enabled,omitempty"`
	Status      string        `bson:"-"                   codec:"status,omitempty"`
}

func (*Agent) FillAndValidate

func (agent *Agent) FillAndValidate() error

type EnvArgs

type EnvArgs struct {
	Token []byte `codec:"token"`
	Alias string `codec:"alias"`
}

type EnvReply

type EnvReply struct {
	Vars  Variables `codec:"vars,omitempty"`
	Error string    `codec:"error,omitempty"`
}

type InfoArgs

type InfoArgs struct {
	Token []byte `codec:"token"`
	Alias string `codec:"alias"`
}

type InfoReply

type InfoReply struct {
	Agent Agent  `codec:"agent,omitempty"`
	Error string `codec:"error,omitempty"`
}

type InstallArgs

type InstallArgs struct {
	Token      []byte `codec:"token"`
	Alias      string `codec:"alias"`
	Repository string `codec:"repository"`
}

type InstallReply

type InstallReply struct {
	Error string `codec:"error"`
}

type ListArgs

type ListArgs struct {
	Token []byte `codec:"token"`
}

type ListReply

type ListReply struct {
	Agents []Agent `codec:"agent,omitempty"`
	Error  string  `codec:"error,omitempty"`
}

type RemoveArgs

type RemoveArgs struct {
	Token []byte `codec:"token"`
	Alias string `codec:"alias"`
}

type RemoveReply

type RemoveReply struct {
	Error string `codec:"error"`
}

type RestartArgs

type RestartArgs struct {
	Token []byte `codec:"token"`
	Alias string `codec:"alias"`
}

type RestartReply

type RestartReply struct {
	Error string `codec:"error"`
}

type SetArgs

type SetArgs struct {
	Token     []byte `codec:"token"`
	Alias     string `codec:"alias"`
	Variable  string `codec:"variable"`
	Value     string `codec:"value"`
	CopyFrom  string `codec:"from"`
	MergeMode string `codec:"mergeMode"`
}

type SetReply

type SetReply struct {
	Error string `codec:"error"`
}

type StartArgs

type StartArgs struct {
	Token []byte `codec:"token"`
	Alias string `codec:"alias"`
	Watch bool   `codec:"watch,omitempty"`
}

type StartReply

type StartReply struct {
	Error string `codec:"error"`
}

type StatusArgs

type StatusArgs struct {
	Token []byte `codec:"token"`
	Alias string `codec:"alias,omitempty"`
}

type StatusReply

type StatusReply struct {
	Status   string            `codec:"status,omitempty"`
	Statuses map[string]string `codec:"statuses,omitempty"`
	Error    string            `codec:"error,omitempty"`
}

type StopArgs

type StopArgs struct {
	Token   []byte        `codec:"token"`
	Alias   string        `codec:"alias"`
	Timeout time.Duration `codec:"timeout"`
}

type StopReply

type StopReply struct {
	Error string `codec:"error"`
}

type UnsetArgs

type UnsetArgs struct {
	Token    []byte `codec:"token"`
	Alias    string `codec:"alias"`
	Variable string `codec:"variable"`
}

type UnsetReply

type UnsetReply struct {
	Error string `codec:"error"`
}

type UpgradeArgs

type UpgradeArgs struct {
	Token []byte `codec:"token"`
	Alias string `codec:"alias"`
}

type UpgradeReply

type UpgradeReply struct {
	Error string `codec:"error"`
}

type Variable

type Variable struct {
	Usage    string `bson:"usage"              codec:"usage"`
	Type     string `bson:"type"               codec:"type"`
	Secret   bool   `bson:"secret,omitempty"   codec:"secret,omitempty"`
	Optional bool   `bson:"optional,omitempty" codec:"optional,omitempty"`
	Value    string `bson:"value"              codec:"value"`
}

func (*Variable) FillAndValidate

func (v *Variable) FillAndValidate(name string) error

func (*Variable) Set

func (v *Variable) Set(value string) error

type Variables

type Variables map[string]*Variable

func (Variables) Filled

func (vs Variables) Filled() error

type WatchArgs

type WatchArgs struct {
	Token []byte `codec:"token"`
	Alias string `codec:"alias"`
	Level uint32 `codec:"level"`
}

type WatchReply

type WatchReply struct {
	Error string `codec:"error"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL