Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Key is a name of the github plugin variable Key = Namespace("git") KeySetup = "Setup" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloneAction ¶
type CloneAction struct {
// contains filtered or unexported fields
}
CloneAction clones repository
func (*CloneAction) Eval ¶
func (p *CloneAction) Eval(ctx force.ExecutionContext) (interface{}, error)
func (*CloneAction) MarshalCode ¶
func (c *CloneAction) MarshalCode(ctx force.ExecutionContext) ([]byte, error)
MarshalCode marshals action into code representation
func (*CloneAction) Type ¶
func (p *CloneAction) Type() interface{}
type Config ¶
type Config struct { // Token is an access token Token string // TokenFile is a path to access token TokenFile string // User force.StringVar User string // PrivateKeyFile is a path to SSH private key PrivateKeyFile string // KnownHostsFile is a file with known_hosts public keys KnownHostsFile string }
Config holds git configuration
func (*Config) CheckAndSetDefaults ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin is a new plugin
type Repo ¶
type Repo struct { URL string // Into into dir Into string // Hash is a commit hash to clone Hash string // Tag is a git tag to clone Tag string // Branch is a branch to clone Branch string // Submodules is an optional submodule to init Submodules []string }
Repo is a repository to clone
func (*Repo) CheckAndSetDefaults ¶
type Setup ¶
type Setup struct {
// contains filtered or unexported fields
}
Setup creates new plugins
func (*Setup) Eval ¶
func (n *Setup) Eval(ctx force.ExecutionContext) (interface{}, error)
Run sets up git plugin for the process group
func (*Setup) MarshalCode ¶
func (n *Setup) MarshalCode(ctx force.ExecutionContext) ([]byte, error)
MarshalCode marshals plugin code to representation
func (*Setup) NewInstance ¶
NewInstance returns function creating new client bound to the process group and registers plugin variable
Click to show internal directories.
Click to hide internal directories.