Documentation ¶
Index ¶
- type FileSummer
- type Filter
- type PivnetClient
- type ProductFileClient
- func (c *ProductFileClient) AddToFileGroup(productSlug string, fileGroupID int, productFileID int) error
- func (c *ProductFileClient) AddToRelease(productSlug string, releaseVersion string, productFileID int) error
- func (c *ProductFileClient) Create(config pivnet.CreateProductFileConfig) error
- func (c *ProductFileClient) Delete(productSlug string, productFileID int) error
- func (c *ProductFileClient) Download(productSlug string, releaseVersion string, globs []string, ...) error
- func (c *ProductFileClient) Get(productSlug string, releaseVersion string, productFileID int) error
- func (c *ProductFileClient) List(productSlug string, releaseVersion string) error
- func (c *ProductFileClient) RemoveFromFileGroup(productSlug string, fileGroupID int, productFileID int) error
- func (c *ProductFileClient) RemoveFromRelease(productSlug string, releaseVersion string, productFileID int) error
- func (c *ProductFileClient) Update(productFileID int, productSlug string, name *string, fileVersion *string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSummer ¶ added in v0.0.53
type PivnetClient ¶
type PivnetClient interface { ReleaseForVersion(productSlug string, releaseVersion string) (pivnet.Release, error) ProductFiles(productSlug string) ([]pivnet.ProductFile, error) ProductFilesForRelease(productSlug string, releaseID int) ([]pivnet.ProductFile, error) ProductFile(productSlug string, productFileID int) (pivnet.ProductFile, error) ProductFileForRelease(productSlug string, releaseID int, productFileID int) (pivnet.ProductFile, error) CreateProductFile(config pivnet.CreateProductFileConfig) (pivnet.ProductFile, error) UpdateProductFile(productSlug string, productFile pivnet.ProductFile) (pivnet.ProductFile, error) AddProductFileToRelease(productSlug string, releaseID int, productFileID int) error RemoveProductFileFromRelease(productSlug string, releaseID int, productFileID int) error AddProductFileToFileGroup(productSlug string, fileGroupID int, productFileID int) error RemoveProductFileFromFileGroup(productSlug string, fileGroupID int, productFileID int) error DeleteProductFile(productSlug string, productFileID int) (pivnet.ProductFile, error) AcceptEULA(productSlug string, releaseID int) error DownloadProductFile(location *download.FileInfo, productSlug string, releaseID int, productFileID int, progressWriter io.Writer) error }
type ProductFileClient ¶
type ProductFileClient struct {
// contains filtered or unexported fields
}
func NewProductFileClient ¶
func NewProductFileClient( pivnetClient PivnetClient, sha256FileSummer FileSummer, md5FileSummer FileSummer, eh errorhandler.ErrorHandler, format string, outputWriter io.Writer, logWriter io.Writer, printer printer.Printer, l logger.Logger, filter Filter, ) *ProductFileClient
func (*ProductFileClient) AddToFileGroup ¶
func (c *ProductFileClient) AddToFileGroup( productSlug string, fileGroupID int, productFileID int, ) error
func (*ProductFileClient) AddToRelease ¶
func (c *ProductFileClient) AddToRelease( productSlug string, releaseVersion string, productFileID int, ) error
func (*ProductFileClient) Create ¶
func (c *ProductFileClient) Create(config pivnet.CreateProductFileConfig) error
func (*ProductFileClient) Delete ¶
func (c *ProductFileClient) Delete(productSlug string, productFileID int) error
func (*ProductFileClient) Get ¶
func (c *ProductFileClient) Get( productSlug string, releaseVersion string, productFileID int, ) error
func (*ProductFileClient) List ¶
func (c *ProductFileClient) List(productSlug string, releaseVersion string) error
func (*ProductFileClient) RemoveFromFileGroup ¶
func (c *ProductFileClient) RemoveFromFileGroup( productSlug string, fileGroupID int, productFileID int, ) error
func (*ProductFileClient) RemoveFromRelease ¶
func (c *ProductFileClient) RemoveFromRelease( productSlug string, releaseVersion string, productFileID int, ) error
Click to show internal directories.
Click to hide internal directories.