Documentation ¶
Index ¶
- func AddPreRunE(c *cobra.Command, f func(*cobra.Command, []string) error)
- func RelativeTimestampFormatter(n *jnode.Node, columnName string) string
- func TimestampFormatter(n *jnode.Node, columnName string) string
- type ClientOpts
- func (opts *ClientOpts) GetAPIClient() client.Interface
- func (opts *ClientOpts) GetAPIClientConfig() *client.Config
- func (opts *ClientOpts) GetOrganization() string
- func (opts *ClientOpts) GetUnauthenticatedAPIClient() client.Interface
- func (opts *ClientOpts) Register(cmd *cobra.Command)
- func (opts *ClientOpts) SetContextValues(context map[string]string)
- type ClusterOpts
- type Formatter
- type HasPrintOpts
- type Interface
- type PrintClientOpts
- type PrintClusterOpts
- type PrintOpts
- func (p *PrintOpts) AddTransformer(t func(*jnode.Node) *jnode.Node)
- func (p *PrintOpts) Flush()
- func (p *PrintOpts) Format(columnName string, n *jnode.Node) string
- func (p *PrintOpts) GetOutput() io.Writer
- func (p *PrintOpts) GetPrintOpts() *PrintOpts
- func (p *PrintOpts) PrintHeader()
- func (p *PrintOpts) PrintResult(result *jnode.Node)
- func (p *PrintOpts) PrintResultYAML(result interface{})
- func (p *PrintOpts) PrintRows(result *jnode.Node)
- func (p *PrintOpts) Register(cmd *cobra.Command)
- func (p *PrintOpts) SetContextValues(context map[string]string)
- func (p *PrintOpts) SetFormatter(columnName string, formatter Formatter)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RelativeTimestampFormatter ¶ added in v0.4.4
func TimestampFormatter ¶ added in v0.4.4
Types ¶
type ClientOpts ¶
func (*ClientOpts) GetAPIClient ¶
func (opts *ClientOpts) GetAPIClient() client.Interface
func (*ClientOpts) GetAPIClientConfig ¶
func (opts *ClientOpts) GetAPIClientConfig() *client.Config
func (*ClientOpts) GetOrganization ¶
func (opts *ClientOpts) GetOrganization() string
func (*ClientOpts) GetUnauthenticatedAPIClient ¶
func (opts *ClientOpts) GetUnauthenticatedAPIClient() client.Interface
func (*ClientOpts) Register ¶
func (opts *ClientOpts) Register(cmd *cobra.Command)
func (*ClientOpts) SetContextValues ¶ added in v0.4.4
func (opts *ClientOpts) SetContextValues(context map[string]string)
type ClusterOpts ¶
type ClusterOpts struct { ClientOpts ClusterID string ClusterIDOptional bool SetClusterID string }
func (*ClusterOpts) GetClusterID ¶
func (opts *ClusterOpts) GetClusterID() string
func (*ClusterOpts) Register ¶
func (opts *ClusterOpts) Register(cmd *cobra.Command)
func (*ClusterOpts) SetContextValues ¶ added in v0.4.4
func (opts *ClusterOpts) SetContextValues(context map[string]string)
type HasPrintOpts ¶
type HasPrintOpts interface {
GetPrintOpts() *PrintOpts
}
type PrintClientOpts ¶
type PrintClientOpts struct { PrintOpts ClientOpts }
func (*PrintClientOpts) Register ¶
func (opts *PrintClientOpts) Register(cmd *cobra.Command)
func (*PrintClientOpts) SetContextValues ¶ added in v0.4.4
func (opts *PrintClientOpts) SetContextValues(context map[string]string)
type PrintClusterOpts ¶
type PrintClusterOpts struct { PrintOpts ClusterOpts }
func (*PrintClusterOpts) Register ¶
func (opts *PrintClusterOpts) Register(cmd *cobra.Command)
func (*PrintClusterOpts) SetContextValues ¶ added in v0.4.4
func (opts *PrintClusterOpts) SetContextValues(context map[string]string)
type PrintOpts ¶
type PrintOpts struct { Output io.Writer Full bool Wide bool Path []string Columns []string WideColumns []string SortBy []string DefaultSortBy []string Formatters map[string]Formatter Transformer func(*jnode.Node) *jnode.Node // contains filtered or unexported fields }
func (*PrintOpts) AddTransformer ¶
func (p *PrintOpts) AddTransformer(t func(*jnode.Node) *jnode.Node)
func (*PrintOpts) GetPrintOpts ¶
func (*PrintOpts) PrintHeader ¶
func (p *PrintOpts) PrintHeader()
func (*PrintOpts) PrintResult ¶
func (p *PrintOpts) PrintResult(result *jnode.Node)
func (*PrintOpts) PrintResultYAML ¶
func (p *PrintOpts) PrintResultYAML(result interface{})
func (*PrintOpts) SetContextValues ¶ added in v0.4.4
func (*PrintOpts) SetFormatter ¶
Click to show internal directories.
Click to hide internal directories.