printer

package
v0.0.0-...-f1610be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package printer Copyright 2020-2021 Author.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Mustafa mbayramo@vmware.com

Package printer Copyright 2020-2021 Author.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Mustafa mbayramo@vmware.com

Package printer Copyright 2020-2021 Author.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Mustafa mbayramo@vmware.com

Package printer Copyright 2020-2021 Author.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Mustafa mbayramo@vmware.com

Package printer Copyright 2020-2021 Author.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Mustafa mbayramo@vmware.com

Package printer Copyright 2020-2021 Author.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Mustafa mbayramo@vmware.com

Package printer Copyright 2020-2021 Author.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Mustafa mbayramo@vmware.com

Package printer Copyright 2020-2021 Author.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Mustafa mbayramo@vmware.com

Package printer Copyright 2020-2021 Author.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Mustafa mbayramo@vmware.com

Package printer Copyright 2020-2021 Author.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Mustafa mbayramo@vmware.com

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterFilteredOutput

func ClusterFilteredOutput(r *response.Clusters, style ui.PrinterStyle)

ClusterFilteredOutput output filter for tenants

func ClusterJsonPrinter

func ClusterJsonPrinter(t *response.Clusters, style ui.PrinterStyle)

ClusterJsonPrinter - json printer

func ClusterRequestJsonPrinter

func ClusterRequestJsonPrinter(spec *specs.SpecCluster, style ui.PrinterStyle)

ClusterRequestJsonPrinter - json printer for new cluster creation request

func ClusterRequestYamlPrinter

func ClusterRequestYamlPrinter(specs *specs.SpecCluster, style ui.PrinterStyle)

ClusterRequestYamlPrinter - json printer for new cluster creation request

func ClusterSpecJsonPrinter

func ClusterSpecJsonPrinter(spec *response.ClusterSpec, style ui.PrinterStyle)

ClusterSpecJsonPrinter - json printer existing cluster details

func ClusterSpecTablePrinter

func ClusterSpecTablePrinter(c *response.ClusterSpec, style ui.PrinterStyle)

ClusterSpecTablePrinter - tabular format printer for repos

func ClusterSpecYamlPrinter

func ClusterSpecYamlPrinter(spec *response.ClusterSpec, style ui.PrinterStyle)

ClusterSpecYamlPrinter - json printer for existing cluster details

func ClusterTablePrinter

func ClusterTablePrinter(clusters *response.Clusters, style ui.PrinterStyle)

ClusterTablePrinter - tabular format printer for repos

func ClusterTaskJsonPrinter

func ClusterTaskJsonPrinter(spec *models.ClusterTask, style ui.PrinterStyle)

ClusterTaskJsonPrinter - json printer for new cluster creation request

func ClusterTaskTablePrinter

func ClusterTaskTablePrinter(specs *models.ClusterTask, style ui.PrinterStyle)

func ClusterTaskYamlPrinter

func ClusterTaskYamlPrinter(specs *models.ClusterTask, style ui.PrinterStyle)

ClusterTaskYamlPrinter - json printer for new cluster creation request

func ClusterYamlPrinter

func ClusterYamlPrinter(t *response.Clusters, style ui.PrinterStyle)

func CnfInstanceExtendedJsonPrinter

func CnfInstanceExtendedJsonPrinter(cnfs *response.CnfsExtended, style ui.PrinterStyle)

CnfInstanceExtendedJsonPrinter json pretty printer

func CnfInstanceExtendedTablePrinter

func CnfInstanceExtendedTablePrinter(cnfs *response.CnfsExtended, style ui.PrinterStyle)

CnfInstanceExtendedTablePrinter table printer

func CnfInstanceExtendedYamlPrinter

func CnfInstanceExtendedYamlPrinter(cnfs *response.CnfsExtended, style ui.PrinterStyle)

func CnfInstanceJsonPrinter

func CnfInstanceJsonPrinter(cnfs *response.Cnfs, style ui.PrinterStyle)

CnfInstanceJsonPrinter json pretty printer

func CnfInstanceTablePrinter

func CnfInstanceTablePrinter(cnfs *response.Cnfs, style ui.PrinterStyle)

