Help us shape the future of Go! Take the 2026 Go Developer Survey

output

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlameResultOutput

type BlameResultOutput struct {
	*sdcpb.BlameTreeElement
}

func NewBlameResultOutput

func NewBlameResultOutput(e *sdcpb.BlameTreeElement) *BlameResultOutput

func (*BlameResultOutput) ToString

func (b *BlameResultOutput) ToString(_ context.Context) (string, error)

func (*BlameResultOutput) ToStringDetails

func (b *BlameResultOutput) ToStringDetails(ctx context.Context) (string, error)

func (*BlameResultOutput) ToStruct

func (b *BlameResultOutput) ToStruct(_ context.Context) (any, error)

func (*BlameResultOutput) WriteToJson

func (b *BlameResultOutput) WriteToJson(ctx context.Context, w io.Writer) error

type ConfigDiffOutput

type ConfigDiffOutput struct {
	// contains filtered or unexported fields
}

func NewConfigDiffOutput

func NewConfigDiffOutput(s string) *ConfigDiffOutput

func (*ConfigDiffOutput) ToString

func (o *ConfigDiffOutput) ToString(_ context.Context) (string, error)

func (*ConfigDiffOutput) ToStringDetails

func (o *ConfigDiffOutput) ToStringDetails(ctx context.Context) (string, error)

func (*ConfigDiffOutput) ToStruct

func (o *ConfigDiffOutput) ToStruct(_ context.Context) (any, error)

func (*ConfigDiffOutput) WriteToJson

func (o *ConfigDiffOutput) WriteToJson(ctx context.Context, w io.Writer) error

type ConfigShowJsonIetfOutput

type ConfigShowJsonIetfOutput struct {
	// contains filtered or unexported fields
}

func NewConfigShowJsonIetfOutput

func NewConfigShowJsonIetfOutput(root TreeToJsonIetf) *ConfigShowJsonIetfOutput

func (*ConfigShowJsonIetfOutput) SetOnlyNewOrUpdated

func (c *ConfigShowJsonIetfOutput) SetOnlyNewOrUpdated(v bool)

func (*ConfigShowJsonIetfOutput) ToString

func (o *ConfigShowJsonIetfOutput) ToString(ctx context.Context) (string, error)

func (*ConfigShowJsonIetfOutput) ToStringDetails

func (o *ConfigShowJsonIetfOutput) ToStringDetails(ctx context.Context) (string, error)

func (*ConfigShowJsonIetfOutput) ToStruct

func (o *ConfigShowJsonIetfOutput) ToStruct(ctx context.Context) (any, error)

func (*ConfigShowJsonIetfOutput) WriteToJson

func (o *ConfigShowJsonIetfOutput) WriteToJson(ctx context.Context, w io.Writer) error

type ConfigShowJsonOutput

type ConfigShowJsonOutput struct {
	// contains filtered or unexported fields
}

func NewConfigShowJsonOutput

func NewConfigShowJsonOutput(root TreeToJson) *ConfigShowJsonOutput

func (*ConfigShowJsonOutput) SetOnlyNewOrUpdated

func (c *ConfigShowJsonOutput) SetOnlyNewOrUpdated(v bool)

func (*ConfigShowJsonOutput) ToString

func (o *ConfigShowJsonOutput) ToString(ctx context.Context) (string, error)

func (*ConfigShowJsonOutput) ToStringDetails

func (o *ConfigShowJsonOutput) ToStringDetails(ctx context.Context) (string, error)

func (*ConfigShowJsonOutput) ToStruct

func (o *ConfigShowJsonOutput) ToStruct(ctx context.Context) (any, error)

func (*ConfigShowJsonOutput) WriteToJson

func (o *ConfigShowJsonOutput) WriteToJson(ctx context.Context, w io.Writer) error

type ConfigShowXPathOutput

type ConfigShowXPathOutput struct {
	// contains filtered or unexported fields
}

func NewConfigShowXPathOutput

func NewConfigShowXPathOutput(data TreeToXPath) *ConfigShowXPathOutput

func (*ConfigShowXPathOutput) ToString

func (o *ConfigShowXPathOutput) ToString(ctx context.Context) (string, error)

func (*ConfigShowXPathOutput) ToStringDetails

func (o *ConfigShowXPathOutput) ToStringDetails(ctx context.Context) (string, error)

func (*ConfigShowXPathOutput) ToStruct

func (o *ConfigShowXPathOutput) ToStruct(ctx context.Context) (any, error)

func (*ConfigShowXPathOutput) WriteToJson

func (o *ConfigShowXPathOutput) WriteToJson(ctx context.Context, w io.Writer) error

type ConfigShowXmlOutput

type ConfigShowXmlOutput struct {
	// contains filtered or unexported fields
}

func NewConfigShowXmlOutput

