client

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 8 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 {
	BaseURL string
	Token   string
	// contains filtered or unexported fields
}

func NewClient

func NewClient(baseURL, token string) *Client

func (*Client) CheckRepos

func (c *Client) CheckRepos(repo string, readData bool, orphaned types.OrphanedFilter) ([]types.RepoResult, error)

func (*Client) ForgetRepos

func (c *Client) ForgetRepos(repo string, retention string, orphaned types.OrphanedFilter) ([]types.RepoResult, error)

func (*Client) ListRepos

func (c *Client) ListRepos(repo string, orphaned types.OrphanedFilter) ([]types.RepoEntry, error)

func (*Client) ListScheduled added in v0.1.4

func (c *Client) ListScheduled() ([]types.ScheduledResponse, error)

func (*Client) PruneRepos

func (c *Client) PruneRepos(repo string, orphaned types.OrphanedFilter) ([]types.RepoResult, error)

func (*Client) StatsRepos

func (c *Client) StatsRepos(repo string, orphaned types.OrphanedFilter) (*types.StatsResponse, error)

func (*Client) TriggerBackup added in v0.1.7

func (c *Client) TriggerBackup(containers []string) ([]types.BackupResult, error)

func (*Client) TriggerBackupAll added in v0.1.7

func (c *Client) TriggerBackupAll() ([]types.BackupResult, error)

func (*Client) TriggerProjectBackup added in v0.1.7

func (c *Client) TriggerProjectBackup(project string, services []string) (*types.BackupResult, error)

func (*Client) UnlockRepos

func (c *Client) UnlockRepos(repo string, orphaned types.OrphanedFilter) ([]types.RepoResult, error)

Jump to

Keyboard shortcuts

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