Documentation
¶
Index ¶
- type BlameResultOutput
- func (b *BlameResultOutput) ToString(_ context.Context) (string, error)
- func (b *BlameResultOutput) ToStringDetails(ctx context.Context) (string, error)
- func (b *BlameResultOutput) ToStruct(_ context.Context) (any, error)
- func (b *BlameResultOutput) WriteToJson(ctx context.Context, w io.Writer) error
- type ConfigDiffOutput
- type ConfigShowJsonIetfOutput
- func (c *ConfigShowJsonIetfOutput) SetOnlyNewOrUpdated(v bool)
- func (o *ConfigShowJsonIetfOutput) ToString(ctx context.Context) (string, error)
- func (o *ConfigShowJsonIetfOutput) ToStringDetails(ctx context.Context) (string, error)
- func (o *ConfigShowJsonIetfOutput) ToStruct(ctx context.Context) (any, error)
- func (o *ConfigShowJsonIetfOutput) WriteToJson(ctx context.Context, w io.Writer) error
- type ConfigShowJsonOutput
- func (c *ConfigShowJsonOutput) SetOnlyNewOrUpdated(v bool)
- func (o *ConfigShowJsonOutput) ToString(ctx context.Context) (string, error)
- func (o *ConfigShowJsonOutput) ToStringDetails(ctx context.Context) (string, error)
- func (o *ConfigShowJsonOutput) ToStruct(ctx context.Context) (any, error)
- func (o *ConfigShowJsonOutput) WriteToJson(ctx context.Context, w io.Writer) error
- type ConfigShowXPathOutput
- func (o *ConfigShowXPathOutput) ToString(ctx context.Context) (string, error)
- func (o *ConfigShowXPathOutput) ToStringDetails(ctx context.Context) (string, error)
- func (o *ConfigShowXPathOutput) ToStruct(ctx context.Context) (any, error)
- func (o *ConfigShowXPathOutput) WriteToJson(ctx context.Context, w io.Writer) error
- type ConfigShowXmlOutput
- func (c *ConfigShowXmlOutput) SetHonorNamespace(v bool)
- func (c *ConfigShowXmlOutput) SetOnlyNewOrUpdated(v bool)
- func (c *ConfigShowXmlOutput) SetOperationWithNamespace(v bool)
- func (c *ConfigShowXmlOutput) SetUseOperationRemove(v bool)
- func (o *ConfigShowXmlOutput) ToString(ctx context.Context) (string, error)
- func (o *ConfigShowXmlOutput) ToStringDetails(ctx context.Context) (string, error)
- func (o *ConfigShowXmlOutput) ToStruct(ctx context.Context) (any, error)
- func (o *ConfigShowXmlOutput) WriteToJson(ctx context.Context, w io.Writer) error
- type ConfigShowYamlOutput
- func (c *ConfigShowYamlOutput) SetOnlyNewOrUpdated(v bool)
- func (o *ConfigShowYamlOutput) ToString(ctx context.Context) (string, error)
- func (o *ConfigShowYamlOutput) ToStringDetails(ctx context.Context) (string, error)
- func (o *ConfigShowYamlOutput) ToStruct(ctx context.Context) (any, error)
- func (o *ConfigShowYamlOutput) WriteToJson(ctx context.Context, w io.Writer) error
- type ConfigValidateOutput
- func (cvo *ConfigValidateOutput) ToString(ctx context.Context) (string, error)
- func (cvo *ConfigValidateOutput) ToStringDetails(ctx context.Context) (string, error)
- func (cvo *ConfigValidateOutput) ToStruct(ctx context.Context) (any, error)
- func (cvo *ConfigValidateOutput) WriteToJson(ctx context.Context, w io.Writer) error
- type ErrorOutput
- type FlagsOutput
- type IntentOutput
- type NullOutput
- type SchemaOutput
- type SchemaOutputSlice
- type TargetOutput
- type TargetOutputSlice
- type TreeToJson
- type TreeToJsonIetf
- type TreeToXML
- type TreeToXPath
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type ErrorOutput ¶
type ErrorOutput struct {
Error error
}
func NewErrorOutput ¶
func NewErrorOutput(err error) *ErrorOutput
func (*ErrorOutput) ToStringDetails ¶
func (c *ErrorOutput) ToStringDetails(_ context.Context) (string, error)
func (*ErrorOutput) WriteToJson ¶
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) ToStringDetails ¶
func (f *FlagsOutput) ToStringDetails(ctx context.Context) (string, error)
func (*FlagsOutput) WriteToJson ¶
type IntentOutput ¶
func (*IntentOutput) ToStringDetails ¶
func (i *IntentOutput) ToStringDetails(ctx context.Context) (string, error)
func (*IntentOutput) WriteToJson ¶
type NullOutput ¶
type NullOutput struct {
}
func NewNullOutput ¶
func NewNullOutput() *NullOutput
func (*NullOutput) ToStringDetails ¶
func (c *NullOutput) ToStringDetails(_ context.Context) (string, error)
func (*NullOutput) WriteToJson ¶
type SchemaOutput ¶
func NewSchemaOutput ¶
func NewSchemaOutput(s *sdcpb.Schema) *SchemaOutput
func (*SchemaOutput) ToStringDetails ¶
func (s *SchemaOutput) ToStringDetails(ctx context.Context) (string, error)
func (*SchemaOutput) WriteToJson ¶
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 ¶
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) WriteToJson ¶
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 ¶
type TreeToJson ¶
type TreeToJsonIetf ¶
type TreeToXPath ¶
Click to show internal directories.
Click to hide internal directories.