Versions in this module Expand all Collapse all v0 v0.4.0 Jan 27, 2017 v0.3.0 Jan 12, 2017 Changes in this version + const AuthHeader + const MaxTries + const RequestTimeout + const RequestedWithHeader + const RequestedWithValue + var Handshake = plugin.HandshakeConfig + var Trace *log.Logger + func SendLog(a IAction, step, format string, i ...interface{}) error + func Serve(a CDSAction) + func SetTrace(traceHandle io.Writer) + type Action struct + Args Arguments + IDActionBuild int64 + func (a Action) Arguments() Arguments + func (a Action) ID() int64 + type Arguments struct + Data map[string]string + func (p *Arguments) Set(key, value string) + func (p Arguments) Exists(key string) bool + func (p Arguments) Get(key string) string + type CDSAction interface + Author func() string + Description func() string + Init func(IOptions) string + Name func() string + Parameters func() Parameters + Run func(IAction) Result + type CDSActionPlugin struct + func (a CDSActionPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error) + func (a CDSActionPlugin) PluginName() string + func (a CDSActionPlugin) Server(*plugin.MuxBroker) (interface{}, error) + type CDSActionRPC struct + func (c *CDSActionRPC) Author() string + func (c *CDSActionRPC) Description() string + func (c *CDSActionRPC) Init(id IOptions) string + func (c *CDSActionRPC) Name() string + func (c *CDSActionRPC) Parameters() Parameters + func (c *CDSActionRPC) Run(a IAction) Result + type CDSActionRPCServer struct + Impl CDSAction + func (c *CDSActionRPCServer) Author(args interface{}, resp *string) error + func (c *CDSActionRPCServer) Description(args interface{}, resp *string) error + func (c *CDSActionRPCServer) Init(args interface{}, resp *string) error + func (c *CDSActionRPCServer) Name(args interface{}, resp *string) error + func (c *CDSActionRPCServer) Parameters(args interface{}, resp *Parameters) error + func (c *CDSActionRPCServer) Run(args interface{}, resp *Result) error + type Client struct + func NewClient(name, binary, id, url string, tlsSkipVerify bool) *Client + func (p Client) Instance() (CDSAction, error) + type Common struct + func (p *Common) Init(o IOptions) string + type IAction interface + Arguments func() Arguments + ID func() int64 + type IArguments interface + Exists func(string) bool + Get func(string) string + type IOptions interface + GetURL func() string + Hash func() string + TLSSkipVerify func() bool + type IParameters interface + GetDescription func(string) string + GetType func(string) ParameterType + GetValue func(string) string + Names func() []string + type Log struct + ActionID int64 + Step string + Value string + type Options struct + ID string + TlsSkipVerify bool + URL string + func (o Options) GetURL() string + func (o Options) Hash() string + func (o Options) TLSSkipVerify() bool + type ParameterType string + const BooleanParameter + const EnvironmentParameter + const Fail + const ListParameter + const NumberParameter + const PasswordParameter + const PipelineParameter + const StringParameter + const Success + const TextParameter + type Parameters struct + Data map[string]string + DataDescription map[string]string + DataType map[string]ParameterType + func NewParameters() Parameters + func (p *Parameters) Add(name string, _type ParameterType, description string, value string) + func (p *Parameters) GetDescription(k string) string + func (p *Parameters) GetType(k string) ParameterType + func (p *Parameters) GetValue(k string) string + func (p *Parameters) Names() []string + type Result string