From 8de2cb99df5be0d248f46c82904930c44bd6a12d Mon Sep 17 00:00:00 2001 From: jianli-97 Date: Wed, 15 Nov 2023 16:51:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0OpenStackAsset=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../global/infraplatform/openstackasset.go | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkg/configmanager/asset/global/infraplatform/openstackasset.go diff --git a/pkg/configmanager/asset/global/infraplatform/openstackasset.go b/pkg/configmanager/asset/global/infraplatform/openstackasset.go new file mode 100644 index 0000000..fc99a3a --- /dev/null +++ b/pkg/configmanager/asset/global/infraplatform/openstackasset.go @@ -0,0 +1,49 @@ +/* +Copyright 2023 KylinSoft Co., Ltd. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +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. +*/ + +package infraplatform + +var OpenStackConfig *OpenStackAsset + +// ========== 包方法 ========== + +func GetOpenStackConfig() (*OpenStackAsset, error) { + return OpenStackConfig, nil +} + +// ========== 模块方法 ========== + +type OpenStackAsset struct { + Auth_Url string +} + +// TODO: Init inits the openstack asset. +func (opa *OpenStackAsset) Initial() error { + opa.Auth_Url = "http://" + + OpenStackConfig = opa + return nil +} + +// TODO: Delete deletes the openstack asset. +func (opa *OpenStackAsset) Delete() error { + return nil +} + +// TODO: Persist persists the openstack asset. +func (opa *OpenStackAsset) Persist() error { + return nil +} -- Gitee