gp

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenService

type AccessTokenService interface {
	AccessToken() (string, error)
}

type Client

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

func NewClient

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

func (Client) AcceptEULA

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

func (Client) AddArtifactReferenceToRelease

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

func (Client) AddFileGroupToRelease

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

func (Client) AddMemberToGroup

func (c Client) AddMemberToGroup(userGroupID int, emailAddress string, admin bool) (pivnet.UserGroup, error)

func (Client) AddProductFileToFileGroup

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

func (Client) AddProductFileToRelease

func (c Client) AddProductFileToRelease(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) AddSubscriptionGroupMember

func (c Client) AddSubscriptionGroupMember(subscriptionGroupID int, emailAddress string, isAdmin string) (pivnet.SubscriptionGroup, error)

func (Client) AddUserGroup

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

func (Client) ArtifactReference

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

func (Client) ArtifactReferenceForRelease

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

func (Client) ArtifactReferences

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

func (Client) ArtifactReferencesForDigest

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

func (Client) ArtifactReferencesForRelease

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

func (Client) Auth

func (c Client) Auth() (bool, 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(productSlug string, name string) (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) CreateUserGroup

func (c Client) CreateUserGroup(name string, description string, members []string) (pivnet.UserGroup, error)

func (Client) DeleteArtifactReference

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

func (Client) DeleteDependencySpecifier

func (c Client) DeleteDependencySpecifier(productSlug string, releaseID int, dependencySpecifierID int) error

func (Client) DeleteFileGroup

func (c Client) DeleteFileGroup(productSlug string, fileGroupID int) (pivnet.FileGroup, error)

func (Client) DeleteProductFile

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

func (Client) DeleteRelease

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

func (Client) DeleteUserGroup

func (c Client) DeleteUserGroup(userGroupID int) error

func (Client) DependencySpecifier

func (c Client) DependencySpecifier(productSlug string, releaseID int, dependencySpecifierID int) (pivnet.DependencySpecifier, error)

func (Client) DependencySpecifiers

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

func (Client) DownloadProductFile

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

func (Client) EULA

func (c Client) EULA(eulaSlug string) (pivnet.EULA, error)

func (Client) EULAs

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

func (Client) FileGroup

func (c Client) FileGroup(productSlug string, fileGroupID int) (pivnet.FileGroup, error)

func (Client) FileGroups

func (c Client) FileGroups(productSlug string) ([]pivnet.FileGroup, 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) MakeRequest

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

func (Client) PivnetVersions

func (c Client) PivnetVersions() (pivnet.PivnetVersions, 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) Products

func (c Client) Products() ([]pivnet.Product, error)

func (Client) Release

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

func (Client) ReleaseDependencies

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

func (Client) ReleaseForVersion

func (c Client) ReleaseForVersion(productSlug string, releaseVersion string) (pivnet.Release, 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, params ...pivnet.QueryParameter) ([]pivnet.Release, error)

func (Client) RemoveArtifactReferenceFromRelease

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

func (Client) RemoveFileGroupFromRelease

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

func (Client) RemoveMemberFromGroup

func (c Client) RemoveMemberFromGroup(userGroupID int, emailAddress string) (pivnet.UserGroup, error)

func (Client) RemoveProductFileFromFileGroup

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

func (Client) RemoveProductFileFromRelease

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

func (Client) RemoveReleaseDependency

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

func (Client) RemoveReleaseUpgradePath

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

func (Client) RemoveSubscriptionGroupMember

func (c Client) RemoveSubscriptionGroupMember(subscriptionGroupID int, emailAddress string) (pivnet.SubscriptionGroup, error)

func (Client) RemoveUserGroup

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

func (Client) SlugAlias

func (c Client) SlugAlias(slug string) (pivnet.SlugAliasResponse, error)

func (Client) SubscriptionGroup

func (c Client) SubscriptionGroup(subscriptionGroupID int) (pivnet.SubscriptionGroup, error)

func (Client) SubscriptionGroups

func (c Client) SubscriptionGroups() ([]pivnet.SubscriptionGroup, error)

func (Client) UpdateArtifactReference

func (c Client) UpdateArtifactReference(productSlug string, artifactReference pivnet.ArtifactReference) (pivnet.ArtifactReference, error)

func (Client) UpdateFileGroup

func (c Client) UpdateFileGroup(productSlug string, fileGroup pivnet.FileGroup) (pivnet.FileGroup, error)

func (Client) UpdateProductFile

func (c Client) UpdateProductFile(productSlug string, productFile pivnet.ProductFile) (pivnet.ProductFile, error)

func (Client) UpdateRelease

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

func (Client) UpdateUserGroup

func (c Client) UpdateUserGroup(userGroup pivnet.UserGroup) (pivnet.UserGroup, error)

func (Client) UserGroup

func (c Client) UserGroup(userGroupID int) (pivnet.UserGroup, error)

func (Client) UserGroups

func (c Client) UserGroups() ([]pivnet.UserGroup, error)

func (Client) UserGroupsForRelease

func (c Client) UserGroupsForRelease(productSlug string, releaseID int) ([]pivnet.UserGroup, 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