companygroup

package
v0.0.74 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 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 CompanyGroupClient

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

func NewCompanyGroupClient

func NewCompanyGroupClient(
	pivnetClient PivnetClient,
	eh errorhandler.ErrorHandler,
	format string,
	outputWriter io.Writer,
	printer printer.Printer,
) *CompanyGroupClient

func (*CompanyGroupClient) AddMember added in v0.0.68

func (c *CompanyGroupClient) AddMember(companyGroupID int, memberEmail string, isAdmin string) error

func (*CompanyGroupClient) Get added in v0.0.68

func (c *CompanyGroupClient) Get(companyGroupID int) error

func (*CompanyGroupClient) List

func (c *CompanyGroupClient) List() error

func (*CompanyGroupClient) RemoveMember added in v0.0.68

func (c *CompanyGroupClient) RemoveMember(companyGroupID int, memberEmail string) error

type PivnetClient

type PivnetClient interface {
	CompanyGroups() ([]pivnet.CompanyGroup, error)
	CompanyGroup(companyGroupID int) (pivnet.CompanyGroup, error)
	AddCompanyGroupMember(companyGroupID int, emailAddress string, isAdmin string) (pivnet.CompanyGroup, error)
	RemoveCompanyGroupMember(companyGroupID int, emailAddress string) (pivnet.CompanyGroup, 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