Documentation ¶
Index ¶
Constants ¶
View Source
const ( IDHdr = "ID" MeasurementNameHdr = "Measurement Name" ColumnNameHdr = "Column Name" ColumnTypeHdr = "Column Type" ColumnDataTypeHdr = "Column Data Type" BucketIDHdr = "Bucket ID" )
Constants for table column headers
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { api.BucketsApi api.BucketSchemasApi clients.CLI }
type ColumnsDecoderFn ¶
type ColumnsDecoderFn func(r io.Reader) ([]api.MeasurementSchemaColumn, error)
ColumnsDecoderFn is a function which decodes a slice of api.MeasurementSchemaColumn elements from r.
type ColumnsFormat ¶
type ColumnsFormat int
ColumnsFormat is a type which defines the supported formats
const ( ColumnsFormatAuto ColumnsFormat = iota ColumnsFormatCSV ColumnsFormatNDJson ColumnsFormatJson )
func (ColumnsFormat) DecoderFn ¶
func (f ColumnsFormat) DecoderFn(path string) (ColumnsDecoderFn, error)
DecoderFn uses f and path to return a function capable of decoding measurement schema columns from a given io.Reader. If no combination of decoder exists for f and path, DecoderFn returns an error.
func (*ColumnsFormat) Set ¶
func (f *ColumnsFormat) Set(v string) error
func (ColumnsFormat) String ¶
func (f ColumnsFormat) String() string
type CreateParams ¶
type CreateParams struct { clients.OrgBucketParams Name string Stdin io.Reader ColumnsFile string ColumnsFormat ColumnsFormat ExtendedOutput bool }
type ListParams ¶
type ListParams struct { clients.OrgBucketParams Name string ExtendedOutput bool }
type UpdateParams ¶
type UpdateParams struct { clients.OrgBucketParams Name string ID string Stdin io.Reader ColumnsFile string ColumnsFormat ColumnsFormat ExtendedOutput bool }
Click to show internal directories.
Click to hide internal directories.