rolebinding

package
v0.0.0-...-63c62f7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFullRoleBindingFormat

func NewFullRoleBindingFormat(source string) formatter.Format

NewFullRoleBindingFormat for formatting output

func NewGroupMappingInfoFormat

func NewGroupMappingInfoFormat(source string) formatter.Format

NewGroupMappingInfoFormat for formatting output

func NewPrincipalFormat

func NewPrincipalFormat(source string) formatter.Format

NewPrincipalFormat for formatting output

func NewResourceGroupFormat

func NewResourceGroupFormat(source string) formatter.Format

NewResourceGroupFormat for formatting output

func NewRoleBindingFormat

func NewRoleBindingFormat(source string) formatter.Format

NewRoleBindingFormat for formatting output

func Write

func Write(ctx formatter.Context, roleBindings []ybaclient.RoleBinding) error

Write renders the context for a list of RoleBindings

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

func (c *Context) CreateTime() string

CreateTime function to fetch CreateTime

func (*Context) GroupInfo

func (c *Context) GroupInfo() string

GroupInfo function to fetch GroupInfo

func (*Context) MarshalJSON

func (c *Context) MarshalJSON() ([]byte, error)

MarshalJSON function

func (*Context) PrincipalType

func (c *Context) PrincipalType() string

PrincipalType function to fetch Principal

func (*Context) PrincipalUUID

func (c *Context) PrincipalUUID() string

PrincipalUUID function to fetch Principal

func (*Context) ResourceGroup

func (c *Context) ResourceGroup() string

ResourceGroup function to fetch ResourceGroup

func (*Context) Role

func (c *Context) Role() string

Role function to fetch Role

func (*Context) Type

func (c *Context) Type() string

Type function to fetch Type

func (*Context) UUID

func (c *Context) UUID() string

UUID function to fetch UUID

func (*Context) UpdateTime

func (c *Context) UpdateTime() string

UpdateTime function to fetch UpdateTime

func (*Context) User

func (c *Context) User() string

User function to fetch User

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

type PrincipalContext struct {
	formatter.HeaderContext
	formatter.Context
	P ybaclient.Principal
}

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

func (*PrincipalContext) Type

func (c *PrincipalContext) Type() string

Type function

func (*PrincipalContext) UUID

func (c *PrincipalContext) UUID() string

UUID function

func (*PrincipalContext) UserUUID

func (c *PrincipalContext) UserUUID() string

UserUUID 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

Jump to

Keyboard shortcuts

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