genci

package
v0.11.47 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: GPL-3.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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/main/docs/ci-generator.adoc).

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