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

Resource Manager Service (RMS) v1

The Resource Management Specification (RMS) is a specification for the unified management of resources in the Cloud.

Documentation

Index

Constants

This section is empty.

Variables

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

Deprecated: Use Manifest.ProtoReflect.Descriptor instead.

func (*Manifest) GetErrors

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

func (*Manifest) GetOptions

func (x *Manifest) GetOptions() *Options

func (*Manifest) GetResources

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

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

Deprecated: Use Options.ProtoReflect.Descriptor instead.

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) Reset

func (x *Options) Reset()

func (*Options) String

func (x *Options) String() string

func (*Options) Validate

func (m *Options) Validate() error

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

func (m *Options) ValidateAll() error

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

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

Cause function returns cause value.

func (TemplateOptionsValidationError) Error

Error satisfies the builtin error interface

func (TemplateOptionsValidationError) ErrorName

func (e TemplateOptionsValidationError) ErrorName() string

ErrorName returns error name.

func (TemplateOptionsValidationError) Field

Field function returns field value.

func (TemplateOptionsValidationError) Key

Key function returns key value.

func (TemplateOptionsValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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