Documentation ¶
Index ¶
- 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, fileType *string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶ added in v0.0.35
type Filter interface {
ProductFileKeysByGlobs(productFiles []pivnet.ProductFile, glob []string) ([]pivnet.ProductFile, error)
}
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, releaseID int) (pivnet.ProductFile, error) AcceptEULA(productSlug string, releaseID int) error DownloadProductFile(writer io.Writer, productSlug string, releaseID int, productFileID int) error }
type ProductFileClient ¶
type ProductFileClient struct {
// contains filtered or unexported fields
}
func NewProductFileClient ¶
func NewProductFileClient( pivnetClient PivnetClient, 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
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.