genci

package
v0.9.9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

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 CITarget

type CITarget string
const (
	GitlabCITarget    CITarget = "gitlab"
	GitHubCITarget    CITarget = "github"
	BitbucketCITarget CITarget = "bitbucket"
)

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

func New

func New(implTyp CITarget, conf *config.Config, opts ...Opts) (*GenCi, error)

func (*GenCi) Convert

func (g *GenCi) Convert(eirctlPipeline *scheduler.ExecutionGraph) ([]byte, error)

type GenCiIface

type GenCiIface interface {
	Convert(pipeline *scheduler.ExecutionGraph) ([]byte, error)
}

type Opts

type Opts func(*GenCi)

Jump to

Keyboard shortcuts

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