Documentation ¶
Index ¶
- Variables
- type ApplicationComponent
- func (*ApplicationComponent) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationComponent) GetComponentName() string
- func (x *ApplicationComponent) GetComponentSummary() *ComponentSummary
- func (x *ApplicationComponent) GetParameterValues() []*_struct.Struct
- func (x *ApplicationComponent) GetScopes() []*ApplicationScope
- func (x *ApplicationComponent) GetTraits() []*ApplicationTrait
- func (*ApplicationComponent) ProtoMessage()
- func (x *ApplicationComponent) ProtoReflect() protoreflect.Message
- func (x *ApplicationComponent) Reset()
- func (x *ApplicationComponent) String() string
- func (m *ApplicationComponent) Validate() error
- type ApplicationComponentValidationError
- func (e ApplicationComponentValidationError) Cause() error
- func (e ApplicationComponentValidationError) Error() string
- func (e ApplicationComponentValidationError) ErrorName() string
- func (e ApplicationComponentValidationError) Field() string
- func (e ApplicationComponentValidationError) Key() bool
- func (e ApplicationComponentValidationError) Reason() string
- type ApplicationConfiguration
- func (*ApplicationConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationConfiguration) GetApiVersion() string
- func (x *ApplicationConfiguration) GetKind() string
- func (x *ApplicationConfiguration) GetMetadata() *Metadata
- func (x *ApplicationConfiguration) GetSpec() *ApplicationConfigurationSpec
- func (*ApplicationConfiguration) ProtoMessage()
- func (x *ApplicationConfiguration) ProtoReflect() protoreflect.Message
- func (x *ApplicationConfiguration) Reset()
- func (x *ApplicationConfiguration) String() string
- func (m *ApplicationConfiguration) Validate() error
- type ApplicationConfigurationSpec
- func (*ApplicationConfigurationSpec) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationConfigurationSpec) GetComponents() []*ApplicationComponent
- func (*ApplicationConfigurationSpec) ProtoMessage()
- func (x *ApplicationConfigurationSpec) ProtoReflect() protoreflect.Message
- func (x *ApplicationConfigurationSpec) Reset()
- func (x *ApplicationConfigurationSpec) String() string
- func (m *ApplicationConfigurationSpec) Validate() error
- type ApplicationConfigurationSpecValidationError
- func (e ApplicationConfigurationSpecValidationError) Cause() error
- func (e ApplicationConfigurationSpecValidationError) Error() string
- func (e ApplicationConfigurationSpecValidationError) ErrorName() string
- func (e ApplicationConfigurationSpecValidationError) Field() string
- func (e ApplicationConfigurationSpecValidationError) Key() bool
- func (e ApplicationConfigurationSpecValidationError) Reason() string
- type ApplicationConfigurationValidationError
- func (e ApplicationConfigurationValidationError) Cause() error
- func (e ApplicationConfigurationValidationError) Error() string
- func (e ApplicationConfigurationValidationError) ErrorName() string
- func (e ApplicationConfigurationValidationError) Field() string
- func (e ApplicationConfigurationValidationError) Key() bool
- func (e ApplicationConfigurationValidationError) Reason() string
- type ApplicationScope
- func (*ApplicationScope) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationScope) GetScopeRef() *ApplicationScopeReference
- func (*ApplicationScope) ProtoMessage()
- func (x *ApplicationScope) ProtoReflect() protoreflect.Message
- func (x *ApplicationScope) Reset()
- func (x *ApplicationScope) String() string
- func (m *ApplicationScope) Validate() error
- type ApplicationScopeReference
- func (*ApplicationScopeReference) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationScopeReference) GetApiVersion() string
- func (x *ApplicationScopeReference) GetKind() string
- func (x *ApplicationScopeReference) GetName() string
- func (x *ApplicationScopeReference) GetUid() string
- func (*ApplicationScopeReference) ProtoMessage()
- func (x *ApplicationScopeReference) ProtoReflect() protoreflect.Message
- func (x *ApplicationScopeReference) Reset()
- func (x *ApplicationScopeReference) String() string
- func (m *ApplicationScopeReference) Validate() error
- type ApplicationScopeReferenceValidationError
- func (e ApplicationScopeReferenceValidationError) Cause() error
- func (e ApplicationScopeReferenceValidationError) Error() string
- func (e ApplicationScopeReferenceValidationError) ErrorName() string
- func (e ApplicationScopeReferenceValidationError) Field() string
- func (e ApplicationScopeReferenceValidationError) Key() bool
- func (e ApplicationScopeReferenceValidationError) Reason() string
- type ApplicationScopeValidationError
- func (e ApplicationScopeValidationError) Cause() error
- func (e ApplicationScopeValidationError) Error() string
- func (e ApplicationScopeValidationError) ErrorName() string
- func (e ApplicationScopeValidationError) Field() string
- func (e ApplicationScopeValidationError) Key() bool
- func (e ApplicationScopeValidationError) Reason() string
- type ApplicationTrait
- func (*ApplicationTrait) Descriptor() ([]byte, []int)deprecated
- func (x *ApplicationTrait) GetName() string
- func (x *ApplicationTrait) GetProperties() *_struct.Struct
- func (x *ApplicationTrait) GetTrait() *_struct.Struct
- func (*ApplicationTrait) ProtoMessage()
- func (x *ApplicationTrait) ProtoReflect() protoreflect.Message
- func (x *ApplicationTrait) Reset()
- func (x *ApplicationTrait) String() string
- func (m *ApplicationTrait) Validate() error
- type ApplicationTraitValidationError
- func (e ApplicationTraitValidationError) Cause() error
- func (e ApplicationTraitValidationError) Error() string
- func (e ApplicationTraitValidationError) ErrorName() string
- func (e ApplicationTraitValidationError) Field() string
- func (e ApplicationTraitValidationError) Key() bool
- func (e ApplicationTraitValidationError) Reason() string
- type ChildResourceKind
- func (*ChildResourceKind) Descriptor() ([]byte, []int)deprecated
- func (x *ChildResourceKind) GetApiVersion() string
- func (x *ChildResourceKind) GetKind() string
- func (*ChildResourceKind) ProtoMessage()
- func (x *ChildResourceKind) ProtoReflect() protoreflect.Message
- func (x *ChildResourceKind) Reset()
- func (x *ChildResourceKind) String() string
- func (m *ChildResourceKind) Validate() error
- type ChildResourceKindValidationError
- func (e ChildResourceKindValidationError) Cause() error
- func (e ChildResourceKindValidationError) Error() string
- func (e ChildResourceKindValidationError) ErrorName() string
- func (e ChildResourceKindValidationError) Field() string
- func (e ChildResourceKindValidationError) Key() bool
- func (e ChildResourceKindValidationError) Reason() string
- type Component
- func (*Component) Descriptor() ([]byte, []int)deprecated
- func (x *Component) GetApiVersion() string
- func (x *Component) GetKind() string
- func (x *Component) GetMetadata() *Metadata
- func (x *Component) GetSpec() *ComponentSpec
- func (*Component) ProtoMessage()
- func (x *Component) ProtoReflect() protoreflect.Message
- func (x *Component) Reset()
- func (x *Component) String() string
- func (m *Component) Validate() error
- type ComponentParameterValue
- func (*ComponentParameterValue) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentParameterValue) GetName() string
- func (x *ComponentParameterValue) GetValue() string
- func (*ComponentParameterValue) ProtoMessage()
- func (x *ComponentParameterValue) ProtoReflect() protoreflect.Message
- func (x *ComponentParameterValue) Reset()
- func (x *ComponentParameterValue) String() string
- func (m *ComponentParameterValue) Validate() error
- type ComponentParameterValueValidationError
- func (e ComponentParameterValueValidationError) Cause() error
- func (e ComponentParameterValueValidationError) Error() string
- func (e ComponentParameterValueValidationError) ErrorName() string
- func (e ComponentParameterValueValidationError) Field() string
- func (e ComponentParameterValueValidationError) Key() bool
- func (e ComponentParameterValueValidationError) Reason() string
- type ComponentSpec
- func (*ComponentSpec) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentSpec) GetParameters() []*Parameter
- func (x *ComponentSpec) GetSettings() *WorkloadSpec
- func (x *ComponentSpec) GetType() string
- func (x *ComponentSpec) GetWorkload() *Workload
- func (*ComponentSpec) ProtoMessage()
- func (x *ComponentSpec) ProtoReflect() protoreflect.Message
- func (x *ComponentSpec) Reset()
- func (x *ComponentSpec) String() string
- func (m *ComponentSpec) Validate() error
- type ComponentSpecValidationError
- func (e ComponentSpecValidationError) Cause() error
- func (e ComponentSpecValidationError) Error() string
- func (e ComponentSpecValidationError) ErrorName() string
- func (e ComponentSpecValidationError) Field() string
- func (e ComponentSpecValidationError) Key() bool
- func (e ComponentSpecValidationError) Reason() string
- type ComponentSummary
- func (*ComponentSummary) Descriptor() ([]byte, []int)deprecated
- func (x *ComponentSummary) GetImages() []string
- func (*ComponentSummary) ProtoMessage()
- func (x *ComponentSummary) ProtoReflect() protoreflect.Message
- func (x *ComponentSummary) Reset()
- func (x *ComponentSummary) String() string
- func (m *ComponentSummary) Validate() error
- type ComponentSummaryValidationError
- func (e ComponentSummaryValidationError) Cause() error
- func (e ComponentSummaryValidationError) Error() string
- func (e ComponentSummaryValidationError) ErrorName() string
- func (e ComponentSummaryValidationError) Field() string
- func (e ComponentSummaryValidationError) Key() bool
- func (e ComponentSummaryValidationError) Reason() string
- type ComponentValidationError
- type Container
- func (*Container) Descriptor() ([]byte, []int)deprecated
- func (x *Container) GetCmd() []string
- func (x *Container) GetEnv() []*EnvironmentVariable
- func (x *Container) GetImage() string
- func (x *Container) GetImagePullPolicy() string
- func (x *Container) GetName() string
- func (x *Container) GetPorts() []*Port
- func (*Container) ProtoMessage()
- func (x *Container) ProtoReflect() protoreflect.Message
- func (x *Container) Reset()
- func (x *Container) String() string
- func (m *Container) Validate() error
- type ContainerValidationError
- type DefinitionRef
- func (*DefinitionRef) Descriptor() ([]byte, []int)deprecated
- func (x *DefinitionRef) GetName() string
- func (x *DefinitionRef) GetVersion() string
- func (*DefinitionRef) ProtoMessage()
- func (x *DefinitionRef) ProtoReflect() protoreflect.Message
- func (x *DefinitionRef) Reset()
- func (x *DefinitionRef) String() string
- func (m *DefinitionRef) Validate() error
- type DefinitionRefValidationError
- func (e DefinitionRefValidationError) Cause() error
- func (e DefinitionRefValidationError) Error() string
- func (e DefinitionRefValidationError) ErrorName() string
- func (e DefinitionRefValidationError) Field() string
- func (e DefinitionRefValidationError) Key() bool
- func (e DefinitionRefValidationError) Reason() string
- type EnvironmentVariable
- func (*EnvironmentVariable) Descriptor() ([]byte, []int)deprecated
- func (x *EnvironmentVariable) GetFromSecret() *FromValueEnv
- func (x *EnvironmentVariable) GetName() string
- func (x *EnvironmentVariable) GetRequired() bool
- func (x *EnvironmentVariable) GetValue() string
- func (x *EnvironmentVariable) GetValueFrom() *FromConfigEnv
- func (*EnvironmentVariable) ProtoMessage()
- func (x *EnvironmentVariable) ProtoReflect() protoreflect.Message
- func (x *EnvironmentVariable) Reset()
- func (x *EnvironmentVariable) String() string
- func (m *EnvironmentVariable) Validate() error
- type EnvironmentVariableValidationError
- func (e EnvironmentVariableValidationError) Cause() error
- func (e EnvironmentVariableValidationError) Error() string
- func (e EnvironmentVariableValidationError) ErrorName() string
- func (e EnvironmentVariableValidationError) Field() string
- func (e EnvironmentVariableValidationError) Key() bool
- func (e EnvironmentVariableValidationError) Reason() string
- type FromConfigEnv
- func (*FromConfigEnv) Descriptor() ([]byte, []int)deprecated
- func (x *FromConfigEnv) GetConfigMapKeyRef() *FromValueEnv
- func (*FromConfigEnv) ProtoMessage()
- func (x *FromConfigEnv) ProtoReflect() protoreflect.Message
- func (x *FromConfigEnv) Reset()
- func (x *FromConfigEnv) String() string
- func (m *FromConfigEnv) Validate() error
- type FromConfigEnvValidationError
- func (e FromConfigEnvValidationError) Cause() error
- func (e FromConfigEnvValidationError) Error() string
- func (e FromConfigEnvValidationError) ErrorName() string
- func (e FromConfigEnvValidationError) Field() string
- func (e FromConfigEnvValidationError) Key() bool
- func (e FromConfigEnvValidationError) Reason() string
- type FromValueEnv
- func (*FromValueEnv) Descriptor() ([]byte, []int)deprecated
- func (x *FromValueEnv) GetKey() string
- func (x *FromValueEnv) GetName() string
- func (*FromValueEnv) ProtoMessage()
- func (x *FromValueEnv) ProtoReflect() protoreflect.Message
- func (x *FromValueEnv) Reset()
- func (x *FromValueEnv) String() string
- func (m *FromValueEnv) Validate() error
- type FromValueEnvValidationError
- func (e FromValueEnvValidationError) Cause() error
- func (e FromValueEnvValidationError) Error() string
- func (e FromValueEnvValidationError) ErrorName() string
- func (e FromValueEnvValidationError) Field() string
- func (e FromValueEnvValidationError) Key() bool
- func (e FromValueEnvValidationError) Reason() string
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetAnnotations() map[string]string
- func (x *Metadata) GetCreationTimestamp() string
- func (x *Metadata) GetLabels() map[string]string
- func (x *Metadata) GetName() string
- func (x *Metadata) GetUid() string
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- func (m *Metadata) Validate() error
- type MetadataValidationError
- type Parameter
- func (*Parameter) Descriptor() ([]byte, []int)deprecated
- func (x *Parameter) GetFieldPaths() []string
- func (x *Parameter) GetName() string
- func (x *Parameter) GetRequired() bool
- func (*Parameter) ProtoMessage()
- func (x *Parameter) ProtoReflect() protoreflect.Message
- func (x *Parameter) Reset()
- func (x *Parameter) String() string
- func (m *Parameter) Validate() error
- type ParameterValidationError
- type Port
- func (*Port) Descriptor() ([]byte, []int)deprecated
- func (x *Port) GetContainerPort() int32
- func (x *Port) GetName() string
- func (x *Port) GetType() string
- func (x *Port) GetValue() int32
- func (*Port) ProtoMessage()
- func (x *Port) ProtoReflect() protoreflect.Message
- func (x *Port) Reset()
- func (x *Port) String() string
- func (m *Port) Validate() error
- type PortValidationError
- type Scope
- func (*Scope) Descriptor() ([]byte, []int)deprecated
- func (x *Scope) GetApiVersion() string
- func (x *Scope) GetKind() string
- func (x *Scope) GetMetadata() *Metadata
- func (x *Scope) GetSpec() *ScopeSpec
- func (*Scope) ProtoMessage()
- func (x *Scope) ProtoReflect() protoreflect.Message
- func (x *Scope) Reset()
- func (x *Scope) String() string
- func (m *Scope) Validate() error
- type ScopeSpec
- func (*ScopeSpec) Descriptor() ([]byte, []int)deprecated
- func (x *ScopeSpec) GetAllowComponentOverlap() bool
- func (x *ScopeSpec) GetDefinitionRef() *DefinitionRef
- func (x *ScopeSpec) GetWorkloadRefPath() string
- func (*ScopeSpec) ProtoMessage()
- func (x *ScopeSpec) ProtoReflect() protoreflect.Message
- func (x *ScopeSpec) Reset()
- func (x *ScopeSpec) String() string
- func (m *ScopeSpec) Validate() error
- type ScopeSpecValidationError
- type ScopeValidationError
- type Trait
- func (*Trait) Descriptor() ([]byte, []int)deprecated
- func (x *Trait) GetApiVersion() string
- func (x *Trait) GetKind() string
- func (x *Trait) GetMetadata() *Metadata
- func (x *Trait) GetSpec() *TraitSpec
- func (*Trait) ProtoMessage()
- func (x *Trait) ProtoReflect() protoreflect.Message
- func (x *Trait) Reset()
- func (x *Trait) String() string
- func (m *Trait) Validate() error
- type TraitSpec
- func (*TraitSpec) Descriptor() ([]byte, []int)deprecated
- func (x *TraitSpec) GetAppliesToWorkloads() []string
- func (x *TraitSpec) GetDefinitionRef() *DefinitionRef
- func (x *TraitSpec) GetWorkloadRefPath() string
- func (*TraitSpec) ProtoMessage()
- func (x *TraitSpec) ProtoReflect() protoreflect.Message
- func (x *TraitSpec) Reset()
- func (x *TraitSpec) String() string
- func (m *TraitSpec) Validate() error
- type TraitSpecValidationError
- type TraitValidationError
- type Workload
- func (*Workload) Descriptor() ([]byte, []int)deprecated
- func (x *Workload) GetApiVersion() string
- func (x *Workload) GetKind() string
- func (x *Workload) GetMetadata() *Metadata
- func (x *Workload) GetSpec() *WorkloadSpec
- func (*Workload) ProtoMessage()
- func (x *Workload) ProtoReflect() protoreflect.Message
- func (x *Workload) Reset()
- func (x *Workload) String() string
- func (m *Workload) Validate() error
- type WorkloadDefinition
- func (*WorkloadDefinition) Descriptor() ([]byte, []int)deprecated
- func (x *WorkloadDefinition) GetApiVersion() string
- func (x *WorkloadDefinition) GetKind() string
- func (x *WorkloadDefinition) GetMetadata() *Metadata
- func (x *WorkloadDefinition) GetSpec() *WorkloadDefinitionSpec
- func (*WorkloadDefinition) ProtoMessage()
- func (x *WorkloadDefinition) ProtoReflect() protoreflect.Message
- func (x *WorkloadDefinition) Reset()
- func (x *WorkloadDefinition) String() string
- func (m *WorkloadDefinition) Validate() error
- type WorkloadDefinitionSpec
- func (*WorkloadDefinitionSpec) Descriptor() ([]byte, []int)deprecated
- func (x *WorkloadDefinitionSpec) GetChildResourceKinds() []*ChildResourceKind
- func (x *WorkloadDefinitionSpec) GetDefinitionRef() *DefinitionRef
- func (x *WorkloadDefinitionSpec) GetPodSpecPath() string
- func (x *WorkloadDefinitionSpec) GetRevisionLabel() string
- func (*WorkloadDefinitionSpec) ProtoMessage()
- func (x *WorkloadDefinitionSpec) ProtoReflect() protoreflect.Message
- func (x *WorkloadDefinitionSpec) Reset()
- func (x *WorkloadDefinitionSpec) String() string
- func (m *WorkloadDefinitionSpec) Validate() error
- type WorkloadDefinitionSpecValidationError
- func (e WorkloadDefinitionSpecValidationError) Cause() error
- func (e WorkloadDefinitionSpecValidationError) Error() string
- func (e WorkloadDefinitionSpecValidationError) ErrorName() string
- func (e WorkloadDefinitionSpecValidationError) Field() string
- func (e WorkloadDefinitionSpecValidationError) Key() bool
- func (e WorkloadDefinitionSpecValidationError) Reason() string
- type WorkloadDefinitionValidationError
- func (e WorkloadDefinitionValidationError) Cause() error
- func (e WorkloadDefinitionValidationError) Error() string
- func (e WorkloadDefinitionValidationError) ErrorName() string
- func (e WorkloadDefinitionValidationError) Field() string
- func (e WorkloadDefinitionValidationError) Key() bool
- func (e WorkloadDefinitionValidationError) Reason() string
- type WorkloadSpec
- func (*WorkloadSpec) Descriptor() ([]byte, []int)deprecated
- func (x *WorkloadSpec) GetContainers() []*Container
- func (x *WorkloadSpec) GetOsType() string
- func (*WorkloadSpec) ProtoMessage()
- func (x *WorkloadSpec) ProtoReflect() protoreflect.Message
- func (x *WorkloadSpec) Reset()
- func (x *WorkloadSpec) String() string
- func (m *WorkloadSpec) Validate() error
- type WorkloadSpecValidationError
- func (e WorkloadSpecValidationError) Cause() error
- func (e WorkloadSpecValidationError) Error() string
- func (e WorkloadSpecValidationError) ErrorName() string
- func (e WorkloadSpecValidationError) Field() string
- func (e WorkloadSpecValidationError) Key() bool
- func (e WorkloadSpecValidationError) Reason() string
- type WorkloadValidationError
Constants ¶
This section is empty.
Variables ¶
var File_playground_oam_entities_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ApplicationComponent ¶ added in v0.4.0
type ApplicationComponent struct { // ComponentName specifies a component whose latest revision will be bind with ApplicationConfiguration. When the spec of the referenced component changes, ApplicationConfiguration will automatically migrate all trait affect from the prior revision to the new one. This is mutually exclusive with RevisionName. ComponentName string `protobuf:"bytes,1,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` //ParameterValues specify values for the the specified component's parameters. Any parameter required by the component must be specified. ParameterValues []*_struct.Struct `protobuf:"bytes,2,rep,name=parameter_values,json=parameterValues,proto3" json:"parameter_values,omitempty"` // ComponentSummary with the summary of the components ComponentSummary *ComponentSummary `protobuf:"bytes,3,opt,name=component_summary,json=componentSummary,proto3" json:"component_summary,omitempty"` // Scopes in which the specified component should exist. Scopes []*ApplicationScope `protobuf:"bytes,4,rep,name=scopes,proto3" json:"scopes,omitempty"` // Traits of the specified component. Traits []*ApplicationTrait `protobuf:"bytes,5,rep,name=traits,proto3" json:"traits,omitempty"` // contains filtered or unexported fields }
ApplicationComponent defines a component associated with an application configuration.
func (*ApplicationComponent) Descriptor
deprecated
added in
v0.4.0
func (*ApplicationComponent) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationComponent.ProtoReflect.Descriptor instead.
func (*ApplicationComponent) GetComponentName ¶ added in v0.4.0
func (x *ApplicationComponent) GetComponentName() string
func (*ApplicationComponent) GetComponentSummary ¶ added in v0.7.0
func (x *ApplicationComponent) GetComponentSummary() *ComponentSummary
func (*ApplicationComponent) GetParameterValues ¶ added in v0.4.0
func (x *ApplicationComponent) GetParameterValues() []*_struct.Struct
func (*ApplicationComponent) GetScopes ¶ added in v0.4.0
func (x *ApplicationComponent) GetScopes() []*ApplicationScope
func (*ApplicationComponent) GetTraits ¶ added in v0.4.0
func (x *ApplicationComponent) GetTraits() []*ApplicationTrait
func (*ApplicationComponent) ProtoMessage ¶ added in v0.4.0
func (*ApplicationComponent) ProtoMessage()
func (*ApplicationComponent) ProtoReflect ¶ added in v0.4.0
func (x *ApplicationComponent) ProtoReflect() protoreflect.Message
func (*ApplicationComponent) Reset ¶ added in v0.4.0
func (x *ApplicationComponent) Reset()
func (*ApplicationComponent) String ¶ added in v0.4.0
func (x *ApplicationComponent) String() string
func (*ApplicationComponent) Validate ¶ added in v0.4.0
func (m *ApplicationComponent) Validate() error
Validate checks the field values on ApplicationComponent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ApplicationComponentValidationError ¶ added in v0.4.0
type ApplicationComponentValidationError struct {
// contains filtered or unexported fields
}
ApplicationComponentValidationError is the validation error returned by ApplicationComponent.Validate if the designated constraints aren't met.
func (ApplicationComponentValidationError) Cause ¶ added in v0.4.0
func (e ApplicationComponentValidationError) Cause() error
Cause function returns cause value.
func (ApplicationComponentValidationError) Error ¶ added in v0.4.0
func (e ApplicationComponentValidationError) Error() string
Error satisfies the builtin error interface
func (ApplicationComponentValidationError) ErrorName ¶ added in v0.4.0
func (e ApplicationComponentValidationError) ErrorName() string
ErrorName returns error name.
func (ApplicationComponentValidationError) Field ¶ added in v0.4.0
func (e ApplicationComponentValidationError) Field() string
Field function returns field value.
func (ApplicationComponentValidationError) Key ¶ added in v0.4.0
func (e ApplicationComponentValidationError) Key() bool
Key function returns key value.
func (ApplicationComponentValidationError) Reason ¶ added in v0.4.0
func (e ApplicationComponentValidationError) Reason() string
Reason function returns reason value.
type ApplicationConfiguration ¶ added in v0.4.0
type ApplicationConfiguration struct { // ApiVersion of the given application configuration. ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // Kind of the application configuration. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // Metadata associated with the application configuration. Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // Spec of the application configuration. Spec *ApplicationConfigurationSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
ApplicationConfiguration entity describing the components that form an application.
func (*ApplicationConfiguration) Descriptor
deprecated
added in
v0.4.0
func (*ApplicationConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationConfiguration.ProtoReflect.Descriptor instead.
func (*ApplicationConfiguration) GetApiVersion ¶ added in v0.4.0
func (x *ApplicationConfiguration) GetApiVersion() string
func (*ApplicationConfiguration) GetKind ¶ added in v0.4.0
func (x *ApplicationConfiguration) GetKind() string
func (*ApplicationConfiguration) GetMetadata ¶ added in v0.4.0
func (x *ApplicationConfiguration) GetMetadata() *Metadata
func (*ApplicationConfiguration) GetSpec ¶ added in v0.4.0
func (x *ApplicationConfiguration) GetSpec() *ApplicationConfigurationSpec
func (*ApplicationConfiguration) ProtoMessage ¶ added in v0.4.0
func (*ApplicationConfiguration) ProtoMessage()
func (*ApplicationConfiguration) ProtoReflect ¶ added in v0.4.0
func (x *ApplicationConfiguration) ProtoReflect() protoreflect.Message
func (*ApplicationConfiguration) Reset ¶ added in v0.4.0
func (x *ApplicationConfiguration) Reset()
func (*ApplicationConfiguration) String ¶ added in v0.4.0
func (x *ApplicationConfiguration) String() string
func (*ApplicationConfiguration) Validate ¶ added in v0.4.0
func (m *ApplicationConfiguration) Validate() error
Validate checks the field values on ApplicationConfiguration with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ApplicationConfigurationSpec ¶ added in v0.4.0
type ApplicationConfigurationSpec struct { // Components associated with the application. Components []*ApplicationComponent `protobuf:"bytes,1,rep,name=components,proto3" json:"components,omitempty"` // contains filtered or unexported fields }
ApplicationConfigurationSpec with the specification of the application configuration.
func (*ApplicationConfigurationSpec) Descriptor
deprecated
added in
v0.4.0
func (*ApplicationConfigurationSpec) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationConfigurationSpec.ProtoReflect.Descriptor instead.
func (*ApplicationConfigurationSpec) GetComponents ¶ added in v0.4.0
func (x *ApplicationConfigurationSpec) GetComponents() []*ApplicationComponent
func (*ApplicationConfigurationSpec) ProtoMessage ¶ added in v0.4.0
func (*ApplicationConfigurationSpec) ProtoMessage()
func (*ApplicationConfigurationSpec) ProtoReflect ¶ added in v0.4.0
func (x *ApplicationConfigurationSpec) ProtoReflect() protoreflect.Message
func (*ApplicationConfigurationSpec) Reset ¶ added in v0.4.0
func (x *ApplicationConfigurationSpec) Reset()
func (*ApplicationConfigurationSpec) String ¶ added in v0.4.0
func (x *ApplicationConfigurationSpec) String() string
func (*ApplicationConfigurationSpec) Validate ¶ added in v0.4.0
func (m *ApplicationConfigurationSpec) Validate() error
Validate checks the field values on ApplicationConfigurationSpec with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ApplicationConfigurationSpecValidationError ¶ added in v0.4.0
type ApplicationConfigurationSpecValidationError struct {
// contains filtered or unexported fields
}
ApplicationConfigurationSpecValidationError is the validation error returned by ApplicationConfigurationSpec.Validate if the designated constraints aren't met.
func (ApplicationConfigurationSpecValidationError) Cause ¶ added in v0.4.0
func (e ApplicationConfigurationSpecValidationError) Cause() error
Cause function returns cause value.
func (ApplicationConfigurationSpecValidationError) Error ¶ added in v0.4.0
func (e ApplicationConfigurationSpecValidationError) Error() string
Error satisfies the builtin error interface
func (ApplicationConfigurationSpecValidationError) ErrorName ¶ added in v0.4.0
func (e ApplicationConfigurationSpecValidationError) ErrorName() string
ErrorName returns error name.
func (ApplicationConfigurationSpecValidationError) Field ¶ added in v0.4.0
func (e ApplicationConfigurationSpecValidationError) Field() string
Field function returns field value.
func (ApplicationConfigurationSpecValidationError) Key ¶ added in v0.4.0
func (e ApplicationConfigurationSpecValidationError) Key() bool
Key function returns key value.
func (ApplicationConfigurationSpecValidationError) Reason ¶ added in v0.4.0
func (e ApplicationConfigurationSpecValidationError) Reason() string
Reason function returns reason value.
type ApplicationConfigurationValidationError ¶ added in v0.4.0
type ApplicationConfigurationValidationError struct {
// contains filtered or unexported fields
}
ApplicationConfigurationValidationError is the validation error returned by ApplicationConfiguration.Validate if the designated constraints aren't met.
func (ApplicationConfigurationValidationError) Cause ¶ added in v0.4.0
func (e ApplicationConfigurationValidationError) Cause() error
Cause function returns cause value.
func (ApplicationConfigurationValidationError) Error ¶ added in v0.4.0
func (e ApplicationConfigurationValidationError) Error() string
Error satisfies the builtin error interface
func (ApplicationConfigurationValidationError) ErrorName ¶ added in v0.4.0
func (e ApplicationConfigurationValidationError) ErrorName() string
ErrorName returns error name.
func (ApplicationConfigurationValidationError) Field ¶ added in v0.4.0
func (e ApplicationConfigurationValidationError) Field() string
Field function returns field value.
func (ApplicationConfigurationValidationError) Key ¶ added in v0.4.0
func (e ApplicationConfigurationValidationError) Key() bool
Key function returns key value.
func (ApplicationConfigurationValidationError) Reason ¶ added in v0.4.0
func (e ApplicationConfigurationValidationError) Reason() string
Reason function returns reason value.
type ApplicationScope ¶ added in v0.4.0
type ApplicationScope struct { // ScopeRef must refer to an OAM scope resource. ScopeRef *ApplicationScopeReference `protobuf:"bytes,1,opt,name=scope_ref,json=scopeRef,proto3" json:"scope_ref,omitempty"` // contains filtered or unexported fields }
ApplicationScope specifies a scope in which a component should exist.
func (*ApplicationScope) Descriptor
deprecated
added in
v0.4.0
func (*ApplicationScope) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationScope.ProtoReflect.Descriptor instead.
func (*ApplicationScope) GetScopeRef ¶ added in v0.4.0
func (x *ApplicationScope) GetScopeRef() *ApplicationScopeReference
func (*ApplicationScope) ProtoMessage ¶ added in v0.4.0
func (*ApplicationScope) ProtoMessage()
func (*ApplicationScope) ProtoReflect ¶ added in v0.4.0
func (x *ApplicationScope) ProtoReflect() protoreflect.Message
func (*ApplicationScope) Reset ¶ added in v0.4.0
func (x *ApplicationScope) Reset()
func (*ApplicationScope) String ¶ added in v0.4.0
func (x *ApplicationScope) String() string
func (*ApplicationScope) Validate ¶ added in v0.4.0
func (m *ApplicationScope) Validate() error
Validate checks the field values on ApplicationScope with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ApplicationScopeReference ¶ added in v0.4.0
type ApplicationScopeReference struct { // ApiVersion of the given scope. This field is mandatory. ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // Kind of the scope. This field is mandatory. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // Name of the scope. This field is mandatory. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Uid of the scope. This field is optional. Uid string `protobuf:"bytes,4,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
ApplicationScopeReference to reference a given scope.
func (*ApplicationScopeReference) Descriptor
deprecated
added in
v0.4.0
func (*ApplicationScopeReference) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationScopeReference.ProtoReflect.Descriptor instead.
func (*ApplicationScopeReference) GetApiVersion ¶ added in v0.4.0
func (x *ApplicationScopeReference) GetApiVersion() string
func (*ApplicationScopeReference) GetKind ¶ added in v0.4.0
func (x *ApplicationScopeReference) GetKind() string
func (*ApplicationScopeReference) GetName ¶ added in v0.4.0
func (x *ApplicationScopeReference) GetName() string
func (*ApplicationScopeReference) GetUid ¶ added in v0.4.0
func (x *ApplicationScopeReference) GetUid() string
func (*ApplicationScopeReference) ProtoMessage ¶ added in v0.4.0
func (*ApplicationScopeReference) ProtoMessage()
func (*ApplicationScopeReference) ProtoReflect ¶ added in v0.4.0
func (x *ApplicationScopeReference) ProtoReflect() protoreflect.Message
func (*ApplicationScopeReference) Reset ¶ added in v0.4.0
func (x *ApplicationScopeReference) Reset()
func (*ApplicationScopeReference) String ¶ added in v0.4.0
func (x *ApplicationScopeReference) String() string
func (*ApplicationScopeReference) Validate ¶ added in v0.4.0
func (m *ApplicationScopeReference) Validate() error
Validate checks the field values on ApplicationScopeReference with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ApplicationScopeReferenceValidationError ¶ added in v0.4.0
type ApplicationScopeReferenceValidationError struct {
// contains filtered or unexported fields
}
ApplicationScopeReferenceValidationError is the validation error returned by ApplicationScopeReference.Validate if the designated constraints aren't met.
func (ApplicationScopeReferenceValidationError) Cause ¶ added in v0.4.0
func (e ApplicationScopeReferenceValidationError) Cause() error
Cause function returns cause value.
func (ApplicationScopeReferenceValidationError) Error ¶ added in v0.4.0
func (e ApplicationScopeReferenceValidationError) Error() string
Error satisfies the builtin error interface
func (ApplicationScopeReferenceValidationError) ErrorName ¶ added in v0.4.0
func (e ApplicationScopeReferenceValidationError) ErrorName() string
ErrorName returns error name.
func (ApplicationScopeReferenceValidationError) Field ¶ added in v0.4.0
func (e ApplicationScopeReferenceValidationError) Field() string
Field function returns field value.
func (ApplicationScopeReferenceValidationError) Key ¶ added in v0.4.0
func (e ApplicationScopeReferenceValidationError) Key() bool
Key function returns key value.
func (ApplicationScopeReferenceValidationError) Reason ¶ added in v0.4.0
func (e ApplicationScopeReferenceValidationError) Reason() string
Reason function returns reason value.
type ApplicationScopeValidationError ¶ added in v0.4.0
type ApplicationScopeValidationError struct {
// contains filtered or unexported fields
}
ApplicationScopeValidationError is the validation error returned by ApplicationScope.Validate if the designated constraints aren't met.
func (ApplicationScopeValidationError) Cause ¶ added in v0.4.0
func (e ApplicationScopeValidationError) Cause() error
Cause function returns cause value.
func (ApplicationScopeValidationError) Error ¶ added in v0.4.0
func (e ApplicationScopeValidationError) Error() string
Error satisfies the builtin error interface
func (ApplicationScopeValidationError) ErrorName ¶ added in v0.4.0
func (e ApplicationScopeValidationError) ErrorName() string
ErrorName returns error name.
func (ApplicationScopeValidationError) Field ¶ added in v0.4.0
func (e ApplicationScopeValidationError) Field() string
Field function returns field value.
func (ApplicationScopeValidationError) Key ¶ added in v0.4.0
func (e ApplicationScopeValidationError) Key() bool
Key function returns key value.
func (ApplicationScopeValidationError) Reason ¶ added in v0.4.0
func (e ApplicationScopeValidationError) Reason() string
Reason function returns reason value.
type ApplicationTrait ¶ added in v0.4.0
type ApplicationTrait struct { // The name of trait definition. This is used to reference to the definition/schema of the Trait. For one type of trait, there could be only one config/deploy in one component. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Properties that can be configured and are exposed by this trait. Properties *_struct.Struct `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"` // Trait with the full specification of trait that should be passed to the runtime. This field is mutually exclusive with name and properties. [Legacy]. Trait *_struct.Struct `protobuf:"bytes,3,opt,name=trait,proto3" json:"trait,omitempty"` // contains filtered or unexported fields }
ApplicationTrait specifies a trait that should be applied to a component.
func (*ApplicationTrait) Descriptor
deprecated
added in
v0.4.0
func (*ApplicationTrait) Descriptor() ([]byte, []int)
Deprecated: Use ApplicationTrait.ProtoReflect.Descriptor instead.
func (*ApplicationTrait) GetName ¶ added in v0.4.0
func (x *ApplicationTrait) GetName() string
func (*ApplicationTrait) GetProperties ¶ added in v0.4.0
func (x *ApplicationTrait) GetProperties() *_struct.Struct
func (*ApplicationTrait) GetTrait ¶ added in v0.4.0
func (x *ApplicationTrait) GetTrait() *_struct.Struct
func (*ApplicationTrait) ProtoMessage ¶ added in v0.4.0
func (*ApplicationTrait) ProtoMessage()
func (*ApplicationTrait) ProtoReflect ¶ added in v0.4.0
func (x *ApplicationTrait) ProtoReflect() protoreflect.Message
func (*ApplicationTrait) Reset ¶ added in v0.4.0
func (x *ApplicationTrait) Reset()
func (*ApplicationTrait) String ¶ added in v0.4.0
func (x *ApplicationTrait) String() string
func (*ApplicationTrait) Validate ¶ added in v0.4.0
func (m *ApplicationTrait) Validate() error
Validate checks the field values on ApplicationTrait with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ApplicationTraitValidationError ¶ added in v0.4.0
type ApplicationTraitValidationError struct {
// contains filtered or unexported fields
}
ApplicationTraitValidationError is the validation error returned by ApplicationTrait.Validate if the designated constraints aren't met.
func (ApplicationTraitValidationError) Cause ¶ added in v0.4.0
func (e ApplicationTraitValidationError) Cause() error
Cause function returns cause value.
func (ApplicationTraitValidationError) Error ¶ added in v0.4.0
func (e ApplicationTraitValidationError) Error() string
Error satisfies the builtin error interface
func (ApplicationTraitValidationError) ErrorName ¶ added in v0.4.0
func (e ApplicationTraitValidationError) ErrorName() string
ErrorName returns error name.
func (ApplicationTraitValidationError) Field ¶ added in v0.4.0
func (e ApplicationTraitValidationError) Field() string
Field function returns field value.
func (ApplicationTraitValidationError) Key ¶ added in v0.4.0
func (e ApplicationTraitValidationError) Key() bool
Key function returns key value.
func (ApplicationTraitValidationError) Reason ¶ added in v0.4.0
func (e ApplicationTraitValidationError) Reason() string
Reason function returns reason value.
type ChildResourceKind ¶ added in v0.2.0
type ChildResourceKind struct { // ApiVersion of the given child resource. This field is mandatory. ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // Kind of the child resource. This field is mandatory. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
ChildResourceKind defines a reference for a child resource. TODO Add selector property when we find a usage example.
func (*ChildResourceKind) Descriptor
deprecated
added in
v0.2.0
func (*ChildResourceKind) Descriptor() ([]byte, []int)
Deprecated: Use ChildResourceKind.ProtoReflect.Descriptor instead.
func (*ChildResourceKind) GetApiVersion ¶ added in v0.2.0
func (x *ChildResourceKind) GetApiVersion() string
func (*ChildResourceKind) GetKind ¶ added in v0.2.0
func (x *ChildResourceKind) GetKind() string
func (*ChildResourceKind) ProtoMessage ¶ added in v0.2.0
func (*ChildResourceKind) ProtoMessage()
func (*ChildResourceKind) ProtoReflect ¶ added in v0.2.0
func (x *ChildResourceKind) ProtoReflect() protoreflect.Message
func (*ChildResourceKind) Reset ¶ added in v0.2.0
func (x *ChildResourceKind) Reset()
func (*ChildResourceKind) String ¶ added in v0.2.0
func (x *ChildResourceKind) String() string
func (*ChildResourceKind) Validate ¶ added in v0.2.0
func (m *ChildResourceKind) Validate() error
Validate checks the field values on ChildResourceKind with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ChildResourceKindValidationError ¶ added in v0.2.0
type ChildResourceKindValidationError struct {
// contains filtered or unexported fields
}
ChildResourceKindValidationError is the validation error returned by ChildResourceKind.Validate if the designated constraints aren't met.
func (ChildResourceKindValidationError) Cause ¶ added in v0.2.0
func (e ChildResourceKindValidationError) Cause() error
Cause function returns cause value.
func (ChildResourceKindValidationError) Error ¶ added in v0.2.0
func (e ChildResourceKindValidationError) Error() string
Error satisfies the builtin error interface
func (ChildResourceKindValidationError) ErrorName ¶ added in v0.2.0
func (e ChildResourceKindValidationError) ErrorName() string
ErrorName returns error name.
func (ChildResourceKindValidationError) Field ¶ added in v0.2.0
func (e ChildResourceKindValidationError) Field() string
Field function returns field value.
func (ChildResourceKindValidationError) Key ¶ added in v0.2.0
func (e ChildResourceKindValidationError) Key() bool
Key function returns key value.
func (ChildResourceKindValidationError) Reason ¶ added in v0.2.0
func (e ChildResourceKindValidationError) Reason() string
Reason function returns reason value.
type Component ¶ added in v0.2.0
type Component struct { // ApiVersion of the component. ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // Kind of component. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // Metadata associated with the component. Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // Spec associated with the component. Spec *ComponentSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
Component with the information of a component in the OAM spec.
func (*Component) Descriptor
deprecated
added in
v0.2.0
func (*Component) GetApiVersion ¶ added in v0.2.0
func (*Component) GetMetadata ¶ added in v0.3.0
func (*Component) GetSpec ¶ added in v0.3.0
func (x *Component) GetSpec() *ComponentSpec
func (*Component) ProtoMessage ¶ added in v0.2.0
func (*Component) ProtoMessage()
func (*Component) ProtoReflect ¶ added in v0.2.0
func (x *Component) ProtoReflect() protoreflect.Message
type ComponentParameterValue ¶ added in v0.4.0
type ComponentParameterValue struct { // Name of parameter to be set. This field is mandatory. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Value to be applied. This field is mandatory. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
ComponentParameterValue specifies a value for a named parameter. The associated component must publish a parameter with this name.
func (*ComponentParameterValue) Descriptor
deprecated
added in
v0.4.0
func (*ComponentParameterValue) Descriptor() ([]byte, []int)
Deprecated: Use ComponentParameterValue.ProtoReflect.Descriptor instead.
func (*ComponentParameterValue) GetName ¶ added in v0.4.0
func (x *ComponentParameterValue) GetName() string
func (*ComponentParameterValue) GetValue ¶ added in v0.4.0
func (x *ComponentParameterValue) GetValue() string
func (*ComponentParameterValue) ProtoMessage ¶ added in v0.4.0
func (*ComponentParameterValue) ProtoMessage()
func (*ComponentParameterValue) ProtoReflect ¶ added in v0.4.0
func (x *ComponentParameterValue) ProtoReflect() protoreflect.Message
func (*ComponentParameterValue) Reset ¶ added in v0.4.0
func (x *ComponentParameterValue) Reset()
func (*ComponentParameterValue) String ¶ added in v0.4.0
func (x *ComponentParameterValue) String() string
func (*ComponentParameterValue) Validate ¶ added in v0.4.0
func (m *ComponentParameterValue) Validate() error
Validate checks the field values on ComponentParameterValue with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ComponentParameterValueValidationError ¶ added in v0.4.0
type ComponentParameterValueValidationError struct {
// contains filtered or unexported fields
}
ComponentParameterValueValidationError is the validation error returned by ComponentParameterValue.Validate if the designated constraints aren't met.
func (ComponentParameterValueValidationError) Cause ¶ added in v0.4.0
func (e ComponentParameterValueValidationError) Cause() error
Cause function returns cause value.
func (ComponentParameterValueValidationError) Error ¶ added in v0.4.0
func (e ComponentParameterValueValidationError) Error() string
Error satisfies the builtin error interface
func (ComponentParameterValueValidationError) ErrorName ¶ added in v0.4.0
func (e ComponentParameterValueValidationError) ErrorName() string
ErrorName returns error name.
func (ComponentParameterValueValidationError) Field ¶ added in v0.4.0
func (e ComponentParameterValueValidationError) Field() string
Field function returns field value.
func (ComponentParameterValueValidationError) Key ¶ added in v0.4.0
func (e ComponentParameterValueValidationError) Key() bool
Key function returns key value.
func (ComponentParameterValueValidationError) Reason ¶ added in v0.4.0
func (e ComponentParameterValueValidationError) Reason() string
Reason function returns reason value.
type ComponentSpec ¶ added in v0.3.0
type ComponentSpec struct { // Type of component Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Workload of the component. This field is mutually exclusive with type and settings. Workload *Workload `protobuf:"bytes,2,opt,name=workload,proto3" json:"workload,omitempty"` // Settings of the workload Settings *WorkloadSpec `protobuf:"bytes,3,opt,name=settings,proto3" json:"settings,omitempty"` // Parameters with the component parameters Parameters []*Parameter `protobuf:"bytes,4,rep,name=parameters,proto3" json:"parameters,omitempty"` // contains filtered or unexported fields }
ComponentSpec with the spec of an OAM component.
func (*ComponentSpec) Descriptor
deprecated
added in
v0.3.0
func (*ComponentSpec) Descriptor() ([]byte, []int)
Deprecated: Use ComponentSpec.ProtoReflect.Descriptor instead.
func (*ComponentSpec) GetParameters ¶ added in v0.3.0
func (x *ComponentSpec) GetParameters() []*Parameter
func (*ComponentSpec) GetSettings ¶ added in v0.3.0
func (x *ComponentSpec) GetSettings() *WorkloadSpec
func (*ComponentSpec) GetType ¶ added in v0.3.0
func (x *ComponentSpec) GetType() string
func (*ComponentSpec) GetWorkload ¶ added in v0.3.0
func (x *ComponentSpec) GetWorkload() *Workload
func (*ComponentSpec) ProtoMessage ¶ added in v0.3.0
func (*ComponentSpec) ProtoMessage()
func (*ComponentSpec) ProtoReflect ¶ added in v0.3.0
func (x *ComponentSpec) ProtoReflect() protoreflect.Message
func (*ComponentSpec) Reset ¶ added in v0.3.0
func (x *ComponentSpec) Reset()
func (*ComponentSpec) String ¶ added in v0.3.0
func (x *ComponentSpec) String() string
func (*ComponentSpec) Validate ¶ added in v0.3.0
func (m *ComponentSpec) Validate() error
Validate checks the field values on ComponentSpec with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ComponentSpecValidationError ¶ added in v0.3.0
type ComponentSpecValidationError struct {
// contains filtered or unexported fields
}
ComponentSpecValidationError is the validation error returned by ComponentSpec.Validate if the designated constraints aren't met.
func (ComponentSpecValidationError) Cause ¶ added in v0.3.0
func (e ComponentSpecValidationError) Cause() error
Cause function returns cause value.
func (ComponentSpecValidationError) Error ¶ added in v0.3.0
func (e ComponentSpecValidationError) Error() string
Error satisfies the builtin error interface
func (ComponentSpecValidationError) ErrorName ¶ added in v0.3.0
func (e ComponentSpecValidationError) ErrorName() string
ErrorName returns error name.
func (ComponentSpecValidationError) Field ¶ added in v0.3.0
func (e ComponentSpecValidationError) Field() string
Field function returns field value.
func (ComponentSpecValidationError) Key ¶ added in v0.3.0
func (e ComponentSpecValidationError) Key() bool
Key function returns key value.
func (ComponentSpecValidationError) Reason ¶ added in v0.3.0
func (e ComponentSpecValidationError) Reason() string
Reason function returns reason value.
type ComponentSummary ¶ added in v0.7.0
type ComponentSummary struct { // images with the images of all associated containers Images []string `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"` // contains filtered or unexported fields }
ComponentSummary defines a summary of the component.
func (*ComponentSummary) Descriptor
deprecated
added in
v0.7.0
func (*ComponentSummary) Descriptor() ([]byte, []int)
Deprecated: Use ComponentSummary.ProtoReflect.Descriptor instead.
func (*ComponentSummary) GetImages ¶ added in v0.7.0
func (x *ComponentSummary) GetImages() []string
func (*ComponentSummary) ProtoMessage ¶ added in v0.7.0
func (*ComponentSummary) ProtoMessage()
func (*ComponentSummary) ProtoReflect ¶ added in v0.7.0
func (x *ComponentSummary) ProtoReflect() protoreflect.Message
func (*ComponentSummary) Reset ¶ added in v0.7.0
func (x *ComponentSummary) Reset()
func (*ComponentSummary) String ¶ added in v0.7.0
func (x *ComponentSummary) String() string
func (*ComponentSummary) Validate ¶ added in v0.7.0
func (m *ComponentSummary) Validate() error
Validate checks the field values on ComponentSummary with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ComponentSummaryValidationError ¶ added in v0.7.0
type ComponentSummaryValidationError struct {
// contains filtered or unexported fields
}
ComponentSummaryValidationError is the validation error returned by ComponentSummary.Validate if the designated constraints aren't met.
func (ComponentSummaryValidationError) Cause ¶ added in v0.7.0
func (e ComponentSummaryValidationError) Cause() error
Cause function returns cause value.
func (ComponentSummaryValidationError) Error ¶ added in v0.7.0
func (e ComponentSummaryValidationError) Error() string
Error satisfies the builtin error interface
func (ComponentSummaryValidationError) ErrorName ¶ added in v0.7.0
func (e ComponentSummaryValidationError) ErrorName() string
ErrorName returns error name.
func (ComponentSummaryValidationError) Field ¶ added in v0.7.0
func (e ComponentSummaryValidationError) Field() string
Field function returns field value.
func (ComponentSummaryValidationError) Key ¶ added in v0.7.0
func (e ComponentSummaryValidationError) Key() bool
Key function returns key value.
func (ComponentSummaryValidationError) Reason ¶ added in v0.7.0
func (e ComponentSummaryValidationError) Reason() string
Reason function returns reason value.
type ComponentValidationError ¶ added in v0.2.0
type ComponentValidationError struct {
// contains filtered or unexported fields
}
ComponentValidationError is the validation error returned by Component.Validate if the designated constraints aren't met.
func (ComponentValidationError) Cause ¶ added in v0.2.0
func (e ComponentValidationError) Cause() error
Cause function returns cause value.
func (ComponentValidationError) Error ¶ added in v0.2.0
func (e ComponentValidationError) Error() string
Error satisfies the builtin error interface
func (ComponentValidationError) ErrorName ¶ added in v0.2.0
func (e ComponentValidationError) ErrorName() string
ErrorName returns error name.
func (ComponentValidationError) Field ¶ added in v0.2.0
func (e ComponentValidationError) Field() string
Field function returns field value.
func (ComponentValidationError) Key ¶ added in v0.2.0
func (e ComponentValidationError) Key() bool
Key function returns key value.
func (ComponentValidationError) Reason ¶ added in v0.2.0
func (e ComponentValidationError) Reason() string
Reason function returns reason value.
type Container ¶ added in v0.3.0
type Container struct { // name of the container Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Image of the container Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` // ImagePullPolicy ImagePullPolicy string `protobuf:"bytes,3,opt,name=image_pull_policy,json=imagePullPolicy,proto3" json:"image_pull_policy,omitempty"` // ports with the ports Ports []*Port `protobuf:"bytes,4,rep,name=ports,proto3" json:"ports,omitempty"` // cmd with the command to execute the container Cmd []string `protobuf:"bytes,5,rep,name=cmd,proto3" json:"cmd,omitempty"` // env with a list of environment variables Env []*EnvironmentVariable `protobuf:"bytes,6,rep,name=env,proto3" json:"env,omitempty"` // resources // contains filtered or unexported fields }
Container with the container information
func (*Container) Descriptor
deprecated
added in
v0.3.0
func (*Container) GetEnv ¶ added in v0.3.0
func (x *Container) GetEnv() []*EnvironmentVariable
func (*Container) GetImagePullPolicy ¶ added in v0.3.0
func (*Container) ProtoMessage ¶ added in v0.3.0
func (*Container) ProtoMessage()
func (*Container) ProtoReflect ¶ added in v0.3.0
func (x *Container) ProtoReflect() protoreflect.Message
type ContainerValidationError ¶ added in v0.3.0
type ContainerValidationError struct {
// contains filtered or unexported fields
}
ContainerValidationError is the validation error returned by Container.Validate if the designated constraints aren't met.
func (ContainerValidationError) Cause ¶ added in v0.3.0
func (e ContainerValidationError) Cause() error
Cause function returns cause value.
func (ContainerValidationError) Error ¶ added in v0.3.0
func (e ContainerValidationError) Error() string
Error satisfies the builtin error interface
func (ContainerValidationError) ErrorName ¶ added in v0.3.0
func (e ContainerValidationError) ErrorName() string
ErrorName returns error name.
func (ContainerValidationError) Field ¶ added in v0.3.0
func (e ContainerValidationError) Field() string
Field function returns field value.
func (ContainerValidationError) Key ¶ added in v0.3.0
func (e ContainerValidationError) Key() bool
Key function returns key value.
func (ContainerValidationError) Reason ¶ added in v0.3.0
func (e ContainerValidationError) Reason() string
Reason function returns reason value.
type DefinitionRef ¶ added in v0.2.0
type DefinitionRef struct { // Name of the referenced CustomResourceDefinition. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Version indicate which version should be used if CRD has multiple versions by default it will use the first one if not specified Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` // contains filtered or unexported fields }
DefinitionRef with the reference to the CustomResourceDefinition that defines this trait kind.
func (*DefinitionRef) Descriptor
deprecated
added in
v0.2.0
func (*DefinitionRef) Descriptor() ([]byte, []int)
Deprecated: Use DefinitionRef.ProtoReflect.Descriptor instead.
func (*DefinitionRef) GetName ¶ added in v0.2.0
func (x *DefinitionRef) GetName() string
func (*DefinitionRef) GetVersion ¶ added in v0.2.0
func (x *DefinitionRef) GetVersion() string
func (*DefinitionRef) ProtoMessage ¶ added in v0.2.0
func (*DefinitionRef) ProtoMessage()
func (*DefinitionRef) ProtoReflect ¶ added in v0.2.0
func (x *DefinitionRef) ProtoReflect() protoreflect.Message
func (*DefinitionRef) Reset ¶ added in v0.2.0
func (x *DefinitionRef) Reset()
func (*DefinitionRef) String ¶ added in v0.2.0
func (x *DefinitionRef) String() string
func (*DefinitionRef) Validate ¶ added in v0.2.0
func (m *DefinitionRef) Validate() error
Validate checks the field values on DefinitionRef with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DefinitionRefValidationError ¶ added in v0.2.0
type DefinitionRefValidationError struct {
// contains filtered or unexported fields
}
DefinitionRefValidationError is the validation error returned by DefinitionRef.Validate if the designated constraints aren't met.
func (DefinitionRefValidationError) Cause ¶ added in v0.2.0
func (e DefinitionRefValidationError) Cause() error
Cause function returns cause value.
func (DefinitionRefValidationError) Error ¶ added in v0.2.0
func (e DefinitionRefValidationError) Error() string
Error satisfies the builtin error interface
func (DefinitionRefValidationError) ErrorName ¶ added in v0.2.0
func (e DefinitionRefValidationError) ErrorName() string
ErrorName returns error name.
func (DefinitionRefValidationError) Field ¶ added in v0.2.0
func (e DefinitionRefValidationError) Field() string
Field function returns field value.
func (DefinitionRefValidationError) Key ¶ added in v0.2.0
func (e DefinitionRefValidationError) Key() bool
Key function returns key value.
func (DefinitionRefValidationError) Reason ¶ added in v0.2.0
func (e DefinitionRefValidationError) Reason() string
Reason function returns reason value.
type EnvironmentVariable ¶ added in v0.3.0
type EnvironmentVariable struct { // Name with the name of the variable Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required indicates if the variable must to be filled Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"` // Value of the variable Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` // FromSecret indicates the env takes from a secret FromSecret *FromValueEnv `protobuf:"bytes,4,opt,name=from_secret,json=fromSecret,proto3" json:"from_secret,omitempty"` // valueFrom indicates where is the env information ValueFrom *FromConfigEnv `protobuf:"bytes,5,opt,name=value_from,json=valueFrom,proto3" json:"value_from,omitempty"` // contains filtered or unexported fields }
EnvironmentVariable message with the environment variable information There are different ways to define environment variable. Value, secret or configmap
func (*EnvironmentVariable) Descriptor
deprecated
added in
v0.3.0
func (*EnvironmentVariable) Descriptor() ([]byte, []int)
Deprecated: Use EnvironmentVariable.ProtoReflect.Descriptor instead.
func (*EnvironmentVariable) GetFromSecret ¶ added in v0.5.0
func (x *EnvironmentVariable) GetFromSecret() *FromValueEnv
func (*EnvironmentVariable) GetName ¶ added in v0.3.0
func (x *EnvironmentVariable) GetName() string
func (*EnvironmentVariable) GetRequired ¶ added in v0.3.0
func (x *EnvironmentVariable) GetRequired() bool
func (*EnvironmentVariable) GetValue ¶ added in v0.3.0
func (x *EnvironmentVariable) GetValue() string
func (*EnvironmentVariable) GetValueFrom ¶ added in v0.5.0
func (x *EnvironmentVariable) GetValueFrom() *FromConfigEnv
func (*EnvironmentVariable) ProtoMessage ¶ added in v0.3.0
func (*EnvironmentVariable) ProtoMessage()
func (*EnvironmentVariable) ProtoReflect ¶ added in v0.3.0
func (x *EnvironmentVariable) ProtoReflect() protoreflect.Message
func (*EnvironmentVariable) Reset ¶ added in v0.3.0
func (x *EnvironmentVariable) Reset()
func (*EnvironmentVariable) String ¶ added in v0.3.0
func (x *EnvironmentVariable) String() string
func (*EnvironmentVariable) Validate ¶ added in v0.3.0
func (m *EnvironmentVariable) Validate() error
Validate checks the field values on EnvironmentVariable with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type EnvironmentVariableValidationError ¶ added in v0.3.0
type EnvironmentVariableValidationError struct {
// contains filtered or unexported fields
}
EnvironmentVariableValidationError is the validation error returned by EnvironmentVariable.Validate if the designated constraints aren't met.
func (EnvironmentVariableValidationError) Cause ¶ added in v0.3.0
func (e EnvironmentVariableValidationError) Cause() error
Cause function returns cause value.
func (EnvironmentVariableValidationError) Error ¶ added in v0.3.0
func (e EnvironmentVariableValidationError) Error() string
Error satisfies the builtin error interface
func (EnvironmentVariableValidationError) ErrorName ¶ added in v0.3.0
func (e EnvironmentVariableValidationError) ErrorName() string
ErrorName returns error name.
func (EnvironmentVariableValidationError) Field ¶ added in v0.3.0
func (e EnvironmentVariableValidationError) Field() string
Field function returns field value.
func (EnvironmentVariableValidationError) Key ¶ added in v0.3.0
func (e EnvironmentVariableValidationError) Key() bool
Key function returns key value.
func (EnvironmentVariableValidationError) Reason ¶ added in v0.3.0
func (e EnvironmentVariableValidationError) Reason() string
Reason function returns reason value.
type FromConfigEnv ¶ added in v0.5.0
type FromConfigEnv struct { // ConfigMapKeyRef indicates the configmap used to get the env variable ConfigMapKeyRef *FromValueEnv `protobuf:"bytes,1,opt,name=config_map_key_ref,json=configMapKeyRef,proto3" json:"config_map_key_ref,omitempty"` // contains filtered or unexported fields }
FromSecretEnv message to select a ConfigMap to populate the environment variables with.
func (*FromConfigEnv) Descriptor
deprecated
added in
v0.5.0
func (*FromConfigEnv) Descriptor() ([]byte, []int)
Deprecated: Use FromConfigEnv.ProtoReflect.Descriptor instead.
func (*FromConfigEnv) GetConfigMapKeyRef ¶ added in v0.5.0
func (x *FromConfigEnv) GetConfigMapKeyRef() *FromValueEnv
func (*FromConfigEnv) ProtoMessage ¶ added in v0.5.0
func (*FromConfigEnv) ProtoMessage()
func (*FromConfigEnv) ProtoReflect ¶ added in v0.5.0
func (x *FromConfigEnv) ProtoReflect() protoreflect.Message
func (*FromConfigEnv) Reset ¶ added in v0.5.0
func (x *FromConfigEnv) Reset()
func (*FromConfigEnv) String ¶ added in v0.5.0
func (x *FromConfigEnv) String() string
func (*FromConfigEnv) Validate ¶ added in v0.5.0
func (m *FromConfigEnv) Validate() error
Validate checks the field values on FromConfigEnv with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FromConfigEnvValidationError ¶ added in v0.5.0
type FromConfigEnvValidationError struct {
// contains filtered or unexported fields
}
FromConfigEnvValidationError is the validation error returned by FromConfigEnv.Validate if the designated constraints aren't met.
func (FromConfigEnvValidationError) Cause ¶ added in v0.5.0
func (e FromConfigEnvValidationError) Cause() error
Cause function returns cause value.
func (FromConfigEnvValidationError) Error ¶ added in v0.5.0
func (e FromConfigEnvValidationError) Error() string
Error satisfies the builtin error interface
func (FromConfigEnvValidationError) ErrorName ¶ added in v0.5.0
func (e FromConfigEnvValidationError) ErrorName() string
ErrorName returns error name.
func (FromConfigEnvValidationError) Field ¶ added in v0.5.0
func (e FromConfigEnvValidationError) Field() string
Field function returns field value.
func (FromConfigEnvValidationError) Key ¶ added in v0.5.0
func (e FromConfigEnvValidationError) Key() bool
Key function returns key value.
func (FromConfigEnvValidationError) Reason ¶ added in v0.5.0
func (e FromConfigEnvValidationError) Reason() string
Reason function returns reason value.
type FromValueEnv ¶ added in v0.5.0
type FromValueEnv struct { // name with the secret name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // key with the key in the secret Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
FromValueEnv message to select a Secret or a configmap to populate the environment variables with.
func (*FromValueEnv) Descriptor
deprecated
added in
v0.5.0
func (*FromValueEnv) Descriptor() ([]byte, []int)
Deprecated: Use FromValueEnv.ProtoReflect.Descriptor instead.
func (*FromValueEnv) GetKey ¶ added in v0.5.0
func (x *FromValueEnv) GetKey() string
func (*FromValueEnv) GetName ¶ added in v0.5.0
func (x *FromValueEnv) GetName() string
func (*FromValueEnv) ProtoMessage ¶ added in v0.5.0
func (*FromValueEnv) ProtoMessage()
func (*FromValueEnv) ProtoReflect ¶ added in v0.5.0
func (x *FromValueEnv) ProtoReflect() protoreflect.Message
func (*FromValueEnv) Reset ¶ added in v0.5.0
func (x *FromValueEnv) Reset()
func (*FromValueEnv) String ¶ added in v0.5.0
func (x *FromValueEnv) String() string
func (*FromValueEnv) Validate ¶ added in v0.5.0
func (m *FromValueEnv) Validate() error
Validate checks the field values on FromValueEnv with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FromValueEnvValidationError ¶ added in v0.5.0
type FromValueEnvValidationError struct {
// contains filtered or unexported fields
}
FromValueEnvValidationError is the validation error returned by FromValueEnv.Validate if the designated constraints aren't met.
func (FromValueEnvValidationError) Cause ¶ added in v0.5.0
func (e FromValueEnvValidationError) Cause() error
Cause function returns cause value.
func (FromValueEnvValidationError) Error ¶ added in v0.5.0
func (e FromValueEnvValidationError) Error() string
Error satisfies the builtin error interface
func (FromValueEnvValidationError) ErrorName ¶ added in v0.5.0
func (e FromValueEnvValidationError) ErrorName() string
ErrorName returns error name.
func (FromValueEnvValidationError) Field ¶ added in v0.5.0
func (e FromValueEnvValidationError) Field() string
Field function returns field value.
func (FromValueEnvValidationError) Key ¶ added in v0.5.0
func (e FromValueEnvValidationError) Key() bool
Key function returns key value.
func (FromValueEnvValidationError) Reason ¶ added in v0.5.0
func (e FromValueEnvValidationError) Reason() string
Reason function returns reason value.
type Metadata ¶ added in v0.2.0
type Metadata struct { // Name of the resource Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Annotations of the resource. Annotations map[string]string `` /* 163-byte string literal not displayed */ // Labels related to the resource. Labels map[string]string `` /* 153-byte string literal not displayed */ // UID is the unique in time and space value for this object. More info: http://kubernetes.io/docs/user-guide/identifiers#uids Uid string `protobuf:"bytes,4,opt,name=uid,proto3" json:"uid,omitempty"` // CreationTimestamp with the server time when the object was created. // It is represented in RFC3339 form and is in UTC. CreationTimestamp string `protobuf:"bytes,5,opt,name=creation_timestamp,json=creationTimestamp,proto3" json:"creation_timestamp,omitempty"` // contains filtered or unexported fields }
Metadata associated with a kubernetes entity.
func (*Metadata) Descriptor
deprecated
added in
v0.2.0
func (*Metadata) GetAnnotations ¶ added in v0.2.0
func (*Metadata) GetCreationTimestamp ¶ added in v0.9.0
func (*Metadata) ProtoMessage ¶ added in v0.2.0
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶ added in v0.2.0
func (x *Metadata) ProtoReflect() protoreflect.Message
type MetadataValidationError ¶ added in v0.2.0
type MetadataValidationError struct {
// contains filtered or unexported fields
}
MetadataValidationError is the validation error returned by Metadata.Validate if the designated constraints aren't met.
func (MetadataValidationError) Cause ¶ added in v0.2.0
func (e MetadataValidationError) Cause() error
Cause function returns cause value.
func (MetadataValidationError) Error ¶ added in v0.2.0
func (e MetadataValidationError) Error() string
Error satisfies the builtin error interface
func (MetadataValidationError) ErrorName ¶ added in v0.2.0
func (e MetadataValidationError) ErrorName() string
ErrorName returns error name.
func (MetadataValidationError) Field ¶ added in v0.2.0
func (e MetadataValidationError) Field() string
Field function returns field value.
func (MetadataValidationError) Key ¶ added in v0.2.0
func (e MetadataValidationError) Key() bool
Key function returns key value.
func (MetadataValidationError) Reason ¶ added in v0.2.0
func (e MetadataValidationError) Reason() string
Reason function returns reason value.
type Parameter ¶ added in v0.3.0
type Parameter struct { // Name of the parameter Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required with a flag to indicate if the parameter is required or not Required bool `protobuf:"varint,2,opt,name=required,proto3" json:"required,omitempty"` // FieldPaths with the paths where the parameter is applied FieldPaths []string `protobuf:"bytes,3,rep,name=field_paths,json=fieldPaths,proto3" json:"field_paths,omitempty"` // contains filtered or unexported fields }
Parameter message with the parameter definition
func (*Parameter) Descriptor
deprecated
added in
v0.3.0
func (*Parameter) GetFieldPaths ¶ added in v0.3.0
func (*Parameter) GetRequired ¶ added in v0.3.0
func (*Parameter) ProtoMessage ¶ added in v0.3.0
func (*Parameter) ProtoMessage()
func (*Parameter) ProtoReflect ¶ added in v0.3.0
func (x *Parameter) ProtoReflect() protoreflect.Message
type ParameterValidationError ¶ added in v0.3.0
type ParameterValidationError struct {
// contains filtered or unexported fields
}
ParameterValidationError is the validation error returned by Parameter.Validate if the designated constraints aren't met.
func (ParameterValidationError) Cause ¶ added in v0.3.0
func (e ParameterValidationError) Cause() error
Cause function returns cause value.
func (ParameterValidationError) Error ¶ added in v0.3.0
func (e ParameterValidationError) Error() string
Error satisfies the builtin error interface
func (ParameterValidationError) ErrorName ¶ added in v0.3.0
func (e ParameterValidationError) ErrorName() string
ErrorName returns error name.
func (ParameterValidationError) Field ¶ added in v0.3.0
func (e ParameterValidationError) Field() string
Field function returns field value.
func (ParameterValidationError) Key ¶ added in v0.3.0
func (e ParameterValidationError) Key() bool
Key function returns key value.
func (ParameterValidationError) Reason ¶ added in v0.3.0
func (e ParameterValidationError) Reason() string
Reason function returns reason value.
type Port ¶ added in v0.3.0
type Port struct { // Name of the port Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Value with the port number Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // ContainerPort with the port in the container ContainerPort int32 `protobuf:"varint,3,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"` // Type port Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
Port message with the port specification
func (*Port) Descriptor
deprecated
added in
v0.3.0
func (*Port) GetContainerPort ¶ added in v0.5.0
func (*Port) ProtoMessage ¶ added in v0.3.0
func (*Port) ProtoMessage()
func (*Port) ProtoReflect ¶ added in v0.3.0
func (x *Port) ProtoReflect() protoreflect.Message
type PortValidationError ¶ added in v0.3.0
type PortValidationError struct {
// contains filtered or unexported fields
}
PortValidationError is the validation error returned by Port.Validate if the designated constraints aren't met.
func (PortValidationError) Cause ¶ added in v0.3.0
func (e PortValidationError) Cause() error
Cause function returns cause value.
func (PortValidationError) Error ¶ added in v0.3.0
func (e PortValidationError) Error() string
Error satisfies the builtin error interface
func (PortValidationError) ErrorName ¶ added in v0.3.0
func (e PortValidationError) ErrorName() string
ErrorName returns error name.
func (PortValidationError) Field ¶ added in v0.3.0
func (e PortValidationError) Field() string
Field function returns field value.
func (PortValidationError) Key ¶ added in v0.3.0
func (e PortValidationError) Key() bool
Key function returns key value.
func (PortValidationError) Reason ¶ added in v0.3.0
func (e PortValidationError) Reason() string
Reason function returns reason value.
type Scope ¶ added in v0.2.0
type Scope struct { // ApiVersion of the given scope. ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // Kind of the scope. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // Metadata associated with the scope. Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // Spec of the scope. Spec *ScopeSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
Scope as defined in the OAM schematics.
func (*Scope) Descriptor
deprecated
added in
v0.2.0
func (*Scope) GetApiVersion ¶ added in v0.2.0
func (*Scope) GetMetadata ¶ added in v0.2.0
func (*Scope) ProtoMessage ¶ added in v0.2.0
func (*Scope) ProtoMessage()
func (*Scope) ProtoReflect ¶ added in v0.2.0
func (x *Scope) ProtoReflect() protoreflect.Message
type ScopeSpec ¶ added in v0.2.0
type ScopeSpec struct { // AllowComponentOverlap specifies whether an OAM component may exist in multiple instances of this kind of scope. AllowComponentOverlap bool `` /* 127-byte string literal not displayed */ // DefinitionRef with the reference to the CustomResourceDefinition that defines this scope kind DefinitionRef *DefinitionRef `protobuf:"bytes,2,opt,name=definition_ref,json=definitionRef,proto3" json:"definition_ref,omitempty"` // WorkloadRefPath indicates where/if a trait accepts a workloadRef object. WorkloadRefPath string `protobuf:"bytes,3,opt,name=workload_ref_path,json=workloadRefPath,proto3" json:"workload_ref_path,omitempty"` // contains filtered or unexported fields }
ScopeSpec with the specification of a scope.
func (*ScopeSpec) Descriptor
deprecated
added in
v0.2.0
func (*ScopeSpec) GetAllowComponentOverlap ¶ added in v0.2.0
func (*ScopeSpec) GetDefinitionRef ¶ added in v0.2.0
func (x *ScopeSpec) GetDefinitionRef() *DefinitionRef
func (*ScopeSpec) GetWorkloadRefPath ¶ added in v0.2.0
func (*ScopeSpec) ProtoMessage ¶ added in v0.2.0
func (*ScopeSpec) ProtoMessage()
func (*ScopeSpec) ProtoReflect ¶ added in v0.2.0
func (x *ScopeSpec) ProtoReflect() protoreflect.Message
type ScopeSpecValidationError ¶ added in v0.2.0
type ScopeSpecValidationError struct {
// contains filtered or unexported fields
}
ScopeSpecValidationError is the validation error returned by ScopeSpec.Validate if the designated constraints aren't met.
func (ScopeSpecValidationError) Cause ¶ added in v0.2.0
func (e ScopeSpecValidationError) Cause() error
Cause function returns cause value.
func (ScopeSpecValidationError) Error ¶ added in v0.2.0
func (e ScopeSpecValidationError) Error() string
Error satisfies the builtin error interface
func (ScopeSpecValidationError) ErrorName ¶ added in v0.2.0
func (e ScopeSpecValidationError) ErrorName() string
ErrorName returns error name.
func (ScopeSpecValidationError) Field ¶ added in v0.2.0
func (e ScopeSpecValidationError) Field() string
Field function returns field value.
func (ScopeSpecValidationError) Key ¶ added in v0.2.0
func (e ScopeSpecValidationError) Key() bool
Key function returns key value.
func (ScopeSpecValidationError) Reason ¶ added in v0.2.0
func (e ScopeSpecValidationError) Reason() string
Reason function returns reason value.
type ScopeValidationError ¶ added in v0.2.0
type ScopeValidationError struct {
// contains filtered or unexported fields
}
ScopeValidationError is the validation error returned by Scope.Validate if the designated constraints aren't met.
func (ScopeValidationError) Cause ¶ added in v0.2.0
func (e ScopeValidationError) Cause() error
Cause function returns cause value.
func (ScopeValidationError) Error ¶ added in v0.2.0
func (e ScopeValidationError) Error() string
Error satisfies the builtin error interface
func (ScopeValidationError) ErrorName ¶ added in v0.2.0
func (e ScopeValidationError) ErrorName() string
ErrorName returns error name.
func (ScopeValidationError) Field ¶ added in v0.2.0
func (e ScopeValidationError) Field() string
Field function returns field value.
func (ScopeValidationError) Key ¶ added in v0.2.0
func (e ScopeValidationError) Key() bool
Key function returns key value.
func (ScopeValidationError) Reason ¶ added in v0.2.0
func (e ScopeValidationError) Reason() string
Reason function returns reason value.
type Trait ¶ added in v0.2.0
type Trait struct { // ApiVersion of the given trait. ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // Kind of the trait. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // Metadata associated with the trait. Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // Spec of the trait. Spec *TraitSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
Trait as defined in the OAM schematics.
func (*Trait) Descriptor
deprecated
added in
v0.2.0
func (*Trait) GetApiVersion ¶ added in v0.2.0
func (*Trait) GetMetadata ¶ added in v0.2.0
func (*Trait) ProtoMessage ¶ added in v0.2.0
func (*Trait) ProtoMessage()
func (*Trait) ProtoReflect ¶ added in v0.2.0
func (x *Trait) ProtoReflect() protoreflect.Message
type TraitSpec ¶ added in v0.2.0
type TraitSpec struct { // AppliesToWorkloads specifies the list of workload kinds this trait applies to. Workload kinds are specified in kind.group/version format, e.g. server.core.oam.dev/v1alpha2. Traits that omit this field apply to all workload kinds. AppliesToWorkloads []string `protobuf:"bytes,2,rep,name=applies_to_workloads,json=appliesToWorkloads,proto3" json:"applies_to_workloads,omitempty"` // DefinitionRef with the reference to the CustomResourceDefinition that defines this trait kind DefinitionRef *DefinitionRef `protobuf:"bytes,3,opt,name=definition_ref,json=definitionRef,proto3" json:"definition_ref,omitempty"` // WorkloadRefPath indicates where/if a trait accepts a workloadRef object. WorkloadRefPath string `protobuf:"bytes,4,opt,name=workload_ref_path,json=workloadRefPath,proto3" json:"workload_ref_path,omitempty"` // contains filtered or unexported fields }
TraitSpec with the Spec section of a trait.
func (*TraitSpec) Descriptor
deprecated
added in
v0.2.0
func (*TraitSpec) GetAppliesToWorkloads ¶ added in v0.2.0
func (*TraitSpec) GetDefinitionRef ¶ added in v0.2.0
func (x *TraitSpec) GetDefinitionRef() *DefinitionRef
func (*TraitSpec) GetWorkloadRefPath ¶ added in v0.2.0
func (*TraitSpec) ProtoMessage ¶ added in v0.2.0
func (*TraitSpec) ProtoMessage()
func (*TraitSpec) ProtoReflect ¶ added in v0.2.0
func (x *TraitSpec) ProtoReflect() protoreflect.Message
type TraitSpecValidationError ¶ added in v0.2.0
type TraitSpecValidationError struct {
// contains filtered or unexported fields
}
TraitSpecValidationError is the validation error returned by TraitSpec.Validate if the designated constraints aren't met.
func (TraitSpecValidationError) Cause ¶ added in v0.2.0
func (e TraitSpecValidationError) Cause() error
Cause function returns cause value.
func (TraitSpecValidationError) Error ¶ added in v0.2.0
func (e TraitSpecValidationError) Error() string
Error satisfies the builtin error interface
func (TraitSpecValidationError) ErrorName ¶ added in v0.2.0
func (e TraitSpecValidationError) ErrorName() string
ErrorName returns error name.
func (TraitSpecValidationError) Field ¶ added in v0.2.0
func (e TraitSpecValidationError) Field() string
Field function returns field value.
func (TraitSpecValidationError) Key ¶ added in v0.2.0
func (e TraitSpecValidationError) Key() bool
Key function returns key value.
func (TraitSpecValidationError) Reason ¶ added in v0.2.0
func (e TraitSpecValidationError) Reason() string
Reason function returns reason value.
type TraitValidationError ¶ added in v0.2.0
type TraitValidationError struct {
// contains filtered or unexported fields
}
TraitValidationError is the validation error returned by Trait.Validate if the designated constraints aren't met.
func (TraitValidationError) Cause ¶ added in v0.2.0
func (e TraitValidationError) Cause() error
Cause function returns cause value.
func (TraitValidationError) Error ¶ added in v0.2.0
func (e TraitValidationError) Error() string
Error satisfies the builtin error interface
func (TraitValidationError) ErrorName ¶ added in v0.2.0
func (e TraitValidationError) ErrorName() string
ErrorName returns error name.
func (TraitValidationError) Field ¶ added in v0.2.0
func (e TraitValidationError) Field() string
Field function returns field value.
func (TraitValidationError) Key ¶ added in v0.2.0
func (e TraitValidationError) Key() bool
Key function returns key value.
func (TraitValidationError) Reason ¶ added in v0.2.0
func (e TraitValidationError) Reason() string
Reason function returns reason value.
type Workload ¶ added in v0.3.0
type Workload struct { // ApiVersion of the Workload. ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // Kind of component. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // Metadata associated with the workload. Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // Spec with the workload specification Spec *WorkloadSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
Workload with the information of a workload.
func (*Workload) Descriptor
deprecated
added in
v0.3.0
func (*Workload) GetApiVersion ¶ added in v0.3.0
func (*Workload) GetMetadata ¶ added in v0.3.0
func (*Workload) GetSpec ¶ added in v0.3.0
func (x *Workload) GetSpec() *WorkloadSpec
func (*Workload) ProtoMessage ¶ added in v0.3.0
func (*Workload) ProtoMessage()
func (*Workload) ProtoReflect ¶ added in v0.3.0
func (x *Workload) ProtoReflect() protoreflect.Message
type WorkloadDefinition ¶ added in v0.2.0
type WorkloadDefinition struct { // ApiVersion of the given workload. ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"` // Kind of the workload. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // Metadata associated with the workload. Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // Spec of the workload. Spec *WorkloadDefinitionSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"` // contains filtered or unexported fields }
WorkloadDefinition as defined in the OAM schematics.
func (*WorkloadDefinition) Descriptor
deprecated
added in
v0.2.0
func (*WorkloadDefinition) Descriptor() ([]byte, []int)
Deprecated: Use WorkloadDefinition.ProtoReflect.Descriptor instead.
func (*WorkloadDefinition) GetApiVersion ¶ added in v0.2.0
func (x *WorkloadDefinition) GetApiVersion() string
func (*WorkloadDefinition) GetKind ¶ added in v0.2.0
func (x *WorkloadDefinition) GetKind() string
func (*WorkloadDefinition) GetMetadata ¶ added in v0.2.0
func (x *WorkloadDefinition) GetMetadata() *Metadata
func (*WorkloadDefinition) GetSpec ¶ added in v0.2.0
func (x *WorkloadDefinition) GetSpec() *WorkloadDefinitionSpec
func (*WorkloadDefinition) ProtoMessage ¶ added in v0.2.0
func (*WorkloadDefinition) ProtoMessage()
func (*WorkloadDefinition) ProtoReflect ¶ added in v0.2.0
func (x *WorkloadDefinition) ProtoReflect() protoreflect.Message
func (*WorkloadDefinition) Reset ¶ added in v0.2.0
func (x *WorkloadDefinition) Reset()
func (*WorkloadDefinition) String ¶ added in v0.2.0
func (x *WorkloadDefinition) String() string
func (*WorkloadDefinition) Validate ¶ added in v0.2.0
func (m *WorkloadDefinition) Validate() error
Validate checks the field values on WorkloadDefinition with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type WorkloadDefinitionSpec ¶ added in v0.2.0
type WorkloadDefinitionSpec struct { // ChildResourceKinds are the list of GVK of the child resources this workload generates. This field is optional. ChildResourceKinds []*ChildResourceKind `protobuf:"bytes,1,rep,name=child_resource_kinds,json=childResourceKinds,proto3" json:"child_resource_kinds,omitempty"` // DefinitionRef with the reference to the CustomResourceDefinition that defines this scope kind. This field is mandatory. DefinitionRef *DefinitionRef `protobuf:"bytes,2,opt,name=definition_ref,json=definitionRef,proto3" json:"definition_ref,omitempty"` // PodSpecPath indicates where/if this workload has K8s podSpec field if one workload has podSpec, trait can do lot's of assumption such as port, env, volume fields. This field is optional. PodSpecPath string `protobuf:"bytes,3,opt,name=pod_spec_path,json=podSpecPath,proto3" json:"pod_spec_path,omitempty"` // RevisionLabel indicates which label for underlying resources(e.g. pods) of this workload can be used by trait to create resource selectors(e.g. label selector for pods). This field is optional. RevisionLabel string `protobuf:"bytes,4,opt,name=revision_label,json=revisionLabel,proto3" json:"revision_label,omitempty"` // contains filtered or unexported fields }
WorkloadDefinitionSpec defines the desired state of a WorkloadDefinition.
func (*WorkloadDefinitionSpec) Descriptor
deprecated
added in
v0.2.0
func (*WorkloadDefinitionSpec) Descriptor() ([]byte, []int)
Deprecated: Use WorkloadDefinitionSpec.ProtoReflect.Descriptor instead.
func (*WorkloadDefinitionSpec) GetChildResourceKinds ¶ added in v0.2.0
func (x *WorkloadDefinitionSpec) GetChildResourceKinds() []*ChildResourceKind
func (*WorkloadDefinitionSpec) GetDefinitionRef ¶ added in v0.2.0
func (x *WorkloadDefinitionSpec) GetDefinitionRef() *DefinitionRef
func (*WorkloadDefinitionSpec) GetPodSpecPath ¶ added in v0.2.0
func (x *WorkloadDefinitionSpec) GetPodSpecPath() string
func (*WorkloadDefinitionSpec) GetRevisionLabel ¶ added in v0.2.0
func (x *WorkloadDefinitionSpec) GetRevisionLabel() string
func (*WorkloadDefinitionSpec) ProtoMessage ¶ added in v0.2.0
func (*WorkloadDefinitionSpec) ProtoMessage()
func (*WorkloadDefinitionSpec) ProtoReflect ¶ added in v0.2.0
func (x *WorkloadDefinitionSpec) ProtoReflect() protoreflect.Message
func (*WorkloadDefinitionSpec) Reset ¶ added in v0.2.0
func (x *WorkloadDefinitionSpec) Reset()
func (*WorkloadDefinitionSpec) String ¶ added in v0.2.0
func (x *WorkloadDefinitionSpec) String() string
func (*WorkloadDefinitionSpec) Validate ¶ added in v0.2.0
func (m *WorkloadDefinitionSpec) Validate() error
Validate checks the field values on WorkloadDefinitionSpec with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type WorkloadDefinitionSpecValidationError ¶ added in v0.2.0
type WorkloadDefinitionSpecValidationError struct {
// contains filtered or unexported fields
}
WorkloadDefinitionSpecValidationError is the validation error returned by WorkloadDefinitionSpec.Validate if the designated constraints aren't met.
func (WorkloadDefinitionSpecValidationError) Cause ¶ added in v0.2.0
func (e WorkloadDefinitionSpecValidationError) Cause() error
Cause function returns cause value.
func (WorkloadDefinitionSpecValidationError) Error ¶ added in v0.2.0
func (e WorkloadDefinitionSpecValidationError) Error() string
Error satisfies the builtin error interface
func (WorkloadDefinitionSpecValidationError) ErrorName ¶ added in v0.2.0
func (e WorkloadDefinitionSpecValidationError) ErrorName() string
ErrorName returns error name.
func (WorkloadDefinitionSpecValidationError) Field ¶ added in v0.2.0
func (e WorkloadDefinitionSpecValidationError) Field() string
Field function returns field value.
func (WorkloadDefinitionSpecValidationError) Key ¶ added in v0.2.0
func (e WorkloadDefinitionSpecValidationError) Key() bool
Key function returns key value.
func (WorkloadDefinitionSpecValidationError) Reason ¶ added in v0.2.0
func (e WorkloadDefinitionSpecValidationError) Reason() string
Reason function returns reason value.
type WorkloadDefinitionValidationError ¶ added in v0.2.0
type WorkloadDefinitionValidationError struct {
// contains filtered or unexported fields
}
WorkloadDefinitionValidationError is the validation error returned by WorkloadDefinition.Validate if the designated constraints aren't met.
func (WorkloadDefinitionValidationError) Cause ¶ added in v0.2.0
func (e WorkloadDefinitionValidationError) Cause() error
Cause function returns cause value.
func (WorkloadDefinitionValidationError) Error ¶ added in v0.2.0
func (e WorkloadDefinitionValidationError) Error() string
Error satisfies the builtin error interface
func (WorkloadDefinitionValidationError) ErrorName ¶ added in v0.2.0
func (e WorkloadDefinitionValidationError) ErrorName() string
ErrorName returns error name.
func (WorkloadDefinitionValidationError) Field ¶ added in v0.2.0
func (e WorkloadDefinitionValidationError) Field() string
Field function returns field value.
func (WorkloadDefinitionValidationError) Key ¶ added in v0.2.0
func (e WorkloadDefinitionValidationError) Key() bool
Key function returns key value.
func (WorkloadDefinitionValidationError) Reason ¶ added in v0.2.0
func (e WorkloadDefinitionValidationError) Reason() string
Reason function returns reason value.
type WorkloadSpec ¶ added in v0.3.0
type WorkloadSpec struct { OsType string `protobuf:"bytes,1,opt,name=os_type,json=osType,proto3" json:"os_type,omitempty"` Containers []*Container `protobuf:"bytes,2,rep,name=containers,proto3" json:"containers,omitempty"` // contains filtered or unexported fields }
WorkloadSpec with the workloadSpec
func (*WorkloadSpec) Descriptor
deprecated
added in
v0.3.0
func (*WorkloadSpec) Descriptor() ([]byte, []int)
Deprecated: Use WorkloadSpec.ProtoReflect.Descriptor instead.
func (*WorkloadSpec) GetContainers ¶ added in v0.3.0
func (x *WorkloadSpec) GetContainers() []*Container
func (*WorkloadSpec) GetOsType ¶ added in v0.3.0
func (x *WorkloadSpec) GetOsType() string
func (*WorkloadSpec) ProtoMessage ¶ added in v0.3.0
func (*WorkloadSpec) ProtoMessage()
func (*WorkloadSpec) ProtoReflect ¶ added in v0.3.0
func (x *WorkloadSpec) ProtoReflect() protoreflect.Message
func (*WorkloadSpec) Reset ¶ added in v0.3.0
func (x *WorkloadSpec) Reset()
func (*WorkloadSpec) String ¶ added in v0.3.0
func (x *WorkloadSpec) String() string
func (*WorkloadSpec) Validate ¶ added in v0.3.0
func (m *WorkloadSpec) Validate() error
Validate checks the field values on WorkloadSpec with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type WorkloadSpecValidationError ¶ added in v0.3.0
type WorkloadSpecValidationError struct {
// contains filtered or unexported fields
}
WorkloadSpecValidationError is the validation error returned by WorkloadSpec.Validate if the designated constraints aren't met.
func (WorkloadSpecValidationError) Cause ¶ added in v0.3.0
func (e WorkloadSpecValidationError) Cause() error
Cause function returns cause value.
func (WorkloadSpecValidationError) Error ¶ added in v0.3.0
func (e WorkloadSpecValidationError) Error() string
Error satisfies the builtin error interface
func (WorkloadSpecValidationError) ErrorName ¶ added in v0.3.0
func (e WorkloadSpecValidationError) ErrorName() string
ErrorName returns error name.
func (WorkloadSpecValidationError) Field ¶ added in v0.3.0
func (e WorkloadSpecValidationError) Field() string
Field function returns field value.
func (WorkloadSpecValidationError) Key ¶ added in v0.3.0
func (e WorkloadSpecValidationError) Key() bool
Key function returns key value.
func (WorkloadSpecValidationError) Reason ¶ added in v0.3.0
func (e WorkloadSpecValidationError) Reason() string
Reason function returns reason value.
type WorkloadValidationError ¶ added in v0.3.0
type WorkloadValidationError struct {
// contains filtered or unexported fields
}
WorkloadValidationError is the validation error returned by Workload.Validate if the designated constraints aren't met.
func (WorkloadValidationError) Cause ¶ added in v0.3.0
func (e WorkloadValidationError) Cause() error
Cause function returns cause value.
func (WorkloadValidationError) Error ¶ added in v0.3.0
func (e WorkloadValidationError) Error() string
Error satisfies the builtin error interface
func (WorkloadValidationError) ErrorName ¶ added in v0.3.0
func (e WorkloadValidationError) ErrorName() string
ErrorName returns error name.
func (WorkloadValidationError) Field ¶ added in v0.3.0
func (e WorkloadValidationError) Field() string
Field function returns field value.
func (WorkloadValidationError) Key ¶ added in v0.3.0
func (e WorkloadValidationError) Key() bool
Key function returns key value.
func (WorkloadValidationError) Reason ¶ added in v0.3.0
func (e WorkloadValidationError) Reason() string
Reason function returns reason value.