Documentation ¶
Overview ¶
Package user provides functions to manage users on onex cloud platform.
Index ¶
- func NewCmdCreate(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdDelete(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdGet(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdList(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdUpdate(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- func NewCmdUser(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command
- type CreateOptions
- type DeleteOptions
- type GetOptions
- type ListOptions
- type UpdateOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdCreate ¶
NewCmdCreate returns new initialized instance of create sub command.
func NewCmdDelete ¶
NewCmdDelete returns new initialized instance of delete sub command.
func NewCmdList ¶
NewCmdList returns new initialized instance of list sub command.
func NewCmdUpdate ¶
NewCmdUpdate returns new initialized instance of update sub command.
func NewCmdUser ¶
NewCmdUser returns new initialized instance of 'user' sub command.
Types ¶
type CreateOptions ¶
type CreateOptions struct { Email string Nickname string Phone string CreateUserRequest *v1.CreateUserRequest genericclioptions.IOStreams // contains filtered or unexported fields }
CreateOptions is an options struct to support create subcommands.
func NewCreateOptions ¶
func NewCreateOptions(ioStreams genericclioptions.IOStreams) *CreateOptions
NewCreateOptions returns an initialized CreateOptions instance.
func (*CreateOptions) Run ¶
func (o *CreateOptions) Run(args []string) error
Run executes a create subcommand using the specified options.
type DeleteOptions ¶
type DeleteOptions struct { Name string DeleteUserRequest *v1.DeleteUserRequest genericclioptions.IOStreams // contains filtered or unexported fields }
DeleteOptions is an options struct to support delete subcommands.
func NewDeleteOptions ¶
func NewDeleteOptions(ioStreams genericclioptions.IOStreams) *DeleteOptions
NewDeleteOptions returns an initialized DeleteOptions instance.
type GetOptions ¶
type GetOptions struct { Name string GetUserRequest *v1.GetUserRequest genericclioptions.IOStreams // contains filtered or unexported fields }
GetOptions is an options struct to support get subcommands.
func NewGetOptions ¶
func NewGetOptions(ioStreams genericclioptions.IOStreams) *GetOptions
NewGetOptions returns an initialized GetOptions instance.
type ListOptions ¶
type ListOptions struct { Offset int64 Limit int64 ListUserRequest *v1.ListUserRequest genericclioptions.IOStreams // contains filtered or unexported fields }
ListOptions is an options struct to support list subcommands.
func NewListOptions ¶
func NewListOptions(ioStreams genericclioptions.IOStreams) *ListOptions
NewListOptions returns an initialized ListOptions instance.
type UpdateOptions ¶
type UpdateOptions struct { Name string Nickname string Email string Phone string UpdateUserRequest *v1.UpdateUserRequest genericclioptions.IOStreams // contains filtered or unexported fields }
UpdateOptions is an options struct to support update subcommands.
func NewUpdateOptions ¶
func NewUpdateOptions(ioStreams genericclioptions.IOStreams) *UpdateOptions
NewUpdateOptions returns an initialized UpdateOptions instance.