kubernetes/staging/src/k8s.io/kubectl/pkg/cmd/set/set_subject.go

var subjectLong

var subjectExample

type updateSubjects

type SubjectOptions

// NewSubjectOptions returns an initialized SubjectOptions instance
func NewSubjectOptions(streams genericiooptions.IOStreams) *SubjectOptions {}

// NewCmdSubject returns the "new subject" sub command
func NewCmdSubject(f cmdutil.Factory, streams genericiooptions.IOStreams) *cobra.Command {}

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

// Validate makes sure provided values in SubjectOptions are valid
func (o *SubjectOptions) Validate() error {}

// Run performs the execution of "set subject" sub command
func (o *SubjectOptions) Run(fn updateSubjects) error {}

// Note: the obj mutates in the function
func updateSubjectForObject(obj runtime.Object, subjects []rbacv1.Subject, fn updateSubjects) (bool, error) {}

func addSubjects(existings []rbacv1.Subject, targets []rbacv1.Subject) (bool, []rbacv1.Subject) {}

func contain(slice []rbacv1.Subject, item rbacv1.Subject) bool {}