Documentation ¶
Index ¶
- func NewFullRoleBindingFormat(source string) formatter.Format
- func NewGroupMappingInfoFormat(source string) formatter.Format
- func NewPrincipalFormat(source string) formatter.Format
- func NewResourceGroupFormat(source string) formatter.Format
- func NewRoleBindingFormat(source string) formatter.Format
- func Write(ctx formatter.Context, roleBindings []ybaclient.RoleBinding) error
- type Context
- func (c *Context) CreateTime() string
- func (c *Context) GroupInfo() string
- func (c *Context) MarshalJSON() ([]byte, error)
- func (c *Context) PrincipalType() string
- func (c *Context) PrincipalUUID() string
- func (c *Context) ResourceGroup() string
- func (c *Context) Role() string
- func (c *Context) Type() string
- func (c *Context) UUID() string
- func (c *Context) UpdateTime() string
- func (c *Context) User() string
- type FullRoleBindingContext
- type GroupMappingInfoContext
- type PrincipalContext
- type ResourceGroupContext
- func (rg *ResourceGroupContext) AllowAll() string
- func (rg *ResourceGroupContext) MarshalJSON() ([]byte, error)
- func (rg *ResourceGroupContext) ResourceType() string
- func (rg *ResourceGroupContext) ResourceUUIDs() string
- func (rg *ResourceGroupContext) SetResourceGroup(resourceGroup ybaclient.ResourceDefinition)
- func (rg *ResourceGroupContext) Write(index int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFullRoleBindingFormat ¶
NewFullRoleBindingFormat for formatting output
func NewGroupMappingInfoFormat ¶
NewGroupMappingInfoFormat for formatting output
func NewPrincipalFormat ¶
NewPrincipalFormat for formatting output
func NewResourceGroupFormat ¶
NewResourceGroupFormat for formatting output
func NewRoleBindingFormat ¶
NewRoleBindingFormat for formatting output
Types ¶
type Context ¶
type Context struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
Context for roleBinding outputs
func NewRoleBindingContext ¶
func NewRoleBindingContext() *Context
NewRoleBindingContext creates a new context for rendering roleBinding
func (*Context) CreateTime ¶
CreateTime function to fetch CreateTime
func (*Context) PrincipalType ¶
PrincipalType function to fetch Principal
func (*Context) PrincipalUUID ¶
PrincipalUUID function to fetch Principal
func (*Context) ResourceGroup ¶
ResourceGroup function to fetch ResourceGroup
func (*Context) UpdateTime ¶
UpdateTime function to fetch UpdateTime
type FullRoleBindingContext ¶
type FullRoleBindingContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
FullRoleBindingContext to render RoleBinding Details output
func NewFullRoleBindingContext ¶
func NewFullRoleBindingContext() *FullRoleBindingContext
NewFullRoleBindingContext creates a new context for rendering roleBinding
func (*FullRoleBindingContext) MarshalJSON ¶
func (fr *FullRoleBindingContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*FullRoleBindingContext) SetFullRoleBinding ¶
func (fr *FullRoleBindingContext) SetFullRoleBinding(roleBinding ybaclient.RoleBinding)
SetFullRoleBinding initializes the context with the roleBinding data
func (*FullRoleBindingContext) Write ¶
func (fr *FullRoleBindingContext) Write() error
Write populates the output table to be displayed in the command line
type GroupMappingInfoContext ¶
type GroupMappingInfoContext struct { formatter.HeaderContext formatter.Context Gmi ybaclient.GroupMappingInfo }
GroupMappingInfoContext for group mapping info outputs
func NewGroupMappingInfoContext ¶
func NewGroupMappingInfoContext() *GroupMappingInfoContext
NewGroupMappingInfoContext creates a new context for rendering group mapping info
func (*GroupMappingInfoContext) CreationDate ¶
func (c *GroupMappingInfoContext) CreationDate() string
CreationDate function
func (*GroupMappingInfoContext) Identifier ¶
func (c *GroupMappingInfoContext) Identifier() string
Identifier function
func (*GroupMappingInfoContext) MarshalJSON ¶
func (c *GroupMappingInfoContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*GroupMappingInfoContext) Type ¶
func (c *GroupMappingInfoContext) Type() string
Type function
func (*GroupMappingInfoContext) UUID ¶
func (c *GroupMappingInfoContext) UUID() string
UUID function
type PrincipalContext ¶
PrincipalContext for principal outputs
func NewPrincipalContext ¶
func NewPrincipalContext() *PrincipalContext
NewPrincipalContext creates a new context for rendering principal
func (*PrincipalContext) GroupUUID ¶
func (c *PrincipalContext) GroupUUID() string
GroupUUID function
func (*PrincipalContext) MarshalJSON ¶
func (c *PrincipalContext) MarshalJSON() ([]byte, error)
MarshalJSON function
type ResourceGroupContext ¶
type ResourceGroupContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
ResourceGroupContext for resourceGroup outputs
func NewResourceGroupContext ¶
func NewResourceGroupContext() *ResourceGroupContext
NewResourceGroupContext creates a new context for rendering resourceGroups
func (*ResourceGroupContext) AllowAll ¶
func (rg *ResourceGroupContext) AllowAll() string
AllowAll function
func (*ResourceGroupContext) MarshalJSON ¶
func (rg *ResourceGroupContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*ResourceGroupContext) ResourceType ¶
func (rg *ResourceGroupContext) ResourceType() string
ResourceType function
func (*ResourceGroupContext) ResourceUUIDs ¶
func (rg *ResourceGroupContext) ResourceUUIDs() string
ResourceUUIDs function
func (*ResourceGroupContext) SetResourceGroup ¶
func (rg *ResourceGroupContext) SetResourceGroup(resourceGroup ybaclient.ResourceDefinition)
SetResourceGroup initializes the context with the resourceGroup data
func (*ResourceGroupContext) Write ¶
func (rg *ResourceGroupContext) Write(index int) error
Write populates the output table to be displayed in the command line