kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/create/create_role.go

var roleLong

var roleExample

var validResourceVerbs

var specialVerbs

// AddSpecialVerb allows the addition of items to the `specialVerbs` map for non-k8s native resources.
func AddSpecialVerb(verb string, gr schema.GroupResource) {}

type ResourceOptions

type CreateRoleOptions

// NewCreateRoleOptions returns an initialized CreateRoleOptions instance
func NewCreateRoleOptions(ioStreams genericiooptions.IOStreams) *CreateRoleOptions {}

// NewCmdCreateRole returnns an initialized Command instance for 'create role' sub command
func NewCmdCreateRole(f cmdutil.Factory, ioStreams genericiooptions.IOStreams) *cobra.Command {}

// Complete completes all the required options
func (o *CreateRoleOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error {}

// Validate makes sure there is no discrepency in provided option values
func (o *CreateRoleOptions) Validate() error {}

func (o *CreateRoleOptions) validateResource() error {}

// RunCreateRole performs the execution of 'create role' sub command
func (o *CreateRoleOptions) RunCreateRole() error {}

func arrayContains(s []string, e string) bool {}

func generateResourcePolicyRules(mapper meta.RESTMapper, verbs []string, resources []ResourceOptions, resourceNames []string, nonResourceURLs []string) ([]rbacv1.PolicyRule, error) {}