CnfInstanceTablePrinter table printer

func CnfInstanceYamlPrinter

func CnfInstanceYamlPrinter(cnfs *response.Cnfs, style ui.PrinterStyle)

CnfInstanceYamlPrinter json pretty printer

func CnfPackageJsonPrinter

func CnfPackageJsonPrinter(cnfs *response.VnfPackages, style ui.PrinterStyle)

CnfPackageJsonPrinter json pretty printer

func CnfPackageTablePrinter

func CnfPackageTablePrinter(cnfs *response.VnfPackages, style ui.PrinterStyle)

CnfPackageTablePrinter table printer

func CnfPackageYamlPrinter

func CnfPackageYamlPrinter(cnfs *response.VnfPackages, style ui.PrinterStyle)

CnfPackageYamlPrinter json pretty printer

func CnfsExtendedFilteredOutput

func CnfsExtendedFilteredOutput(r *response.CnfsExtended, style ui.PrinterStyle)

CnfsExtendedFilteredOutput output filter for tenants

func ConsumptionJsonPrinter

func ConsumptionJsonPrinter(spec *models.ConsumptionResp, style ui.PrinterStyle)

ConsumptionJsonPrinter - json printer for new cluster creation request

func ConsumptionSpecYamlPrinter

func ConsumptionSpecYamlPrinter(spec *models.ConsumptionResp, style ui.PrinterStyle)

ConsumptionSpecYamlPrinter - json printer for tca lic consumption

func ConsumptionTablePrinter

func ConsumptionTablePrinter(specs *models.ConsumptionResp, style ui.PrinterStyle)

ConsumptionTablePrinter - tabular format printer for lic consumption

func DefaultJsonPrinter

func DefaultJsonPrinter(t interface{}, style ui.PrinterStyle)

DefaultJsonPrinter Default Json printer

func DefaultYamlPrinter

func DefaultYamlPrinter(t interface{}, style ui.PrinterStyle)

DefaultYamlPrinter Default Json printer

func ExtensionsJsonPrinter

func ExtensionsJsonPrinter(t *response.Clusters, style ui.PrinterStyle)

ExtensionsJsonPrinter - json printer

func ExtensionsYamlPrinter

func ExtensionsYamlPrinter(t *response.Clusters, style ui.PrinterStyle)

func NodePoolJsonPrinter

func NodePoolJsonPrinter(t *response.NodePool, style ui.PrinterStyle)

NodePoolJsonPrinter - json printer

func NodePoolTablePrinter

func NodePoolTablePrinter(p *response.NodePool, style ui.PrinterStyle)

NodePoolTablePrinter - tabular format printer for node pool

func NodePoolYamlPrinter

func NodePoolYamlPrinter(t *response.NodePool, style ui.PrinterStyle)

NodePoolYamlPrinter - json printer

func NodesJsonPrinter

func NodesJsonPrinter(nodePool *response.NodePool, style ui.PrinterStyle)

NodesJsonPrinter - json printer

func NodesTablePrinter

func NodesTablePrinter(nodePool *response.NodePool, style ui.PrinterStyle)

NodesTablePrinter - tabular format printer for node list in node pool

func NodesYamlPrinter

func NodesYamlPrinter(nodePool *response.NodePool, style ui.PrinterStyle)

NodesYamlPrinter node pool yaml printer

func PoolSpecJsonPrinter

func PoolSpecJsonPrinter(spec *response.NodesSpecs, style ui.PrinterStyle)

PoolSpecJsonPrinter - json printer

func PoolSpecTablePrinter

func PoolSpecTablePrinter(spec *response.NodesSpecs, style ui.PrinterStyle)

PoolSpecTablePrinter - tabular format printer for node list in node pool

func PoolSpecYamlPrinter

func PoolSpecYamlPrinter(spec *response.NodesSpecs, style ui.PrinterStyle)

PoolSpecYamlPrinter - json printer

func PoolsFilteredOutput

func PoolsFilteredOutput(r *response.NodePool, style ui.PrinterStyle)

PoolsFilteredOutput output filter for tenants

func RepoJsonPrinter

