Versions in this module Expand all Collapse all v0 v0.5.2 May 19, 2015 v0.5.1 May 13, 2015 Changes in this version + const AddClusterRoleToGroupRecommendedName + const AddClusterRoleToUserRecommendedName + const AddRoleToGroupRecommendedName + const AddRoleToUserRecommendedName + const PolicyRecommendedName + const RemoveClusterRoleFromGroupRecommendedName + const RemoveClusterRoleFromUserRecommendedName + const RemoveGroupRecommendedName + const RemoveRoleFromGroupRecommendedName + const RemoveRoleFromUserRecommendedName + const RemoveUserRecommendedName + const WhoCanRecommendedName + func NewCmdAddClusterRoleToGroup(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command + func NewCmdAddClusterRoleToUser(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command + func NewCmdAddRoleToGroup(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command + func NewCmdAddRoleToUser(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command + func NewCmdRemoveClusterRoleFromGroup(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command + func NewCmdRemoveClusterRoleFromUser(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command + func NewCmdRemoveGroupFromProject(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command + func NewCmdRemoveRoleFromGroup(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command + func NewCmdRemoveRoleFromUser(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command + func NewCmdRemoveUserFromProject(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command + func NewCmdWhoCan(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command + func NewCommandPolicy(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command + type ClusterRoleBindingAccessor struct + Client client.Interface + func NewClusterRoleBindingAccessor(client client.Interface) ClusterRoleBindingAccessor + func (a ClusterRoleBindingAccessor) CreateRoleBinding(binding *authorizationapi.RoleBinding) error + func (a ClusterRoleBindingAccessor) GetExistingRoleBindingNames() (*util.StringSet, error) + func (a ClusterRoleBindingAccessor) GetExistingRoleBindingsForRole(roleNamespace, role string) ([]*authorizationapi.RoleBinding, error) + func (a ClusterRoleBindingAccessor) UpdateRoleBinding(binding *authorizationapi.RoleBinding) error + type LocalRoleBindingAccessor struct + BindingNamespace string + Client client.Interface + func NewLocalRoleBindingAccessor(bindingNamespace string, client client.Interface) LocalRoleBindingAccessor + func (a LocalRoleBindingAccessor) CreateRoleBinding(binding *authorizationapi.RoleBinding) error + func (a LocalRoleBindingAccessor) GetExistingRoleBindingNames() (*util.StringSet, error) + func (a LocalRoleBindingAccessor) GetExistingRoleBindingsForRole(roleNamespace, role string) ([]*authorizationapi.RoleBinding, error) + func (a LocalRoleBindingAccessor) UpdateRoleBinding(binding *authorizationapi.RoleBinding) error + type RemoveFromProjectOptions struct + BindingNamespace string + Client client.Interface + Groups []string + Users []string + func (o *RemoveFromProjectOptions) Complete(f *clientcmd.Factory, args []string, target *[]string, targetName string) error + func (o *RemoveFromProjectOptions) Run() error + type RoleBindingAccessor interface + CreateRoleBinding func(binding *authorizationapi.RoleBinding) error + GetExistingRoleBindingNames func() (*util.StringSet, error) + GetExistingRoleBindingsForRole func(roleNamespace, role string) ([]*authorizationapi.RoleBinding, error) + UpdateRoleBinding func(binding *authorizationapi.RoleBinding) error + type RoleModificationOptions struct + Groups []string + RoleBindingAccessor RoleBindingAccessor + RoleName string + RoleNamespace string + Users []string + func (o *RoleModificationOptions) AddRole() error + func (o *RoleModificationOptions) Complete(f *clientcmd.Factory, args []string, target *[]string, targetName string, ...) error + func (o *RoleModificationOptions) RemoveRole() error