Documentation ¶
Index ¶
- Variables
- type Diagnostic
- func (*Diagnostic) Descriptor() ([]byte, []int)deprecated
- func (x *Diagnostic) GetMessage() string
- func (x *Diagnostic) GetSeverity() int32
- func (*Diagnostic) ProtoMessage()
- func (x *Diagnostic) ProtoReflect() protoreflect.Message
- func (x *Diagnostic) Reset()
- func (x *Diagnostic) String() string
- func (m *Diagnostic) Validate() error
- func (m *Diagnostic) ValidateAll() error
- type DiagnosticMultiError
- type DiagnosticValidationError
- type File
- type FileMultiError
- type FileValidationError
- type Inputs
- func (*Inputs) Descriptor() ([]byte, []int)deprecated
- func (x *Inputs) GetErrors() map[string]*v1.Error
- func (x *Inputs) GetResources() map[string]*v1.Resource
- func (x *Inputs) GetVars() map[string]string
- func (*Inputs) ProtoMessage()
- func (x *Inputs) ProtoReflect() protoreflect.Message
- func (x *Inputs) Reset()
- func (x *Inputs) String() string
- func (m *Inputs) Validate() error
- func (m *Inputs) ValidateAll() error
- type InputsMultiError
- type InputsValidationError
- type Layouts
- func (*Layouts) Descriptor() ([]byte, []int)deprecated
- func (x *Layouts) GetFiles() map[string]*File
- func (*Layouts) ProtoMessage()
- func (x *Layouts) ProtoReflect() protoreflect.Message
- func (x *Layouts) Reset()
- func (x *Layouts) String() string
- func (m *Layouts) Validate() error
- func (m *Layouts) ValidateAll() error
- type LayoutsMultiError
- type LayoutsValidationError
- type Manifest
- func (*Manifest) Descriptor() ([]byte, []int)deprecated
- func (x *Manifest) GetDiagnostics() []*Diagnostic
- func (x *Manifest) GetInputs() *Inputs
- func (x *Manifest) GetLayouts() *Layouts
- func (x *Manifest) GetName() string
- func (x *Manifest) GetOutputs() *Outputs
- func (*Manifest) ProtoMessage()
- func (x *Manifest) ProtoReflect() protoreflect.Message
- func (x *Manifest) Reset()
- func (x *Manifest) String() string
- func (m *Manifest) Validate() error
- func (m *Manifest) ValidateAll() error
- type ManifestMultiError
- type ManifestValidationError
- type Outputs
- func (*Outputs) Descriptor() ([]byte, []int)deprecated
- func (x *Outputs) GetFiles() map[string]*File
- func (*Outputs) ProtoMessage()
- func (x *Outputs) ProtoReflect() protoreflect.Message
- func (x *Outputs) Reset()
- func (x *Outputs) String() string
- func (m *Outputs) Validate() error
- func (m *Outputs) ValidateAll() error
- type OutputsMultiError
- type OutputsValidationError
Constants ¶
This section is empty.
Variables ¶
var File_pkg_template_v1_template_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
type Diagnostic struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Severity int32 `protobuf:"varint,2,opt,name=severity,proto3" json:"severity,omitempty"` // contains filtered or unexported fields }
Diagnostic is a diagnostic message.
func (*Diagnostic) Descriptor
deprecated
func (*Diagnostic) Descriptor() ([]byte, []int)
Deprecated: Use Diagnostic.ProtoReflect.Descriptor instead.
func (*Diagnostic) GetMessage ¶
func (x *Diagnostic) GetMessage() string
func (*Diagnostic) GetSeverity ¶
func (x *Diagnostic) GetSeverity() int32
func (*Diagnostic) ProtoMessage ¶
func (*Diagnostic) ProtoMessage()
func (*Diagnostic) ProtoReflect ¶
func (x *Diagnostic) ProtoReflect() protoreflect.Message
func (*Diagnostic) Reset ¶
func (x *Diagnostic) Reset()
func (*Diagnostic) String ¶
func (x *Diagnostic) String() string
func (*Diagnostic) Validate ¶
func (m *Diagnostic) Validate() error
Validate checks the field values on Diagnostic with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Diagnostic) ValidateAll ¶
func (m *Diagnostic) ValidateAll() error
ValidateAll checks the field values on Diagnostic with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DiagnosticMultiError, or nil if none found.
type DiagnosticMultiError ¶
type DiagnosticMultiError []error
DiagnosticMultiError is an error wrapping multiple validation errors returned by Diagnostic.ValidateAll() if the designated constraints aren't met.
func (DiagnosticMultiError) AllErrors ¶
func (m DiagnosticMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DiagnosticMultiError) Error ¶
func (m DiagnosticMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DiagnosticValidationError ¶
type DiagnosticValidationError struct {
// contains filtered or unexported fields
}
DiagnosticValidationError is the validation error returned by Diagnostic.Validate if the designated constraints aren't met.
func (DiagnosticValidationError) Cause ¶
func (e DiagnosticValidationError) Cause() error
Cause function returns cause value.
func (DiagnosticValidationError) Error ¶
func (e DiagnosticValidationError) Error() string
Error satisfies the builtin error interface
func (DiagnosticValidationError) ErrorName ¶
func (e DiagnosticValidationError) ErrorName() string
ErrorName returns error name.
func (DiagnosticValidationError) Field ¶
func (e DiagnosticValidationError) Field() string
Field function returns field value.
func (DiagnosticValidationError) Key ¶
func (e DiagnosticValidationError) Key() bool
Key function returns key value.
func (DiagnosticValidationError) Reason ¶
func (e DiagnosticValidationError) Reason() string
Reason function returns reason value.
type File ¶
type File struct { Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
Output is a template output.
func (*File) Descriptor
deprecated
func (*File) GetContent ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) ProtoReflect ¶
func (x *File) ProtoReflect() protoreflect.Message
func (*File) Validate ¶
Validate checks the field values on File with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*File) ValidateAll ¶
ValidateAll checks the field values on File with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FileMultiError, or nil if none found.
type FileMultiError ¶
type FileMultiError []error
FileMultiError is an error wrapping multiple validation errors returned by File.ValidateAll() if the designated constraints aren't met.
func (FileMultiError) AllErrors ¶
func (m FileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FileMultiError) Error ¶
func (m FileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FileValidationError ¶
type FileValidationError struct {
// contains filtered or unexported fields
}
FileValidationError is the validation error returned by File.Validate if the designated constraints aren't met.
func (FileValidationError) Cause ¶
func (e FileValidationError) Cause() error
Cause function returns cause value.
func (FileValidationError) Error ¶
func (e FileValidationError) Error() string
Error satisfies the builtin error interface
func (FileValidationError) ErrorName ¶
func (e FileValidationError) ErrorName() string
ErrorName returns error name.
func (FileValidationError) Field ¶
func (e FileValidationError) Field() string
Field function returns field value.
func (FileValidationError) Key ¶
func (e FileValidationError) Key() bool
Key function returns key value.
func (FileValidationError) Reason ¶
func (e FileValidationError) Reason() string
Reason function returns reason value.
type Inputs ¶
type Inputs struct { Vars map[string]string `` /* 149-byte string literal not displayed */ Resources map[string]*v1.Resource `` /* 159-byte string literal not displayed */ Errors map[string]*v1.Error `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
Inputs is a set of inputs for a template.
func (*Inputs) Descriptor
deprecated
func (*Inputs) ProtoMessage ¶
func (*Inputs) ProtoMessage()
func (*Inputs) ProtoReflect ¶
func (x *Inputs) ProtoReflect() protoreflect.Message
func (*Inputs) Validate ¶
Validate checks the field values on Inputs with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Inputs) ValidateAll ¶
ValidateAll checks the field values on Inputs with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in InputsMultiError, or nil if none found.
type InputsMultiError ¶
type InputsMultiError []error
InputsMultiError is an error wrapping multiple validation errors returned by Inputs.ValidateAll() if the designated constraints aren't met.
func (InputsMultiError) AllErrors ¶
func (m InputsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InputsMultiError) Error ¶
func (m InputsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InputsValidationError ¶
type InputsValidationError struct {
// contains filtered or unexported fields
}
InputsValidationError is the validation error returned by Inputs.Validate if the designated constraints aren't met.
func (InputsValidationError) Cause ¶
func (e InputsValidationError) Cause() error
Cause function returns cause value.
func (InputsValidationError) Error ¶
func (e InputsValidationError) Error() string
Error satisfies the builtin error interface
func (InputsValidationError) ErrorName ¶
func (e InputsValidationError) ErrorName() string
ErrorName returns error name.
func (InputsValidationError) Field ¶
func (e InputsValidationError) Field() string
Field function returns field value.
func (InputsValidationError) Key ¶
func (e InputsValidationError) Key() bool
Key function returns key value.
func (InputsValidationError) Reason ¶
func (e InputsValidationError) Reason() string
Reason function returns reason value.
type Layouts ¶ added in v0.0.2
type Layouts struct { Files map[string]*File `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
Layouts is a set of layouts for a template.
func (*Layouts) Descriptor
deprecated
added in
v0.0.2
func (*Layouts) ProtoMessage ¶ added in v0.0.2
func (*Layouts) ProtoMessage()
func (*Layouts) ProtoReflect ¶ added in v0.0.2
func (x *Layouts) ProtoReflect() protoreflect.Message
func (*Layouts) Validate ¶ added in v0.0.2
Validate checks the field values on Layouts with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Layouts) ValidateAll ¶ added in v0.0.2
ValidateAll checks the field values on Layouts with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LayoutsMultiError, or nil if none found.
type LayoutsMultiError ¶ added in v0.0.2
type LayoutsMultiError []error
LayoutsMultiError is an error wrapping multiple validation errors returned by Layouts.ValidateAll() if the designated constraints aren't met.
func (LayoutsMultiError) AllErrors ¶ added in v0.0.2
func (m LayoutsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LayoutsMultiError) Error ¶ added in v0.0.2
func (m LayoutsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LayoutsValidationError ¶ added in v0.0.2
type LayoutsValidationError struct {
// contains filtered or unexported fields
}
LayoutsValidationError is the validation error returned by Layouts.Validate if the designated constraints aren't met.
func (LayoutsValidationError) Cause ¶ added in v0.0.2
func (e LayoutsValidationError) Cause() error
Cause function returns cause value.
func (LayoutsValidationError) Error ¶ added in v0.0.2
func (e LayoutsValidationError) Error() string
Error satisfies the builtin error interface
func (LayoutsValidationError) ErrorName ¶ added in v0.0.2
func (e LayoutsValidationError) ErrorName() string
ErrorName returns error name.
func (LayoutsValidationError) Field ¶ added in v0.0.2
func (e LayoutsValidationError) Field() string
Field function returns field value.
func (LayoutsValidationError) Key ¶ added in v0.0.2
func (e LayoutsValidationError) Key() bool
Key function returns key value.
func (LayoutsValidationError) Reason ¶ added in v0.0.2
func (e LayoutsValidationError) Reason() string
Reason function returns reason value.
type Manifest ¶
type Manifest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Inputs *Inputs `protobuf:"bytes,2,opt,name=inputs,proto3" json:"inputs,omitempty"` Outputs *Outputs `protobuf:"bytes,3,opt,name=outputs,proto3" json:"outputs,omitempty"` Diagnostics []*Diagnostic `protobuf:"bytes,4,rep,name=diagnostics,proto3" json:"diagnostics,omitempty"` Layouts *Layouts `protobuf:"bytes,5,opt,name=layouts,proto3" json:"layouts,omitempty"` // contains filtered or unexported fields }
Manifest is a template definitions that generates files from templates.
func (*Manifest) Descriptor
deprecated
func (*Manifest) GetDiagnostics ¶
func (x *Manifest) GetDiagnostics() []*Diagnostic
func (*Manifest) GetLayouts ¶ added in v0.0.2
func (*Manifest) GetOutputs ¶
func (*Manifest) ProtoMessage ¶
func (*Manifest) ProtoMessage()
func (*Manifest) ProtoReflect ¶
func (x *Manifest) ProtoReflect() protoreflect.Message
func (*Manifest) Validate ¶
Validate checks the field values on Manifest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Manifest) ValidateAll ¶
ValidateAll checks the field values on Manifest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ManifestMultiError, or nil if none found.
type ManifestMultiError ¶
type ManifestMultiError []error
ManifestMultiError is an error wrapping multiple validation errors returned by Manifest.ValidateAll() if the designated constraints aren't met.
func (ManifestMultiError) AllErrors ¶
func (m ManifestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ManifestMultiError) Error ¶
func (m ManifestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ManifestValidationError ¶
type ManifestValidationError struct {
// contains filtered or unexported fields
}
ManifestValidationError is the validation error returned by Manifest.Validate if the designated constraints aren't met.
func (ManifestValidationError) Cause ¶
func (e ManifestValidationError) Cause() error
Cause function returns cause value.
func (ManifestValidationError) Error ¶
func (e ManifestValidationError) Error() string
Error satisfies the builtin error interface
func (ManifestValidationError) ErrorName ¶
func (e ManifestValidationError) ErrorName() string
ErrorName returns error name.
func (ManifestValidationError) Field ¶
func (e ManifestValidationError) Field() string
Field function returns field value.
func (ManifestValidationError) Key ¶
func (e ManifestValidationError) Key() bool
Key function returns key value.
func (ManifestValidationError) Reason ¶
func (e ManifestValidationError) Reason() string
Reason function returns reason value.
type Outputs ¶
type Outputs struct { Files map[string]*File `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
Outputs is a set of outputs for a template.
func (*Outputs) Descriptor
deprecated
func (*Outputs) ProtoMessage ¶
func (*Outputs) ProtoMessage()
func (*Outputs) ProtoReflect ¶
func (x *Outputs) ProtoReflect() protoreflect.Message
func (*Outputs) Validate ¶
Validate checks the field values on Outputs with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Outputs) ValidateAll ¶
ValidateAll checks the field values on Outputs with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OutputsMultiError, or nil if none found.
type OutputsMultiError ¶
type OutputsMultiError []error
OutputsMultiError is an error wrapping multiple validation errors returned by Outputs.ValidateAll() if the designated constraints aren't met.
func (OutputsMultiError) AllErrors ¶
func (m OutputsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OutputsMultiError) Error ¶
func (m OutputsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OutputsValidationError ¶
type OutputsValidationError struct {
// contains filtered or unexported fields
}
OutputsValidationError is the validation error returned by Outputs.Validate if the designated constraints aren't met.
func (OutputsValidationError) Cause ¶
func (e OutputsValidationError) Cause() error
Cause function returns cause value.
func (OutputsValidationError) Error ¶
func (e OutputsValidationError) Error() string
Error satisfies the builtin error interface
func (OutputsValidationError) ErrorName ¶
func (e OutputsValidationError) ErrorName() string
ErrorName returns error name.
func (OutputsValidationError) Field ¶
func (e OutputsValidationError) Field() string
Field function returns field value.
func (OutputsValidationError) Key ¶
func (e OutputsValidationError) Key() bool
Key function returns key value.
func (OutputsValidationError) Reason ¶
func (e OutputsValidationError) Reason() string
Reason function returns reason value.