func RepoJsonPrinter(r *response.ReposList, style ui.PrinterStyle)

RepoJsonPrinter - json printer

func RepoTablePrinter

func RepoTablePrinter(repo *response.ReposList, style ui.PrinterStyle)

RepoTablePrinter - tabular format printer for repos

func RepoYamlPrinter

func RepoYamlPrinter(r *response.ReposList, style ui.PrinterStyle)

func TemplateSpecJsonPrinter

func TemplateSpecJsonPrinter(spec *response.ClusterTemplateSpec, style ui.PrinterStyle)

TemplateSpecJsonPrinter - json printer for cluster templates

func TemplateSpecTablePrinter

func TemplateSpecTablePrinter(spec *response.ClusterTemplateSpec, style ui.PrinterStyle)

TemplateSpecTablePrinter - tabular format printer for cluster templates

func TemplateSpecYamlPrinter

func TemplateSpecYamlPrinter(spec *response.ClusterTemplateSpec, style ui.PrinterStyle)

TemplateSpecYamlPrinter - yaml printer for cluster templates

func TemplatesJsonPrinter

func TemplatesJsonPrinter(specs []response.ClusterTemplateSpec, style ui.PrinterStyle)

TemplatesJsonPrinter - json printer for cluster templates

func TemplatesSpecTablePrinter

func TemplatesSpecTablePrinter(specs []response.ClusterTemplateSpec, style ui.PrinterStyle)

TemplatesSpecTablePrinter - tabular format printer for TCA Cluster templates.

func TemplatesYamlPrinter

func TemplatesYamlPrinter(specs []response.ClusterTemplateSpec, style ui.PrinterStyle)

TemplatesYamlPrinter - yaml printer for cluster templates

func TenantJsonPrinter

func TenantJsonPrinter(t *response.Tenants, style ui.PrinterStyle)

TenantJsonPrinter ClusterJsonPrinter - json printer

func TenantTabularPinter

func TenantTabularPinter(tenants *response.Tenants, style ui.PrinterStyle)

TenantTabularPinter - print tenant data in tabular format

func TenantYamlPrinter

func TenantYamlPrinter(t *response.Tenants, style ui.PrinterStyle)

TenantYamlPrinter - yaml printer for tenant printer

func TenantsFilteredOutput

func TenantsFilteredOutput(r *response.Tenants, style ui.PrinterStyle)

TenantsFilteredOutput output filter for tenants

func TenantsJsonPrinter

func TenantsJsonPrinter(t *response.Tenants, style ui.PrinterStyle)

TenantsJsonPrinter - json printer

func TenantsResponseJsonPrinter

func TenantsResponseJsonPrinter(specs *response.TenantSpecs, style ui.PrinterStyle)

TenantsResponseJsonPrinter - json printer for cluster templates

func TenantsResponseYamlPrinter

func TenantsResponseYamlPrinter(spec *response.TenantSpecs, style ui.PrinterStyle)

TenantsResponseYamlPrinter - json printer for cluster templates

func TenantsTablePrinter

func TenantsTablePrinter(tenants *response.Tenants, style ui.PrinterStyle)

TenantsTablePrinter - tabular format printer for repos

func TenantsYamlPrinter

func TenantsYamlPrinter(t *response.Tenants, style ui.PrinterStyle)

TenantsYamlPrinter - json printer

func VduJsonPrinter

func VduJsonPrinter(t *response.VduPackage, style ui.PrinterStyle)

VduJsonPrinter - json printer

func VduTablePrinter

func VduTablePrinter(vdus *response.VduPackage, style ui.PrinterStyle)

VduTablePrinter ClusterTablePrinter - tabular format printer for repos

func VduYamlPrinter

func VduYamlPrinter(t *response.VduPackage, style ui.PrinterStyle)

VduYamlPrinter - json printer

func VimTablePrinter

func VimTablePrinter(specs *response.TenantSpecs, style ui.PrinterStyle)

VimTablePrinter - tabular format printer for node list in node pool

func VmwareDatastoreTablePrinter

func VmwareDatastoreTablePrinter(specs *models.VMwareClusters, style ui.PrinterStyle)

