trigger

package
v0.1.32111 Latest Latest
Warning

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

Go to latest
Published: May 28, 2025 License: MIT Imports: 5 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
	Name string
}

type CreateTriggerOptions

type CreateTriggerOptions struct {
	ProjectID            string
	PipelineDefinitionID string
	Name                 string
	Description          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 GetPipelineDefinitionResponse added in v0.1.32111

type GetPipelineDefinitionResponse struct {
	ID             string                          `json:"id"`
	Name           string                          `json:"name"`
	Description    string                          `json:"description"`
	CreatedAt      string                          `json:"created_at"`
	ConfigSource   pipeline.ConfigSourceResponse   `json:"config_source"`
	CheckoutSource pipeline.CheckoutSourceResponse `json:"checkout_source"`
}

type PipelineDefinition added in v0.1.32111

type PipelineDefinition struct {
	ConfigSourceId   string
	CheckoutSourceId 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)
	GetPipelineDefinition(options GetPipelineDefinitionOptions) (*PipelineDefinition, 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