Documentation
¶
Index ¶
- func AddCommand(cmd *cobra.Command, o *cli.RootOptions)
- func CreateCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- func DeleteCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- func GetAddonsCmd(cmd *cobra.Command, opt *cli.RootOptions) *cobra.Command
- func GetCmd(cmd *cobra.Command, opt *cli.RootOptions) *cobra.Command
- func GetEventsCmd(cmd *cobra.Command, opt *cli.RootOptions) *cobra.Command
- func OutputTable(out io.Writer, users []*dashv1alpha1.User)
- func OutputWideTable(out io.Writer, users []*dashv1alpha1.User)
- func UpdateAddonCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- func UpdateCmd(cmd *cobra.Command, o *cli.RootOptions) *cobra.Command
- func UpdateDeletePolicyCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- func UpdateDisplayNameCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- func UpdateRoleCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command
- type CreateOption
- func (o *CreateOption) Complete(cmd *cobra.Command, args []string) error
- func (o *CreateOption) CreateUserWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *CreateOption) CreateUserWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *CreateOption) RunE(cmd *cobra.Command, args []string) error
- func (o *CreateOption) Validate(cmd *cobra.Command, args []string) error
- type DeleteOption
- func (o *DeleteOption) Complete(cmd *cobra.Command, args []string) error
- func (o *DeleteOption) DeleteUserWithDashClient(ctx context.Context, userName string) error
- func (o *DeleteOption) DeleteUserWithKubeClient(ctx context.Context, userName string) error
- func (o *DeleteOption) RunE(cmd *cobra.Command, args []string) error
- func (o *DeleteOption) Validate(cmd *cobra.Command, args []string) error
- type GetAddonsOption
- func (o *GetAddonsOption) ApplyFilters(tmpls []*dashv1alpha1.Template) []*dashv1alpha1.Template
- func (o *GetAddonsOption) Complete(cmd *cobra.Command, args []string) error
- func (o *GetAddonsOption) ListUserAddonsByKubeClient(ctx context.Context, withRaw bool) ([]*dashv1alpha1.Template, error)
- func (o *GetAddonsOption) ListUserAddonsWithDashClient(ctx context.Context, withRaw bool) ([]*dashv1alpha1.Template, error)
- func (o *GetAddonsOption) OutputTable(w io.Writer, tmpls []*dashv1alpha1.Template)
- func (o *GetAddonsOption) OutputYAML(w io.Writer, tmpls []*dashv1alpha1.Template)
- func (o *GetAddonsOption) RunE(cmd *cobra.Command, args []string) error
- func (o *GetAddonsOption) Validate(cmd *cobra.Command, args []string) error
- type GetEventsOption
- func (o *GetEventsOption) Complete(cmd *cobra.Command, args []string) error
- func (o *GetEventsOption) GetEventsByKubeClient(ctx context.Context) ([]*dashv1alpha1.Event, error)
- func (o *GetEventsOption) GetEventsWithDashClient(ctx context.Context) ([]*dashv1alpha1.Event, error)
- func (o *GetEventsOption) OutputTable(w io.Writer, events []*dashv1alpha1.Event)
- func (o *GetEventsOption) RunE(cmd *cobra.Command, args []string) error
- func (o *GetEventsOption) Validate(cmd *cobra.Command, args []string) error
- type GetOption
- func (o *GetOption) ApplyFilters(users []*dashv1alpha1.User) []*dashv1alpha1.User
- func (o *GetOption) Complete(cmd *cobra.Command, args []string) error
- func (o *GetOption) GetUserWithDashClient(ctx context.Context, userName string) (*dashv1alpha1.User, error)
- func (o *GetOption) ListUsersByKubeClient(ctx context.Context) ([]*dashv1alpha1.User, error)
- func (o *GetOption) ListUsersWithDashClient(ctx context.Context) ([]*dashv1alpha1.User, error)
- func (o *GetOption) OutputYAML(w io.Writer, objs []*dashv1alpha1.User)
- func (o *GetOption) RunE(cmd *cobra.Command, args []string) error
- func (o *GetOption) Validate(cmd *cobra.Command, args []string) error
- type UpdateAddonOption
- func (o *UpdateAddonOption) Complete(cmd *cobra.Command, args []string) error
- func (o *UpdateAddonOption) GetUserWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateAddonOption) GetUserWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateAddonOption) RunE(cmd *cobra.Command, args []string) error
- func (o *UpdateAddonOption) UpdateUserWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateAddonOption) UpdateUserWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateAddonOption) Validate(cmd *cobra.Command, args []string) error
- type UpdateDeletePolicyOption
- func (o *UpdateDeletePolicyOption) Complete(cmd *cobra.Command, args []string) error
- func (o *UpdateDeletePolicyOption) RunE(cmd *cobra.Command, args []string) error
- func (o *UpdateDeletePolicyOption) UpdateUserDeletePolicyWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateDeletePolicyOption) UpdateUserDeletePolicyWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateDeletePolicyOption) Validate(cmd *cobra.Command, args []string) error
- type UpdateDisplayNameOption
- func (o *UpdateDisplayNameOption) Complete(cmd *cobra.Command, args []string) error
- func (o *UpdateDisplayNameOption) GetUserWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateDisplayNameOption) GetUserWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateDisplayNameOption) RunE(cmd *cobra.Command, args []string) error
- func (o *UpdateDisplayNameOption) UpdateUserDisplayNameWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateDisplayNameOption) UpdateUserDisplayNameWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateDisplayNameOption) Validate(cmd *cobra.Command, args []string) error
- type UpdateRoleOption
- func (o *UpdateRoleOption) Complete(cmd *cobra.Command, args []string) error
- func (o *UpdateRoleOption) GetUserWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateRoleOption) GetUserWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateRoleOption) RunE(cmd *cobra.Command, args []string) error
- func (o *UpdateRoleOption) UpdateUserRoleWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateRoleOption) UpdateUserRoleWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
- func (o *UpdateRoleOption) Validate(cmd *cobra.Command, args []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommand ¶
func AddCommand(cmd *cobra.Command, o *cli.RootOptions)
func GetAddonsCmd ¶
func GetEventsCmd ¶
func OutputTable ¶
func OutputTable(out io.Writer, users []*dashv1alpha1.User)
func OutputWideTable ¶
func OutputWideTable(out io.Writer, users []*dashv1alpha1.User)
func UpdateAddonCmd ¶
func UpdateDeletePolicyCmd ¶
func UpdateDisplayNameCmd ¶
func UpdateRoleCmd ¶
Types ¶
type CreateOption ¶ added in v0.8.0
type CreateOption struct {
*cli.RootOptions
UserName string
DisplayName string
Roles []string
AuthType string
PrivilegedRole bool
Addons []string
Force bool
// contains filtered or unexported fields
}
func (*CreateOption) Complete ¶ added in v0.8.0
func (o *CreateOption) Complete(cmd *cobra.Command, args []string) error
func (*CreateOption) CreateUserWithDashClient ¶
func (o *CreateOption) CreateUserWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
func (*CreateOption) CreateUserWithKubeClient ¶
func (o *CreateOption) CreateUserWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
type DeleteOption ¶ added in v0.8.0
type DeleteOption struct {
*cli.RootOptions
UserNames []string
Force bool
}
func (*DeleteOption) Complete ¶ added in v0.8.0
func (o *DeleteOption) Complete(cmd *cobra.Command, args []string) error
func (*DeleteOption) DeleteUserWithDashClient ¶
func (o *DeleteOption) DeleteUserWithDashClient(ctx context.Context, userName string) error
func (*DeleteOption) DeleteUserWithKubeClient ¶
func (o *DeleteOption) DeleteUserWithKubeClient(ctx context.Context, userName string) error
type GetAddonsOption ¶
type GetAddonsOption struct {
*cli.RootOptions
AddonNames []string
Filter []string
OutputFormat string
// contains filtered or unexported fields
}
func (*GetAddonsOption) ApplyFilters ¶
func (o *GetAddonsOption) ApplyFilters(tmpls []*dashv1alpha1.Template) []*dashv1alpha1.Template
func (*GetAddonsOption) Complete ¶
func (o *GetAddonsOption) Complete(cmd *cobra.Command, args []string) error
func (*GetAddonsOption) ListUserAddonsByKubeClient ¶
func (o *GetAddonsOption) ListUserAddonsByKubeClient(ctx context.Context, withRaw bool) ([]*dashv1alpha1.Template, error)
func (*GetAddonsOption) ListUserAddonsWithDashClient ¶
func (o *GetAddonsOption) ListUserAddonsWithDashClient(ctx context.Context, withRaw bool) ([]*dashv1alpha1.Template, error)
func (*GetAddonsOption) OutputTable ¶
func (o *GetAddonsOption) OutputTable(w io.Writer, tmpls []*dashv1alpha1.Template)
func (*GetAddonsOption) OutputYAML ¶
func (o *GetAddonsOption) OutputYAML(w io.Writer, tmpls []*dashv1alpha1.Template)
type GetEventsOption ¶
type GetEventsOption struct {
*cli.RootOptions
UserName string
}
func (*GetEventsOption) Complete ¶
func (o *GetEventsOption) Complete(cmd *cobra.Command, args []string) error
func (*GetEventsOption) GetEventsByKubeClient ¶
func (o *GetEventsOption) GetEventsByKubeClient(ctx context.Context) ([]*dashv1alpha1.Event, error)
func (*GetEventsOption) GetEventsWithDashClient ¶
func (o *GetEventsOption) GetEventsWithDashClient(ctx context.Context) ([]*dashv1alpha1.Event, error)
func (*GetEventsOption) OutputTable ¶
func (o *GetEventsOption) OutputTable(w io.Writer, events []*dashv1alpha1.Event)
type GetOption ¶ added in v0.8.0
type GetOption struct {
*cli.RootOptions
UserNames []string
Filter []string
OutputFormat string
// contains filtered or unexported fields
}
func (*GetOption) ApplyFilters ¶
func (o *GetOption) ApplyFilters(users []*dashv1alpha1.User) []*dashv1alpha1.User
func (*GetOption) GetUserWithDashClient ¶
func (*GetOption) ListUsersByKubeClient ¶
func (*GetOption) ListUsersWithDashClient ¶
func (*GetOption) OutputYAML ¶
func (o *GetOption) OutputYAML(w io.Writer, objs []*dashv1alpha1.User)
type UpdateAddonOption ¶
type UpdateAddonOption struct {
*cli.RootOptions
UserName string
Addons []string
Force bool
// contains filtered or unexported fields
}
func (*UpdateAddonOption) Complete ¶
func (o *UpdateAddonOption) Complete(cmd *cobra.Command, args []string) error
func (*UpdateAddonOption) GetUserWithDashClient ¶
func (o *UpdateAddonOption) GetUserWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
func (*UpdateAddonOption) GetUserWithKubeClient ¶
func (o *UpdateAddonOption) GetUserWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
func (*UpdateAddonOption) RunE ¶
func (o *UpdateAddonOption) RunE(cmd *cobra.Command, args []string) error
func (*UpdateAddonOption) UpdateUserWithDashClient ¶
func (o *UpdateAddonOption) UpdateUserWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
func (*UpdateAddonOption) UpdateUserWithKubeClient ¶
func (o *UpdateAddonOption) UpdateUserWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
type UpdateDeletePolicyOption ¶
type UpdateDeletePolicyOption struct {
*cli.RootOptions
UserName string
DeletePolicy string
}
func (*UpdateDeletePolicyOption) Complete ¶
func (o *UpdateDeletePolicyOption) Complete(cmd *cobra.Command, args []string) error
func (*UpdateDeletePolicyOption) RunE ¶
func (o *UpdateDeletePolicyOption) RunE(cmd *cobra.Command, args []string) error
func (*UpdateDeletePolicyOption) UpdateUserDeletePolicyWithDashClient ¶
func (o *UpdateDeletePolicyOption) UpdateUserDeletePolicyWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
func (*UpdateDeletePolicyOption) UpdateUserDeletePolicyWithKubeClient ¶
func (o *UpdateDeletePolicyOption) UpdateUserDeletePolicyWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
type UpdateDisplayNameOption ¶
type UpdateDisplayNameOption struct {
*cli.RootOptions
UserName string
DisplayName string
Force bool
}
func (*UpdateDisplayNameOption) Complete ¶
func (o *UpdateDisplayNameOption) Complete(cmd *cobra.Command, args []string) error
func (*UpdateDisplayNameOption) GetUserWithDashClient ¶
func (o *UpdateDisplayNameOption) GetUserWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
func (*UpdateDisplayNameOption) GetUserWithKubeClient ¶
func (o *UpdateDisplayNameOption) GetUserWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
func (*UpdateDisplayNameOption) RunE ¶
func (o *UpdateDisplayNameOption) RunE(cmd *cobra.Command, args []string) error
func (*UpdateDisplayNameOption) UpdateUserDisplayNameWithDashClient ¶
func (o *UpdateDisplayNameOption) UpdateUserDisplayNameWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
func (*UpdateDisplayNameOption) UpdateUserDisplayNameWithKubeClient ¶
func (o *UpdateDisplayNameOption) UpdateUserDisplayNameWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
type UpdateRoleOption ¶
type UpdateRoleOption struct {
*cli.RootOptions
UserName string
Roles []string
PrivilegedRole bool
Force bool
}
func (*UpdateRoleOption) Complete ¶
func (o *UpdateRoleOption) Complete(cmd *cobra.Command, args []string) error
func (*UpdateRoleOption) GetUserWithDashClient ¶
func (o *UpdateRoleOption) GetUserWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
func (*UpdateRoleOption) GetUserWithKubeClient ¶
func (o *UpdateRoleOption) GetUserWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
func (*UpdateRoleOption) RunE ¶
func (o *UpdateRoleOption) RunE(cmd *cobra.Command, args []string) error
func (*UpdateRoleOption) UpdateUserRoleWithDashClient ¶
func (o *UpdateRoleOption) UpdateUserRoleWithDashClient(ctx context.Context) (*dashv1alpha1.User, error)
func (*UpdateRoleOption) UpdateUserRoleWithKubeClient ¶
func (o *UpdateRoleOption) UpdateUserRoleWithKubeClient(ctx context.Context) (*dashv1alpha1.User, error)
Click to show internal directories.
Click to hide internal directories.