types

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 3 Imported by: ? 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

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    `yaml:"check_run,omitempty"`
	CheckSuite               *EventWithTypes    `yaml:"check_suite,omitempty"`
	Create                   *EventWithoutTypes `yaml:"create,omitempty"`
	Delete                   *EventWithoutTypes `yaml:"delete,omitempty"`
	Deployment               *EventWithoutTypes `yaml:"deployment,omitempty"`
	DeploymentStatus         *EventWithoutTypes `yaml:"deployment_status,omitempty"`
	Fork                     *EventWithoutTypes `yaml:"fork,omitempty"`
	Gollum                   *EventWithoutTypes `yaml:"gollum,omitempty"`
	IssueComment             *EventWithTypes    `yaml:"issue_comment,omitempty"`
	Issues                   *EventWithTypes    `yaml:"issues,omitempty"`
	Label                    *EventWithTypes    `yaml:"label,omitempty"`
	Milestone                *EventWithTypes    `yaml:"milestone,omitempty"`
	PageBuild                *EventWithoutTypes `yaml:"page_build,omitempty"`
	Project                  *EventWithTypes    `yaml:"project,omitempty"`
	ProjectCard              *EventWithTypes    `yaml:"project_card,omitempty"`
	ProjectColumn            *EventWithTypes    `yaml:"project_column,omitempty"`
	Public                   *EventWithoutTypes `yaml:"public,omitempty"`
	PullRequest              *PushPullEvent     `yaml:"pull_request,omitempty"`
	PullRequestReview        *EventWithTypes    `yaml:"pull_request_review,omitempty"`
	PullRequestReviewComment *EventWithTypes    `yaml:"pull_request_review_comment,omitempty"`
	Push                     *PushPullEvent     `yaml:"push,omitempty"`
	RegistryPackage          *EventWithTypes    `yaml:"registry_package,omitempty"`
	Release                  *EventWithTypes    `yaml:"release,omitempty"`
	Status                   *EventWithoutTypes `yaml:"status,omitempty"`
	Watch                    *EventWithTypes    `yaml:"watch,omitempty"`
	Schedule                 *ScheduleEvent     `yaml:"schedule,omitempty"`
	RepositoryDispatch       *EventWithoutTypes `yaml:"repository_dispatch,omitempty"`
}

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            yaml.Node `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