user

package
v1.0.0-rc6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(cmd *cobra.Command, o *cli.RootOptions)

func CreateCmd added in v0.8.0

func CreateCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command

func DeleteCmd added in v0.8.0

func DeleteCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command

func GetAddonsCmd

func GetAddonsCmd(cmd *cobra.Command, opt *cli.RootOptions) *cobra.Command

func GetCmd added in v0.8.0

func GetCmd(cmd *cobra.Command, opt *cli.RootOptions) *cobra.Command

func GetEventsCmd

func GetEventsCmd(cmd *cobra.Command, opt *cli.RootOptions) *cobra.Command

func OutputTable

func OutputTable(out io.Writer, users []*dashv1alpha1.User)

func OutputWideTable

func OutputWideTable(out io.Writer, users []*dashv1alpha1.User)

func UpdateAddonCmd

func UpdateAddonCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command

func UpdateCmd

func UpdateCmd(cmd *cobra.Command, o *cli.RootOptions) *cobra.Command

func UpdateDisplayNameCmd

func UpdateDisplayNameCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command

func UpdateRoleCmd

func UpdateRoleCmd(cmd *cobra.Command, cliOpt *cli.RootOptions) *cobra.Command

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)

func (*CreateOption) RunE added in v0.8.0

func (o *CreateOption) RunE(cmd *cobra.Command, args []string) error

func (*CreateOption) Validate added in v0.8.0

func (o *CreateOption) Validate(cmd *cobra.Command, args []string) 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

func (*DeleteOption) RunE added in v0.8.0

func (o *DeleteOption) RunE(cmd *cobra.Command, args []string) error

func (*DeleteOption) Validate added in v0.8.0

func (o *DeleteOption) Validate(cmd *cobra.Command, args []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)

func (*GetAddonsOption) RunE

func (o *GetAddonsOption) RunE(cmd *cobra.Command, args []string) error

func (*GetAddonsOption) Validate

func (o *GetAddonsOption) Validate(cmd *cobra.Command, args []string) error

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)

func (*GetEventsOption) RunE

func (o *GetEventsOption) RunE(cmd *cobra.Command, args []string) error

func (*GetEventsOption) Validate

func (o *GetEventsOption) Validate(cmd *cobra.Command, args []string) error

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) Complete added in v0.8.0

func (o *GetOption) Complete(cmd *cobra.Command, args []string) error

func (*GetOption) GetUserWithDashClient

func (o *GetOption) GetUserWithDashClient(ctx context.Context, userName string) (*dashv1alpha1.User, error)

func (*GetOption) ListUsersByKubeClient

func (o *GetOption) ListUsersByKubeClient(ctx context.Context) ([]*dashv1alpha1.User, error)

func (*GetOption) ListUsersWithDashClient

func (o *GetOption) ListUsersWithDashClient(ctx context.Context) ([]*dashv1alpha1.User, error)

func (*GetOption) OutputYAML

func (o *GetOption) OutputYAML(w io.Writer, objs []*dashv1alpha1.User)

func (*GetOption) RunE added in v0.8.0

func (o *GetOption) RunE(cmd *cobra.Command, args []string) error

func (*GetOption) Validate added in v0.8.0

func (o *GetOption) Validate(cmd *cobra.Command, args []string) error

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)

func (*UpdateAddonOption) Validate

func (o *UpdateAddonOption) Validate(cmd *cobra.Command, args []string) 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)

func (*UpdateDisplayNameOption) Validate

func (o *UpdateDisplayNameOption) Validate(cmd *cobra.Command, args []string) error

type UpdateRoleOption

type UpdateRoleOption struct {
	*cli.RootOptions

	UserName       string
	Roles          []string
	PrivilegedRole bool
	Force          bool
	// contains filtered or unexported fields
}

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)

func (*UpdateRoleOption) Validate

func (o *UpdateRoleOption) Validate(cmd *cobra.Command, args []string) error

Jump to

Keyboard shortcuts

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