pkg

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event added in v0.0.2

type Event struct {
	Push        EventSource
	PullRequest EventSource `yaml:"pull_request"`
	Schedule    []string
}

type EventSource added in v0.0.2

type EventSource struct {
	Branches       []string
	Tags           []string
	Paths          []string
	PathsIgnore    []string `yaml:"paths-ignore"`
	BranchesIgnore []string `yaml:"branches-ignore"`
}

type Job

type Job struct {
	Name   string
	RunsOn string `yaml:"runs-on"`
	Steps  []Step
}

type Step

type Step struct {
	Name string
	Uses string
	Env  map[string]string
	With map[string]string
	Run  string
	ID   string

	// extra fields
	Image   string
	Depends string
	Secret  string
}

type Workflow

type Workflow struct {
	Name        string
	On          interface{} // could be: string, []string, Event
	Jobs        map[string]Job
	Concurrency string

	// extra fields
	GitRepository string
}

func (*Workflow) ConvertToArgoWorkflow

func (w *Workflow) ConvertToArgoWorkflow() (output string, err error)

func (*Workflow) GetEvent added in v0.0.2

func (w *Workflow) GetEvent() (result []string)

func (*Workflow) GetEventDetail added in v0.0.2

func (w *Workflow) GetEventDetail(name string) (es *EventSource, err error)

func (*Workflow) GetWorkflowBindings added in v0.0.2

func (w *Workflow) GetWorkflowBindings() (wfbs []WorkflowEventBinding)

type WorkflowEventBinding added in v0.0.2

type WorkflowEventBinding struct {
	Name       string
	Ref        string
	Selector   string
	Parameters map[string]string
}

Jump to

Keyboard shortcuts

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