Documentation ¶
Index ¶
- type List
- type PermissionFlag
- func (f *PermissionFlag) ManagedObjects(ctx context.Context, args []string) ([]types.ManagedObjectReference, error)
- func (f *PermissionFlag) Manager(ctx context.Context) (*object.AuthorizationManager, error)
- func (f *PermissionFlag) Process(ctx context.Context) error
- func (f *PermissionFlag) Register(ctx context.Context, fs *flag.FlagSet)
- func (f *PermissionFlag) Role(name string) (*types.AuthorizationRole, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List struct { Roles object.AuthorizationRoleList `json:",omitempty"` Permissions []types.Permission `json:",omitempty"` // contains filtered or unexported fields }
func (*List) Add ¶
func (l *List) Add(perms []types.Permission)
type PermissionFlag ¶
type PermissionFlag struct { *flags.DatacenterFlag *flags.OutputFlag List // contains filtered or unexported fields }
func NewPermissionFlag ¶
func NewPermissionFlag(ctx context.Context) (*PermissionFlag, context.Context)
func (*PermissionFlag) ManagedObjects ¶
func (f *PermissionFlag) ManagedObjects(ctx context.Context, args []string) ([]types.ManagedObjectReference, error)
func (*PermissionFlag) Manager ¶
func (f *PermissionFlag) Manager(ctx context.Context) (*object.AuthorizationManager, error)
func (*PermissionFlag) Register ¶
func (f *PermissionFlag) Register(ctx context.Context, fs *flag.FlagSet)
func (*PermissionFlag) Role ¶
func (f *PermissionFlag) Role(name string) (*types.AuthorizationRole, error)
Click to show internal directories.
Click to hide internal directories.