Documentation ¶
Overview ¶
Package v1alpha1 contains the definitions for OAM core/v1alpha1 objects
The definitions include: 1. Component 2. Application Confiuration 3. Trait Definition 4. Workload Definition 5. Scope Definition
Index ¶
- type Configuration
- type ConfigurationSpec
- type ConfigurationSpecComponent
- type ConfigurationSpecComponentScope
- type ConfigurationSpecComponentScopeRef
- type ConfigurationSpecComponentTrait
- type DefinitionRef
- type ScopeDefinition
- type ScopeDefinitionSpec
- type TraitDefinition
- type TraitDefinitionSpec
- type WorkloadDefinition
- type WorkloadDefinitionSpec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConfigurationSpec `json:"spec,omitempty"` }
Configuration is the structure for OAM Application Configuration
type ConfigurationSpec ¶
type ConfigurationSpec struct {
Components []ConfigurationSpecComponent
}
ConfigurationSpec is the structure for the OAM Application Configuration Spec
type ConfigurationSpecComponent ¶
type ConfigurationSpecComponent struct { ComponentName string Traits []ConfigurationSpecComponentTrait Scopes []ConfigurationSpecComponentScope }
ConfigurationSpecComponent is the struct for OAM Application Configuration's spec's components
type ConfigurationSpecComponentScope ¶
type ConfigurationSpecComponentScope struct {
ScopeRef ConfigurationSpecComponentScopeRef
}
ConfigurationSpecComponentScope struct defines the structure for scope of OAM application configuration's spec's component's scope
type ConfigurationSpecComponentScopeRef ¶
ConfigurationSpecComponentScopeRef struct defines the structure for scope of OAM application configuration's spec's component's scope's scopeRef
type ConfigurationSpecComponentTrait ¶
ConfigurationSpecComponentTrait is the struct
type DefinitionRef ¶
type DefinitionRef struct {
Name string `json:"name,omitempty"`
}
DefinitionRef struct describes the structure for DefinitionRef which are used within TraitDefinition, WorkloadDefinition, etc
type ScopeDefinition ¶
type ScopeDefinition struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ScopeDefinitionSpec }
ScopeDefinition is the struct for OAM ScopeDefinition construct
type ScopeDefinitionSpec ¶
type ScopeDefinitionSpec struct { AllowComponentOverlap bool `json:"allowComponentOverlap,omitempty"` DefinitionRef DefinitionRef `json:"definitionRef,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` }
ScopeDefinitionSpec is the struct for OAM ScopeDefinition's spec
type TraitDefinition ¶
type TraitDefinition struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec TraitDefinitionSpec `json:"spec,omitempty"` }
TraitDefinition is the struct for OAM TraitDefinition construct
type TraitDefinitionSpec ¶
type TraitDefinitionSpec struct { AppliesToWorkloads []string `json:"appliesToWorkloads,omitempty"` DefinitionRef DefinitionRef `json:"definitionRef,omitempty"` RevisionEnabled bool `json:"revisionEnabled,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` }
TraitDefinitionSpec is the struct for OAM TraitDefinitionSpec's spec
type WorkloadDefinition ¶
type WorkloadDefinition struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec WorkloadDefinitionSpec `json:"spec,omitempty"` }
WorkloadDefinition is the struct for OAM WorkloadDefinition construct
type WorkloadDefinitionSpec ¶
type WorkloadDefinitionSpec struct { DefinitionRef DefinitionRef `json:"definitionRef,omitempty"` Metadata map[string]string `json:"metadata,omitempty"` }
WorkloadDefinitionSpec is the struct for OAM WorkloadDefinitionSpec's spec