func NewConfigShowXmlOutput(root TreeToXML) *ConfigShowXmlOutput

func (*ConfigShowXmlOutput) SetHonorNamespace

func (c *ConfigShowXmlOutput) SetHonorNamespace(v bool)

func (*ConfigShowXmlOutput) SetOnlyNewOrUpdated

func (c *ConfigShowXmlOutput) SetOnlyNewOrUpdated(v bool)

func (*ConfigShowXmlOutput) SetOperationWithNamespace

func (c *ConfigShowXmlOutput) SetOperationWithNamespace(v bool)

func (*ConfigShowXmlOutput) SetUseOperationRemove

func (c *ConfigShowXmlOutput) SetUseOperationRemove(v bool)

func (*ConfigShowXmlOutput) ToString

func (o *ConfigShowXmlOutput) ToString(ctx context.Context) (string, error)

func (*ConfigShowXmlOutput) ToStringDetails

func (o *ConfigShowXmlOutput) ToStringDetails(ctx context.Context) (string, error)

func (*ConfigShowXmlOutput) ToStruct

func (o *ConfigShowXmlOutput) ToStruct(ctx context.Context) (any, error)

func (*ConfigShowXmlOutput) WriteToJson

func (o *ConfigShowXmlOutput) WriteToJson(ctx context.Context, w io.Writer) error

type ConfigShowYamlOutput

type ConfigShowYamlOutput struct {
	// contains filtered or unexported fields
}

func NewConfigShowYamlOutput

func NewConfigShowYamlOutput(root TreeToJson) *ConfigShowYamlOutput

func (*ConfigShowYamlOutput) SetOnlyNewOrUpdated

func (c *ConfigShowYamlOutput) SetOnlyNewOrUpdated(v bool)

func (*ConfigShowYamlOutput) ToString

func (o *ConfigShowYamlOutput) ToString(ctx context.Context) (string, error)

func (*ConfigShowYamlOutput) ToStringDetails

func (o *ConfigShowYamlOutput) ToStringDetails(ctx context.Context) (string, error)

func (*ConfigShowYamlOutput) ToStruct

func (o *ConfigShowYamlOutput) ToStruct(ctx context.Context) (any, error)

func (*ConfigShowYamlOutput) WriteToJson

func (o *ConfigShowYamlOutput) WriteToJson(ctx context.Context, w io.Writer) error

type ConfigValidateOutput

type ConfigValidateOutput struct {
	// contains filtered or unexported fields
}

func NewConfigValidateOutput

func NewConfigValidateOutput(result types.ValidationResults, stats *types.ValidationStats) *ConfigValidateOutput

func (*ConfigValidateOutput) ToString

func (cvo *ConfigValidateOutput) ToString(ctx context.Context) (string, error)

func (*ConfigValidateOutput) ToStringDetails

func (cvo *ConfigValidateOutput) ToStringDetails(ctx context.Context) (string, error)

func (*ConfigValidateOutput) ToStruct

func (cvo *ConfigValidateOutput) ToStruct(ctx context.Context) (any, error)

func (*ConfigValidateOutput) WriteToJson

func (cvo *ConfigValidateOutput) WriteToJson(ctx context.Context, w io.Writer) error

type ErrorOutput

type ErrorOutput struct {
	Error error
}

func NewErrorOutput

func NewErrorOutput(err error) *ErrorOutput

func (*ErrorOutput) ToString

func (c *ErrorOutput) ToString(_ context.Context) (string, error)

func (*ErrorOutput) ToStringDetails

func (c *ErrorOutput) ToStringDetails(_ context.Context) (string, error)

func (*ErrorOutput) ToStruct

func (c *ErrorOutput) ToStruct(_ context.Context) (any, error)

func (*ErrorOutput) WriteToJson

func (c *ErrorOutput) WriteToJson(ctx context.Context, w io.Writer) error

type FlagsOutput

type FlagsOutput struct {
	New            bool `json:"new,omitempty"`
	Delete         bool `json:"delete,omitempty"`
	OnlyIntended   bool `json:"OnlyIntended,omitempty"`
	ExplicitDelete bool `json:"ExplicitDelete,omitempty"`
}

func NewFlagsOutput

func NewFlagsOutput(f *dsTypes.UpdateInsertFlags) *FlagsOutput

func (*FlagsOutput) ToString

func (f *FlagsOutput) ToString(_ context.Context) (string, error)

func (*FlagsOutput) ToStringDetails

func (f *FlagsOutput) ToStringDetails(ctx context.Context) (string, error)

func (*FlagsOutput) ToStruct

func (f *FlagsOutput) ToStruct(_ context.Context) (any, error)

func (*FlagsOutput) WriteToJson

func (f *FlagsOutput) WriteToJson(_ context.Context, w io.Writer) error

