interceptor

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicWebhookHandler

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

PathHandler represents an instance of a path handler with a specific namespace and name

func (*DynamicWebhookHandler) Handle added in v0.3.2

Handle processes the incoming dynamic webhook request

type GitPushResponse

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

type GitPusher

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

func (*GitPusher) Push

func (gp *GitPusher) Push() (GitPushResponse, error)

type RepoRetriever added in v0.4.0

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

func (RepoRetriever) GetTargetRepository added in v0.4.0

func (rp RepoRetriever) GetTargetRepository() (*git.Repository, error)

func (RepoRetriever) GetUpstreamRepository added in v0.4.0

func (rp RepoRetriever) GetUpstreamRepository() (*git.Repository, error)

type WebhookInterceptsAll

type WebhookInterceptsAll struct {
	K8sClient client.Client

	sync.RWMutex

	Manager ctrl.Manager
	// contains filtered or unexported fields
}

func (*WebhookInterceptsAll) Register added in v0.3.2

func (s *WebhookInterceptsAll) Register(interceptor syngit.RemoteSyncer, path string) *DynamicWebhookHandler

Register registers the path in the pathHandlers map

func (*WebhookInterceptsAll) Start

func (s *WebhookInterceptsAll) Start()

func (*WebhookInterceptsAll) Unregister added in v0.3.2

func (s *WebhookInterceptsAll) Unregister(n types.NamespacedName)

Unregister removes the specific webhook from the pathHandlers map

type WebhookRequestChecker

type WebhookRequestChecker struct {

	// Status and condition mutex
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*WebhookRequestChecker) ProcessSteps

type WorktreeRetriever added in v0.4.0

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

func (WorktreeRetriever) GetWorkTree added in v0.4.0

func (wr WorktreeRetriever) GetWorkTree(gp GitPusher) (*git.Worktree, bool, error)

Jump to

Keyboard shortcuts

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