subscriptiongroup

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

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