type IntentOutput

type IntentOutput struct {
	Name     string `json:"target"`
	Priority int32  `json:"priority"`
}

func (*IntentOutput) ToString

func (i *IntentOutput) ToString(_ context.Context) (string, error)

func (*IntentOutput) ToStringDetails

func (i *IntentOutput) ToStringDetails(ctx context.Context) (string, error)

func (*IntentOutput) ToStruct

func (i *IntentOutput) ToStruct(_ context.Context) (any, error)

func (*IntentOutput) WriteToJson

func (i *IntentOutput) WriteToJson(_ context.Context, w io.Writer) error

type NullOutput

type NullOutput struct {
}

func NewNullOutput

func NewNullOutput() *NullOutput

func (*NullOutput) ToString

func (c *NullOutput) ToString(_ context.Context) (string, error)

func (*NullOutput) ToStringDetails

func (c *NullOutput) ToStringDetails(_ context.Context) (string, error)

func (*NullOutput) ToStruct

func (c *NullOutput) ToStruct(_ context.Context) (any, error)

func (*NullOutput) WriteToJson

func (c *NullOutput) WriteToJson(ctx context.Context, w io.Writer) error

type SchemaOutput

type SchemaOutput struct {
	Vendor  string `json:"vendor"`
	Version string `json:"version"`
}

func NewSchemaOutput

func NewSchemaOutput(s *sdcpb.Schema) *SchemaOutput

func (*SchemaOutput) ToString

func (s *SchemaOutput) ToString(_ context.Context) (string, error)

func (*SchemaOutput) ToStringDetails

func (s *SchemaOutput) ToStringDetails(ctx context.Context) (string, error)

func (*SchemaOutput) ToStruct

func (s *SchemaOutput) ToStruct(_ context.Context) (any, error)

func (*SchemaOutput) WriteToJson

func (s *SchemaOutput) WriteToJson(ctx context.Context, w io.Writer) error

type SchemaOutputSlice

type SchemaOutputSlice []*SchemaOutput

func NewSchemaOutputList

func NewSchemaOutputList(ss []*sdcpb.Schema) SchemaOutputSlice

func (SchemaOutputSlice) ToString

func (s SchemaOutputSlice) ToString(ctx context.Context) (string, error)

func (SchemaOutputSlice) ToStringDetails

func (s SchemaOutputSlice) ToStringDetails(ctx context.Context) (string, error)

func (SchemaOutputSlice) ToStruct

func (s SchemaOutputSlice) ToStruct(_ context.Context) (any, error)

func (SchemaOutputSlice) WriteToJson

func (s SchemaOutputSlice) WriteToJson(ctx context.Context, w io.Writer) error

type TargetOutput

type TargetOutput struct {
	TargetName string          `json:"target"`
	TargetPath string          `json:"target-path"`
	Schema     *SchemaOutput   `json:"schema"`
	Intents    []*IntentOutput `json:"intents"`
}

func (*TargetOutput) ToString

func (t *TargetOutput) ToString(ctx context.Context) (string, error)

func (*TargetOutput) ToStringDetails

func (t *TargetOutput) ToStringDetails(ctx context.Context) (string, error)

func (*TargetOutput) ToStruct

func (t *TargetOutput) ToStruct(_ context.Context) (any, error)

func (*TargetOutput) WriteToJson

func (t *TargetOutput) WriteToJson(_ context.Context, w io.Writer) error

type TargetOutputSlice

type TargetOutputSlice []*TargetOutput

func (TargetOutputSlice) ToString

func (t TargetOutputSlice) ToString(ctx context.Context) (string, error)

func (TargetOutputSlice) ToStringDetails

func (t TargetOutputSlice) ToStringDetails(ctx context.Context) (string, error)

func (TargetOutputSlice) ToStruct

func (t TargetOutputSlice) ToStruct(_ context.Context) (any, error)

func (TargetOutputSlice) WriteToJson

func (t TargetOutputSlice) WriteToJson(_ context.Context, w io.Writer) error

type TreeToJson

type TreeToJson interface {
	ToJson(ctx context.Context, onlyNewOrUpdated bool) (any, error)
}

type TreeToJsonIetf

type TreeToJsonIetf interface {
	ToJsonIETF(ctx context.Context, onlyNewOrUpdated bool) (any, error)
}

type TreeToXML

type TreeToXML interface {
	ToXML(ctx context.Context, onlyNewOrUpdated bool, honorNamespace bool, operationWithNamespace bool, useOperationRemove bool) (*etree.Document, error)
}

type TreeToXPath

type TreeToXPath interface {
	GetHighestPrecedence(ctx context.Context, onlyNewOrUpdated bool, includeDefaults bool, includeExplicitDelete bool) api.LeafVariantSlice
}

Jump to

Keyboard shortcuts

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