yunion.io/x/cloudmux@v0.3.10-0-alpha.1/pkg/multicloud/no_lb_region.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 multicloud
    16  
    17  import "yunion.io/x/cloudmux/pkg/cloudprovider"
    18  
    19  type SNoLbRegion struct{}
    20  
    21  func (self *SNoLbRegion) GetILoadBalancers() ([]cloudprovider.ICloudLoadbalancer, error) {
    22  	return nil, cloudprovider.ErrNotSupported
    23  }
    24  
    25  func (self *SNoLbRegion) GetILoadBalancerAcls() ([]cloudprovider.ICloudLoadbalancerAcl, error) {
    26  	return nil, cloudprovider.ErrNotSupported
    27  }
    28  
    29  func (self *SNoLbRegion) GetILoadBalancerCertificates() ([]cloudprovider.ICloudLoadbalancerCertificate, error) {
    30  	return nil, cloudprovider.ErrNotSupported
    31  }
    32  
    33  func (self *SNoLbRegion) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, error) {
    34  	return nil, cloudprovider.ErrNotSupported
    35  }
    36  
    37  func (self *SNoLbRegion) GetILoadBalancerById(loadbalancerId string) (cloudprovider.ICloudLoadbalancer, error) {
    38  	return nil, cloudprovider.ErrNotSupported
    39  }
    40  
    41  func (self *SNoLbRegion) GetILoadBalancerAclById(aclId string) (cloudprovider.ICloudLoadbalancerAcl, error) {
    42  	return nil, cloudprovider.ErrNotSupported
    43  }
    44  
    45  func (self *SNoLbRegion) GetILoadBalancerCertificateById(certId string) (cloudprovider.ICloudLoadbalancerCertificate, error) {
    46  	return nil, cloudprovider.ErrNotSupported
    47  }
    48  
    49  func (self *SNoLbRegion) CreateILoadBalancer(loadbalancer *cloudprovider.SLoadbalancer) (cloudprovider.ICloudLoadbalancer, error) {
    50  	return nil, cloudprovider.ErrNotSupported
    51  }
    52  
    53  func (self *SNoLbRegion) CreateILoadBalancerAcl(acl *cloudprovider.SLoadbalancerAccessControlList) (cloudprovider.ICloudLoadbalancerAcl, error) {
    54  	return nil, cloudprovider.ErrNotSupported
    55  }
    56  
    57  func (self *SNoLbRegion) CreateILoadBalancerCertificate(cert *cloudprovider.SLoadbalancerCertificate) (cloudprovider.ICloudLoadbalancerCertificate, error) {
    58  	return nil, cloudprovider.ErrNotSupported
    59  }