yaml

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.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 WorkflowContent

type WorkflowContent struct {
	Name string `yaml:"name"`
	On   struct {
		WorkflowDispatch struct {
			Inputs map[string]WorkflowInput `yaml:"inputs"`
		} `yaml:"workflow_dispatch"`
	} `yaml:"on"`
}

func UnmarshalWorkflowContent

func UnmarshalWorkflowContent(data []byte) (*WorkflowContent, error)

type WorkflowInput

type WorkflowInput struct {
	Description string            `yaml:"description"`
	Required    bool              `yaml:"required"`
	Default     interface{}       `yaml:"default,omitempty"`
	Type        string            `yaml:"type,omitempty"`
	Options     []string          `yaml:"options,omitempty"`
	JSONContent map[string]string `yaml:"-"` // This field is for internal use and won't be filled directly by the YAML unmarshaler
}

func (*WorkflowInput) UnmarshalYAML

func (i *WorkflowInput) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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