Documentation
¶
Index ¶
- Constants
- func TableForList(r *hub.Registry, client crd_cs.CustomResourceDefinitionInterface, ...) (*v1alpha1.Table, error)
- func TableForObject(r *hub.Registry, client crd_cs.CustomResourceDefinitionInterface, ...) (*v1alpha1.Table, error)
- func TxtFuncMap() template.FuncMap
- type MongoDBNode
- type TableConvertor
Constants ¶
View Source
const ( ValueNone = "<none>" ResourceKindMongoDB = "MongoDB" )
Variables ¶
This section is empty.
Functions ¶
func TableForList ¶
func TableForList(r *hub.Registry, client crd_cs.CustomResourceDefinitionInterface, 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 MongoDBNode ¶ added in v0.5.5
type MongoDBNode struct { Replicas int64 `json:"replicas,omitempty"` PodTemplate ofst.PodTemplateSpec `json:"podTemplate,omitempty"` Storage core.PersistentVolumeClaimSpec `json:"storage,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(r *hub.Registry, client crd_cs.CustomResourceDefinitionInterface, gvr schema.GroupVersionResource, priority v1alpha1.Priority) (TableConvertor, error)
Click to show internal directories.
Click to hide internal directories.