semaphore

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SetupStepCapabilitySelection = "capabilitySelection"
	SetupStepSelectOrganization  = "selectOrganization"
	SetupStepEnterAPIToken       = "enterAPIToken"
	SetupStepDone                = "done"
)
View Source
const (
	PropertyOrganizationURL = "organizationUrl"
	SecretAPIToken          = "apiToken"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration added in v0.5.0

type Configuration struct {
	OrganizationURL string `json:"organizationUrl"`
	APIToken        string `json:"apiToken"`
}

type Metadata added in v0.5.0

type Metadata struct {
	Projects []string `json:"projects"`
}

type Semaphore added in v0.5.0

type Semaphore struct{}

func (*Semaphore) Actions added in v0.6.0

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

func (*Semaphore) Cleanup added in v0.6.0

func (*Semaphore) Configuration added in v0.5.0

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

func (*Semaphore) Description added in v0.5.0

func (s *Semaphore) Description() string

func (*Semaphore) HandleHook added in v0.18.0

func (s *Semaphore) HandleHook(ctx core.IntegrationHookContext) error

func (*Semaphore) HandleRequest added in v0.5.0

func (s *Semaphore) HandleRequest(ctx core.HTTPRequestContext)

func (*Semaphore) Hooks added in v0.18.0

func (s *Semaphore) Hooks() []core.Hook

func (*Semaphore) Icon added in v0.5.0

func (s *Semaphore) Icon() string

func (*Semaphore) Instructions added in v0.5.0

func (s *Semaphore) Instructions() string

func (*Semaphore) Label added in v0.5.0

func (s *Semaphore) Label() string

func (*Semaphore) ListResources added in v0.5.0

func (s *Semaphore) ListResources(resourceType string, ctx core.ListResourcesContext) ([]core.IntegrationResource, error)

func (*Semaphore) Name added in v0.5.0

func (s *Semaphore) Name() string

func (*Semaphore) Sync added in v0.5.0

func (s *Semaphore) Sync(ctx core.SyncContext) error

func (*Semaphore) Triggers added in v0.5.0

func (s *Semaphore) Triggers() []core.Trigger

type SemaphoreWebhookHandler added in v0.7.0

type SemaphoreWebhookHandler struct{}

func (*SemaphoreWebhookHandler) Cleanup added in v0.7.0

func (*SemaphoreWebhookHandler) CompareConfig added in v0.7.0

func (h *SemaphoreWebhookHandler) CompareConfig(a, b any) (bool, error)

func (*SemaphoreWebhookHandler) Merge added in v0.8.0

func (h *SemaphoreWebhookHandler) Merge(current, requested any) (any, bool, error)

func (*SemaphoreWebhookHandler) Setup added in v0.7.0

type SetupProvider added in v0.19.0

type SetupProvider struct{}

func (*SetupProvider) CapabilityGroups added in v0.19.0

func (s *SetupProvider) CapabilityGroups() []core.CapabilityGroup

func (*SetupProvider) FirstStep added in v0.19.0

func (s *SetupProvider) FirstStep(ctx core.SetupStepContext) core.SetupStep

func (*SetupProvider) OnCapabilityUpdate added in v0.19.0

func (s *SetupProvider) OnCapabilityUpdate(ctx core.CapabilityUpdateContext) (*core.SetupStep, error)

func (*SetupProvider) OnPropertyUpdate added in v0.19.0

func (s *SetupProvider) OnPropertyUpdate(ctx core.PropertyUpdateContext) (*core.SetupStep, error)

func (*SetupProvider) OnSecretUpdate added in v0.19.0

func (s *SetupProvider) OnSecretUpdate(ctx core.SecretUpdateContext) (*core.SetupStep, error)

func (*SetupProvider) OnStepRevert added in v0.19.0

func (s *SetupProvider) OnStepRevert(ctx core.SetupStepContext) error

func (*SetupProvider) OnStepSubmit added in v0.19.0

func (s *SetupProvider) OnStepSubmit(ctx core.SetupStepContext) (*core.SetupStep, error)

type WebhookMetadata

type WebhookMetadata struct {
	Secret       WebhookSecretMetadata       `json:"secret"`
	Notification WebhookNotificationMetadata `json:"notification"`
}

type WebhookNotificationMetadata

type WebhookNotificationMetadata struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type WebhookSecretMetadata

type WebhookSecretMetadata struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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