Documentation ¶
Index ¶
- type Concurrency
- type Container
- type Credentials
- type Cron
- type Defaults
- type Environment
- type EnvironmentVariablesRef
- type Event
- type Events
- type Inputs
- type Job
- type Jobs
- type Matrix
- type Needs
- type On
- type Outputs
- type PermissionsEvent
- type Ref
- type ReusableWorkflowCallJob
- type Run
- type RunsOn
- type Schedule
- type ShellCommand
- type Step
- type Steps
- type Strategy
- type With
- type Workflow
- type WorkflowCall
- type WorkflowDispatch
- type WorkflowRun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Concurrency ¶
type Concurrency struct { CancelInProgress *bool `yaml:"cancel-in-progress,omitempty"` Group *string `yaml:"group"` }
func (*Concurrency) UnmarshalYAML ¶
func (c *Concurrency) UnmarshalYAML(node *yaml.Node) error
type Container ¶
type Container struct { Credentials *Credentials `yaml:"credentials,omitempty"` Env interface{} `yaml:"env,omitempty"` Image string `yaml:"image"` Options string `yaml:"options,omitempty"` Ports []interface{} `yaml:"ports,omitempty"` Volumes []string `yaml:"volumes,omitempty"` }
type Credentials ¶
type Cron ¶
type Cron struct { Cron string FileReference *models.FileReference }
type Environment ¶
type EnvironmentVariablesRef ¶
type EnvironmentVariablesRef struct { models.EnvironmentVariables FileReference *models.FileReference }
func (*EnvironmentVariablesRef) UnmarshalYAML ¶
func (e *EnvironmentVariablesRef) UnmarshalYAML(node *yaml.Node) error
type Event ¶
type Event struct { Types []string FileReference *models.FileReference }
type Job ¶
type Job struct { ID *string `yaml:"id"` Concurrency *Concurrency `yaml:"concurrency,omitempty"` Container interface{} `yaml:"container,omitempty"` ContinueOnError *string `yaml:"continue-on-error,omitempty"` Defaults *Defaults `yaml:"defaults,omitempty"` Env *EnvironmentVariablesRef `yaml:"env,omitempty"` Environment interface{} `yaml:"environment,omitempty"` If string `yaml:"if,omitempty"` Name string `yaml:"name,omitempty"` Needs *Needs `yaml:"needs,omitempty"` Outputs map[string]string `yaml:"outputs,omitempty"` Permissions *PermissionsEvent `yaml:"permissions,omitempty"` RunsOn *RunsOn `yaml:"runs-on"` Services map[string]*Container `yaml:"services,omitempty"` Steps *Steps `yaml:"steps,omitempty"` Strategy *Strategy `yaml:"strategy,omitempty"` TimeoutMinutes *float64 `yaml:"timeout-minutes,omitempty"` FileReference *models.FileReference }
Job is a normal CI job
type Jobs ¶
type Jobs struct { CIJobs map[string]*Job ReusableWorkflowCallJobs map[string]*ReusableWorkflowCallJob }
func (*Jobs) UnmarshalYAML ¶
type Matrix ¶ added in v0.2.0
type Matrix struct { Include []map[string]any `yaml:"include"` Exclude []map[string]any `yaml:"exclude"` Values map[string][]any `yaml:"values"` FileReference *models.FileReference }
func (*Matrix) UnmarshalYAML ¶ added in v0.2.0
type On ¶
type On struct { Push *Ref PullRequest *Ref PullRequestTarget *Ref WorkflowCall *WorkflowCall Schedule *Schedule WorkflowRun *WorkflowRun WorkflowDispatch *WorkflowDispatch FileReference *models.FileReference Events }
func (*On) UnmarshalYAML ¶
type PermissionsEvent ¶
type PermissionsEvent struct { Actions string `mapstructure:"actions,omitempty" yaml:"actions,omitempty"` Checks string `mapstructure:"checks,omitempty" yaml:"checks,omitempty"` Contents string `mapstructure:"contents,omitempty" yaml:"contents,omitempty"` Deployments string `mapstructure:"deployments,omitempty" yaml:"deployments,omitempty"` Discussions string `mapstructure:"discussions,omitempty" yaml:"discussions,omitempty"` IdToken string `mapstructure:"id-token,omitempty" yaml:"id-token,omitempty"` Issues string `mapstructure:"issues,omitempty" yaml:"issues,omitempty"` Packages string `mapstructure:"packages,omitempty" yaml:"packages,omitempty"` Pages string `mapstructure:"pages,omitempty" yaml:"pages,omitempty"` PullRequests string `mapstructure:"pull-requests,omitempty" yaml:"pull-requests,omitempty"` RepositoryProjects string `mapstructure:"repository-projects,omitempty" yaml:"repository-projects,omitempty"` SecurityEvents string `mapstructure:"security-events,omitempty" yaml:"security-events,omitempty"` Statuses string `mapstructure:"statuses,omitempty" yaml:"statuses,omitempty"` FileReference *models.FileReference }
func (*PermissionsEvent) UnmarshalYAML ¶
func (p *PermissionsEvent) UnmarshalYAML(node *yaml.Node) error
type Ref ¶
type Ref struct { Branches []string `yaml:"branches,omitempty"` BranchesIgnore []string `yaml:"branches-ignore,omitempty"` Paths []string `yaml:"paths,omitempty"` PathsIgnore []string `yaml:"paths-ignore,omitempty"` Tags []string `yaml:"tags,omitempty"` TagsIgnore []string `yaml:"tags-ignore,omitempty"` FileReference *models.FileReference }
type ReusableWorkflowCallJob ¶
type ReusableWorkflowCallJob struct { ID *string `yaml:"id"` If string `yaml:"if,omitempty"` Name string `yaml:"name,omitempty"` Needs *Needs `yaml:"needs,omitempty"` Permissions *PermissionsEvent `yaml:"permissions,omitempty"` Strategy *Strategy `yaml:"strategy,omitempty"` Secrets interface{} `yaml:"secrets,omitempty"` Uses string `yaml:"uses"` With map[string]any FileReference *models.FileReference }
ReusableWorkflowCallJob is a job that executes a workflow
type Run ¶
type Run struct { Shell interface{} `yaml:"shell,omitempty"` WorkingDirectory string `yaml:"working-directory,omitempty"` }
type RunsOn ¶
type RunsOn struct { OS *string Arch *string SelfHosted bool Tags []string FileReference *models.FileReference }
func (*RunsOn) UnmarshalYAML ¶
type Schedule ¶
type Schedule struct { Crons *[]Cron FileReference *models.FileReference }
type ShellCommand ¶
type ShellCommand struct { Script string FileReference *models.FileReference }
func (*ShellCommand) UnmarshalYAML ¶
func (s *ShellCommand) UnmarshalYAML(node *yaml.Node) error
type Step ¶
type Step struct { ContinueOnError *string `yaml:"continue-on-error,omitempty"` Env *EnvironmentVariablesRef `yaml:"env,omitempty"` Id string `yaml:"id,omitempty"` If string `yaml:"if,omitempty"` Name string `yaml:"name,omitempty"` Run *ShellCommand `yaml:"run,omitempty"` Shell string `yaml:"shell,omitempty"` TimeoutMinutes int `yaml:"timeout-minutes,omitempty"` Uses string `yaml:"uses,omitempty"` With *With `yaml:"with,omitempty"` WorkingDirectory string `yaml:"working-directory,omitempty"` FileReference *models.FileReference }
type Workflow ¶
type Workflow struct { Concurrency *Concurrency `yaml:"concurrency,omitempty"` Defaults *Defaults `yaml:"defaults,omitempty"` Env *EnvironmentVariablesRef `yaml:"env,omitempty"` Jobs *Jobs `yaml:"jobs"` Name string `yaml:"name,omitempty"` On *On `yaml:"on"` Permissions *PermissionsEvent `yaml:"permissions,omitempty"` }
type WorkflowCall ¶
type WorkflowDispatch ¶
type WorkflowDispatch struct { Inputs Inputs FileReference *models.FileReference }
type WorkflowRun ¶
type WorkflowRun struct { Types []string Workflows []string Ref FileReference *models.FileReference }
Click to show internal directories.
Click to hide internal directories.