handler

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(data []byte, platform models.Platform, credentials *models.Credentials, organization, baseUrl *string) (*models.Pipeline, error)

Types

type AzureHandler

type AzureHandler struct{}

func (*AzureHandler) GetEnhancer

func (g *AzureHandler) GetEnhancer() enhancers.Enhancer

func (*AzureHandler) GetLoader

func (*AzureHandler) GetParser

func (*AzureHandler) GetPlatform

func (g *AzureHandler) GetPlatform() models.Platform

type BitbucketHandler

type BitbucketHandler struct{}

func (*BitbucketHandler) GetEnhancer

func (g *BitbucketHandler) GetEnhancer() enhancers.Enhancer

func (*BitbucketHandler) GetLoader

func (*BitbucketHandler) GetParser

func (*BitbucketHandler) GetPlatform

func (g *BitbucketHandler) GetPlatform() models.Platform

type GitHubHandler

type GitHubHandler struct{}

func (*GitHubHandler) GetEnhancer

func (g *GitHubHandler) GetEnhancer() enhancers.Enhancer

func (*GitHubHandler) GetLoader

func (*GitHubHandler) GetParser

func (*GitHubHandler) GetPlatform

func (g *GitHubHandler) GetPlatform() models.Platform

type GitLabHandler

type GitLabHandler struct{}

func (*GitLabHandler) GetEnhancer

func (g *GitLabHandler) GetEnhancer() enhancers.Enhancer

func (*GitLabHandler) GetLoader

func (*GitLabHandler) GetParser

func (*GitLabHandler) GetPlatform

func (g *GitLabHandler) GetPlatform() models.Platform

type Handler

type Handler[T any] interface {
	GetPlatform() models.Platform
	GetLoader() loaders.Loader[T]
	GetParser() parsers.Parser[T]
	GetEnhancer() enhancers.Enhancer
}

Jump to

Keyboard shortcuts

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