api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2026 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 Client

type Client struct {
	*gitea.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(hostname, token string) (*Client, error)

func NewClientFromConfig

func NewClientFromConfig(cfg *config.Config, hostname string, detectedHost string) (*Client, error)

func (*Client) GetJSON

func (c *Client) GetJSON(path string, result any) error

GetJSON performs a GET request to the specified path and decodes the JSON response

func (*Client) GetRawLog

func (c *Client) GetRawLog(url string) (string, error)

GetRawLog performs a GET request and returns the raw response body as string

func (*Client) Hostname

func (c *Client) Hostname() string

Jump to

Keyboard shortcuts

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