handlers

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Handle(ctx context.Context, client client.Client, obj *unstructured.Unstructured, status *v1alpha1.HandlerStatus) error
}

func BuildPullRequestApproveReporter

func BuildPullRequestApproveReporter(ctx context.Context, client client.Client, namespace string, spec v1alpha1.PullRequestApproveReporter) (Handler, error)

func BuildPullRequestCommandHandler

func BuildPullRequestCommandHandler(ctx context.Context, client client.Client, namespace string, spec v1alpha1.PullRequestCommandHandler) (Handler, error)

func BuildPullRequestCommentReporter

func BuildPullRequestCommentReporter(ctx context.Context, client client.Client, namespace string, spec v1alpha1.PullRequestCommentReporter) (Handler, error)

type PullRequestApproveReporter

type PullRequestApproveReporter struct {
	// contains filtered or unexported fields
}

func (*PullRequestApproveReporter) Handle

type PullRequestCommandHandler

type PullRequestCommandHandler struct {
	// contains filtered or unexported fields
}

func (*PullRequestCommandHandler) Handle

type PullRequestCommentReporter

type PullRequestCommentReporter struct {
	// contains filtered or unexported fields
}

func (*PullRequestCommentReporter) Handle

type StatusCalculator

type StatusCalculator struct {
	Client client.Client
}

func (*StatusCalculator) ComputeReady

func (sc *StatusCalculator) ComputeReady(ctx context.Context, obj client.Object, missingReadyConditionIsError bool) (bool, error)

Jump to

Keyboard shortcuts

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