Documentation ¶
Index ¶
- func NewFullRoleFormat(source string) formatter.Format
- func NewRoleFormat(source string) formatter.Format
- func Write(ctx formatter.Context, roles []ybaclient.Role) error
- type Context
- func (c *Context) CreatedOn() string
- func (c *Context) Description() string
- func (c *Context) MarshalJSON() ([]byte, error)
- func (c *Context) Name() string
- func (c *Context) PermissionDetails() string
- func (c *Context) RoleType() string
- func (c *Context) UUID() string
- func (c *Context) UpdatedOn() string
- type FullRoleContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFullRoleFormat ¶
NewFullRoleFormat for formatting output
func NewRoleFormat ¶
NewRoleFormat for formatting output
Types ¶
type Context ¶
type Context struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
Context for role outputs
func NewRoleContext ¶
func NewRoleContext() *Context
NewRoleContext creates a new context for rendering role
func (*Context) Description ¶
Description fetches Role Description
func (*Context) PermissionDetails ¶
PermissionDetails fetches Role PermissionDetails
type FullRoleContext ¶
type FullRoleContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
FullRoleContext to render Role Details output
func NewFullRoleContext ¶
func NewFullRoleContext() *FullRoleContext
NewFullRoleContext creates a new context for rendering role
func (*FullRoleContext) MarshalJSON ¶
func (fr *FullRoleContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*FullRoleContext) SetFullRole ¶
func (fr *FullRoleContext) SetFullRole(role ybaclient.Role)
SetFullRole initializes the context with the role data
func (*FullRoleContext) Write ¶
func (fr *FullRoleContext) Write() error
Write populates the output table to be displayed in the command line
Click to show internal directories.
Click to hide internal directories.