Documentation
¶
Index ¶
- func DocColumns() []string
- func DocRowToStrings(r DocRow) []string
- func FormatAge(timestamp string) string
- func FormatMetadata(meta []api.CustomMetadata) []string
- func OpColumns() []string
- func OpStatus(op *api.Operation) string
- func ShortName(name string) string
- func StoreColumns() []string
- func StoreRowToStrings(r StoreRow) []string
- type DocRow
- type OpRow
- type StoreRow
- type TrackedOp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DocColumns ¶
func DocColumns() []string
DocColumns returns the column headers for the documents table.
func DocRowToStrings ¶
DocRowToStrings converts a DocRow to a string slice for table rendering.
func FormatMetadata ¶
func FormatMetadata(meta []api.CustomMetadata) []string
FormatMetadata formats custom metadata for display.
func OpColumns ¶
func OpColumns() []string
OpColumns returns the column headers for the operations table.
func ShortName ¶
ShortName extracts the short ID from a full resource name. e.g., "fileSearchStores/abc123" -> "abc123"
func StoreColumns ¶
func StoreColumns() []string
StoreColumns returns the column headers for the stores table.
func StoreRowToStrings ¶
StoreRowToStrings converts a StoreRow to a string slice for table rendering.
Types ¶
type DocRow ¶
type DocRow struct {
ID string
DisplayName string
State string
MimeType string
Size string
Age string
}
DocRow represents a formatted row for the documents table.
type StoreRow ¶
type StoreRow struct {
ID string
DisplayName string
ActiveDocs string
PendingDocs string
FailedDocs string
Size string
Age string
}
StoreRow represents a formatted row for the stores table.
func StoreToRow ¶
func StoreToRow(s *api.FileSearchStore) StoreRow
StoreToRow converts an API FileSearchStore to a display row.