semaphore

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MaxEventSize = 64 * 1024

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Integration string `json:"integration"`
	Project     string `json:"project"`
}

type Metadata

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

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) 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) HandleAction

func (s *Semaphore) HandleAction(ctx core.TriggerActionContext) (map[string]any, 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) Setup

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

Jump to

Keyboard shortcuts

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