Documentation
¶
Index ¶
- Variables
- func IsCallingReusableWorkflow(job Job) bool
- type Action
- type ActionInput
- type ActionMetadata
- type ActionPermissions
- type ActionScopePermission
- type ActionScopePermissions
- type Actions
- type AllowedEndpoint
- type Env
- type GitHubContent
- type GitHubToken
- type Job
- type Jobs
- type Permissions
- type Step
- type With
- type Workflow
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidValue = errors.New("invalid value for field 'permissions'")
)
Functions ¶
Types ¶
type Action ¶
type Action struct {
Name string `yaml:"name"`
DefaultToken string `yaml:"default-token"`
EnvKey string `yaml:"env-key"`
Permissions Permissions `yaml:"permissions"`
}
type ActionInput ¶
type ActionMetadata ¶
type ActionMetadata struct {
Name string `yaml:"name"`
GitHubToken GitHubToken `yaml:"github-token"`
AllowedEndpoints []AllowedEndpoint `yaml:"outbound-endpoints"`
}
func GetActionKnowledgeBase ¶
func GetActionKnowledgeBase(action string) (*ActionMetadata, error)
type ActionPermissions ¶
type ActionPermissions struct {
Actions Actions `yaml:"actions"`
}
type ActionScopePermission ¶
type ActionScopePermissions ¶
type ActionScopePermissions struct {
Scopes map[string]ActionScopePermission
}
func (*ActionScopePermissions) UnmarshalYAML ¶
func (p *ActionScopePermissions) UnmarshalYAML(unmarshal func(interface{}) error) error
type AllowedEndpoint ¶
type GitHubContent ¶
type GitHubContent struct {
Content string `json:"content"`
}
type GitHubToken ¶
type GitHubToken struct {
ActionInput ActionInput `yaml:"action-input"`
EnvironmentVariableName string `yaml:"environment-variable-name"`
Permissions ActionScopePermissions `yaml:"permissions"`
}
type Job ¶
type Job struct {
Permissions Permissions `yaml:"permissions"`
Uses string `yaml:"uses"`
// RunsOn []string `yaml:"runs-on"`
Steps []Step `yaml:"steps"`
}
type Permissions ¶
func (*Permissions) UnmarshalYAML ¶
func (p *Permissions) UnmarshalYAML(unmarshal func(interface{}) error) error
Click to show internal directories.
Click to hide internal directories.