Documentation ¶
Index ¶
- Constants
- Variables
- func CheckAndParseToken(token string, genToken func(map[string]interface{}) (string, error)) (map[string]interface{}, error)
- func CheckIsSysResources(labels map[string]string) bool
- func CheckIsSysSecrets(labels map[string]string) bool
- func TransContainerToSvc(svc *specV1.Service, c *corev1.Container) error
- type API
- func (api *API) CheckNodeOptionalSysApps(apps []string, nodeMode string) error
- func (api *API) CreateApplication(c *common.Context) (interface{}, error)
- func (api *API) CreateCertificate(c *common.Context) (interface{}, error)
- func (api *API) CreateConfig(c *common.Context) (interface{}, error)
- func (api *API) CreateModule(c *common.Context) (interface{}, error)
- func (api *API) CreateNamespace(c *common.Context) (interface{}, error)
- func (api *API) CreateNode(c *common.Context) (interface{}, error)
- func (api *API) CreateProperty(c *common.Context) (interface{}, error)
- func (api *API) CreateQuota(c *common.Context) (interface{}, error)
- func (api *API) CreateQuotas(namespace string, quotas map[string]int) error
- func (api *API) CreateRegistry(c *common.Context) (interface{}, error)
- func (api *API) CreateSecret(c *common.Context) (interface{}, error)
- func (api *API) CreateYamlResource(c *common.Context) (interface{}, error)
- func (api *API) DeleteApplication(c *common.Context) (interface{}, error)
- func (api *API) DeleteCertificate(c *common.Context) (interface{}, error)
- func (api *API) DeleteConfig(c *common.Context) (interface{}, error)
- func (api *API) DeleteModules(c *common.Context) (interface{}, error)
- func (api *API) DeleteNamespace(c *common.Context) (interface{}, error)
- func (api *API) DeleteNode(c *common.Context) (interface{}, error)
- func (api *API) DeleteProperty(c *common.Context) (interface{}, error)
- func (api *API) DeleteQuota(c *common.Context) (interface{}, error)
- func (api *API) DeleteQuotaByNamespace(namespace string) error
- func (api *API) DeleteRegistry(c *common.Context) (interface{}, error)
- func (api *API) DeleteSecret(c *common.Context) (interface{}, error)
- func (api *API) DeleteSecretResource(namespace, secret, secretType string) (interface{}, error)
- func (api *API) DeleteYamlResource(c *common.Context) (interface{}, error)
- func (api *API) GenAndroidInitCmdFromNode() (interface{}, error)
- func (api *API) GenInitCmdFromNode(c *common.Context) (interface{}, error)
- func (api *API) GetAppByCertificate(c *common.Context) (interface{}, error)
- func (api *API) GetAppByConfig(c *common.Context) (interface{}, error)
- func (api *API) GetAppByNode(c *common.Context) (interface{}, error)
- func (api *API) GetAppByRegistry(c *common.Context) (interface{}, error)
- func (api *API) GetAppBySecret(c *common.Context) (interface{}, error)
- func (api *API) GetApplication(c *common.Context) (interface{}, error)
- func (api *API) GetCertificate(c *common.Context) (interface{}, error)
- func (api *API) GetConfig(c *common.Context) (interface{}, error)
- func (api *API) GetCoreAppConfigs(c *common.Context) (interface{}, error)
- func (api *API) GetCoreAppVersions(c *common.Context) (interface{}, error)
- func (api *API) GetFunctionsByNode(c *common.Context) (interface{}, error)
- func (api *API) GetLatestModule(c *common.Context) (interface{}, error)
- func (api *API) GetModuleByVersion(c *common.Context) (interface{}, error)
- func (api *API) GetModules(c *common.Context) (interface{}, error)
- func (api *API) GetNamespace(c *common.Context) (interface{}, error)
- func (api *API) GetNode(c *common.Context) (interface{}, error)
- func (api *API) GetNodeDeployHistory(c *common.Context) (interface{}, error)
- func (api *API) GetNodeProperties(c *common.Context) (interface{}, error)
- func (api *API) GetNodeStats(c *common.Context) (interface{}, error)
- func (api *API) GetNodes(c *common.Context) (interface{}, error)
- func (api *API) GetObjectPathV2(c *common.Context) (interface{}, error)
- func (api *API) GetObjectPutPathV2(c *common.Context) (interface{}, error)
- func (api *API) GetProperty(c *common.Context) (interface{}, error)
- func (api *API) GetQuota(c *common.Context) (interface{}, error)
- func (api *API) GetQuotaForMis(c *common.Context) (interface{}, error)
- func (api *API) GetRegistry(c *common.Context) (interface{}, error)
- func (api *API) GetSecret(c *common.Context) (interface{}, error)
- func (api *API) GetSysAppCertificates(c *common.Context) (interface{}, error)
- func (api *API) GetSysAppConfigs(c *common.Context) (interface{}, error)
- func (api *API) GetSysAppRegistries(c *common.Context) (interface{}, error)
- func (api *API) GetSysAppSecrets(c *common.Context) (interface{}, error)
- func (api *API) ImportFunction(c *common.Context) (interface{}, error)
- func (api *API) InitQuotas(namespace string) error
- func (api *API) IsAppCanDelete(namesapce, name string) (bool, error)
- func (api *API) ListApplication(c *common.Context) (interface{}, error)
- func (api *API) ListBucketObjects(c *common.Context) (interface{}, error)
- func (api *API) ListBucketObjectsV2(c *common.Context) (interface{}, error)
- func (api *API) ListBuckets(c *common.Context) (interface{}, error)
- func (api *API) ListBucketsV2(c *common.Context) (interface{}, error)
- func (api *API) ListCertificate(c *common.Context) (interface{}, error)
- func (api *API) ListConfig(c *common.Context) (interface{}, error)
- func (api *API) ListFunctionSources(c *common.Context) (interface{}, error)
- func (api *API) ListFunctionVersions(c *common.Context) (interface{}, error)
- func (api *API) ListFunctions(c *common.Context) (interface{}, error)
- func (api *API) ListModules(c *common.Context) (interface{}, error)
- func (api *API) ListNode(c *common.Context) (interface{}, error)
- func (api *API) ListObjectSources(c *common.Context) (interface{}, error)
- func (api *API) ListObjectSourcesV2(c *common.Context) (interface{}, error)
- func (api *API) ListProperty(c *common.Context) (interface{}, error)
- func (api *API) ListRegistry(c *common.Context) (interface{}, error)
- func (api *API) ListSecret(c *common.Context) (interface{}, error)
- func (api *API) NodeModeParamCheck(node *v1.Node) error
- func (api *API) NodeNumberCollector(namespace string) (map[string]int, error)
- func (api *API) ParseAndCheckNode(c *common.Context) (*v1.Node, error)
- func (api *API) ParseAndCheckNodeMode(c *common.Context) (*models.NodeMode, error)
- func (api *API) ParseAndCheckNodeNames(c *common.Context) (*models.NodeNames, error)
- func (api *API) ParseAndCheckProperties(c *common.Context) (*models.NodeProperties, error)
- func (api *API) ParseApplication(c *common.Context) (*models.ApplicationView, error)
- func (api *API) ParseListOptions(c *common.Context) (*models.ListOptions, error)
- func (api *API) ParseListOptionsAppendSystemLabel(c *common.Context) (*models.ListOptions, error)
- func (api *API) RefreshRegistryPassword(c *common.Context) (interface{}, error)
- func (api *API) ReleaseQuota(namespace, quotaName string, number int) error
- func (api *API) ToApplication(appView *models.ApplicationView, oldApp *specV1.Application) (*specV1.Application, []specV1.Configuration, error)
- func (api *API) ToApplicationListView(apps *models.ApplicationList)
- func (api *API) ToApplicationView(app *specV1.Application) (*models.ApplicationView, error)
- func (api *API) ToCertificateView(s *specV1.Secret) *models.Certificate
- func (api *API) ToCertificateViewList(s *models.SecretList) *models.CertificateList
- func (api *API) ToConfiguration(userID string, configView *models.ConfigurationView) (*specV1.Configuration, error)
- func (api *API) ToConfigurationView(config *specV1.Configuration) (*models.ConfigurationView, error)
- func (api *API) ToFilteredCertificateView(s *specV1.Secret) *models.Certificate
- func (api *API) ToFilteredCertificateViewList(s *models.SecretList) *models.CertificateList
- func (api *API) ToFilteredRegistryView(s *specV1.Secret) *models.Registry
- func (api *API) ToFilteredRegistryViewList(s *models.SecretList) *models.RegistryList
- func (api *API) ToFilteredSecretView(s *specV1.Secret) *models.SecretView
- func (api *API) ToFilteredSecretViewList(s *models.SecretList) *models.SecretViewList
- func (api *API) ToNodeView(node *v1.Node) (*v1.NodeView, error)
- func (api *API) ToRegistryView(s *specV1.Secret) *models.Registry
- func (api *API) ToRegistryViewList(s *models.SecretList) *models.RegistryList
- func (api *API) ToSecretView(s *specV1.Secret) *models.SecretView
- func (api *API) ToSecretViewList(s *models.SecretList) *models.SecretViewList
- func (api *API) UpdateApplication(c *common.Context) (interface{}, error)
- func (api *API) UpdateCertificate(c *common.Context) (interface{}, error)
- func (api *API) UpdateConfig(c *common.Context) (interface{}, error)
- func (api *API) UpdateConfigByAccelerator(ns string, node *v1.Node) error
- func (api *API) UpdateCoreApp(c *common.Context) (interface{}, error)
- func (api *API) UpdateModule(c *common.Context) (interface{}, error)
- func (api *API) UpdateNode(c *common.Context) (interface{}, error)
- func (api *API) UpdateNodeAndAppIndex(namespace string, app *specV1.Application) error
- func (api *API) UpdateNodeMode(c *common.Context) (interface{}, error)
- func (api *API) UpdateNodeOptionedSysApps(oldNode *v1.Node, newSysApps []string) error
- func (api *API) UpdateNodeProperties(c *common.Context) (interface{}, error)
- func (api *API) UpdateProperty(c *common.Context) (interface{}, error)
- func (api *API) UpdateQuota(c *common.Context) (interface{}, error)
- func (api *API) UpdateRegistry(c *common.Context) (interface{}, error)
- func (api *API) UpdateSecret(c *common.Context) (interface{}, error)
- func (api *API) UpdateYamlResource(c *common.Context) (interface{}, error)
- func (api *API) ValidateRegistryModel(r *models.Registry) error
- func (api *API) ValidateResourceForCreating(c *common.Context) (interface{}, error)
- func (api *API) ValidateResourceForDeleting(c *common.Context) (interface{}, error)
- type CreateApplicationOta
- type CreateNodeHook
- type DeleteApplicationOta
- type DeleteNodeHook
- type InitAPI
- type SyncAPI
- type SyncAPIImpl
- type UpdateApplicationOta
- type UpdateNodeHook
Constants ¶
const ( ConfigDir = "/etc/baetyl" ProgramConfigDir = "/var/lib/baetyl/bin" FunctionConfigPrefix = "baetyl-function-config" ProgramConfigPrefix = "baetyl-program-config" FunctionProgramConfigPrefix = "baetyl-function-program-config" FunctionCodePrefix = "baetyl-function-code" FunctionDefaultConfigFile = "conf.yml" HookCreateApplicationOta = "hookCreateApplicationOta" HookUpdateApplicationOta = "hookUpdateApplicationOta" HookDeleteApplicationOta = "hookDeleteApplicationOta" AppNameMaxLength = 55 // expect svc name with "-Nodeport", 64-9=55 )
const ( ConfigTypeKV = "kv" ConfigTypeObject = "object" ConfigTypeFunction = "function" ConfigObjectTypeHttp = "http" ConfigImageTypeSelector = "baetyl-config-type=baetyl-image" )
const ( OfflineDuration = 20 NodeNumber = 1 BaetylCorePrevVersion = "BaetylCorePrevVersion" BaetylNodeNameKey = "baetyl-node-name" BaetylAppNameKey = "baetyl-app-name" BaetylCoreConfPrefix = "baetyl-core-conf" BaetylInitConfPrefix = "baetyl-init-conf" BaetylAgentConfPrefix = "baetyl-agent-conf" BaetylCoreProgramPrefix = "baetyl-program-config-baetyl-core" BaetylCoreContainerPort = 80 BaetylModule = "baetyl" BaetylCoreAPIPort = "BaetylCoreAPIPort" MethodWget = "wget" MethodCurl = "curl" PlatformWindows = "windows" PlatformAndroid = "android" DeprecatedGPUMetrics = "baetyl-gpu-metrics" DeprecatedDmp = "baetyl-dmp" HookCreateNodeOta = "hookCreateNodeOta" HookUpdateNodeOta = "hookUpdateNodeOta" HookDeleteNodeOta = "hookDeleteNodeOta" HookCreateNodeDmp = "hookCreateNodeDmp" HookUpdateNodeDmp = "hookUpdateNodeDmp" HookDeleteNodeDmp = "hookDeleteNodeDmp" BaetylCoreLogLevel = "BaetylCoreLogLevel" BaetylCoreByteUnit = "BaetylCoreByteUint" BaetylCoreSpeedLimit = "BaetylCoreSpeedLimit" LogLevelDebug = "debug" UserID = "UserId" ByteUnitKB = "KB" ByteUnitMB = "MB" )
const ( CurrentAccount = "current" OtherAccount = "other" PathStyle = "pathStyle" )
const ( TypeSecret = "Secret" TypeConfig = "ConfigMap" TypeDeploy = "Deployment" TypeDaemonset = "DaemonSet" TypeJob = "Job" TypeService = "Service" )
Variables ¶
var ( HookCreateList = []string{ HookCreateNodeOta, HookCreateNodeDmp, } HookUpdateList = []string{ HookUpdateNodeOta, HookUpdateNodeDmp, } HookDeleteList = []string{ HookDeleteNodeOta, HookDeleteNodeDmp, } )
Functions ¶
func CheckAndParseToken ¶
func CheckIsSysResources ¶ added in v2.3.0
don't delete resource which doesn't belong to system
func CheckIsSysSecrets ¶ added in v2.6.1
CheckIsSysSecrets don't delete system registry secret
Types ¶
type API ¶
type API struct { Hooks map[string]interface{} NS service.NamespaceService Node service.NodeService Index service.IndexService Func service.FunctionService Obj service.ObjectService PKI service.PKIService Auth service.AuthService Prop service.PropertyService Module service.ModuleService Init service.InitService License service.LicenseService Quota service.QuotaService Template service.TemplateService Task service.TaskService Locker service.LockerService SysApp service.SystemAppService Sign service.SignService Wrapper service.WrapperService Facade facade.Facade *service.AppCombinedService // contains filtered or unexported fields }
API baetyl api server
func (*API) CheckNodeOptionalSysApps ¶ added in v2.3.0
func (*API) CreateApplication ¶
CreateApplication create one application
func (*API) CreateCertificate ¶
CreateCertificate create one Certificate
func (*API) CreateConfig ¶
CreateConfig create one config
func (*API) CreateModule ¶ added in v2.2.0
func (*API) CreateNamespace ¶
CreateNamespace create one namespace
func (*API) CreateNode ¶
*
- @title: Create node.
- @description: Check validity of input node, add system label to node, insert node info
- into storage and generate system apps.
- @receiver api
- @param c Context* Context of request.
- @return interface{} nil Request is invalid or quota is full or fail to insert node into storage.
- NodeView Create node success.
- @return error
func (*API) CreateQuota ¶ added in v2.1.1
CreateQuota for mis server api
- param namespace string
- param quotaName string
- param quota int
func (*API) CreateQuotas ¶ added in v2.1.1
func (*API) CreateRegistry ¶
CreateRegistry create one Registry
func (*API) CreateSecret ¶
CreateSecret create one secret
func (*API) CreateYamlResource ¶ added in v2.3.0
yaml resources api
func (*API) DeleteApplication ¶
DeleteApplication delete the application
func (*API) DeleteCertificate ¶
DeleteCertificate delete the Certificate
func (*API) DeleteConfig ¶
DeleteConfig delete the config
func (*API) DeleteModules ¶ added in v2.2.0
func (*API) DeleteNamespace ¶
func (*API) DeleteNode ¶
DeleteNode delete the node
func (*API) DeleteQuota ¶ added in v2.1.1
DeleteQuota for mis server api
- param namespace string
- param quotaName string
func (*API) DeleteRegistry ¶
DeleteRegistry delete the Registry
func (*API) DeleteSecret ¶
DeleteSecret delete the secret
func (*API) DeleteSecretResource ¶ added in v2.3.0
func (*API) DeleteYamlResource ¶ added in v2.3.0
func (*API) GenAndroidInitCmdFromNode ¶ added in v2.3.0
func (*API) GenInitCmdFromNode ¶
GenInitCmdFromNode generate install command
func (*API) GetAppByCertificate ¶
GetAppByCertificate list app
func (*API) GetAppByNode ¶
GetAppByNode list app
func (*API) GetAppByRegistry ¶
GetAppByRegistry list app
func (*API) GetAppBySecret ¶
GetAppBySecret list app
func (*API) GetApplication ¶
GetApplication get a application
func (*API) GetCertificate ¶
GetCertificate get a Certificate
func (*API) GetCoreAppConfigs ¶ added in v2.2.0
func (*API) GetCoreAppVersions ¶ added in v2.2.0
func (*API) GetFunctionsByNode ¶ added in v2.6.1
GetFunctionsByNode list function
func (*API) GetLatestModule ¶ added in v2.2.0
func (*API) GetModuleByVersion ¶ added in v2.2.0
func (*API) GetModules ¶ added in v2.2.0
func (*API) GetNamespace ¶
GetNamespace get one namespace
func (*API) GetNodeDeployHistory ¶
GetNodeDeployHistory list node // TODO will support later
func (*API) GetNodeProperties ¶ added in v2.1.1
func (*API) GetNodeStats ¶
GetNodeStats get a node stats
func (*API) GetObjectPathV2 ¶ added in v2.3.0
func (*API) GetObjectPutPathV2 ¶ added in v2.3.0
func (*API) GetRegistry ¶
GetRegistry get a Registry
func (*API) GetSysAppCertificates ¶ added in v2.2.0
func (*API) GetSysAppConfigs ¶ added in v2.2.0
func (*API) GetSysAppRegistries ¶ added in v2.2.0
func (*API) GetSysAppSecrets ¶ added in v2.2.0
func (*API) ImportFunction ¶
ImportFunction ImportFunction
func (*API) IsAppCanDelete ¶ added in v2.3.0
func (*API) ListApplication ¶
ListApplication list application
func (*API) ListBucketObjects ¶
Deprecated ListBucketObjects ListBucketObjects
func (*API) ListBucketObjectsV2 ¶
ListBucketObjectsV2 ListBucketObjectsV2
func (*API) ListBuckets ¶
Deprecated ListBuckets ListBuckets
func (*API) ListBucketsV2 ¶
ListBucketsV2 ListBucketsV2
func (*API) ListCertificate ¶
ListCertificate list Certificate
func (*API) ListConfig ¶
ListConfig list config
func (*API) ListFunctionSources ¶
ListFunctionSources ListFunctionSources
func (*API) ListFunctionVersions ¶
ListFunctionVersions list versions of a function
func (*API) ListFunctions ¶
ListFunctions list functions
func (*API) ListModules ¶ added in v2.2.0
func (*API) ListObjectSources ¶
Deprecated ListObjectSources ListObjectSources
func (*API) ListObjectSourcesV2 ¶
ListObjectSourcesV2 ListObjectSourcesV2
func (*API) ListRegistry ¶
ListRegistry list Registry
func (*API) ListSecret ¶
ListSecret list secret
func (*API) NodeModeParamCheck ¶ added in v2.3.0
func (*API) NodeNumberCollector ¶
func (*API) ParseAndCheckNode ¶
func (*API) ParseAndCheckNodeMode ¶ added in v2.1.1
func (*API) ParseAndCheckNodeNames ¶
func (*API) ParseAndCheckProperties ¶ added in v2.1.1
func (*API) ParseApplication ¶ added in v2.3.0
func (*API) ParseListOptions ¶ added in v2.2.0
func (*API) ParseListOptionsAppendSystemLabel ¶ added in v2.2.0
func (*API) RefreshRegistryPassword ¶
func (*API) ReleaseQuota ¶ added in v2.1.1
func (*API) ToApplication ¶ added in v2.1.1
func (api *API) ToApplication(appView *models.ApplicationView, oldApp *specV1.Application) (*specV1.Application, []specV1.Configuration, error)
func (*API) ToApplicationListView ¶ added in v2.2.0
func (api *API) ToApplicationListView(apps *models.ApplicationList)
func (*API) ToApplicationView ¶ added in v2.1.1
func (api *API) ToApplicationView(app *specV1.Application) (*models.ApplicationView, error)
func (*API) ToCertificateView ¶ added in v2.2.0
func (api *API) ToCertificateView(s *specV1.Secret) *models.Certificate
func (*API) ToCertificateViewList ¶ added in v2.2.0
func (api *API) ToCertificateViewList(s *models.SecretList) *models.CertificateList
func (*API) ToConfiguration ¶ added in v2.1.1
func (api *API) ToConfiguration(userID string, configView *models.ConfigurationView) (*specV1.Configuration, error)
func (*API) ToConfigurationView ¶ added in v2.1.1
func (api *API) ToConfigurationView(config *specV1.Configuration) (*models.ConfigurationView, error)
func (*API) ToFilteredCertificateView ¶ added in v2.2.0
func (api *API) ToFilteredCertificateView(s *specV1.Secret) *models.Certificate
func (*API) ToFilteredCertificateViewList ¶ added in v2.2.0
func (api *API) ToFilteredCertificateViewList(s *models.SecretList) *models.CertificateList
func (*API) ToFilteredRegistryView ¶ added in v2.2.0
func (*API) ToFilteredRegistryViewList ¶ added in v2.2.0
func (api *API) ToFilteredRegistryViewList(s *models.SecretList) *models.RegistryList
func (*API) ToFilteredSecretView ¶ added in v2.2.0
func (api *API) ToFilteredSecretView(s *specV1.Secret) *models.SecretView
func (*API) ToFilteredSecretViewList ¶ added in v2.2.0
func (api *API) ToFilteredSecretViewList(s *models.SecretList) *models.SecretViewList
func (*API) ToNodeView ¶ added in v2.2.0
func (*API) ToRegistryView ¶ added in v2.2.0
func (*API) ToRegistryViewList ¶ added in v2.2.0
func (api *API) ToRegistryViewList(s *models.SecretList) *models.RegistryList
func (*API) ToSecretView ¶ added in v2.1.1
func (api *API) ToSecretView(s *specV1.Secret) *models.SecretView
func (*API) ToSecretViewList ¶ added in v2.1.1
func (api *API) ToSecretViewList(s *models.SecretList) *models.SecretViewList
func (*API) UpdateApplication ¶
UpdateApplication update the application
func (*API) UpdateCertificate ¶
UpdateCertificate update the Certificate
func (*API) UpdateConfig ¶
UpdateConfig update the config
func (*API) UpdateConfigByAccelerator ¶ added in v2.3.0
func (*API) UpdateCoreApp ¶ added in v2.2.0
func (*API) UpdateModule ¶ added in v2.2.0
func (*API) UpdateNode ¶
UpdateNode update the node
func (*API) UpdateNodeAndAppIndex ¶
func (api *API) UpdateNodeAndAppIndex(namespace string, app *specV1.Application) error
func (*API) UpdateNodeMode ¶ added in v2.1.1
func (*API) UpdateNodeOptionedSysApps ¶ added in v2.2.0
func (*API) UpdateNodeProperties ¶ added in v2.1.1
func (*API) UpdateQuota ¶ added in v2.1.1
UpdateQuota for mis server api
- param namespace string
- param quotaName string
- param quota int
func (*API) UpdateRegistry ¶
UpdateRegistry update the Registry
func (*API) UpdateSecret ¶
UpdateSecret update the secret
func (*API) UpdateYamlResource ¶ added in v2.3.0
func (*API) ValidateRegistryModel ¶ added in v2.3.0
validateRegistryModel validate the registry model
func (*API) ValidateResourceForCreating ¶ added in v2.2.0
ValidateResourceForCreating validate when resource create
type CreateApplicationOta ¶ added in v2.3.0
type CreateApplicationOta = func(c *common.Context, app *specV1.Application) (*specV1.Application, error)
type CreateNodeHook ¶ added in v2.4.3
type DeleteApplicationOta ¶ added in v2.3.0
type DeleteApplicationOta = func(c *common.Context, app *specV1.Application) error
type InitAPI ¶
type InitAPI struct { Init service.InitService Sign service.SignService }
func NewInitAPI ¶
func NewInitAPI(cfg *config.CloudConfig) (*InitAPI, error)
type SyncAPI ¶
type SyncAPI interface { Report(msg specV1.Message) (*specV1.Message, error) Desire(msg specV1.Message) (*specV1.Message, error) }
func NewSyncAPI ¶
func NewSyncAPI(cfg *config.CloudConfig) (SyncAPI, error)
type SyncAPIImpl ¶
type SyncAPIImpl struct { Sync service.SyncService Node service.NodeService // contains filtered or unexported fields }
type UpdateApplicationOta ¶ added in v2.3.0
type UpdateApplicationOta = func(c *common.Context, app *specV1.Application) (*specV1.Application, error)