table

package
v0.0.0-...-8abd549 Latest Latest
Warning

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

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

Documentation

Index

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

func NewColumnFormat(source string) formatter.Format

NewColumnFormat for formatting output

func NewDefinitionFormat

func NewDefinitionFormat(source string) formatter.Format

NewDefinitionFormat for formatting output

func NewFullDefinitionFormat

func NewFullDefinitionFormat(source string) formatter.Format

NewFullDefinitionFormat for formatting output

func NewFullTablespaceFormat

func NewFullTablespaceFormat(source string) formatter.Format

NewFullTablespaceFormat for formatting output

func NewNamespaceFormat

func NewNamespaceFormat(source string) formatter.Format

NewNamespaceFormat for formatting output

func NewPlacementBlockFormat

func NewPlacementBlockFormat(source string) formatter.Format

NewPlacementBlockFormat for formatting output

func NewTableFormat

func NewTableFormat(source string) formatter.Format

NewTableFormat for formatting output

func NewTablespaceFormat

func NewTablespaceFormat(source string) formatter.Format

NewTablespaceFormat for formatting output

func TablespaceWrite

func TablespaceWrite(ctx formatter.Context, tables []ybaclient.TableSpaceInfo) error

TablespaceWrite renders the context for a list of Table

func Write

func Write(ctx formatter.Context, tables []ybaclient.TableInfoResp) error

Write 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) KeyType

func (c *ColumnContext) KeyType() string

KeyType function

func (*ColumnContext) MarshalJSON

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

MarshalJSON function

func (*ColumnContext) Name

func (c *ColumnContext) Name() string

Name function

func (*ColumnContext) SetColumn

func (c *ColumnContext) SetColumn(column ybaclient.ColumnDetails)

SetColumn initializes the context with the column data

func (*ColumnContext) SortOrder

func (c *ColumnContext) SortOrder() string

SortOrder function

func (*ColumnContext) Type

func (c *ColumnContext) Type() string

Type function

func (*ColumnContext) ValueType

func (c *ColumnContext) ValueType() string

ValueType function

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) Colocated

func (c *Context) Colocated() string

Colocated returns true if the table is colocated

func (*Context) ColocationParentID

func (c *Context) ColocationParentID() string

ColocationParentID returns the parent id of the table

func (*Context) IndexTableIDs

func (c *Context) IndexTableIDs() string

IndexTableIDs returns the index table ids of the table

func (*Context) KeySpace

func (c *Context) KeySpace() string

KeySpace returns the KeySpace of the table

func (*Context) MainTableUUID

func (c *Context) MainTableUUID() string

MainTableUUID returns the main table uuid of the table

func (*Context) MarshalJSON

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

MarshalJSON function

func (*Context) NameSpace

func (c *Context) NameSpace() string

NameSpace returns the namespace of the table

func (*Context) ParentTableUUID

func (c *Context) ParentTableUUID() string

ParentTableUUID returns the parent table uuid of the table

func (*Context) PgSchemaName

func (c *Context) PgSchemaName() string

PgSchemaName returns the pg schema name of the table

func (*Context) RelationType

func (c *Context) RelationType() string

RelationType returns the relation type of the table

func (*Context) SizeBytes

func (c *Context) SizeBytes() string

SizeBytes returns the size in bytes of the table

func (*Context) TableID

func (c *Context) TableID() string

TableID returns the table id of the table

func (*Context) TableName

func (c *Context) TableName() string

TableName of the table

func (*Context) TableSpace

func (c *Context) TableSpace() string

TableSpace returns the table space of the table

func (*Context) TableType

func (c *Context) TableType() string

TableType returns the table type of the table

func (*Context) TableUUID

func (c *Context) TableUUID() string

TableUUID of the table

func (*Context) WalSizeBytes

func (c *Context) WalSizeBytes() string

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) Columns

func (c *DefinitionContext) Columns() string

Columns function

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) Cloud

func (p *PlacementBlockContext) Cloud() string

Cloud function

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

func (*PlacementBlockContext) Zone

func (p *PlacementBlockContext) Zone() string

Zone function

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

Jump to

Keyboard shortcuts

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