filegroup

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: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileGroupClient

type FileGroupClient struct {
	// contains filtered or unexported fields
}

func NewFileGroupClient

func NewFileGroupClient(
	pivnetClient PivnetClient,
	eh errorhandler.ErrorHandler,
	format string,
	outputWriter io.Writer,
	printer printer.Printer,
) *FileGroupClient

func (*FileGroupClient) AddToRelease

func (c *FileGroupClient) AddToRelease(
	productSlug string,
	fileGroupID int,
	releaseVersion string,
) error

func (*FileGroupClient) Create

func (c *FileGroupClient) Create(productSlug string, name string) error

func (*FileGroupClient) Delete

func (c *FileGroupClient) Delete(productSlug string, fileGroupID int) error

func (*FileGroupClient) Get

func (c *FileGroupClient) Get(productSlug string, fileGroupID int) error

func (*FileGroupClient) List

func (c *FileGroupClient) List(productSlug string, releaseVersion string) error

func (*FileGroupClient) RemoveFromRelease

func (c *FileGroupClient) RemoveFromRelease(
	productSlug string,
	fileGroupID int,
	releaseVersion string,
) error

func (*FileGroupClient) Update

func (c *FileGroupClient) Update(
	productSlug string,
	fileGroupID int,
	name *string,
) error

type PivnetClient

type PivnetClient interface {
	FileGroups(productSlug string) ([]pivnet.FileGroup, error)
	FileGroupsForRelease(productSlug string, releaseID int) ([]pivnet.FileGroup, error)
	ReleaseForVersion(productSlug string, releaseVersion string) (pivnet.Release, error)
	FileGroup(productSlug string, fileGroupID int) (pivnet.FileGroup, error)
	CreateFileGroup(productSlug string, name string) (pivnet.FileGroup, error)
	UpdateFileGroup(productSlug string, fileGroup pivnet.FileGroup) (pivnet.FileGroup, error)
	DeleteFileGroup(productSlug string, fileGroupID int) (pivnet.FileGroup, error)
	AddFileGroupToRelease(productSlug string, fileGroupID int, releaseID int) error
	RemoveFileGroupFromRelease(productSlug string, fileGroupID int, releaseID int) 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