clientlib

package
v0.0.0-...-545993c Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: GPL-3.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlinkyClient

type BlinkyClient struct {
	URL      string
	Username string
	Password string
}

func New

func New(url, username, password string) BlinkyClient

func (*BlinkyClient) RemovePackage

func (b *BlinkyClient) RemovePackage(repo string, packageName string) error

RemovePackage deletes the specified package from the provided repository.

func (*BlinkyClient) RemovePackages

func (b *BlinkyClient) RemovePackages(repo string, packageNames ...string) error

RemovePackages deletes the specified packages from the provided repository.

func (*BlinkyClient) UploadPackage

func (b *BlinkyClient) UploadPackage(repo, packageFileName string, packageFile, signatureFile io.Reader) error

UploadPackage uploads a package to a repository on a Blinky server. packageFile is required to be non-nil, but if there is no signature file to upload, signatureFile may be nil. packageFileName is used to name the file on the remote server.

func (*BlinkyClient) UploadPackageFile

func (b *BlinkyClient) UploadPackageFile(repo, packageFilepath string) error

UploadPackageFile reads and uploads the provided package file path as well as any matching .sig files.

func (*BlinkyClient) UploadPackageFiles

func (b *BlinkyClient) UploadPackageFiles(repo string, packageFilepaths ...string) error

UploadPackageFiles uploads the provided packages, and any .sig files that match the package filepaths.

Jump to

Keyboard shortcuts

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