Documentation ¶
Index ¶
Constants ¶
View Source
const ( BestEffort = "BestEffort" Burstable = "Burstable" Guaranteed = "Guaranteed" )
Variables ¶
This section is empty.
Functions ¶
func MarshallCompose ¶
func MarshallCompose(app *SupbApplicationBaseInfo) error
func ValidateDynamicApplication ¶
func ValidateDynamicApplication(app *SupbApplicationBaseInfo) error
func ValidateStaticApplication ¶
func ValidateStaticApplication(app *SupbApplicationBaseInfo) error
Types ¶
type ApplicationController ¶
type ApplicationController struct { StrategyLevel types.SupbStrategyLevel `json:"strategy_level"` StrategyKey types.SupbStrategyKey `json:"strategy_key"` StrategyStatus string `json:"strategy_status"` StrategyTypes string `json:"strategy_types"` }
type SupbApplicationBaseInfo ¶
type SupbApplicationBaseInfo struct { ApplicationVersion uint64 `json:"application_version"` ApplicationKey types.SupbApplicationKey `json:"application_key"` ApplicationKeyParent types.SupbApplicationKey `json:"application_key_parent"` ApplicationName string `json:"application_name"` ApplicationShortDescription string `json:"application_description_short"` ApplicationDescription string `json:"application_description_long"` ApplicationLevel string `json:"application_level"` ApplicationStatus string `json:"application_status"` ApplicationType string `json:"application_kind"` ApplicationParent []string `json:"application_parent"` ApplicationChild []string `json:"application_child"` //ApplicationGuid map[string]string `json:"application_guid"` //ApplicationContainerId string `json:"application_container_id"` ApplicationContainers []*compose.Containers `json:"application_containers"` ApplicationContainerNamePrefix string `json:"application_container_name_prefix"` ApplicationStaticStrategies map[types.SupbStrategyKey]*ApplicationController `json:"application_strategies_static"` ApplicationDynamicStrategies map[types.SupbStrategyKey]*ApplicationController `json:"application_strategies_dynamic"` ApplicationCompose string `json:"application_compose_yaml"` ApplicationTags []types.Tag `json:"application_tags"` }
func (*SupbApplicationBaseInfo) DeepCopy ¶
func (r *SupbApplicationBaseInfo) DeepCopy() *SupbApplicationBaseInfo
func (*SupbApplicationBaseInfo) Devices ¶
func (r *SupbApplicationBaseInfo) Devices() map[string]interface{}
func (*SupbApplicationBaseInfo) DevicesInfo ¶
func (r *SupbApplicationBaseInfo) DevicesInfo(guid string) interface{}
Click to show internal directories.
Click to hide internal directories.