Documentation ¶
Index ¶
- Constants
- Variables
- func ValidateUpdatePolicy(fl validator.FieldLevel) bool
- type Application
- type ApplicationResources
- type Applications
- type DataCenterInfo
- type Environment
- type EurekaInstance
- type EurekaPage
- type Instance
- type InstanceMetadata
- type LeaseInfo
- type Port
- type PropertySource
- type RefArray
- type SaveConfigDTO
- type ZuulRootDTO
Constants ¶
View Source
const ( UP = "UP" DOWN = "DOWN" ADDED = "ADDED" STARTING = "STARTING" OUTOFSERVICE = "OUT_OF_SERVICE" UNKNOWN = "UNKNOWN" CUSTOM_APP_PREFIX = "custom" DATA_CENTRE_CLASS = "com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo" DATA_CENTRE_NAME = "MyOwn" )
Supported statuses
View Source
const ( Path = "path" ServiceId = "serviceId" Url = "url" StripPrefix = "stripPrefix" Retryable = "retryable" SensitiveHeaders = "sensitiveHeaders" CustomSensitiveHeaders = "customSensitiveHeaders" HelperService = "helperService" BuiltIn = "builtIn" )
View Source
const ( ChoerodonService = "choerodon.io/service" ChoerodonVersion = "choerodon.io/version" ChoerodonPort = "choerodon.io/metrics-port" ChoerodonFeature = "choerodon.io/feature" ChoerodonFeatureConfig = "spring-cloud-config" ChoerodonContextPathLabel = "choerodon.io/context-path" DefaultProfile = "default" RegisterServerName = "go-register-server" RouteConfigMap = "zuul-route" ApiGatewayServiceName = "api-gateway" ZuulNode = "zuul" RoutesNode = "routes" )
View Source
const ( UpdatePolicyAdd = "add" UpdatePolicyNot = "not" UpdatePolicyOverride = "override" UpdatePolicyUpdate = "update" )
View Source
const ( AddProperty = "addProperty" MergeProperty = "mergeProperty" )
Variables ¶
View Source
var ConfigServerAdditions = map[string]interface{}{ "spring.cloud.config.allowOverride": true, "spring.cloud.config.failFast": true, "spring.cloud.config.overrideNone": false, "spring.cloud.config.overrideSystemProperties": false, "spring.sleuth.integration.enabled": false, "spring.sleuth.scheduled.enabled": false, "sampler.percentage": 1}
Functions ¶
func ValidateUpdatePolicy ¶
func ValidateUpdatePolicy(fl validator.FieldLevel) bool
Types ¶
type Application ¶
type ApplicationResources ¶
type ApplicationResources struct {
Applications *Applications `xml:"applications" json:"applications"`
}
type Applications ¶
type Applications struct { ApplicationList []*Application `xml:"application" json:"application"` AppsHashcode string `xml:"apps__hashcode" json:"apps__hashcode"` VersionsDelta int `xml:"versions__delta" json:"versions__delta"` }
type DataCenterInfo ¶
type Environment ¶
type EurekaInstance ¶
type EurekaPage ¶
type Instance ¶
type Instance struct { InstanceId string `xml:"instanceId" json:"instanceId"` HostName string `xml:"hostName" json:"hostName"` App string `xml:"app" json:"app"` IPAddr string `xml:"ipAddr" json:"ipAddr"` Status string `xml:"status" json:"status"` OverriddenStatus string `xml:"overriddenstatus" json:"overriddenstatus"` Port Port `xml:"port" json:"port"` SecurePort Port `xml:"securePort" json:"securePort"` CountryId uint64 `xml:"countryId" json:"countryId"` DataCenterInfo DataCenterInfo `xml:"dataCenterInfo" json:"dataCenterInfo"` LeaseInfo LeaseInfo `xml:"leaseInfo" json:"leaseInfo"` Metadata map[string]string `xml:"metadata" json:"metadata"` HomePageUrl string `xml:"homePageUrl" json:"homePageUrl"` StatusPageUrl string `xml:"statusPageUrl" json:"statusPageUrl"` HealthCheckUrl string `xml:"healthCheckUrl" json:"healthCheckUrl"` VipAddress string `xml:"vipAddress" json:"vipAddress"` SecureVipAddress string `xml:"secureVipAddress" json:"secureVipAddress"` IsCoordinatingDiscoveryServer bool `xml:"isCoordinatingDiscoveryServer" json:"isCoordinatingDiscoveryServer"` LastUpdatedTimestamp uint64 `xml:"lastUpdatedTimestamp" json:"lastUpdatedTimestamp"` LastDirtyTimestamp uint64 `xml:"lastDirtyTimestamp" json:"lastDirtyTimestamp"` ActionType string `xml:"actionType" json:"actionType"` }
type InstanceMetadata ¶
type InstanceMetadata struct {
Class string `xml:"@class" json:"@class"`
}
type LeaseInfo ¶
type LeaseInfo struct { RenewalIntervalInSecs uint `xml:"renewalIntervalInSecs" json:"renewalIntervalInSecs"` DurationInSecs uint `xml:"durationInSecs" json:"durationInSecs"` RegistrationTimestamp uint64 `xml:"registrationTimestamp" json:"registrationTimestamp"` LastRenewalTimestamp uint64 `xml:"lastRenewalTimestamp" json:"lastRenewalTimestamp"` EvictionTimestamp uint64 `xml:"evictionTimestamp" json:"evictionTimestamp"` ServiceUpTimestamp uint64 `xml:"serviceUpTimestamp" json:"serviceUpTimestamp"` }
type PropertySource ¶
type SaveConfigDTO ¶
type SaveConfigDTO struct { Service string `json:"service" validate:"required"` Version string `json:"version"` Profile string `json:"profile" validate:"required"` Namespace string `json:"namespace" validate:"required"` Yaml string `json:"yaml"` UpdatePolicy string `json:"updatePolicy" validate:"updatePolicy"` }
type ZuulRootDTO ¶
type ZuulRootDTO struct { Name string `json:"name" validate:"required"` Path string `json:"path" validate:"required"` ServiceId string `json:"serviceId" validate:"required"` Url string `json:"url"` StripPrefix bool `json:"stripPrefix,omitempty"` Retryable bool `json:"retryable,omitempty"` SensitiveHeaders string `json:"sensitiveHeaders"` CustomSensitiveHeaders bool `json:"customSensitiveHeaders,omitempty"` HelperService string `json:"helperService"` BuiltIn bool `json:"builtIn,omitempty"` }
Click to show internal directories.
Click to hide internal directories.