client

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package client wraps go-gitlab with automatic journaling and a TTL cache.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	GL       *gl.Client
	Provider provider.Provider // host-neutral provider interface (P5)
	Journal  *journal.Journal
	Cache    *cache.Cache
	State    *state.Store
	// contains filtered or unexported fields
}

Client bundles the GitLab SDK, journal, and cache.

func New

func New(cfg *config.Config) (*Client, error)

New creates a Client from cfg. skip_tls_verify is respected per-host.

func (*Client) CacheKey

func (c *Client) CacheKey(path, params string) string

CacheKey builds a namespaced cache key for this host.

func (*Client) Close

func (c *Client) Close() error

func (*Client) Host

func (c *Client) Host() string

Host returns the active hostname.

func (*Client) Rec

func (c *Client) Rec(op journal.Op, entity journal.Entity, project, group string,
	entityID, iid int, title, url string, tags ...string) error

func (*Client) RecErr

func (c *Client) RecErr(op journal.Op, entity journal.Entity, project, group, detail string) error

Jump to

Keyboard shortcuts

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