Documentation
¶
Index ¶
- type Converter
- func (converter *Converter) ConvertDashboardToJson(content []byte, isClusterCrd bool, ns string, name string) error
- func (converter *Converter) ConvertDashboardToYaml(content []byte, isClusterCrd bool, ns string, name string) error
- func (converter *Converter) ConvertFromFile(input io.Reader, isClusterCrd bool, ns string, name string) error
- func (converter *Converter) ConvertToDashboard(content []byte, isClusterCrd bool, ns string, name string) (*k8sDashboard, error)
- func (converter *Converter) ConvertToKubsphereDashboardManifests(input io.Reader, output io.Writer, isClusterCrd bool, ns string, name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
Converter struct: this struct has a log property, so other newly added methods can access this log
func NewConverter ¶
func NewConverter() *Converter
NewConverter: new a Converter struct object with a logger object
func (*Converter) ConvertDashboardToJson ¶ added in v0.2.2
func (converter *Converter) ConvertDashboardToJson(content []byte, isClusterCrd bool, ns string, name string) error
ConvertDashboardToJson converts the input json content to json bytes content
func (*Converter) ConvertDashboardToYaml ¶ added in v0.2.2
func (converter *Converter) ConvertDashboardToYaml(content []byte, isClusterCrd bool, ns string, name string) error
ConvertDashboardToYaml converts the input json content to yaml bytes content
func (*Converter) ConvertFromFile ¶
func (converter *Converter) ConvertFromFile(input io.Reader, isClusterCrd bool, ns string, name string) error
ConvertFromFile converts the input json file to yaml/json bytes content
Click to show internal directories.
Click to hide internal directories.