Versions in this module Expand all Collapse all v0 v0.0.32 Oct 17, 2016 v0.0.31 Oct 17, 2016 Changes in this version + const DefaultHost + var ErrShowHelpMessage = errors.New("help command invoked") + var ErrorHandler errorhandler.ErrorHandler + var LogWriter io.Writer + var NewCurlClient = func() CurlClient + var NewEULAClient = func() EULAClient + var NewFileGroupClient = func() FileGroupClient + var NewProductClient = func() ProductClient + var NewProductFileClient = func() ProductFileClient + var NewReleaseClient = func() ReleaseClient + var NewReleaseDependencyClient = func() ReleaseDependencyClient + var NewReleaseTypeClient = func() ReleaseTypeClient + var NewReleaseUpgradePathClient = func() ReleaseUpgradePathClient + var NewUserGroupClient = func() UserGroupClient + var OutputWriter io.Writer + var Printer printer.Printer + func Init() + func NewPivnetClient() *gp.CompositeClient + type AcceptEULACommand struct + ProductSlug string + ReleaseVersion string + func (command *AcceptEULACommand) Execute(args []string) error + type AddFileGroupToReleaseCommand struct + FileGroupID int + ProductSlug string + ReleaseVersion string + func (command *AddFileGroupToReleaseCommand) Execute([]string) error + type AddProductFileCommand struct + FileGroupID *int + ProductFileID int + ProductSlug string + ReleaseVersion *string + func (command *AddProductFileCommand) Execute([]string) error + type AddReleaseDependencyCommand struct + DependentProductSlug string + DependentReleaseVersion string + ProductSlug string + ReleaseVersion string + func (command *AddReleaseDependencyCommand) Execute([]string) error + type AddReleaseUpgradePathCommand struct + PreviousReleaseVersion string + ProductSlug string + ReleaseVersion string + func (command *AddReleaseUpgradePathCommand) Execute([]string) error + type AddUserGroupCommand struct + ProductSlug string + ReleaseVersion string + UserGroupID int + func (command *AddUserGroupCommand) Execute([]string) error + type AddUserGroupMemberCommand struct + Admin bool + MemberEmailAddress string + UserGroupID int + func (command *AddUserGroupMemberCommand) Execute([]string) error + type CreateFileGroupCommand struct + Name string + ProductSlug string + func (command *CreateFileGroupCommand) Execute([]string) error + type CreateProductFileCommand struct + AWSObjectKey string + FileType string + FileVersion string + MD5 string + Name string + ProductSlug string + func (command *CreateProductFileCommand) Execute([]string) error + type CreateReleaseCommand struct + EULASlug string + ProductSlug string + ReleaseType string + ReleaseVersion string + func (command *CreateReleaseCommand) Execute([]string) error + type CreateUserGroupCommand struct + Description string + Members []string + Name string + func (command *CreateUserGroupCommand) Execute([]string) error + type CurlClient interface + MakeRequest func(method string, body string, args []string) error + type CurlCommand struct + Data string + Method string + func (command *CurlCommand) Execute(args []string) error + type DeleteFileGroupCommand struct + FileGroupID int + ProductSlug string + func (command *DeleteFileGroupCommand) Execute([]string) error + type DeleteProductFileCommand struct + ProductFileID int + ProductSlug string + func (command *DeleteProductFileCommand) Execute([]string) error + type DeleteReleaseCommand struct + ProductSlug string + ReleaseVersion string + func (command *DeleteReleaseCommand) Execute([]string) error + type DeleteUserGroupCommand struct + UserGroupID int + func (command *DeleteUserGroupCommand) Execute([]string) error + type DownloadProductFileCommand struct + AcceptEULA bool + Filepath string + ProductFileID int + ProductSlug string + ReleaseVersion string + func (command *DownloadProductFileCommand) Execute([]string) error + type EULAClient interface + AcceptEULA func(productSlug string, releaseVersion string) error + Get func(eulaSlug string) error + List func() error + type EULACommand struct + EULASlug string + func (command *EULACommand) Execute(args []string) error + type EULAsCommand struct + func (command *EULAsCommand) Execute(args []string) error + type FileGroupClient interface + AddToRelease func(productSlug string, productFileID int, releaseVersion string) error + Create func(productSlug string, name string) error + Delete func(productSlug string, productFileID int) error + Get func(productSlug string, productFileID int) error + List func(productSlug string, releaseVersion string) error + RemoveFromRelease func(productSlug string, productFileID int, releaseVersion string) error + Update func(productSlug string, productFileID int, name *string) error + type FileGroupCommand struct + FileGroupID int + ProductSlug string + func (command *FileGroupCommand) Execute([]string) error + type FileGroupsCommand struct + ProductSlug string + ReleaseVersion string + func (command *FileGroupsCommand) Execute([]string) error + type HelpCommand struct + func (command *HelpCommand) Execute(args []string) error + type PivnetCommand struct + APIToken string + AcceptEULA AcceptEULACommand + AddFileGroupToRelease AddFileGroupToReleaseCommand + AddProductFile AddProductFileCommand + AddReleaseDependency AddReleaseDependencyCommand + AddReleaseUpgradePath AddReleaseUpgradePathCommand + AddUserGroup AddUserGroupCommand + AddUserGroupMember AddUserGroupMemberCommand + CreateFileGroup CreateFileGroupCommand + CreateProductFile CreateProductFileCommand + CreateRelease CreateReleaseCommand + CreateUserGroup CreateUserGroupCommand + Curl CurlCommand + DeleteFileGroup DeleteFileGroupCommand + DeleteProductFile DeleteProductFileCommand + DeleteRelease DeleteReleaseCommand + DeleteUserGroup DeleteUserGroupCommand + DownloadProductFile DownloadProductFileCommand + EULA EULACommand + EULAs EULAsCommand + FileGroup FileGroupCommand + FileGroups FileGroupsCommand + Format string + Help HelpCommand + Host string + Logger logger.Logger + Product ProductCommand + ProductFile ProductFileCommand + ProductFiles ProductFilesCommand + Products ProductsCommand + Release ReleaseCommand + ReleaseDependencies ReleaseDependenciesCommand + ReleaseTypes ReleaseTypesCommand + ReleaseUpgradePaths ReleaseUpgradePathsCommand + Releases ReleasesCommand + RemoveFileGroupFromRelease RemoveFileGroupFromReleaseCommand + RemoveProductFile RemoveProductFileCommand + RemoveReleaseDependency RemoveReleaseDependencyCommand + RemoveReleaseUpgradePath RemoveReleaseUpgradePathCommand + RemoveUserGroup RemoveUserGroupCommand + RemoveUserGroupMember RemoveUserGroupMemberCommand + UpdateFileGroup UpdateFileGroupCommand + UpdateProductFile UpdateProductFileCommand + UpdateUserGroup UpdateUserGroupCommand + UserGroup UserGroupCommand + UserGroups UserGroupsCommand + Verbose bool + Version VersionCommand + VersionFunc func() + var Pivnet PivnetCommand + type ProductClient interface + Get func(productSlug string) error + List func() error + type ProductCommand struct + ProductSlug string + func (command *ProductCommand) Execute([]string) error + type ProductFileClient interface + AddToFileGroup func(productSlug string, fileGroupID int, productFileID int) error + AddToRelease func(productSlug string, releaseVersion string, productFileID int) error + Create func(config pivnet.CreateProductFileConfig) error + Delete func(productSlug string, productFileID int) error + Download func(productSlug string, releaseVersion string, productFileID int, filepath string, ...) error + Get func(productSlug string, releaseVersion string, productFileID int) error + List func(productSlug string, releaseVersion string) error + RemoveFromFileGroup func(productSlug string, fileGroupID int, productFileID int) error + RemoveFromRelease func(productSlug string, releaseVersion string, productFileID int) error + Update func(productFileID int, productSlug string, name *string, fileType *string, ...) error + type ProductFileCommand struct + ProductFileID int + ProductSlug string + ReleaseVersion string + func (command *ProductFileCommand) Execute([]string) error + type ProductFilesCommand struct + ProductSlug string + ReleaseVersion string + func (command *ProductFilesCommand) Execute([]string) error + type ProductsCommand struct + func (command *ProductsCommand) Execute([]string) error + type ReleaseClient interface + Create func(productSlug string, releaseVersion string, releaseType string, eulaSlug string) error + Delete func(productSlug string, releaseVersion string) error + Get func(productSlug string, releaseVersion string) error + List func(productSlug string) error + type ReleaseCommand struct + ProductSlug string + ReleaseVersion string + func (command *ReleaseCommand) Execute([]string) error + type ReleaseDependenciesCommand struct + ProductSlug string + ReleaseVersion string + func (command *ReleaseDependenciesCommand) Execute([]string) error + type ReleaseDependencyClient interface + Add func(productSlug string, releaseVersion string, dependentProductSlug string, ...) error + List func(productSlug string, releaseVersion string) error + Remove func(productSlug string, releaseVersion string, dependentProductSlug string, ...) error + type ReleaseTypeClient interface + List func() error + type ReleaseTypesCommand struct + func (command *ReleaseTypesCommand) Execute(args []string) error + type ReleaseUpgradePathClient interface + Add func(productSlug string, releaseVersion string, previousReleaseVersion string) error + List func(productSlug string, releaseVersion string) error + Remove func(productSlug string, releaseVersion string, previousReleaseVersion string) error + type ReleaseUpgradePathsCommand struct + ProductSlug string + ReleaseVersion string + func (command *ReleaseUpgradePathsCommand) Execute([]string) error + type ReleasesCommand struct + ProductSlug string + func (command *ReleasesCommand) Execute([]string) error + type RemoveFileGroupFromReleaseCommand struct + FileGroupID int + ProductSlug string + ReleaseVersion string + func (command *RemoveFileGroupFromReleaseCommand) Execute([]string) error + type RemoveProductFileCommand struct + FileGroupID *int + ProductFileID int + ProductSlug string + ReleaseVersion *string + func (command *RemoveProductFileCommand) Execute([]string) error + type RemoveReleaseDependencyCommand struct + DependentProductSlug string + DependentReleaseVersion string + ProductSlug string + ReleaseVersion string + func (command *RemoveReleaseDependencyCommand) Execute([]string) error + type RemoveReleaseUpgradePathCommand struct + PreviousReleaseVersion string + ProductSlug string + ReleaseVersion string + func (command *RemoveReleaseUpgradePathCommand) Execute([]string) error + type RemoveUserGroupCommand struct + ProductSlug string + ReleaseVersion string + UserGroupID int + func (command *RemoveUserGroupCommand) Execute([]string) error + type RemoveUserGroupMemberCommand struct + MemberEmailAddress string + UserGroupID int + func (command *RemoveUserGroupMemberCommand) Execute([]string) error + type UpdateFileGroupCommand struct + FileGroupID int + Name *string + ProductSlug string + func (command *UpdateFileGroupCommand) Execute([]string) error + type UpdateProductFileCommand struct + Description *string + FileType *string + FileVersion *string + MD5 *string + Name *string + ProductFileID int + ProductSlug string + func (command *UpdateProductFileCommand) Execute([]string) error + type UpdateUserGroupCommand struct + Description *string + Name *string + UserGroupID int + func (command *UpdateUserGroupCommand) Execute([]string) error + type UserGroupClient interface + AddToRelease func(productSlug string, releaseVersion string, userGroupID int) error + AddUserGroupMember func(userGroupID int, memberEmailAddress string, admin bool) error + Create func(name string, description string, members []string) error + Delete func(userGroupID int) error + Get func(userGroupID int) error + List func(productSlug string, releaseVersion string) error + RemoveFromRelease func(productSlug string, releaseVersion string, userGroupID int) error + RemoveUserGroupMember func(userGroupID int, memberEmailAddress string) error + Update func(userGroupID int, name *string, description *string) error + type UserGroupCommand struct + UserGroupID int + func (command *UserGroupCommand) Execute([]string) error + type UserGroupsCommand struct + ProductSlug string + ReleaseVersion string + func (command *UserGroupsCommand) Execute([]string) error + type VersionCommand struct + func (command *VersionCommand) Execute(args []string) error