repo

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChannelNotFoundLocallyErr

func NewChannelNotFoundLocallyErr(repoName, group, channel string) error

func NewChannelReleaseNotFoundLocallyErr

func NewChannelReleaseNotFoundLocallyErr(repoName, group, channel, release string) error

func NewChannelReleaseSeveralFilesFoundErr

func NewChannelReleaseSeveralFilesFoundErr(repoName, group, channel, release string, names []string) error

Types

type ChannelNotFoundLocallyErr

type ChannelNotFoundLocallyErr struct {
	RepoName string
	Group    string
	Channel  string
}

func (ChannelNotFoundLocallyErr) Error

type ChannelReleaseBinSeveralFilesFoundErr

type ChannelReleaseBinSeveralFilesFoundErr struct {
	RepoName string
	Release  string
	Group    string
	Channel  string
	Names    []string
}

func (ChannelReleaseBinSeveralFilesFoundErr) Error

type ChannelReleaseNotFoundLocallyErr

type ChannelReleaseNotFoundLocallyErr struct {
	RepoName string
	Release  string
	Group    string
	Channel  string
}

func (ChannelReleaseNotFoundLocallyErr) Error

type Client

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

func NewClient

func NewClient(repoName, dir, repoUrl, locksPath, tmpDir, logsDir string) (Client, error)

func (Client) ExecChannelReleaseBin

func (c Client) ExecChannelReleaseBin(group, channel string, optionalBinName string, args []string) error

func (Client) GetChannelRelease added in v0.1.1

func (c Client) GetChannelRelease(group, channel string) (string, error)

func (Client) GetChannelReleaseBinDir

func (c Client) GetChannelReleaseBinDir(group, channel string) (dir string, err error)

func (Client) GetChannelReleaseBinPath added in v0.1.1

func (c Client) GetChannelReleaseBinPath(group, channel, optionalBinName string) (path string, err error)

func (Client) GetChannelReleaseDir

func (c Client) GetChannelReleaseDir(group, channel string) (dir string, err error)

func (Client) Setup

func (c Client) Setup(rootVersion int64, rootSha512 string) error

func (Client) UpdateChannel

func (c Client) UpdateChannel(group, channel string) error

func (Client) UseChannelReleaseBinDir

func (c Client) UseChannelReleaseBinDir(group, channel, shell string, opts UseSourceOptions) (string, error)

type TufInterface

type TufInterface interface {
	Setup(rootVersion int64, rootSha512 string) error
	Update() error
	DownloadFile(targetName string, dest string, destMode os.FileMode) error
	GetTargets() (data.TargetFiles, error)
}

type UseSourceOptions added in v0.1.1

type UseSourceOptions struct {
	NoSelfUpdate bool
}

Jump to

Keyboard shortcuts

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