Documentation ¶
Index ¶
- Constants
- func DefaultDetailsColumns() []v1alpha1.ResourceColumnDefinition
- func DefaultListColumns() []v1alpha1.ResourceColumnDefinition
- func FilterColumnsWithDefaults(kc client.Client, gvr schema.GroupVersionResource, ...) []v1alpha1.ResourceColumnDefinition
- func TableForList(kc client.Client, gvr schema.GroupVersionResource, ...) (*v1alpha1.Table, error)
- func TableForObject(kc client.Client, obj runtime.Object) (*v1alpha1.Table, error)
- func TxtFuncMap() template.FuncMap
- type ObjectNamespace
- type TableConvertor
- func New(fieldPath string, columns []v1alpha1.ResourceColumnDefinition) (TableConvertor, error)
- func NewForGVR(kc client.Client, gvr schema.GroupVersionResource, priority v1alpha1.Priority) (TableConvertor, error)
- func NewForList(fieldPath string, columns []v1alpha1.ResourceColumnDefinition) (TableConvertor, error)
Constants ¶
View Source
const UnknownValue = "<unknown>"
View Source
const (
ValueNone = "<none>"
)
Variables ¶
This section is empty.
Functions ¶
func DefaultDetailsColumns ¶ added in v0.9.0
func DefaultDetailsColumns() []v1alpha1.ResourceColumnDefinition
func DefaultListColumns ¶ added in v0.9.0
func DefaultListColumns() []v1alpha1.ResourceColumnDefinition
func FilterColumnsWithDefaults ¶ added in v0.9.0
func FilterColumnsWithDefaults( kc client.Client, gvr schema.GroupVersionResource, columns []v1alpha1.ResourceColumnDefinition, priority v1alpha1.Priority, ) []v1alpha1.ResourceColumnDefinition
func TableForList ¶
func TableForList(kc client.Client, gvr schema.GroupVersionResource, items []unstructured.Unstructured) (*v1alpha1.Table, error)
func TableForObject ¶
func TxtFuncMap ¶ added in v0.5.5
TxtFuncMap returns a 'text/template'.FuncMap
Types ¶
type ObjectNamespace ¶ added in v0.8.0
type ObjectNamespace struct {
Namespace string `json:"namespace,omitempty"`
}
type TableConvertor ¶
type TableConvertor interface {
ConvertToTable(ctx context.Context, object runtime.Object, tableOptions runtime.Object) (*v1alpha1.Table, error)
}
func New ¶
func New(fieldPath string, columns []v1alpha1.ResourceColumnDefinition) (TableConvertor, error)
New creates a new table convertor for the provided CRD column definition. If the printer definition cannot be parsed, error will be returned along with a default table convertor.
func NewForGVR ¶
func NewForGVR(kc client.Client, gvr schema.GroupVersionResource, priority v1alpha1.Priority) (TableConvertor, error)
func NewForList ¶ added in v0.9.0
func NewForList(fieldPath string, columns []v1alpha1.ResourceColumnDefinition) (TableConvertor, error)
Click to show internal directories.
Click to hide internal directories.