trigger

package
v0.1.34038 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTriggerRestClient

func NewTriggerRestClient(config settings.Config) (*triggerRestClient, error)

NewTriggerRestClient returns a new triggerRestClient satisfying the api.TriggerInterface interface via the REST API.

Types

type CreateTriggerInfo

type CreateTriggerInfo struct {
	Id string
}

type CreateTriggerOptions

type CreateTriggerOptions struct {
	ProjectID            string
	PipelineDefinitionID string
	RepoID               string
	EventPreset          string
	ConfigRef            string
	CheckoutRef          string
}

type EventSource

type EventSource struct {
	Provider string `json:"provider"`
	Repo     Repo   `json:"repo"`
}

type GetPipelineDefinitionOptions added in v0.1.32111

type GetPipelineDefinitionOptions struct {
	ProjectID            string
	PipelineDefinitionID string
}

type Repo

type Repo struct {
	ExternalID string `json:"external_id"`
}

type RepoResponse

type RepoResponse struct {
	ExternalID string `json:"external_id"`
}

type TriggerClient

type TriggerClient interface {
	CreateTrigger(options CreateTriggerOptions) (*CreateTriggerInfo, error)
}

TriggerClient is the interface to interact with trigger

Jump to

Keyboard shortcuts

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