gp

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 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(token pivnet.AccessTokenService, config pivnet.ClientConfig, logger logger.Logger) *Client

func (Client) AcceptEULA

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

func (Client) AddArtifactReference

func (c Client) AddArtifactReference(productSlug string, releaseID int, artifactReferenceID int) error

func (Client) AddFileGroup

func (c Client) AddFileGroup(productSlug string, releaseID int, fileGroupID int) error

func (Client) AddProductFile

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

func (Client) AddReleaseDependency

func (c Client) AddReleaseDependency(productSlug string, releaseID int, dependentReleaseID int) error

func (Client) AddReleaseUpgradePath

func (c Client) AddReleaseUpgradePath(productSlug string, releaseID int, previousReleaseID int) error

func (Client) AddToFileGroup

func (c Client) AddToFileGroup(productSlug string, fileGroupID int, productFileID int) error

func (Client) AddUserGroup

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

func (Client) ArtifactReferences

func (c Client) ArtifactReferences(productSlug string) ([]pivnet.ArtifactReference, error)

func (Client) ArtifactReferencesForRelease

func (c Client) ArtifactReferencesForRelease(productSlug string, releaseID int) ([]pivnet.ArtifactReference, error)

func (Client) CreateArtifactReference

func (c Client) CreateArtifactReference(config pivnet.CreateArtifactReferenceConfig) (pivnet.ArtifactReference, error)

func (Client) CreateDependencySpecifier

func (c Client) CreateDependencySpecifier(productSlug string, releaseID int, dependentProductSlug string, specifier string) (pivnet.DependencySpecifier, error)

func (Client) CreateFileGroup

func (c Client) CreateFileGroup(config pivnet.CreateFileGroupConfig) (pivnet.FileGroup, error)

func (Client) CreateProductFile

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

func (Client) CreateRelease

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

func (Client) CreateRequest

func (c Client) CreateRequest(method string, url string, body io.Reader) (*http.Request, error)

func (Client) CreateUpgradePathSpecifier

func (c Client) CreateUpgradePathSpecifier(productSlug string, releaseID int, specifier string) (pivnet.UpgradePathSpecifier, error)

func (Client) DeleteArtifactReference

func (c Client) DeleteArtifactReference(productSlug string, artifactReferenceID int) (pivnet.ArtifactReference, error)

func (Client) DeleteProductFile

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

func (Client) DeleteRelease

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

func (Client) DependencySpecifiers

func (c Client) DependencySpecifiers(productSlug string, releaseID int) ([]pivnet.DependencySpecifier, error)

func (Client) DownloadProductFile

func (c Client) DownloadProductFile(writer *download.FileInfo, productSlug string, releaseID int, productFileID int, progressWriter io.Writer) error

func (Client) EULAs

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

func (Client) FileGroupsForRelease

func (c Client) FileGroupsForRelease(productSlug string, releaseID int) ([]pivnet.FileGroup, error)

func (Client) FindProductForSlug

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

func (Client) FindRelease added in v3.0.2

func (c Client) FindRelease(productSlug string, releaseID int) (pivnet.Release, error)

func (Client) GetArtifactReference

func (c Client) GetArtifactReference(productSlug string, artifactReferenceID int) (pivnet.ArtifactReference, error)

func (Client) GetFederationToken

func (c Client) GetFederationToken(productSlug string) (pivnet.FederationToken, error)

func (Client) GetRelease

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

func (Client) ProductFile

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

func (Client) ProductFileForRelease

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

func (Client) ProductFiles

func (c Client) ProductFiles(productSlug string) ([]pivnet.ProductFile, error)

func (Client) ProductFilesForRelease

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

func (Client) ReleaseDependencies

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

func (Client) ReleaseTypes

func (c Client) ReleaseTypes() ([]pivnet.ReleaseType, error)

func (Client) ReleaseUpgradePaths

func (c Client) ReleaseUpgradePaths(productSlug string, releaseID int) ([]pivnet.ReleaseUpgradePath, error)

func (Client) ReleasesForProductSlug

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

func (Client) S3PrefixForProductSlug

func (c Client) S3PrefixForProductSlug(productSlug string) (string, error)

func (Client) UpdateRelease

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

func (Client) UpgradePathSpecifiers

func (c Client) UpgradePathSpecifiers(productSlug string, releaseID int) ([]pivnet.UpgradePathSpecifier, error)

func (Client) UserGroups

func (c Client) UserGroups(productSlug string, releaseID int) ([]pivnet.UserGroup, error)

Jump to

Keyboard shortcuts

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