Documentation ¶
Index ¶
- func AddSpaceUsers(ctx *clicontext.CommandContext, spaceName, role string, usersToAdd []string) error
- func Approve(ctx *clicontext.CommandContext, lookupUserSignup LookupUserSignup, ...) error
- func Ban(ctx *clicontext.CommandContext, args ...string) error
- func CreateBannedUser(ctx *clicontext.CommandContext, userSignupName, banReason string, ...) error
- func CreateSocialEvent(ctx *clicontext.CommandContext, ...) error
- func Deactivate(ctx *clicontext.CommandContext, args ...string) error
- func Delete(ctx *clicontext.CommandContext, args ...string) error
- func DisableFeature(ctx *clicontext.CommandContext, spaceName, featureToggleName string) error
- func DisableUser(ctx *clicontext.CommandContext, args ...string) error
- func EnableFeature(ctx *clicontext.CommandContext, spaceName, featureToggleName string) error
- func Execute()
- func NewAddSpaceUsersCmd() *cobra.Command
- func NewApproveCmd() *cobra.Command
- func NewBanCmd() *cobra.Command
- func NewCreateSocialEventCmd() *cobra.Command
- func NewDeactivateCmd() *cobra.Command
- func NewDescribeCmd() *cobra.Command
- func NewDisableFeatureCmd() *cobra.Command
- func NewDisableUserCmd() *cobra.Command
- func NewEnableFeatureCmd() *cobra.Command
- func NewGdprDeleteCmd() *cobra.Command
- func NewGetCmd() *cobra.Command
- func NewLogsCmd() *cobra.Command
- func NewPromoteSpaceCmd() *cobra.Command
- func NewPromoteUserCmd() *cobra.Command
- func NewRemoveSpaceUsersCmd() *cobra.Command
- func NewRetargetCmd() *cobra.Command
- func NewRootCmd() *cobra.Command
- func NewStatusCmd() *cobra.Command
- func PromoteSpace(ctx *clicontext.CommandContext, spaceName, targetTier string) error
- func PromoteUser(ctx *clicontext.CommandContext, murName, targetTier string) error
- func RemoveSpaceUsers(ctx *clicontext.CommandContext, spaceName string, usersToRemove []string) error
- func Retarget(ctx *clicontext.CommandContext, spaceName, targetCluster string) error
- func Status(ctx *clicontext.CommandContext) error
- type LookupUserSignup
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, args ...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 NewApproveCmd ¶
func NewCreateSocialEventCmd ¶
func NewDeactivateCmd ¶
func NewDescribeCmd ¶
func NewDisableFeatureCmd ¶
func NewDisableUserCmd ¶
func NewEnableFeatureCmd ¶
func NewGdprDeleteCmd ¶
func NewLogsCmd ¶
func NewPromoteSpaceCmd ¶
func NewPromoteUserCmd ¶
func NewRemoveSpaceUsersCmd ¶
func NewRetargetCmd ¶
func NewRootCmd ¶
func NewStatusCmd ¶
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
Types ¶
type LookupUserSignup ¶
type LookupUserSignup func(configuration.ClusterConfig, runtimeclient.Client) (*toolchainv1alpha1.UserSignup, error)
func ByEmailAddress ¶
func ByEmailAddress(emailAddress string) LookupUserSignup
func ByName ¶
func ByName(name string) LookupUserSignup
Source Files ¶
Click to show internal directories.
Click to hide internal directories.