pipeline

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPipelineRestClient

func NewPipelineRestClient(config settings.Config) (*pipelineRestClient, error)

NewPipelineRestClient returns a new pipelineRestClient satisfying the api.PipelineInterface interface via the REST API.

Types

type CheckoutSource

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

type CheckoutSourceResponse

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

type ConfigSource

type ConfigSource struct {
	Provider string `json:"provider"`
	Repo     Repo   `json:"repo"`
	FilePath string `json:"file_path"`
}

type ConfigSourceResponse

type ConfigSourceResponse struct {
	Provider string       `json:"provider"`
	Repo     RepoResponse `json:"repo"`
	FilePath string       `json:"file_path"`
}

type CreatePipelineInfo

type CreatePipelineInfo struct {
	Id                         string
	Name                       string
	CheckoutSourceRepoFullName string
	ConfigSourceRepoFullName   string
}

type PipelineClient

type PipelineClient interface {
	CreatePipeline(projectID string, name string, description string, repoID string, configRepoID string, filePath string) (*CreatePipelineInfo, error)
}

PipelineClient is the interface to interact with pipeline and it's components.

type Repo

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

type RepoResponse

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

Jump to

Keyboard shortcuts

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