productfile

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSummer added in v0.0.53

type FileSummer interface {
	SumFile(filepath string) (string, error)
}

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, 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) Download

func (c *ProductFileClient) Download(
	productSlug string,
	releaseVersion string,
	globs []string,
	productFileIDs []int,
	downloadDir string,
	acceptEULA bool,
	progressWriter io.Writer,
) 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,
	fileVersion *string,
	sha256 *string,
	md5 *string,
	description *string,
	docsURL *string,
	systemRequirements *[]string,
) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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