Documentation
¶
Index ¶
- type Service
- type VipPoolClient
- func (c *VipPoolClient) CreateOrUpdate(ctx context.Context, location, name string, vp *network.VipPool) (*network.VipPool, error)
- func (c *VipPoolClient) Delete(ctx context.Context, location, name string) error
- func (c *VipPoolClient) Get(ctx context.Context, location, name string) (*[]network.VipPool, error)
- func (c *VipPoolClient) Precheck(ctx context.Context, location string, resources []*network.VipPool) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
Get(context.Context, string, string) (*[]network.VipPool, error)
CreateOrUpdate(context.Context, string, string, *network.VipPool) (*network.VipPool, error)
Delete(context.Context, string, string) error
Precheck(ctx context.Context, location string, resources []*network.VipPool) (bool, error)
}
Service interface
type VipPoolClient ¶
type VipPoolClient struct {
network.BaseClient
// contains filtered or unexported fields
}
VipPoolClient structure
func NewVipPoolClient ¶
func NewVipPoolClient(cloudFQDN string, authorizer auth.Authorizer) (*VipPoolClient, error)
NewVipPoolClient method returns new client
func (*VipPoolClient) CreateOrUpdate ¶
func (c *VipPoolClient) CreateOrUpdate(ctx context.Context, location, name string, vp *network.VipPool) (*network.VipPool, error)
Ensure methods invokes create or update on the client
func (*VipPoolClient) Delete ¶
func (c *VipPoolClient) Delete(ctx context.Context, location, name string) error
Delete methods invokes delete of the network resource
func (*VipPoolClient) Precheck ¶ added in v0.19.3
func (c *VipPoolClient) Precheck(ctx context.Context, location string, resources []*network.VipPool) (bool, error)
Prechecks whether the system is able to create specified resources. Returns true if it is possible; or false with reason in error message if not.
Click to show internal directories.
Click to hide internal directories.