generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #410 from theBeginner86/theBeginner86/chore/12
[chore] Revert removal of application_configuration
- Loading branch information
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
) | ||
|
||
// Configuration is the structure for OAM Application Configuration | ||
type Configuration struct { | ||
metav1.TypeMeta `json:",inline"` | ||
metav1.ObjectMeta `json:"metadata,omitempty"` | ||
|
||
Spec ConfigurationSpec `json:"spec,omitempty"` | ||
} | ||
|
||
// ConfigurationSpec is the structure for the OAM Application | ||
// Configuration Spec | ||
type ConfigurationSpec struct { | ||
Components []ConfigurationSpecComponent | ||
} | ||
|
||
// ConfigurationSpecComponent is the struct for OAM Application | ||
// Configuration's spec's components | ||
type ConfigurationSpecComponent struct { | ||
ComponentName string | ||
Traits []ConfigurationSpecComponentTrait | ||
Scopes []ConfigurationSpecComponentScope | ||
} | ||
|
||
// ConfigurationSpecComponentTrait is the struct | ||
type ConfigurationSpecComponentTrait struct { | ||
Name string | ||
Properties map[string]interface{} | ||
} | ||
|
||
// ConfigurationSpecComponentScope struct defines the structure | ||
// for scope of OAM application configuration's spec's component's scope | ||
type ConfigurationSpecComponentScope struct { | ||
ScopeRef ConfigurationSpecComponentScopeRef | ||
} | ||
|
||
// ConfigurationSpecComponentScopeRef struct defines the structure for | ||
// scope of OAM application configuration's spec's component's scope's | ||
// scopeRef | ||
type ConfigurationSpecComponentScopeRef struct { | ||
metav1.TypeMeta `json:",inline"` | ||
Name string | ||
} |