cmd

package
v0.0.0-...-ace7363 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSpaceUsers

func AddSpaceUsers(ctx *clicontext.CommandContext, spaceName, role string, usersToAdd []string) error

func Approve

func Approve(ctx *clicontext.CommandContext, lookupUserSignup LookupUserSignup, skipPhone bool, targetCluster string) error

func Ban

func Ban(ctx *clicontext.CommandContext, runForm runFormFunc, userSignupName, banReason string) error

func BanMenu

func BanMenu(ctx *clicontext.CommandContext, runForm runFormFunc, cfgMapContent []Menu) (map[string]string, error)

BanMenu displays an interactive menu for selecting banning reasons

func CheckBanned

func CheckBanned(ctx *clicontext.CommandContext, mur string, signup string, email string) error

func CreateBannedUser

func CreateBannedUser(ctx *clicontext.CommandContext, userSignupName, banReason string, confirm func(*toolchainv1alpha1.UserSignup, *toolchainv1alpha1.BannedUser) (bool, error)) error

func CreateSocialEvent

func CreateSocialEvent(ctx *clicontext.CommandContext, startDate, endDate, description, userTier, spaceTier string, maxAttendees int, targetCluster string) error

func Deactivate

func Deactivate(ctx *clicontext.CommandContext, args ...string) error

func Delete

func Delete(ctx *clicontext.CommandContext, args ...string) error

func DisableFeature

func DisableFeature(ctx *clicontext.CommandContext, spaceName, featureToggleName string) error

func DisableUser

func DisableUser(ctx *clicontext.CommandContext, args ...string) error

func EnableFeature

func EnableFeature(ctx *clicontext.CommandContext, spaceName, featureToggleName string) error

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func NewAddSpaceUsersCmd

func NewAddSpaceUsersCmd() *cobra.Command

func NewApproveCmd

func NewApproveCmd() *cobra.Command

func NewBanCmd

func NewBanCmd() *cobra.Command

func NewCheckBannedCommand

func NewCheckBannedCommand() *cobra.Command

func NewCreateSocialEventCmd

func NewCreateSocialEventCmd() *cobra.Command

func NewDeactivateCmd

func NewDeactivateCmd() *cobra.Command

func NewDescribeCmd

func NewDescribeCmd() *cobra.Command

func NewDisableFeatureCmd

func NewDisableFeatureCmd() *cobra.Command

func NewDisableUserCmd

func NewDisableUserCmd() *cobra.Command

func NewEnableFeatureCmd

func NewEnableFeatureCmd() *cobra.Command

func NewGdprDeleteCmd

func NewGdprDeleteCmd() *cobra.Command

func NewGetCmd

func NewGetCmd() *cobra.Command

func NewLogsCmd

func NewLogsCmd() *cobra.Command

func NewPromoteSpaceCmd

func NewPromoteSpaceCmd() *cobra.Command

func NewPromoteUserCmd

func NewPromoteUserCmd() *cobra.Command

func NewRemoveSpaceUsersCmd

func NewRemoveSpaceUsersCmd() *cobra.Command

func NewRetargetCmd

func NewRetargetCmd() *cobra.Command

func NewRootCmd

func NewRootCmd() *cobra.Command

func NewStatusCmd

func NewStatusCmd() *cobra.Command

func NewUnbanCommand

func NewUnbanCommand() *cobra.Command

func PromoteSpace

func PromoteSpace(ctx *clicontext.CommandContext, spaceName, targetTier string) error

func PromoteUser

func PromoteUser(ctx *clicontext.CommandContext, murName, targetTier string) error

func RemoveSpaceUsers

func RemoveSpaceUsers(ctx *clicontext.CommandContext, spaceName string, usersToRemove []string) error

func Retarget

func Retarget(ctx *clicontext.CommandContext, spaceName, targetCluster string) error

func Status

func Status(ctx *clicontext.CommandContext) error

func Unban

func Unban(ctx *clicontext.CommandContext, email string) error

Types

type LookupUserSignup

func ByEmailAddress

func ByEmailAddress(emailAddress string) LookupUserSignup

func ByName

func ByName(name string) LookupUserSignup
type Menu struct {
	Kind        string   `json:"kind"`
	Description string   `json:"description"`
	Options     []string `json:"options"`
}

Menu contains all the fields present in the source JSON file needed to load up options in the interactive menu

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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