permissions

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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)

func (*List) Write

func (l *List) Write(w io.Writer) error

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 (*PermissionFlag) Process

func (f *PermissionFlag) Process(ctx context.Context) error

func (*PermissionFlag) Register

func (f *PermissionFlag) Register(ctx context.Context, fs *flag.FlagSet)

func (*PermissionFlag) Role

Jump to

Keyboard shortcuts

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