Documentation ¶
Index ¶
- Variables
- type Manifest
- func (*Manifest) Descriptor() ([]byte, []int)deprecated
- func (x *Manifest) GetErrors() map[string]*v1.Error
- func (x *Manifest) GetOptions() *Options
- func (x *Manifest) GetResources() map[string]*v1.Resource
- 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 Options
- func (*Options) Descriptor() ([]byte, []int)deprecated
- func (x *Options) GetTemplates() []*TemplateOptions
- func (*Options) ProtoMessage()
- func (x *Options) ProtoReflect() protoreflect.Message
- func (x *Options) Reset()
- func (x *Options) String() string
- func (m *Options) Validate() error
- func (m *Options) ValidateAll() error
- type OptionsMultiError
- type OptionsValidationError
- type TemplateOptions
- func (*TemplateOptions) Descriptor() ([]byte, []int)deprecated
- func (x *TemplateOptions) GetOutdir() string
- func (x *TemplateOptions) GetTemplate() string
- func (x *TemplateOptions) GetVars() map[string]string
- func (*TemplateOptions) ProtoMessage()
- func (x *TemplateOptions) ProtoReflect() protoreflect.Message
- func (x *TemplateOptions) Reset()
- func (x *TemplateOptions) String() string
- func (m *TemplateOptions) Validate() error
- func (m *TemplateOptions) ValidateAll() error
- type TemplateOptionsMultiError
- type TemplateOptionsValidationError
- func (e TemplateOptionsValidationError) Cause() error
- func (e TemplateOptionsValidationError) Error() string
- func (e TemplateOptionsValidationError) ErrorName() string
- func (e TemplateOptionsValidationError) Field() string
- func (e TemplateOptionsValidationError) Key() bool
- func (e TemplateOptionsValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_pkg_rms_v1_rms_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Manifest ¶
type Manifest struct { Options *Options `protobuf:"bytes,1,opt,name=options,proto3,oneof" json:"options,omitempty"` Resources map[string]*v1.Resource `` /* 159-byte string literal not displayed */ Errors map[string]*v1.Error `` // map<string, pkg.template.v1.Manifest> templates = 4; /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Manifest) Descriptor
deprecated
func (*Manifest) GetOptions ¶
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 Options ¶
type Options struct { Templates []*TemplateOptions `protobuf:"bytes,1,rep,name=templates,proto3" json:"templates,omitempty"` // contains filtered or unexported fields }
func (*Options) Descriptor
deprecated
func (*Options) GetTemplates ¶
func (x *Options) GetTemplates() []*TemplateOptions
func (*Options) ProtoMessage ¶
func (*Options) ProtoMessage()
func (*Options) ProtoReflect ¶
func (x *Options) ProtoReflect() protoreflect.Message
func (*Options) Validate ¶
Validate checks the field values on Options 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 (*Options) ValidateAll ¶
ValidateAll checks the field values on Options 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 OptionsMultiError, or nil if none found.
type OptionsMultiError ¶
type OptionsMultiError []error
OptionsMultiError is an error wrapping multiple validation errors returned by Options.ValidateAll() if the designated constraints aren't met.
func (OptionsMultiError) AllErrors ¶
func (m OptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OptionsMultiError) Error ¶
func (m OptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OptionsValidationError ¶
type OptionsValidationError struct {
// contains filtered or unexported fields
}
OptionsValidationError is the validation error returned by Options.Validate if the designated constraints aren't met.
func (OptionsValidationError) Cause ¶
func (e OptionsValidationError) Cause() error
Cause function returns cause value.
func (OptionsValidationError) Error ¶
func (e OptionsValidationError) Error() string
Error satisfies the builtin error interface
func (OptionsValidationError) ErrorName ¶
func (e OptionsValidationError) ErrorName() string
ErrorName returns error name.
func (OptionsValidationError) Field ¶
func (e OptionsValidationError) Field() string
Field function returns field value.
func (OptionsValidationError) Key ¶
func (e OptionsValidationError) Key() bool
Key function returns key value.
func (OptionsValidationError) Reason ¶
func (e OptionsValidationError) Reason() string
Reason function returns reason value.
type TemplateOptions ¶
type TemplateOptions struct { Template string `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"` Outdir string `protobuf:"bytes,2,opt,name=outdir,proto3" json:"outdir,omitempty"` Vars map[string]string `` /* 149-byte string literal not displayed */ // contains filtered or unexported fields }
TemplateOptions is a set of options for a template.
func (*TemplateOptions) Descriptor
deprecated
func (*TemplateOptions) Descriptor() ([]byte, []int)
Deprecated: Use TemplateOptions.ProtoReflect.Descriptor instead.
func (*TemplateOptions) GetOutdir ¶
func (x *TemplateOptions) GetOutdir() string
func (*TemplateOptions) GetTemplate ¶
func (x *TemplateOptions) GetTemplate() string
func (*TemplateOptions) GetVars ¶
func (x *TemplateOptions) GetVars() map[string]string
func (*TemplateOptions) ProtoMessage ¶
func (*TemplateOptions) ProtoMessage()
func (*TemplateOptions) ProtoReflect ¶
func (x *TemplateOptions) ProtoReflect() protoreflect.Message
func (*TemplateOptions) Reset ¶
func (x *TemplateOptions) Reset()
func (*TemplateOptions) String ¶
func (x *TemplateOptions) String() string
func (*TemplateOptions) Validate ¶
func (m *TemplateOptions) Validate() error
Validate checks the field values on TemplateOptions 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 (*TemplateOptions) ValidateAll ¶
func (m *TemplateOptions) ValidateAll() error
ValidateAll checks the field values on TemplateOptions 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 TemplateOptionsMultiError, or nil if none found.
type TemplateOptionsMultiError ¶
type TemplateOptionsMultiError []error
TemplateOptionsMultiError is an error wrapping multiple validation errors returned by TemplateOptions.ValidateAll() if the designated constraints aren't met.
func (TemplateOptionsMultiError) AllErrors ¶
func (m TemplateOptionsMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (TemplateOptionsMultiError) Error ¶
func (m TemplateOptionsMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type TemplateOptionsValidationError ¶
type TemplateOptionsValidationError struct {
// contains filtered or unexported fields
}
TemplateOptionsValidationError is the validation error returned by TemplateOptions.Validate if the designated constraints aren't met.
func (TemplateOptionsValidationError) Cause ¶
func (e TemplateOptionsValidationError) Cause() error
Cause function returns cause value.
func (TemplateOptionsValidationError) Error ¶
func (e TemplateOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (TemplateOptionsValidationError) ErrorName ¶
func (e TemplateOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (TemplateOptionsValidationError) Field ¶
func (e TemplateOptionsValidationError) Field() string
Field function returns field value.
func (TemplateOptionsValidationError) Key ¶
func (e TemplateOptionsValidationError) Key() bool
Key function returns key value.
func (TemplateOptionsValidationError) Reason ¶
func (e TemplateOptionsValidationError) Reason() string
Reason function returns reason value.