Documentation
¶
Index ¶
- Constants
- type LoadBalancerClient
- func (c *LoadBalancerClient) CreateOrUpdate(ctx context.Context, group, name string, lb *network.LoadBalancer) (*network.LoadBalancer, error)
- func (c *LoadBalancerClient) CreateOrUpdateWithVersion(ctx context.Context, group, name string, lb *network.LoadBalancer, ...) (*network.LoadBalancer, error)
- func (c *LoadBalancerClient) Delete(ctx context.Context, group, name string) error
- func (c *LoadBalancerClient) DeleteWithVersion(ctx context.Context, group, name, apiVersion string) error
- func (c *LoadBalancerClient) Get(ctx context.Context, group, name string) (*[]network.LoadBalancer, error)
- func (c *LoadBalancerClient) GetWithVersion(ctx context.Context, group, name, apiVersion string) (*[]network.LoadBalancer, error)
- func (c *LoadBalancerClient) Precheck(ctx context.Context, group string, loadBalancers []*network.LoadBalancer) (bool, error)
- func (c *LoadBalancerClient) PrecheckWithVersion(ctx context.Context, group string, loadBalancers []*network.LoadBalancer, ...) (bool, error)
- type Service
Constants ¶
const ( // supported API Versions for Load Balancers Version_Default = "" Version_1_0 = "1.0" Version_2_0 = "2.0" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadBalancerClient ¶
type LoadBalancerClient struct {
network.BaseClient
// contains filtered or unexported fields
}
LoadBalancerClient structure
func NewLoadBalancerClient ¶
func NewLoadBalancerClient(cloudFQDN string, authorizer auth.Authorizer) (*LoadBalancerClient, error)
NewLoadBalancerClient method returns new client
func (*LoadBalancerClient) CreateOrUpdate ¶
func (c *LoadBalancerClient) CreateOrUpdate(ctx context.Context, group, name string, lb *network.LoadBalancer) (*network.LoadBalancer, error)
Ensure methods invokes create or update on the client
func (*LoadBalancerClient) CreateOrUpdateWithVersion ¶ added in v0.38.1
func (c *LoadBalancerClient) CreateOrUpdateWithVersion(ctx context.Context, group, name string, lb *network.LoadBalancer, apiVersion string) (*network.LoadBalancer, error)
Ensure methods invokes create or update on the client
func (*LoadBalancerClient) Delete ¶
func (c *LoadBalancerClient) Delete(ctx context.Context, group, name string) error
Delete methods invokes delete of the network resource
func (*LoadBalancerClient) DeleteWithVersion ¶ added in v0.38.1
func (c *LoadBalancerClient) DeleteWithVersion(ctx context.Context, group, name, apiVersion string) error
Delete methods invokes delete of the network resource
func (*LoadBalancerClient) Get ¶
func (c *LoadBalancerClient) Get(ctx context.Context, group, name string) (*[]network.LoadBalancer, error)
Get methods invokes the client Get method
func (*LoadBalancerClient) GetWithVersion ¶ added in v0.38.1
func (c *LoadBalancerClient) GetWithVersion(ctx context.Context, group, name, apiVersion string) (*[]network.LoadBalancer, error)
Get methods invokes the client Get method
func (*LoadBalancerClient) Precheck ¶ added in v0.19.3
func (c *LoadBalancerClient) Precheck(ctx context.Context, group string, loadBalancers []*network.LoadBalancer) (bool, error)
Prechecks whether the system is able to create specified loadBalancers. Returns true if it is possible; or false with reason in error message if not.
func (*LoadBalancerClient) PrecheckWithVersion ¶ added in v0.38.1
func (c *LoadBalancerClient) PrecheckWithVersion(ctx context.Context, group string, loadBalancers []*network.LoadBalancer, apiVersion string) (bool, error)
Prechecks whether the system is able to create specified loadBalancers. Returns true if it is possible; or false with reason in error message if not.
type Service ¶
type Service interface {
Get(context.Context, string, string) (*[]network.LoadBalancer, error)
GetWithVersion(context.Context, string, string, string) (*[]network.LoadBalancer, error)
CreateOrUpdate(context.Context, string, string, *network.LoadBalancer) (*network.LoadBalancer, error)
CreateOrUpdateWithVersion(context.Context, string, string, *network.LoadBalancer, string) (*network.LoadBalancer, error)
Delete(context.Context, string, string) error
DeleteWithVersion(context.Context, string, string, string) error
Precheck(ctx context.Context, group string, loadBalancers []*network.LoadBalancer) (bool, error)
PrecheckWithVersion(ctx context.Context, group string, loadBalancers []*network.LoadBalancer, apiVersion string) (bool, error)
}
Service interface