VmwareDatastoreTablePrinter - tabular format printer for node datastores attached to compute.

func VmwareInventoryJsonPrinter

func VmwareInventoryJsonPrinter(specs *models.VMwareClusters, style ui.PrinterStyle)

VmwareInventoryJsonPrinter - json printer for cluster templates

func VmwareInventoryTablePrinter

func VmwareInventoryTablePrinter(specs *models.VMwareClusters, style ui.PrinterStyle)

VmwareInventoryTablePrinter - tabular format printer for compute nodes, clusters attached to cloud provider.

func VmwareInventoryYamlPrinter

func VmwareInventoryYamlPrinter(spec *models.VMwareClusters, style ui.PrinterStyle)

VmwareInventoryYamlPrinter - json printer for cluster templates

func VmwareNetworkJsonPrinter

func VmwareNetworkJsonPrinter(spec *models.CloudNetworks, style ui.PrinterStyle)

VmwareNetworkJsonPrinter - json printer for cloud networks attached to cloud provider.

func VmwareNetworkTablePrinter

func VmwareNetworkTablePrinter(specs *models.CloudNetworks, style ui.PrinterStyle)

VmwareNetworkTablePrinter - tabular format printer for cloud networks attached to cloud provider.

func VmwareNetworkYamlPrinter

func VmwareNetworkYamlPrinter(specs *models.CloudNetworks, style ui.PrinterStyle)

VmwareNetworkYamlPrinter - json printer for cloud networks attached to cloud provider.

func VmwareResourcePoolJsonPrinter

func VmwareResourcePoolJsonPrinter(specs *models.ResourcePool, style ui.PrinterStyle)

VmwareResourcePoolJsonPrinter - json printer for VMware resource pools attached to compute cluster

func VmwareResourcePoolTablePrinter

func VmwareResourcePoolTablePrinter(specs *models.ResourcePool, style ui.PrinterStyle)

VmwareResourcePoolTablePrinter - a tabular format printer resource pools attached to compute cluster

func VmwareResourcePoolYamlPrinter

func VmwareResourcePoolYamlPrinter(specs *models.ResourcePool, style ui.PrinterStyle)

VmwareResourcePoolYamlPrinter - json printer for VMware resource pools attached to compute cluster

func VmwareTemplateJsonPrinter

func VmwareTemplateJsonPrinter(spec *models.VcInventory, style ui.PrinterStyle)

VmwareTemplateJsonPrinter - json printer for VMware template attached to compute cluster

func VmwareTemplateTablePrinter

func VmwareTemplateTablePrinter(specs *models.VcInventory, style ui.PrinterStyle)

VmwareTemplateTablePrinter - tabular format printer printer for VMware template attached to compute cluster

func VmwareTemplateYamlPrinter

func VmwareTemplateYamlPrinter(specs *models.VcInventory, style ui.PrinterStyle)

VmwareTemplateYamlPrinter - json printer for VMware template attached to compute cluster

func VnfPackageFilteredOutput

func VnfPackageFilteredOutput(r *response.VnfPackages, style ui.PrinterStyle)

VnfPackageFilteredOutput output filter for VnfPackages

func VsphereDatastoresJsonPrinters

func VsphereDatastoresJsonPrinters(specs *vc.VsphereDatastores, style ui.PrinterStyle)

VsphereDatastoresJsonPrinters - json printer for vSphere datastores list cmd

func VsphereDatastoresTablePrinters

func VsphereDatastoresTablePrinters(specs *vc.VsphereDatastores, style ui.PrinterStyle)

VsphereDatastoresTablePrinters - a tabular format printer for vSphere datastores list cmd

func VsphereDatastoresYamlPrinters

func VsphereDatastoresYamlPrinters(specs *vc.VsphereDatastores, style ui.PrinterStyle)

VsphereDatastoresYamlPrinters - json printer for vSphere datastores list cmd

Types

type FilteredOutput

type FilteredOutput interface {
	GetField(field string) string
	GetFields() (map[string]interface{}, error)
}

FilteredOutput filtered output interface suppose to filter based struct field name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL