yunion.io/x/cloudmux@v0.3.10-0-alpha.1/pkg/multicloud/qcloud/loadbalancer_acl.go (about) 1 // Copyright 2019 Yunion 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package qcloud 16 17 import ( 18 "yunion.io/x/jsonutils" 19 20 api "yunion.io/x/cloudmux/pkg/apis/compute" 21 "yunion.io/x/cloudmux/pkg/cloudprovider" 22 "yunion.io/x/cloudmux/pkg/multicloud" 23 ) 24 25 // 腾讯云没有LB ACL 26 type SLBACL struct { 27 multicloud.SResourceBase 28 QcloudTags 29 } 30 31 func (self *SLBACL) GetAclListenerID() string { 32 return "" 33 } 34 35 func (self *SLBACL) Sync(acl *cloudprovider.SLoadbalancerAccessControlList) error { 36 return nil 37 } 38 39 func (self *SLBACL) Delete() error { 40 return nil 41 } 42 43 func (self *SLBACL) GetId() string { 44 return "" 45 } 46 47 func (self *SLBACL) GetName() string { 48 return "" 49 } 50 51 func (self *SLBACL) GetGlobalId() string { 52 return "" 53 } 54 55 func (self *SLBACL) GetStatus() string { 56 return api.LB_BOOL_OFF 57 } 58 59 func (self *SLBACL) Refresh() error { 60 return nil 61 } 62 63 func (self *SLBACL) IsEmulated() bool { 64 return false 65 } 66 67 func (self *SLBACL) GetAclEntries() *jsonutils.JSONArray { 68 return nil 69 } 70 71 func (self *SLBACL) GetProjectId() string { 72 return "" 73 }