Versions in this module Expand all Collapse all v0 v0.7.0 Sep 28, 2019 v0.1.1 Sep 24, 2019 Changes in this version + var JobCols = component.NewTableCols("Name", "Labels", "Completions", "Successful", "Age") + func AddHandlers(p Handler) error + func BreakdownRule(rule rbacv1.PolicyRule) []rbacv1.PolicyRule + func ClusterRoleBindingHandler(ctx context.Context, clusterRoleBinding *rbacv1.ClusterRoleBinding, ...) (component.Component, error) + func ClusterRoleBindingListHandler(_ context.Context, clusterRoleBindingList *rbacv1.ClusterRoleBindingList, ...) (component.Component, error) + func ClusterRoleHandler(ctx context.Context, clusterRole *rbacv1.ClusterRole, options Options) (component.Component, error) + func ClusterRoleListHandler(_ context.Context, list *rbacv1.ClusterRoleList, options Options) (component.Component, error) + func CombineResourceGroup(resource, group []string) string + func ConfigMapHandler(ctx context.Context, cm *corev1.ConfigMap, options Options) (component.Component, error) + func ConfigMapListHandler(_ context.Context, list *corev1.ConfigMapList, opts Options) (component.Component, error) + func CronJobHandler(ctx context.Context, cronJob *batchv1beta1.CronJob, options Options) (component.Component, error) + func CronJobListHandler(ctx context.Context, list *batchv1beta1.CronJobList, opts Options) (component.Component, error) + func CustomResourceHandler(ctx context.Context, crd *apiextv1beta1.CustomResourceDefinition, ...) (component.Component, error) + func CustomResourceListHandler(crdName string, crd *apiextv1beta1.CustomResourceDefinition, ...) (component.Component, error) + func DaemonSetHandler(ctx context.Context, daemonSet *appsv1.DaemonSet, options Options) (component.Component, error) + func DaemonSetListHandler(_ context.Context, list *appsv1.DaemonSetList, opts Options) (component.Component, error) + func DefaultPrintFunc(_ context.Context, object runtime.Object, _ Options) (component.Component, error) + func DeploymentHandler(ctx context.Context, deployment *appsv1.Deployment, options Options) (component.Component, error) + func DeploymentListHandler(_ context.Context, list *appsv1.DeploymentList, opts Options) (component.Component, error) + func EventHandler(ctx context.Context, event *corev1.Event, opts Options) (component.Component, error) + func EventListHandler(ctx context.Context, list *corev1.EventList, opts Options) (component.Component, error) + func IngressHandler(ctx context.Context, ingress *extv1beta1.Ingress, options Options) (component.Component, error) + func IngressListHandler(_ context.Context, list *extv1beta1.IngressList, options Options) (component.Component, error) + func JobHandler(ctx context.Context, job *batchv1.Job, options Options) (component.Component, error) + func JobListHandler(_ context.Context, list *batchv1.JobList, opts Options) (component.Component, error) + func NodeHandler(ctx context.Context, node *corev1.Node, options Options) (component.Component, error) + func NodeListHandler(ctx context.Context, list *corev1.NodeList, options Options) (component.Component, error) + func ObjectReferencePath(or corev1.ObjectReference) (string, error) + func PersistentVolumeClaimHandler(ctx context.Context, persistentVolumeClaim *corev1.PersistentVolumeClaim, ...) (component.Component, error) + func PersistentVolumeClaimListHandler(ctx context.Context, list *corev1.PersistentVolumeClaimList, options Options) (component.Component, error) + func PodHandler(ctx context.Context, pod *corev1.Pod, options Options) (component.Component, error) + func PodListHandler(_ context.Context, list *corev1.PodList, opts Options) (component.Component, error) + func PrintEvents(list *corev1.EventList, opts Options) (component.Component, error) + func ReplicaSetHandler(ctx context.Context, replicaSet *appsv1.ReplicaSet, options Options) (component.Component, error) + func ReplicaSetListHandler(ctx context.Context, list *appsv1.ReplicaSetList, opts Options) (component.Component, error) + func ReplicationControllerHandler(ctx context.Context, rc *corev1.ReplicationController, options Options) (component.Component, error) + func ReplicationControllerListHandler(ctx context.Context, list *corev1.ReplicationControllerList, options Options) (component.Component, error) + func RoleBindingHandler(ctx context.Context, roleBinding *rbacv1.RoleBinding, options Options) (component.Component, error) + func RoleBindingListHandler(ctx context.Context, roleBindingList *rbacv1.RoleBindingList, opts Options) (component.Component, error) + func RoleHandler(ctx context.Context, role *rbacv1.Role, options Options) (component.Component, error) + func RoleListHandler(_ context.Context, roleList *rbacv1.RoleList, options Options) (component.Component, error) + func SecretHandler(ctx context.Context, secret *corev1.Secret, options Options) (component.Component, error) + func SecretListHandler(ctx context.Context, list *corev1.SecretList, options Options) (component.Component, error) + func ServiceAccountHandler(ctx context.Context, serviceAccount *corev1.ServiceAccount, options Options) (component.Component, error) + func ServiceAccountListHandler(_ context.Context, list *corev1.ServiceAccountList, options Options) (component.Component, error) + func ServiceHandler(ctx context.Context, service *corev1.Service, options Options) (component.Component, error) + func ServiceListHandler(_ context.Context, list *corev1.ServiceList, options Options) (component.Component, error) + func StatefulSetHandler(ctx context.Context, statefulSet *appsv1.StatefulSet, options Options) (component.Component, error) + func StatefulSetListHandler(_ context.Context, list *appsv1.StatefulSetList, options Options) (component.Component, error) + func ValidatePrintHandlerFunc(printFunc reflect.Value) error + type ClusterRoleBindingConfiguration struct + func NewClusterRoleBindingConfiguration(clusterRoleBinding *rbacv1.ClusterRoleBinding) *ClusterRoleBindingConfiguration + func (c *ClusterRoleBindingConfiguration) Create(ctx context.Context, options Options) (*component.Summary, error) + type ClusterRoleConfiguration struct + func NewClusterRoleConfiguration(clusterRole *rbacv1.ClusterRole) *ClusterRoleConfiguration + func (c *ClusterRoleConfiguration) Create(options Options) (*component.Summary, error) + type ConfigMapConfiguration struct + func NewConfigMapConfiguration(cm *corev1.ConfigMap) *ConfigMapConfiguration + func (c *ConfigMapConfiguration) Create(options Options) (*component.Summary, error) + type ContainerConfiguration struct + func NewContainerConfiguration(parent runtime.Object, c *corev1.Container, pfs portforward.PortForwarder, ...) *ContainerConfiguration + func (cc *ContainerConfiguration) Create() (*component.Summary, error) + type CronJobConfiguration struct + func NewCronJobConfiguration(c *batchv1beta1.CronJob) *CronJobConfiguration + func (cc *CronJobConfiguration) Create() (*component.Summary, error) + type DaemonSetConfiguration struct + func NewDaemonSetConfiguration(ds *appsv1.DaemonSet) *DaemonSetConfiguration + func (dc *DaemonSetConfiguration) Create() (*component.Summary, error) + type DeploymentConfiguration struct + func NewDeploymentConfiguration(d *appsv1.Deployment) *DeploymentConfiguration + func (dc *DeploymentConfiguration) Create() (*component.Summary, error) + type Handler interface + Handler func(printFunc interface{}) error + type IngressConfiguration struct + func NewIngressConfiguration(ingress *extv1beta1.Ingress) *IngressConfiguration + func (i *IngressConfiguration) Create(options Options) (*component.Summary, error) + type ItemDescriptor struct + Func ObjectPrinterFunc + Width int + type JobConfiguration struct + func NewJobConfiguration(job *batchv1.Job) *JobConfiguration + func (j *JobConfiguration) Create(option Options) (*component.Summary, error) + type JobTemplate struct + func NewJobTemplate(parent runtime.Object, jobTemplateSpec batchv1beta1.JobTemplateSpec) *JobTemplate + func (jt *JobTemplate) AddToFlexLayout(fl *flexlayout.FlexLayout, options Options) error + type JobTemplateHeader struct + func NewJobTemplateHeader(labels map[string]string) *JobTemplateHeader + func (jth *JobTemplateHeader) Create() (*component.Labels, error) + type Metadata struct + func NewMetadata(object runtime.Object, l link2.Interface) (*Metadata, error) + func (m *Metadata) AddToFlexLayout(fl *flexlayout.FlexLayout) error + type NodeConfiguration struct + func NewNodeConfiguration(node *corev1.Node) *NodeConfiguration + func (n *NodeConfiguration) Create(options Options) (*component.Summary, error) + type Object struct + EventsGen func(ctx context.Context, object runtime.Object, fl *flexlayout.FlexLayout, ...) error + JobTemplateGen func(runtime.Object, batchv1beta1.JobTemplateSpec, *flexlayout.FlexLayout, Options) error + MetadataGen func(runtime.Object, *flexlayout.FlexLayout, Options) error + PodTemplateGen func(runtime.Object, corev1.PodTemplateSpec, *flexlayout.FlexLayout, Options) error + func NewObject(object runtime.Object, options ...ObjectOpts) *Object + func (o *Object) AddButton(name string, payload action.Payload, buttonOptions ...component.ButtonOption) + func (o *Object) EnableEvents() + func (o *Object) EnableJobTemplate(templateSpec batchv1beta1.JobTemplateSpec) + func (o *Object) EnablePodTemplate(templateSpec corev1.PodTemplateSpec) + func (o *Object) RegisterConfig(summary *component.Summary) + func (o *Object) RegisterItems(items ...ItemDescriptor) + func (o *Object) RegisterSummary(summary *component.Summary) + func (o *Object) ToComponent(ctx context.Context, options Options) (component.Component, error) + type ObjectInterface interface + AddButton func(name string, payload action.Payload, buttonOptions ...component.ButtonOption) + type ObjectOpts func(o *Object) + type ObjectPrinterFunc func() (component.Component, error) + type ObjectPrinterLayoutFunc func(*flexlayout.FlexLayout) error + type Options struct + DashConfig config.Dash + DisableLabels bool + Link link.Interface + type PersistentVolumeClaimConfiguration struct + func NewPersistentVolumeClaimConfiguration(pvc *corev1.PersistentVolumeClaim) *PersistentVolumeClaimConfiguration + func (p *PersistentVolumeClaimConfiguration) Create(options Options) (*component.Summary, error) + type PodConfiguration struct + func NewPodConfiguration(p *corev1.Pod) *PodConfiguration + func (p *PodConfiguration) Create(options Options) (*component.Summary, error) + type PodTemplate struct + func NewPodTemplate(parent runtime.Object, podTemplateSpec corev1.PodTemplateSpec) *PodTemplate + func (pt *PodTemplate) AddToFlexLayout(fl *flexlayout.FlexLayout, options Options) error + type PodTemplateHeader struct + func NewPodTemplateHeader(labels map[string]string) *PodTemplateHeader + func (pth *PodTemplateHeader) Create() *component.Labels + type Printer interface + Print func(ctx context.Context, object runtime.Object, ...) (component.Component, error) + type ReplicaSetConfiguration struct + func NewReplicaSetConfiguration(rs *appsv1.ReplicaSet) *ReplicaSetConfiguration + func (rc *ReplicaSetConfiguration) Create(options Options) (*component.Summary, error) + type ReplicaSetStatus struct + func NewReplicaSetStatus(ctx context.Context, replicaSet *appsv1.ReplicaSet, options Options) *ReplicaSetStatus + func (replicaSetStatus *ReplicaSetStatus) Create() (*component.Quadrant, error) + type ReplicationControllerConfiguration struct + func NewReplicationControllerConfiguration(rc *corev1.ReplicationController) *ReplicationControllerConfiguration + func (rcc *ReplicationControllerConfiguration) Create(options Options) (*component.Summary, error) + type ReplicationControllerStatus struct + func NewReplicationControllerStatus(ctx context.Context, replicationController *corev1.ReplicationController, ...) *ReplicationControllerStatus + func (rcs *ReplicationControllerStatus) Create() (*component.Quadrant, error) + type Resource struct + func NewResource(dashConfig config.Dash) *Resource + func (p *Resource) Handler(printFunc interface{}) error + func (p *Resource) Print(ctx context.Context, object runtime.Object, ...) (component.Component, error) + type RoleBindingConfiguration struct + func NewRoleBindingConfiguration(roleBinding *rbacv1.RoleBinding) *RoleBindingConfiguration + func (r *RoleBindingConfiguration) Create(ctx context.Context, options Options) (*component.Summary, error) + type RoleConfiguration struct + func NewRoleConfiguration(role *rbacv1.Role) *RoleConfiguration + func (r *RoleConfiguration) Create(options Options) (*component.Summary, error) + type SecretConfiguration struct + func NewSecretConfiguration(secret *corev1.Secret) *SecretConfiguration + func (s *SecretConfiguration) Create(options Options) (*component.Summary, error) + type ServiceAccountConfiguration struct + func NewServiceAccountConfiguration(ctx context.Context, serviceAccount *corev1.ServiceAccount, options Options) *ServiceAccountConfiguration + func (s *ServiceAccountConfiguration) Create(options Options) (*component.Summary, error) + type ServiceAccountPolicyRules struct + func NewServiceAccountPolicyRules(ctx context.Context, serviceAccount *corev1.ServiceAccount, options Options) *ServiceAccountPolicyRules + func (s *ServiceAccountPolicyRules) Create() (*component.Table, error) + type ServiceConfiguration struct + func NewServiceConfiguration(service *corev1.Service) *ServiceConfiguration + func (sc *ServiceConfiguration) Create(ctx context.Context, options Options) (*component.Summary, error) + type StatefulSetConfiguration struct + func NewStatefulSetConfiguration(statefulSet *appsv1.StatefulSet) *StatefulSetConfiguration + func (sc *StatefulSetConfiguration) Create(options Options) (*component.Summary, error) + type StatefulSetStatus struct + func NewStatefulSetStatus(ctx context.Context, statefulSet *appsv1.StatefulSet, options Options) *StatefulSetStatus + func (statefulSetStatus *StatefulSetStatus) Create() (*component.Quadrant, error)