Documentation
¶
Overview ¶
Package genci generates CI yaml definitions based on the eirctl pipeline nodes.
This is a translation layer between eirctl concepts of tasks, pipelines and contexts into the world of CI tools yaml syntax. See a list of supported tools and overview [here](https://github.com/Ensono/eirctl/blob/master/docs/ci-generator.md).
Sample output in github ```yaml
jobs:
```
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrImplementationNotExist = errors.New("implementation does not exist") ErrFailedImplementationInit = errors.New("failed to initialise the implementation") )
View Source
var ErrInvalidCiMeta = errors.New("CI meta is invalid")
Functions ¶
This section is empty.
Types ¶
type DefualtCiImpl ¶
type DefualtCiImpl struct{}
func (*DefualtCiImpl) Convert ¶
func (impl *DefualtCiImpl) Convert(pipeline *scheduler.ExecutionGraph) ([]byte, error)
type GenCi ¶
type GenCi struct {
// CITargetOS sets the CI Runner node OS.
// The default is linux
CITargetOS string
// CITargetArch sets the CI Runner node Architecture
// The default is amd64
CITargetArch string
// contains filtered or unexported fields
}
strategy - selector
type GenCiIface ¶
type GenCiIface interface {
Convert(pipeline *scheduler.ExecutionGraph) ([]byte, error)
}
Click to show internal directories.
Click to hide internal directories.