models

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: Apache-2.0 Imports: 8 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 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 Credentials struct {
	Password string `yaml:"password,omitempty"`
	Username string `yaml:"username,omitempty"`
}

type Cron

type Cron struct {
	Cron          string
	FileReference *models.FileReference
}

type Defaults

type Defaults struct {
	Run *Run `yaml:"run,omitempty"`
}

type Environment

type Environment struct {
	Name string `yaml:"name"`
	Url  string `yaml:"url,omitempty"`
}

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 Events

type Events map[string]Event

type Inputs

type Inputs map[string]struct {
	Description string
	Default     interface{}
	Required    bool
	Type        string
	Options     []string
}

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

func (j *Jobs) UnmarshalYAML(node *yaml.Node) error

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

func (m *Matrix) UnmarshalYAML(node *yaml.Node) error

type Needs

type Needs []string

func (*Needs) UnmarshalYAML

func (n *Needs) UnmarshalYAML(node *yaml.Node) error

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

func (on *On) UnmarshalYAML(node *yaml.Node) error

type Outputs

type Outputs map[string]*struct {
	Description string
	Value       string
}

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

func (r *RunsOn) UnmarshalYAML(node *yaml.Node) error

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 Steps

type Steps []Step

func (*Steps) UnmarshalYAML

func (s *Steps) UnmarshalYAML(node *yaml.Node) error

type Strategy

type Strategy struct {
	FailFast    *bool    `yaml:"fail-fast,omitempty"`
	Matrix      *Matrix  `yaml:"matrix"`
	MaxParallel *float64 `yaml:"max-parallel,omitempty"`
}

type With

type With commonModels.Map

func (*With) UnmarshalYAML

func (w *With) UnmarshalYAML(value *yaml.Node) error

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 WorkflowCall struct {
	Inputs  Inputs
	Outputs Outputs
	Secrets map[string]*struct {
		Description string
		Required    bool
	}
	FileReference *models.FileReference
}

type WorkflowDispatch

type WorkflowDispatch struct {
	Inputs        Inputs
	FileReference *models.FileReference
}

type WorkflowRun

type WorkflowRun struct {
	Types     []string
	Workflows []string
	Ref
	FileReference *models.FileReference
}

Jump to

Keyboard shortcuts

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