semaphore

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ComponentName = "semaphore"
View Source
const FailedOutputChannel = "failed"
View Source
const PassedOutputChannel = "passed"

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionMetadata

type ExecutionMetadata struct {
	Workflow *Workflow      `json:"workflow"`
	Data     map[string]any `json:"data,omitempty"`
}

type NodeMetadata

type NodeMetadata struct {
	Project *Project `json:"project"`
}

type Parameter

type Parameter struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type Project

type Project struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	URL  string `json:"url"`
}

type Semaphore

type Semaphore struct{}

func (*Semaphore) Actions

func (s *Semaphore) Actions() []core.Action

func (*Semaphore) Cancel

func (s *Semaphore) Cancel(ctx core.ExecutionContext) error

func (*Semaphore) Color

func (s *Semaphore) Color() string

func (*Semaphore) Configuration

func (s *Semaphore) Configuration() []configuration.Field

func (*Semaphore) Description

func (s *Semaphore) Description() string

func (*Semaphore) Execute

func (s *Semaphore) Execute(ctx core.ExecutionContext) error

func (*Semaphore) HandleAction

func (s *Semaphore) HandleAction(ctx core.ActionContext) error

func (*Semaphore) HandleWebhook

func (s *Semaphore) HandleWebhook(ctx core.WebhookRequestContext) (int, error)

func (*Semaphore) Icon

func (s *Semaphore) Icon() string

func (*Semaphore) Label

func (s *Semaphore) Label() string

func (*Semaphore) Name

func (s *Semaphore) Name() string

func (*Semaphore) OutputChannels

func (s *Semaphore) OutputChannels(configuration any) []core.OutputChannel

func (*Semaphore) ProcessQueueItem

func (s *Semaphore) ProcessQueueItem(ctx core.ProcessQueueContext) (*uuid.UUID, error)

func (*Semaphore) Setup

func (s *Semaphore) Setup(ctx core.SetupContext) error

type Spec

type Spec struct {
	Integration  string      `json:"integration"`
	Project      string      `json:"project"`
	Ref          string      `json:"ref"`
	PipelineFile string      `json:"pipelineFile"`
	CommitSha    string      `json:"commitSha"`
	Parameters   []Parameter `json:"parameters"`
}

type Workflow

type Workflow struct {
	ID     string `json:"id"`
	URL    string `json:"url"`
	State  string `json:"state"`
	Result string `json:"result"`
}

Jump to

Keyboard shortcuts

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