types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	Image    string                 `yaml:"image,omitempty"`
	Env      map[string]interface{} `yaml:"env,omitempty"`
	Ports    []string               `yaml:"ports,omitempty"`
	Volumes  []string               `yaml:"volumes,omitempty"`
	Options  []string               `yaml:"options,omitempty"`
	Services map[string]*Service    `yaml:"services,omitempty"`
}

type Cron

type Cron struct {
	CronField string `yaml:"cron"`
}

type EventWithTypes

type EventWithTypes struct {
	Types StringOrList `yaml:"types"`
}

type EventWithoutTypes

type EventWithoutTypes struct {
}

type GitHubWorkflow

type GitHubWorkflow struct {
	Name string                 `yaml:"name,omitempty"`
	On   Trigger                `yaml:"on"`
	Env  map[string]interface{} `yaml:"env,omitempty"`
	Jobs map[string]*Job        `yaml:"jobs"`
}

type Job

type Job struct {
	Name   string                 `yaml:"name,omitempty"`
	Needs  *StringOrList          `yaml:"needs,omitempty"`
	RunsOn *StringOrList          `yaml:"runs-on,omitempty"`
	Env    map[string]interface{} `yaml:"env,omitempty"`
	If     string                 `yaml:"if,omitempty"`
	Steps  []*Step                `yaml:"steps,omitempty"`

	Container *Container `yaml:"container,omitempty"`
}

type MultiEvent

type MultiEvent struct {
	CheckRun                 *EventWithTypes
	CheckSuite               *EventWithTypes
	Create                   *EventWithoutTypes
	Delete                   *EventWithoutTypes
	Deployment               *EventWithoutTypes
	DeploymentStatus         *EventWithoutTypes
	Fork                     *EventWithoutTypes
	Gollum                   *EventWithoutTypes
	IssueComment             *EventWithTypes
	Issues                   *EventWithTypes
	Label                    *EventWithTypes
	Milestone                *EventWithTypes
	PageBuild                *EventWithoutTypes
	Project                  *EventWithTypes
	ProjectCard              *EventWithTypes
	ProjectColumn            *EventWithTypes
	Public                   *EventWithoutTypes
	PullRequest              *PushPullEvent
	PullRequestReview        *EventWithTypes
	PullRequestReviewComment *EventWithTypes
	Push                     *PushPullEvent
	RegistryPackage          *EventWithTypes
	Release                  *EventWithTypes
	Status                   *EventWithoutTypes
	Watch                    *EventWithTypes
	Schedule                 *ScheduleEvent
	RepositoryDispatch       *EventWithoutTypes
}

func (*MultiEvent) UnmarshalYAML

func (me *MultiEvent) UnmarshalYAML(unmarshal func(interface{}) error) error

type PushPullEvent

type PushPullEvent struct {
	Types          StringOrList `yaml:"types"`
	Branches       []string     `yaml:"branches,omitempty"`
	BranchesIgnore []string     `yaml:"branches-ignore,omitempty"`
	Tags           []string     `yaml:"tags,omitempty"`
	TagsIgnore     []string     `yaml:"tags-ignore,omitempty"`
	Paths          []string     `yaml:"paths,omitempty"`
	PathsIgnore    []string     `yaml:"paths-ignore,omitempty"`
}

type ScheduleEvent

type ScheduleEvent struct {
	Crons []Cron `yaml:"-"`
}

type Service

type Service struct {
	Image   string   `yaml:"image,omitempty"`
	Ports   []string `yaml:"ports,omitempty"`
	Volumes []string `yaml:"volumes,omitempty"`
	Options []string `yaml:"options,omitempty"`
}

type Step

type Step struct {
	Name            string `yaml:"name,omitempty"`
	If              string `yaml:"if,omitempty"`
	Uses            string `yaml:"uses,omitempty"`
	Run             string `yaml:"run,omitempty"`
	Shell           string `yaml:"shell,omitempty"`
	With            *With  `yaml:"with,omitempty"`
	ContinueOnError *bool  `yaml:"continue-on-error,omitempty"`
	TimeoutMinutes  int    `yaml:"timeout-minutes,omitempty"`
}

type StringOrList

type StringOrList struct {
	Type    StringOrListType
	StrVal  *string
	ListVal []string
}

func (*StringOrList) UnmarshalYAML

func (sl *StringOrList) UnmarshalYAML(unmarshal func(interface{}) error) error

type StringOrListType

type StringOrListType int
const (
	String StringOrListType = iota
	List
)

type Trigger

type Trigger struct {
	Type            TriggerType
	StringOrListVal *StringOrList
	MultiEventVal   *MultiEvent
}

func (*Trigger) UnmarshalYAML

func (t *Trigger) UnmarshalYAML(unmarshal func(interface{}) error) error

type TriggerType

type TriggerType int
const (
	StrOrListType TriggerType = iota
	MultiEventType
)

type With

type With struct {
	Params     map[string]interface{} `yaml:",inline,omitempty"`
	Args       string                 `yaml:"args,omitempty"`
	Entrypoint string                 `yaml:"entrypoint,omitempty"`
	Env        map[string]interface{} `yaml:"env,omitempty"`
}

Jump to

Keyboard shortcuts

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