cmdutils

package
v1.12.0-beta24 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fresh

func Fresh(src proto.Message) proto.Message

Types

type EditFunc

type EditFunc func(prefix, suffix string, r io.Reader) ([]byte, string, error)
var EditFileForTest EditFunc

type Editor

type Editor struct {
	JsonTransform func([]byte) []byte
}

func (*Editor) EditConfig

func (e *Editor) EditConfig(m proto.Message) (proto.Message, error)

func (*Editor) PrintYAML

func (e *Editor) PrintYAML(m proto.Message, w io.Writer) error

func (*Editor) ReadDescriptors

func (e *Editor) ReadDescriptors(data []byte, result proto.Message) error

Jump to

Keyboard shortcuts

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