Documentation ¶
Overview ¶
* Tencent is pleased to support the open source community by making 蓝鲸 available., * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the ",License",); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * http://opensource.org/licenses/MIT * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an ",AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and * limitations under the License.
* Tencent is pleased to support the open source community by making 蓝鲸 available., * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the ",License",); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * http://opensource.org/licenses/MIT * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an ",AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and * limitations under the License.
* Tencent is pleased to support the open source community by making 蓝鲸 available., * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the ",License",); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * http://opensource.org/licenses/MIT * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an ",AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and * limitations under the License.
* Tencent is pleased to support the open source community by making 蓝鲸 available., * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the ",License",); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * http://opensource.org/licenses/MIT * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an ",AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and * limitations under the License.
* Tencent is pleased to support the open source community by making 蓝鲸 available., * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the ",License",); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * http://opensource.org/licenses/MIT * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an ",AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and * limitations under the License.
* Tencent is pleased to support the open source community by making 蓝鲸 available., * Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. * Licensed under the MIT License (the ",License",); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * http://opensource.org/licenses/MIT * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an ",AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and * limitations under the License.
Index ¶
- func New(dependent OperationDependencies) core.DataSynchronizeOperation
- func NewBuildSameInfo(info *metadata.SynchronizeItem, syncData *metadata.SynchronizeParameter) *buildSameInfo
- func NewClearData(input *metadata.SynchronizeClearDataParameter) clearDataInterface
- func NewSetIdentifierFlag(params *metadata.SetIdenifierFlag) *setIdentifierFlag
- func NewSynchronizeAssociationAdapter(s *metadata.SynchronizeParameter) dataTypeInterface
- func NewSynchronizeFindAdapter(input *metadata.SynchronizeFindInfoParameter) associationFindDataInterface
- func NewSynchronizeInstanceAdapter(s *metadata.SynchronizeParameter) dataTypeInterface
- func NewSynchronizeModelAdapter(s *metadata.SynchronizeParameter) dataTypeInterface
- type OperationDependencies
- type SynchronizeManager
- func (s *SynchronizeManager) ClearData(kit *rest.Kit, input *metadata.SynchronizeClearDataParameter) error
- func (s *SynchronizeManager) Find(kit *rest.Kit, input *metadata.SynchronizeFindInfoParameter) ([]mapstr.MapStr, uint64, error)
- func (s *SynchronizeManager) SetIdentifierFlag(kit *rest.Kit, input *metadata.SetIdenifierFlag) ([]metadata.ExceptionResult, error)
- func (s *SynchronizeManager) SynchronizeAssociationAdapter(kit *rest.Kit, syncData *metadata.SynchronizeParameter) ([]metadata.ExceptionResult, error)
- func (s *SynchronizeManager) SynchronizeInstanceAdapter(kit *rest.Kit, syncData *metadata.SynchronizeParameter) ([]metadata.ExceptionResult, error)
- func (s *SynchronizeManager) SynchronizeModelAdapter(kit *rest.Kit, syncData *metadata.SynchronizeParameter) ([]metadata.ExceptionResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(dependent OperationDependencies) core.DataSynchronizeOperation
New create a new model manager instance
func NewBuildSameInfo ¶
func NewBuildSameInfo(info *metadata.SynchronizeItem, syncData *metadata.SynchronizeParameter) *buildSameInfo
func NewClearData ¶
func NewClearData(input *metadata.SynchronizeClearDataParameter) clearDataInterface
func NewSetIdentifierFlag ¶
func NewSetIdentifierFlag(params *metadata.SetIdenifierFlag) *setIdentifierFlag
NewSetIdentifierFlag net set identifier handler
func NewSynchronizeAssociationAdapter ¶
func NewSynchronizeAssociationAdapter(s *metadata.SynchronizeParameter) dataTypeInterface
func NewSynchronizeFindAdapter ¶
func NewSynchronizeFindAdapter(input *metadata.SynchronizeFindInfoParameter) associationFindDataInterface
func NewSynchronizeInstanceAdapter ¶
func NewSynchronizeInstanceAdapter(s *metadata.SynchronizeParameter) dataTypeInterface
func NewSynchronizeModelAdapter ¶
func NewSynchronizeModelAdapter(s *metadata.SynchronizeParameter) dataTypeInterface
Types ¶
type OperationDependencies ¶
type OperationDependencies interface { // IsInstanceExist used to check if the instances exist IsInstanceExist(kit *rest.Kit, objID string, instID uint64) (exists bool, err error) }
OperationDependencies methods definition
type SynchronizeManager ¶
type SynchronizeManager struct {
// contains filtered or unexported fields
}
func (*SynchronizeManager) ClearData ¶
func (s *SynchronizeManager) ClearData(kit *rest.Kit, input *metadata.SynchronizeClearDataParameter) error
func (*SynchronizeManager) Find ¶
func (s *SynchronizeManager) Find(kit *rest.Kit, input *metadata.SynchronizeFindInfoParameter) ([]mapstr.MapStr, uint64, error)
func (*SynchronizeManager) SetIdentifierFlag ¶
func (s *SynchronizeManager) SetIdentifierFlag(kit *rest.Kit, input *metadata.SetIdenifierFlag) ([]metadata.ExceptionResult, error)
SetIdentifierFlag set cmdb synchronize identifier flag
func (*SynchronizeManager) SynchronizeAssociationAdapter ¶
func (s *SynchronizeManager) SynchronizeAssociationAdapter(kit *rest.Kit, syncData *metadata.SynchronizeParameter) ([]metadata.ExceptionResult, error)
func (*SynchronizeManager) SynchronizeInstanceAdapter ¶
func (s *SynchronizeManager) SynchronizeInstanceAdapter(kit *rest.Kit, syncData *metadata.SynchronizeParameter) ([]metadata.ExceptionResult, error)
func (*SynchronizeManager) SynchronizeModelAdapter ¶
func (s *SynchronizeManager) SynchronizeModelAdapter(kit *rest.Kit, syncData *metadata.SynchronizeParameter) ([]metadata.ExceptionResult, error)