Documentation ¶
Index ¶
- func ClientObjects[K NodeResource](nodes []K) []client.Object
- func Describe(w io.Writer, pairs []*DescriberKV)
- func Print(p Printer, resourceModel *resourcediscovery.ResourceModel, ...)
- func SortByString[K NodeResource](items []K) []K
- type BackendsPrinter
- type DescriberKV
- type GatewayClassesPrinter
- func (gcp *GatewayClassesPrinter) GetPrintableNodes(resourceModel *resourcediscovery.ResourceModel) []NodeResource
- func (gcp *GatewayClassesPrinter) PrintDescribeView(resourceModel *resourcediscovery.ResourceModel)
- func (gcp *GatewayClassesPrinter) PrintTable(resourceModel *resourcediscovery.ResourceModel, wide bool)
- type GatewaysPrinter
- type HTTPRoutesPrinter
- func (hp *HTTPRoutesPrinter) GetPrintableNodes(resourceModel *resourcediscovery.ResourceModel) []NodeResource
- func (hp *HTTPRoutesPrinter) PrintDescribeView(resourceModel *resourcediscovery.ResourceModel)
- func (hp *HTTPRoutesPrinter) PrintTable(resourceModel *resourcediscovery.ResourceModel, wide bool)
- type NamespacesPrinter
- func (nsp *NamespacesPrinter) GetPrintableNodes(resourceModel *resourcediscovery.ResourceModel) []NodeResource
- func (nsp *NamespacesPrinter) PrintDescribeView(resourceModel *resourcediscovery.ResourceModel)
- func (nsp *NamespacesPrinter) PrintTable(resourceModel *resourcediscovery.ResourceModel, wide bool)
- type NodeResource
- type PoliciesPrinter
- func (pp *PoliciesPrinter) PrintCRDs(policyCRDs []policymanager.PolicyCRD, format utils.OutputFormat)
- func (pp *PoliciesPrinter) PrintPolicies(policies []policymanager.Policy, format utils.OutputFormat)
- func (pp *PoliciesPrinter) PrintPoliciesDescribeView(policies []policymanager.Policy)
- func (pp *PoliciesPrinter) PrintPolicyCRDsDescribeView(policyCrds []policymanager.PolicyCRD)
- type Printer
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientObjects ¶
func ClientObjects[K NodeResource](nodes []K) []client.Object
func Describe ¶
func Describe(w io.Writer, pairs []*DescriberKV)
Describe writes the key-value paris to the writer. It handles things like properly writing special data types like Tables.
func Print ¶
func Print(p Printer, resourceModel *resourcediscovery.ResourceModel, format utils.OutputFormat)
func SortByString ¶
func SortByString[K NodeResource](items []K) []K
Types ¶
type BackendsPrinter ¶
func (*BackendsPrinter) GetPrintableNodes ¶
func (bp *BackendsPrinter) GetPrintableNodes(resourceModel *resourcediscovery.ResourceModel) []NodeResource
func (*BackendsPrinter) PrintDescribeView ¶
func (bp *BackendsPrinter) PrintDescribeView(resourceModel *resourcediscovery.ResourceModel)
func (*BackendsPrinter) PrintTable ¶
func (bp *BackendsPrinter) PrintTable(resourceModel *resourcediscovery.ResourceModel, wide bool)
type DescriberKV ¶
DescriberKV stores key-value pairs that are used with Describing a resource.
type GatewayClassesPrinter ¶
func (*GatewayClassesPrinter) GetPrintableNodes ¶
func (gcp *GatewayClassesPrinter) GetPrintableNodes(resourceModel *resourcediscovery.ResourceModel) []NodeResource
func (*GatewayClassesPrinter) PrintDescribeView ¶
func (gcp *GatewayClassesPrinter) PrintDescribeView(resourceModel *resourcediscovery.ResourceModel)
func (*GatewayClassesPrinter) PrintTable ¶
func (gcp *GatewayClassesPrinter) PrintTable(resourceModel *resourcediscovery.ResourceModel, wide bool)
type GatewaysPrinter ¶
func (*GatewaysPrinter) GetPrintableNodes ¶
func (gp *GatewaysPrinter) GetPrintableNodes(resourceModel *resourcediscovery.ResourceModel) []NodeResource
func (*GatewaysPrinter) PrintDescribeView ¶
func (gp *GatewaysPrinter) PrintDescribeView(resourceModel *resourcediscovery.ResourceModel)
func (*GatewaysPrinter) PrintTable ¶
func (gp *GatewaysPrinter) PrintTable(resourceModel *resourcediscovery.ResourceModel, wide bool)
type HTTPRoutesPrinter ¶
func (*HTTPRoutesPrinter) GetPrintableNodes ¶
func (hp *HTTPRoutesPrinter) GetPrintableNodes(resourceModel *resourcediscovery.ResourceModel) []NodeResource
func (*HTTPRoutesPrinter) PrintDescribeView ¶
func (hp *HTTPRoutesPrinter) PrintDescribeView(resourceModel *resourcediscovery.ResourceModel)
func (*HTTPRoutesPrinter) PrintTable ¶
func (hp *HTTPRoutesPrinter) PrintTable(resourceModel *resourcediscovery.ResourceModel, wide bool)
type NamespacesPrinter ¶
func (*NamespacesPrinter) GetPrintableNodes ¶
func (nsp *NamespacesPrinter) GetPrintableNodes(resourceModel *resourcediscovery.ResourceModel) []NodeResource
func (*NamespacesPrinter) PrintDescribeView ¶
func (nsp *NamespacesPrinter) PrintDescribeView(resourceModel *resourcediscovery.ResourceModel)
func (*NamespacesPrinter) PrintTable ¶
func (nsp *NamespacesPrinter) PrintTable(resourceModel *resourcediscovery.ResourceModel, wide bool)
type NodeResource ¶
func NodeResources ¶
func NodeResources[K NodeResource](items []K) []NodeResource
type PoliciesPrinter ¶
func (*PoliciesPrinter) PrintCRDs ¶
func (pp *PoliciesPrinter) PrintCRDs(policyCRDs []policymanager.PolicyCRD, format utils.OutputFormat)
func (*PoliciesPrinter) PrintPolicies ¶
func (pp *PoliciesPrinter) PrintPolicies(policies []policymanager.Policy, format utils.OutputFormat)
func (*PoliciesPrinter) PrintPoliciesDescribeView ¶
func (pp *PoliciesPrinter) PrintPoliciesDescribeView(policies []policymanager.Policy)
func (*PoliciesPrinter) PrintPolicyCRDsDescribeView ¶
func (pp *PoliciesPrinter) PrintPolicyCRDsDescribeView(policyCrds []policymanager.PolicyCRD)
type Printer ¶
type Printer interface { io.Writer GetPrintableNodes(resourceModel *resourcediscovery.ResourceModel) []NodeResource PrintTable(resourceModel *resourcediscovery.ResourceModel, wide bool) }
Click to show internal directories.
Click to hide internal directories.