repository

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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RemoteService

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

RemoteService implements the RemoteRepositoryService interface

func NewRemoteService

func NewRemoteService() *RemoteService

NewRemoteService creates a new instance of the remote repository service

func (*RemoteService) Cleanup

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

Cleanup removes a repository instance and its resources

func (*RemoteService) CreatePullRequest

func (s *RemoteService) CreatePullRequest(ctx context.Context, nodeID string, title string, description string, changes []hephaestus.CodeChange) error

CreatePullRequest creates a new pull request for changes

func (*RemoteService) CreateRepository

func (s *RemoteService) CreateRepository(ctx context.Context, nodeID string) error

CreateRepository creates a new repository instance for a node

func (*RemoteService) GetRepository

func (s *RemoteService) GetRepository(ctx context.Context, nodeID string) (*Repository, error)

GetRepository retrieves a repository instance for a node

func (*RemoteService) Initialize

Initialize sets up the remote repository service with the provided configuration

func (*RemoteService) UpdateRepository

func (s *RemoteService) UpdateRepository(ctx context.Context, nodeID string) error

UpdateRepository updates a repository's information

type Repository

type Repository struct {
	Owner      string
	Name       string
	Branch     string
	LastCommit string
	WorkingDir string
	IsArchived bool
}

Repository represents a remote repository instance

Jump to

Keyboard shortcuts

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