Documentation ¶
Index ¶
- func DefinitionWrite(ctx formatter.Context, tables []ybaclient.TableDefinitionTaskParams) error
- func NamespaceWrite(ctx formatter.Context, tables []ybaclient.NamespaceInfoResp) error
- func NewColumnFormat(source string) formatter.Format
- func NewDefinitionFormat(source string) formatter.Format
- func NewFullDefinitionFormat(source string) formatter.Format
- func NewFullTablespaceFormat(source string) formatter.Format
- func NewNamespaceFormat(source string) formatter.Format
- func NewPlacementBlockFormat(source string) formatter.Format
- func NewTableFormat(source string) formatter.Format
- func NewTablespaceFormat(source string) formatter.Format
- func TablespaceWrite(ctx formatter.Context, tables []ybaclient.TableSpaceInfo) error
- func Write(ctx formatter.Context, tables []ybaclient.TableInfoResp) error
- type ColumnContext
- func (c *ColumnContext) ColumnOrder() string
- func (c *ColumnContext) IsClusteringKey() string
- func (c *ColumnContext) IsPartitionKey() string
- func (c *ColumnContext) KeyType() string
- func (c *ColumnContext) MarshalJSON() ([]byte, error)
- func (c *ColumnContext) Name() string
- func (c *ColumnContext) SetColumn(column ybaclient.ColumnDetails)
- func (c *ColumnContext) SortOrder() string
- func (c *ColumnContext) Type() string
- func (c *ColumnContext) ValueType() string
- func (c *ColumnContext) Write(index int) error
- type Context
- func (c *Context) Colocated() string
- func (c *Context) ColocationParentID() string
- func (c *Context) IndexTableIDs() string
- func (c *Context) KeySpace() string
- func (c *Context) MainTableUUID() string
- func (c *Context) MarshalJSON() ([]byte, error)
- func (c *Context) NameSpace() string
- func (c *Context) ParentTableUUID() string
- func (c *Context) PgSchemaName() string
- func (c *Context) RelationType() string
- func (c *Context) SizeBytes() string
- func (c *Context) TableID() string
- func (c *Context) TableName() string
- func (c *Context) TableSpace() string
- func (c *Context) TableType() string
- func (c *Context) TableUUID() string
- func (c *Context) WalSizeBytes() string
- type DefinitionContext
- func (c *DefinitionContext) Columns() string
- func (c *DefinitionContext) Keyspace() string
- func (c *DefinitionContext) MarshalJSON() ([]byte, error)
- func (c *DefinitionContext) SplitValues() string
- func (c *DefinitionContext) TTLInSeconds() string
- func (c *DefinitionContext) TableName() string
- func (c *DefinitionContext) TableType() string
- func (c *DefinitionContext) TableUUID() string
- type FullDefinitionContext
- type FullTablespaceContext
- type NamespaceContext
- type PlacementBlockContext
- func (p *PlacementBlockContext) Cloud() string
- func (p *PlacementBlockContext) LeaderPreference() string
- func (p *PlacementBlockContext) MarshalJSON() ([]byte, error)
- func (p *PlacementBlockContext) MinNumReplicas() string
- func (p *PlacementBlockContext) Region() string
- func (p *PlacementBlockContext) SetPlacementBlock(placementBlock ybaclient.PlacementBlock)
- func (p *PlacementBlockContext) Write(index int) error
- func (p *PlacementBlockContext) Zone() string
- type TablespaceContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefinitionWrite ¶
func DefinitionWrite(ctx formatter.Context, tables []ybaclient.TableDefinitionTaskParams) error
DefinitionWrite renders the context for a list of Table
func NamespaceWrite ¶
func NamespaceWrite(ctx formatter.Context, tables []ybaclient.NamespaceInfoResp) error
NamespaceWrite renders the context for a list of Table
func NewColumnFormat ¶
NewColumnFormat for formatting output
func NewDefinitionFormat ¶
NewDefinitionFormat for formatting output
func NewFullDefinitionFormat ¶
NewFullDefinitionFormat for formatting output
func NewFullTablespaceFormat ¶
NewFullTablespaceFormat for formatting output
func NewNamespaceFormat ¶
NewNamespaceFormat for formatting output
func NewPlacementBlockFormat ¶
NewPlacementBlockFormat for formatting output
func NewTableFormat ¶
NewTableFormat for formatting output
func NewTablespaceFormat ¶
NewTablespaceFormat for formatting output
func TablespaceWrite ¶
func TablespaceWrite(ctx formatter.Context, tables []ybaclient.TableSpaceInfo) error
TablespaceWrite renders the context for a list of Table
Types ¶
type ColumnContext ¶
type ColumnContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
ColumnContext for column outputs
func NewColumnContext ¶
func NewColumnContext() *ColumnContext
NewColumnContext creates a new context for rendering columns
func (*ColumnContext) ColumnOrder ¶
func (c *ColumnContext) ColumnOrder() string
ColumnOrder function
func (*ColumnContext) IsClusteringKey ¶
func (c *ColumnContext) IsClusteringKey() string
IsClusteringKey function
func (*ColumnContext) IsPartitionKey ¶
func (c *ColumnContext) IsPartitionKey() string
IsPartitionKey function
func (*ColumnContext) MarshalJSON ¶
func (c *ColumnContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*ColumnContext) SetColumn ¶
func (c *ColumnContext) SetColumn(column ybaclient.ColumnDetails)
SetColumn initializes the context with the column data
func (*ColumnContext) Write ¶
func (c *ColumnContext) Write(index int) error
Write populates the output table to be displayed in the command line
type Context ¶
type Context struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
Context for table outputs
func NewDefinitionContext ¶
func NewDefinitionContext() *Context
NewDefinitionContext creates a new context for rendering table
func NewNamespaceContext ¶
func NewNamespaceContext() *Context
NewNamespaceContext creates a new context for rendering table
func NewTableContext ¶
func NewTableContext() *Context
NewTableContext creates a new context for rendering table
func NewTablespaceContext ¶
func NewTablespaceContext() *Context
NewTablespaceContext creates a new context for rendering table
func (*Context) ColocationParentID ¶
ColocationParentID returns the parent id of the table
func (*Context) IndexTableIDs ¶
IndexTableIDs returns the index table ids of the table
func (*Context) MainTableUUID ¶
MainTableUUID returns the main table uuid of the table
func (*Context) ParentTableUUID ¶
ParentTableUUID returns the parent table uuid of the table
func (*Context) PgSchemaName ¶
PgSchemaName returns the pg schema name of the table
func (*Context) RelationType ¶
RelationType returns the relation type of the table
func (*Context) TableSpace ¶
TableSpace returns the table space of the table
func (*Context) WalSizeBytes ¶
WalSizeBytes returns the wal size in bytes of the table
type DefinitionContext ¶
type DefinitionContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
DefinitionContext for table outputs
func (*DefinitionContext) Keyspace ¶
func (c *DefinitionContext) Keyspace() string
Keyspace function
func (*DefinitionContext) MarshalJSON ¶
func (c *DefinitionContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*DefinitionContext) SplitValues ¶
func (c *DefinitionContext) SplitValues() string
SplitValues function
func (*DefinitionContext) TTLInSeconds ¶
func (c *DefinitionContext) TTLInSeconds() string
TTLInSeconds function
func (*DefinitionContext) TableName ¶
func (c *DefinitionContext) TableName() string
TableName function
func (*DefinitionContext) TableType ¶
func (c *DefinitionContext) TableType() string
TableType function
func (*DefinitionContext) TableUUID ¶
func (c *DefinitionContext) TableUUID() string
TableUUID function
type FullDefinitionContext ¶
type FullDefinitionContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
FullDefinitionContext to render Table Details output
func NewFullDefinitionContext ¶
func NewFullDefinitionContext() *FullDefinitionContext
NewFullDefinitionContext creates a new context for rendering table
func (*FullDefinitionContext) MarshalJSON ¶
func (ft *FullDefinitionContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*FullDefinitionContext) SetFullDefinition ¶
func (ft *FullDefinitionContext) SetFullDefinition(table ybaclient.TableDefinitionTaskParams)
SetFullDefinition initializes the context with the table data
func (*FullDefinitionContext) Write ¶
func (ft *FullDefinitionContext) Write() error
Write populates the output table to be displayed in the command line
type FullTablespaceContext ¶
type FullTablespaceContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
FullTablespaceContext to render Table Details output
func NewFullTablespaceContext ¶
func NewFullTablespaceContext() *FullTablespaceContext
NewFullTablespaceContext creates a new context for rendering table
func (*FullTablespaceContext) MarshalJSON ¶
func (ft *FullTablespaceContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*FullTablespaceContext) SetFullTablespace ¶
func (ft *FullTablespaceContext) SetFullTablespace(table ybaclient.TableSpaceInfo)
SetFullTablespace initializes the context with the table data
func (*FullTablespaceContext) Write ¶
func (ft *FullTablespaceContext) Write() error
Write populates the output table to be displayed in the command line
type NamespaceContext ¶
type NamespaceContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
NamespaceContext for table outputs
func (*NamespaceContext) MarshalJSON ¶
func (c *NamespaceContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*NamespaceContext) NamespaceName ¶
func (c *NamespaceContext) NamespaceName() string
NamespaceName function
func (*NamespaceContext) NamespaceUUID ¶
func (c *NamespaceContext) NamespaceUUID() string
NamespaceUUID function
func (*NamespaceContext) TableType ¶
func (c *NamespaceContext) TableType() string
TableType function
type PlacementBlockContext ¶
type PlacementBlockContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
PlacementBlockContext for placementBlock outputs
func NewPlacementBlockContext ¶
func NewPlacementBlockContext() *PlacementBlockContext
NewPlacementBlockContext creates a new context for rendering placementBlocks
func (*PlacementBlockContext) LeaderPreference ¶
func (p *PlacementBlockContext) LeaderPreference() string
LeaderPreference function
func (*PlacementBlockContext) MarshalJSON ¶
func (p *PlacementBlockContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*PlacementBlockContext) MinNumReplicas ¶
func (p *PlacementBlockContext) MinNumReplicas() string
MinNumReplicas function
func (*PlacementBlockContext) Region ¶
func (p *PlacementBlockContext) Region() string
Region function
func (*PlacementBlockContext) SetPlacementBlock ¶
func (p *PlacementBlockContext) SetPlacementBlock(placementBlock ybaclient.PlacementBlock)
SetPlacementBlock initializes the context with the placementBlock data
func (*PlacementBlockContext) Write ¶
func (p *PlacementBlockContext) Write(index int) error
Write populates the output table to be displayed in the command line
type TablespaceContext ¶
type TablespaceContext struct { formatter.HeaderContext formatter.Context // contains filtered or unexported fields }
TablespaceContext for table outputs
func (*TablespaceContext) MarshalJSON ¶
func (c *TablespaceContext) MarshalJSON() ([]byte, error)
MarshalJSON function
func (*TablespaceContext) NumReplicas ¶
func (c *TablespaceContext) NumReplicas() string
NumReplicas function
func (*TablespaceContext) PlacementBlocks ¶
func (c *TablespaceContext) PlacementBlocks() string
PlacementBlocks function
func (*TablespaceContext) TablespaceName ¶
func (c *TablespaceContext) TablespaceName() string
TablespaceName function