Documentation ¶
Index ¶
- type PivnetClient
- type UserGroupClient
- func (c *UserGroupClient) AddToRelease(productSlug string, releaseVersion string, userGroupID int) error
- func (c *UserGroupClient) AddUserGroupMember(userGroupID int, memberEmailAddress string, admin bool) error
- func (c *UserGroupClient) Create(name string, description string, members []string) error
- func (c *UserGroupClient) Delete(userGroupID int) error
- func (c *UserGroupClient) Get(userGroupID int) error
- func (c *UserGroupClient) List(productSlug string, releaseVersion string) error
- func (c *UserGroupClient) RemoveFromRelease(productSlug string, releaseVersion string, userGroupID int) error
- func (c *UserGroupClient) RemoveUserGroupMember(userGroupID int, memberEmailAddress string) error
- func (c *UserGroupClient) Update(userGroupID int, name *string, description *string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PivnetClient ¶
type PivnetClient interface { ReleaseForVersion(productSlug string, releaseVersion string) (pivnet.Release, error) UserGroups() ([]pivnet.UserGroup, error) UserGroupsForRelease(productSlug string, releaseID int) ([]pivnet.UserGroup, error) UserGroup(userGroupID int) (pivnet.UserGroup, error) CreateUserGroup(name string, description string, members []string) (pivnet.UserGroup, error) UpdateUserGroup(userGroup pivnet.UserGroup) (pivnet.UserGroup, error) DeleteUserGroup(userGroupID int) error AddUserGroup(productSlug string, releaseID int, userGroupID int) error RemoveUserGroup(productSlug string, releaseID int, userGroupID int) error AddMemberToGroup(userGroupID int, emailAddress string, admin bool) (pivnet.UserGroup, error) RemoveMemberFromGroup(userGroupID int, emailAddress string) (pivnet.UserGroup, error) }
type UserGroupClient ¶
type UserGroupClient struct {
// contains filtered or unexported fields
}
func NewUserGroupClient ¶
func NewUserGroupClient( pivnetClient PivnetClient, eh errorhandler.ErrorHandler, format string, outputWriter io.Writer, printer printer.Printer, ) *UserGroupClient
func (*UserGroupClient) AddToRelease ¶
func (c *UserGroupClient) AddToRelease( productSlug string, releaseVersion string, userGroupID int, ) error
func (*UserGroupClient) AddUserGroupMember ¶
func (c *UserGroupClient) AddUserGroupMember( userGroupID int, memberEmailAddress string, admin bool, ) error
func (*UserGroupClient) Create ¶
func (c *UserGroupClient) Create( name string, description string, members []string, ) error
func (*UserGroupClient) Delete ¶
func (c *UserGroupClient) Delete(userGroupID int) error
func (*UserGroupClient) Get ¶
func (c *UserGroupClient) Get(userGroupID int) error
func (*UserGroupClient) List ¶
func (c *UserGroupClient) List(productSlug string, releaseVersion string) error
func (*UserGroupClient) RemoveFromRelease ¶
func (c *UserGroupClient) RemoveFromRelease( productSlug string, releaseVersion string, userGroupID int, ) error
func (*UserGroupClient) RemoveUserGroupMember ¶
func (c *UserGroupClient) RemoveUserGroupMember( userGroupID int, memberEmailAddress string, ) error
Click to show internal directories.
Click to hide internal directories.