usergroup

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

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

func (*UserGroupClient) Update

func (c *UserGroupClient) Update(
	userGroupID int,
	name *string,
	description *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