gp

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2016 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(config pivnet.ClientConfig, logger logger.Logger) *Client

func (Client) AcceptEULA

func (c Client) AcceptEULA(productSlug string, releaseID int) error

func (Client) AddProductFile added in v0.19.0

func (c Client) AddProductFile(productSlug string, releaseID int, productFileID int) error

func (Client) AddUserGroup added in v0.19.0

func (c Client) AddUserGroup(productSlug string, releaseID int, userGroupID int) error

func (Client) CreateProductFile added in v0.19.0

func (c Client) CreateProductFile(config pivnet.CreateProductFileConfig) (pivnet.ProductFile, error)

func (Client) CreateRelease added in v0.19.0

func (c Client) CreateRelease(config pivnet.CreateReleaseConfig) (pivnet.Release, error)

func (Client) EULAs added in v0.19.0

func (c Client) EULAs() ([]pivnet.EULA, error)

func (Client) FindProductForSlug added in v0.19.0

func (c Client) FindProductForSlug(slug string) (pivnet.Product, error)

func (Client) GetProductFile

func (c Client) GetProductFile(productSlug string, releaseID int, productFileID int) (pivnet.ProductFile, error)

func (Client) GetProductFiles

func (c Client) GetProductFiles(productSlug string, releaseID int) ([]pivnet.ProductFile, error)

func (Client) GetRelease

func (c Client) GetRelease(productSlug string, productVersion string) (pivnet.Release, error)

func (Client) MakeRequest

func (c Client) MakeRequest(method string, url string, expectedResponseCode int, body io.Reader, data interface{}) (*http.Response, error)

func (Client) ReleaseDependencies

func (c Client) ReleaseDependencies(productSlug string, releaseID int) ([]pivnet.ReleaseDependency, error)

func (Client) ReleaseTypes

func (c Client) ReleaseTypes() ([]string, error)

func (Client) ReleasesForProductSlug

func (c Client) ReleasesForProductSlug(productSlug string) ([]pivnet.Release, error)

func (Client) UpdateRelease added in v0.19.0

func (c Client) UpdateRelease(productSlug string, release pivnet.Release) (pivnet.Release, error)

type ExtendedClient

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

func NewExtendedClient

func NewExtendedClient(c Client, logger logger.Logger) *ExtendedClient

func (ExtendedClient) ProductVersions added in v0.19.0

func (c ExtendedClient) ProductVersions(productSlug string, releases []pivnet.Release) ([]string, error)

func (ExtendedClient) ReleaseETag

func (c ExtendedClient) ReleaseETag(productSlug string, releaseID int) (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