product

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PivnetClient

type PivnetClient interface {
	Products() ([]pivnet.Product, error)
	FindProductForSlug(productSlug string) (pivnet.Product, error)
	SlugAlias(productSlug string) (pivnet.SlugAliasResponse, error)
}

type ProductClient

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

func NewProductClient

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

func (*ProductClient) Get

func (c *ProductClient) Get(productSlug string) error

func (*ProductClient) List

func (c *ProductClient) List() error

func (*ProductClient) SlugAlias added in v0.0.69

func (c *ProductClient) SlugAlias(productSlug 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