management

package
v4.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCloneGroupCommand

func NewCloneGroupCommand() *cobra.Command

NewCloneGroupCommand clones a group

func NewCreateGroupCommand

func NewCreateGroupCommand() *cobra.Command

NewCreateGroupCommand creates a new group

func NewCreateServiceAccountCommand

func NewCreateServiceAccountCommand() *cobra.Command

NewCreateServiceAccountCommand creates`serviceaccounts create`

func NewCreateUserCommand

func NewCreateUserCommand() *cobra.Command

NewCreateUserCommand creates a new user

func NewDeleteGroupCommand

func NewDeleteGroupCommand() *cobra.Command

NewDeleteGroupCommand creates a new group

func NewDeleteServiceAccountCommand

func NewDeleteServiceAccountCommand() *cobra.Command

NewDeleteServiceAccountCommand creates `serviceaccounts delete`

func NewDeleteUserCommand

func NewDeleteUserCommand() *cobra.Command

NewDeleteUserCommand deletes a new user

func NewGetGroupCommand

func NewGetGroupCommand() *cobra.Command

NewGetGroupCommand creates `groups get`

func NewGetServiceAccountCommand

func NewGetServiceAccountCommand() *cobra.Command

NewGetServiceAccountCommand creates `serviceaccounts get`

func NewGetUserCommand

func NewGetUserCommand() *cobra.Command

NewGetUserCommand creates `groups get`

func NewGroupsCommand

func NewGroupsCommand() *cobra.Command

NewGroupsCommand creates the `groups` command

func NewPasswordUserCommand

func NewPasswordUserCommand() *cobra.Command

NewPasswordUserCommand updates user password

func NewRevokeServiceAccountCommand

func NewRevokeServiceAccountCommand() *cobra.Command

NewRevokeServiceAccountCommand creates `serviceaccounts revoke`

func NewServiceAccountsCommand

func NewServiceAccountsCommand() *cobra.Command

NewServiceAccountsCommand creates the `groups` command

func NewUpdateGroupCommand

func NewUpdateGroupCommand() *cobra.Command

NewUpdateGroupCommand creates a new group

func NewUpdateServiceAccountCommand

func NewUpdateServiceAccountCommand() *cobra.Command

NewUpdateServiceAccountCommand creates`serviceaccounts update`

func NewUpdateUserCommand

func NewUpdateUserCommand() *cobra.Command

NewUpdateUserCommand creates a new user

func NewUsersCommand

func NewUsersCommand() *cobra.Command

NewUsersCommand creates the `groups` command

Types

type GroupView

type GroupView struct {
	Name                       string          `json:"name" yaml:"name" header:"name"`
	Namespaces                 []api.Namespace `json:"namespaces,omitempty" yaml:"namespaces" header:"Namespaces,count"`
	ScopedPermissions          []string        `json:"scopedPermissions" yaml:"scopedPermissions" header:"Scoped Permissions"`
	AdminPermissions           []string        `json:"adminPermissions" yaml:"adminPermissions" header:"Admin Permissions"`
	UserAccountsCount          int             `json:"userAccounts" yaml:"userAccounts" header:"User Accounts"`
	ServiceAccountsCount       int             `json:"serviceAccounts" yaml:"serviceAccounts" header:"Service Accounts"`
	ConnectClustersPermissions []string        `json:"connectClustersPermissions" yaml:"connectClustersPermissions" header:"Connect clusters access"`
}

GroupView the view model for group to be printed

func PrintGroup

func PrintGroup(g api.Group) GroupView

PrintGroup returns a group for table printing

type TokenView

type TokenView struct {
	Name  string `json:"name" yaml:"name" header:"Service Account"`
	Token string `json:"token" yaml:"token" header:"Token"`
}

TokenView the view model for token to be printed

func PrintToken

func PrintToken(name, token string) TokenView

PrintToken returns token for table printing

Jump to

Keyboard shortcuts

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