Documentation ¶
Index ¶
- type PivnetClient
- type SubscriptionGroupClient
- func (c *SubscriptionGroupClient) AddMember(subscriptionGroupID int, memberEmail string, isAdmin string) error
- func (c *SubscriptionGroupClient) Get(subscriptionGroupID int) error
- func (c *SubscriptionGroupClient) List() error
- func (c *SubscriptionGroupClient) RemoveMember(subscriptionGroupID int, memberEmail string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PivnetClient ¶
type PivnetClient interface { SubscriptionGroups() ([]pivnet.SubscriptionGroup, error) SubscriptionGroup(subscriptionGroupID int) (pivnet.SubscriptionGroup, error) AddSubscriptionGroupMember(subscriptionGroupID int, emailAddress string, isAdmin string) (pivnet.SubscriptionGroup, error) RemoveSubscriptionGroupMember(subscriptionGroupID int, emailAddress string) (pivnet.SubscriptionGroup, error) }
type SubscriptionGroupClient ¶
type SubscriptionGroupClient struct {
// contains filtered or unexported fields
}
func NewSubscriptionGroupClient ¶
func NewSubscriptionGroupClient( pivnetClient PivnetClient, eh errorhandler.ErrorHandler, format string, outputWriter io.Writer, printer printer.Printer, ) *SubscriptionGroupClient
func (*SubscriptionGroupClient) AddMember ¶
func (c *SubscriptionGroupClient) AddMember(subscriptionGroupID int, memberEmail string, isAdmin string) error
func (*SubscriptionGroupClient) Get ¶
func (c *SubscriptionGroupClient) Get(subscriptionGroupID int) error
func (*SubscriptionGroupClient) List ¶
func (c *SubscriptionGroupClient) List() error
func (*SubscriptionGroupClient) RemoveMember ¶
func (c *SubscriptionGroupClient) RemoveMember(subscriptionGroupID int, memberEmail string) error
Click to show internal directories.
Click to hide internal directories.