productfile

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2016 License: Apache-2.0 Imports: 12 Imported by: 2

Documentation

Index

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 (*ProductFileClient) Delete

func (c *ProductFileClient) Delete(productSlug string, productFileID int) error

func (*ProductFileClient) Download

func (c *ProductFileClient) Download(
	productSlug string,
	releaseVersion string,
	globs []string,
	productFileIDs []int,
	downloadDir string,
	acceptEULA bool,
) 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

func (*ProductFileClient) Update

func (c *ProductFileClient) Update(
	productFileID int,
	productSlug string,
	name *string,
	fileType *string,
	fileVersion *string,
	md5 *string,
	description *string,
) 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

Jump to

Keyboard shortcuts

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