Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataExtractor ¶
DataExtractor is a type for extracting data relevant for wrap tool from serialized k8s objects
type Format ¶
type Format interface { ExtractData(k8sObject string) (DataExtractor, error) Wrap(k8sObject string) (string, error) IndentLevel() int }
Format is an interface for data formats for wrapper
type JSON ¶
type JSON struct { }
JSON implements format.Format interface
func (JSON) ExtractData ¶
func (f JSON) ExtractData(k8sObject string) (DataExtractor, error)
ExtractData returns data relevant for wrap tool from serialized k8s object
func (JSON) IndentLevel ¶
IndentLevel returns indent level for JSON format
type Yaml ¶
type Yaml struct { }
Yaml implements format.Format interface
func (Yaml) ExtractData ¶
func (f Yaml) ExtractData(k8sObject string) (DataExtractor, error)
ExtractData returns data relevant for wrap tool from serialized k8s object
func (Yaml) IndentLevel ¶
IndentLevel returns indent level for Yaml format
Click to show internal directories.
Click to hide internal directories.