remote

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepositoryConnection

type RepositoryConnection struct {
	NodeID     string
	Owner      string
	Repository string
	LastActive time.Time
	IsActive   bool
}

type Service

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

Service implements the RemoteRepositoryService interface

func NewService

func NewService(metricsCollector hephaestus.MetricsCollectionService) *Service

NewService creates a new instance of the remote repository service

func (*Service) Cleanup

func (s *Service) Cleanup(ctx context.Context, nodeID string) error

Cleanup removes the repository connection for a node

func (*Service) CreateIssue

func (s *Service) CreateIssue(ctx context.Context, nodeID string, issue *hephaestus.Issue) error

CreateIssue creates a new issue in the remote repository

func (*Service) CreatePullRequest

func (s *Service) CreatePullRequest(ctx context.Context, nodeID string, pr *hephaestus.PullRequest) error

CreatePullRequest creates a new pull request in the remote repository

func (*Service) Initialize

func (s *Service) Initialize(ctx context.Context, config *hephaestus.RemoteSettings) error

Initialize sets up the remote repository service with the provided configuration

Jump to

Keyboard shortcuts

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