ci_backends

package
v0.0.0-...-1e88db8 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CiBackend

type CiBackend interface {
	TriggerWorkflow(spec spec.Spec, runName string, vcsToken string) error
}

type CiBackendOptions

type CiBackendOptions struct {
	GithubClientProvider        utils.GithubClientProvider
	GithubInstallationId        int64
	GitlabProjectId             int
	GitlabmergeRequestEventName string
	GitlabCIPipelineID          string
	GitlabCIPipelineIID         int
	GitlabCIMergeRequestID      int
	GitlabCIMergeRequestIID     int
	GitlabCIProjectName         string
	GitlabciprojectNamespace    string
	GitlabciprojectId           int
	GitlabciprojectNamespaceId  int
	GitlabDiscussionId          string
	RepoFullName                string
	RepoOwner                   string
	RepoName                    string
}

type CiBackendProvider

type CiBackendProvider interface {
	GetCiBackend(options CiBackendOptions) (CiBackend, error)
}

type DefaultBackendProvider

type DefaultBackendProvider struct{}

func (DefaultBackendProvider) GetCiBackend

func (d DefaultBackendProvider) GetCiBackend(options CiBackendOptions) (CiBackend, error)

type GithubActionCi

type GithubActionCi struct {
	Client *github.Client
}

func (GithubActionCi) TriggerWorkflow

func (g GithubActionCi) TriggerWorkflow(spec spec.Spec, runName string, vcsToken string) error

type JenkinsCi

type JenkinsCi struct{}

Jump to

Keyboard shortcuts

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