service

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	OfPipelineBasic(ctx context.Context, pr,
		firstCanRollbackPipelinerun *models.Pipelinerun) (*models.PipelineBasic, error)
	OfPipelineBasics(ctx context.Context, prs []*models.Pipelinerun,
		firstCanRollbackPipelinerun *models.Pipelinerun) ([]*models.PipelineBasic, error)
	GetCheckByResource(ctx context.Context, resourceID uint,
		resourceType string) ([]*models.Check, error)
	// CreateUserMessage creates a user message on pipeline run
	CreateUserMessage(ctx context.Context, prID uint, content string) (*models.PRMessage, error)
	// CreateSystemMessageAsync creates a system message on pipeline run
	CreateSystemMessageAsync(ctx context.Context, prID uint, content string)
}

func NewService

func NewService(manager *managerparam.Manager) Service

Jump to

Keyboard shortcuts

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