Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllOf ¶
type AllOf struct { ProviderName string `json:"provider-name,omitempty"` ClusterName string `json:"cluster-name,omitempty"` ClusterLabelName string `json:"cluster-label-name,omitempty"` AnyOfArray []AnyOf `json:"anyOf,omitempty"` }
AllOf consists if ProviderName, ClusterName, ClusterLabelName and AnyOfArray. Any of them can be empty
type AnyOf ¶
type AnyOf struct { ProviderName string `json:"provider-name,omitempty"` ClusterName string `json:"cluster-name,omitempty"` ClusterLabelName string `json:"cluster-label-name,omitempty"` }
AnyOf consists of Array of ProviderName & ClusterLabelNames
type ClusterGroup ¶
type ClusterGroup struct { Clusters []ClusterWithName GroupNumber string }
ClusterGroup consists of Clusters and GroupNumber. All the clusters under the same clusterGroup belong to the same groupNumber
type ClusterList ¶
type ClusterList struct { MandatoryClusters []ClusterGroup OptionalClusters []ClusterGroup }
ClusterList consists of mandatoryClusters and OptionalClusters
func IntentResolver ¶
func IntentResolver(intent IntentStruc) (ClusterList, error)
IntentResolver shall help to resolve the given intent into 2 lists of clusters where the app need to be deployed.
type ClusterWithLabel ¶
ClusterWithLabel has two fields - ProviderName and ClusterLabel
type ClusterWithName ¶
ClusterWithName has two fields - ProviderName and ClusterName
type IntentStruc ¶
type IntentStruc struct { AllOfArray []AllOf `json:"allOf,omitempty"` AnyOfArray []AnyOf `json:"anyOf,omitempty"` }
IntentStruc consists of AllOfArray and AnyOfArray