members

package
v0.0.0-...-4df811a Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMemberRolesFromArgs

func GetMemberRolesFromArgs(
	c client.KeystoneClient,
	roleName string,
	memberIDs []string,
	roles []models.Role,
) (map[string]models.Role, error)

GetMemberRolesFromArgs function uses memberIDs and role names obtained through command line arguments to returns a map of memberIDs and their Role

func GetMemberRolesFromFile

func GetMemberRolesFromFile(
	c client.KeystoneClient,
	filepath string,
	roles []models.Role,
) (map[string]models.Role, error)

GetMemberRolesFromFile function reads the yaml file at `filepath` and return a map of userIDs and their roles

func GetMemberRolesFromPrompt

func GetMemberRolesFromPrompt(
	c client.KeystoneClient,
	memberIDs []string,
	roles []models.Role,
) (map[string]models.Role, error)

GetMemberRolesFromPrompt function uses a propmt to get a map of userIDs and their roles

func SetMemberRole

func SetMemberRole(
	c client.KeystoneClient,
	projectID, memberId, roleName string,
	roles []models.Role,
) error

SetMemberRole function changes the role of a member

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL