forgejo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(forgejoURL, forgejoToken, githubToken string) (*Client, error)

func (*Client) CreateMirror

func (c *Client) CreateMirror(repo manifest.Repo) (mirror.MirrorResult, error)

CreateMirror creates a pull mirror on Forgejo for the given repo.

func (*Client) EnsureNamespace

func (c *Client) EnsureNamespace(name string) (bool, error)

EnsureNamespace creates the organization on Forgejo if it doesn't already exist. Returns true if created, false if it already existed.

Jump to

Keyboard shortcuts

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