v1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 17 Imported by: 0

README

Template for Resource Management Specification (RMS) v1

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Error satisfies the builtin error interface

func (DiagnosticValidationError) ErrorName

func (e DiagnosticValidationError) ErrorName() string

ErrorName returns error name.

func (DiagnosticValidationError) Field

Field function returns field value.

func (DiagnosticValidationError) Key

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) Descriptor() ([]byte, []int)

Deprecated: Use File.ProtoReflect.Descriptor instead.

func (*File) GetContent

func (x *File) GetContent() string

func (*File) ProtoMessage

func (*File) ProtoMessage()

func (*File) ProtoReflect

func (x *File) ProtoReflect() protoreflect.Message

func (*File) Reset

func (x *File) Reset()

func (*File) String

func (x *File) String() string

func (*File) Validate

func (m *File) Validate() error

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

func (m *File) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Inputs.ProtoReflect.Descriptor instead.

func (*Inputs) GetErrors

func (x *Inputs) GetErrors() map[string]*v1.Error

func (*Inputs) GetResources

func (x *Inputs) GetResources() map[string]*v1.Resource

func (*Inputs) GetVars

func (x *Inputs) GetVars() map[string]string

func (*Inputs) ProtoMessage

func (*Inputs) ProtoMessage()

func (*Inputs) ProtoReflect

func (x *Inputs) ProtoReflect() protoreflect.Message

func (*Inputs) Reset

func (x *Inputs) Reset()

func (*Inputs) String

func (x *Inputs) String() string

func (*Inputs) Validate

func (m *Inputs) Validate() error

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

func (m *Inputs) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Layouts.ProtoReflect.Descriptor instead.

func (*Layouts) GetFiles added in v0.0.2

func (x *Layouts) GetFiles() map[string]*File

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) Reset added in v0.0.2

func (x *Layouts) Reset()

func (*Layouts) String added in v0.0.2

func (x *Layouts) String() string

func (*Layouts) Validate added in v0.0.2

func (m *Layouts) Validate() error

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

func (m *Layouts) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Manifest.ProtoReflect.Descriptor instead.

func (*Manifest) GetDiagnostics

func (x *Manifest) GetDiagnostics() []*Diagnostic

func (*Manifest) GetInputs

func (x *Manifest) GetInputs() *Inputs

func (*Manifest) GetLayouts added in v0.0.2

func (x *Manifest) GetLayouts() *Layouts

func (*Manifest) GetName

func (x *Manifest) GetName() string

func (*Manifest) GetOutputs

func (x *Manifest) GetOutputs() *Outputs

func (*Manifest) ProtoMessage

func (*Manifest) ProtoMessage()

func (*Manifest) ProtoReflect

func (x *Manifest) ProtoReflect() protoreflect.Message

func (*Manifest) Reset

func (x *Manifest) Reset()

func (*Manifest) String

func (x *Manifest) String() string

func (*Manifest) Validate

func (m *Manifest) Validate() error

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

func (m *Manifest) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use Outputs.ProtoReflect.Descriptor instead.

func (*Outputs) GetFiles

func (x *Outputs) GetFiles() map[string]*File

func (*Outputs) ProtoMessage

func (*Outputs) ProtoMessage()

func (*Outputs) ProtoReflect

func (x *Outputs) ProtoReflect() protoreflect.Message

func (*Outputs) Reset

func (x *Outputs) Reset()

func (*Outputs) String

func (x *Outputs) String() string

func (*Outputs) Validate

func (m *Outputs) Validate() error

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

func (m *Outputs) ValidateAll() error

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.

Jump to

Keyboard shortcuts

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