client

package
v0.0.0-...-6aa8790 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 14 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 (Client) AddRepo

func (c Client) AddRepo(repoName, repoUrl string, rootVersion int64, rootSha512 string) error

func (Client) DoSelfUpdate

func (c Client) DoSelfUpdate(autocleanReleases bool) error

func (Client) ExecRepoChannelReleaseBin

func (c Client) ExecRepoChannelReleaseBin(repoName, group, optionalChannel, optionalBinName string, args []string) error

func (Client) GetRepoChannelReleaseBinDir

func (c Client) GetRepoChannelReleaseBinDir(repoName, group, optionalChannel string) (string, error)

func (Client) GetRepoChannelReleaseDir

func (c Client) GetRepoChannelReleaseDir(repoName, group, optionalChannel string) (string, error)

func (Client) GetRepoClient

func (c Client) GetRepoClient(repoName string) (RepoInterface, error)

func (Client) GetRepoList

func (c Client) GetRepoList() []*RepoConfiguration

func (Client) RemoveRepo

func (c Client) RemoveRepo(repoName string) error

func (Client) SetRepoDefaultChannel

func (c Client) SetRepoDefaultChannel(repoName, channel string) error

func (Client) UpdateRepoChannel

func (c Client) UpdateRepoChannel(repoName, group, optionalChannel string, autocleanReleases bool) error

func (Client) UseRepoChannelReleaseBinDir

func (c Client) UseRepoChannelReleaseBinDir(repoName, group, optionalChannel, shell string, opts repo.UseSourceOptions) (string, error)

type Interface

type Interface interface {
	AddRepo(repoName, repoUrl string, rootVersion int64, rootSha512 string) error
	RemoveRepo(repoName string) error
	SetRepoDefaultChannel(repoName, channel string) error
	DoSelfUpdate(autocleanReleases bool) error
	UpdateRepoChannel(repoName, group, optionalChannel string, autocleanReleases bool) error
	UseRepoChannelReleaseBinDir(repoName, group, optionalChannel, shell string, opts repo.UseSourceOptions) (string, error)
	ExecRepoChannelReleaseBin(repoName, group, optionalChannel, optionalBinName string, args []string) error
	GetRepoChannelReleaseDir(repoName, group, optionalChannel string) (string, error)
	GetRepoChannelReleaseBinDir(repoName, group, optionalChannel string) (string, error)
	GetRepoList() []*RepoConfiguration
	GetRepoClient(repoName string) (RepoInterface, error)
}

func NewClient

func NewClient(dir string) (Interface, error)

type RepoConfiguration

type RepoConfiguration struct {
	Name           string `yaml:"name"`
	Url            string `yaml:"url"`
	DefaultChannel string `yaml:"defaultChannel"`
}

type RepoInterface

type RepoInterface interface {
	Setup(rootVersion int64, rootSha512 string) error
	UpdateChannel(group, channel string) error
	UseChannelReleaseBinDir(group, channel, shell string, opts repo.UseSourceOptions) (string, error)
	ExecChannelReleaseBin(group, channel, optionalBinName string, args []string) error
	GetChannelRelease(group, channel string) (string, error)
	GetChannelReleaseDir(group, channel string) (string, error)
	GetChannelReleaseBinDir(group, channel string) (string, error)
	GetChannelReleaseBinPath(group, channel, optionalBinName string) (string, error)
	CleanReleases() error
}

type RepositoryNotInitializedError

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

func (*RepositoryNotInitializedError) Error

Jump to

Keyboard shortcuts

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