Documentation ¶
Index ¶
- type MacPoolClient
- func (c *MacPoolClient) CreateOrUpdate(ctx context.Context, location, name string, macpool *network.MACPool) (*network.MACPool, error)
- func (c *MacPoolClient) Delete(ctx context.Context, location, name string) error
- func (c *MacPoolClient) Get(ctx context.Context, location, name string) (*[]network.MACPool, error)
- func (c *MacPoolClient) Precheck(ctx context.Context, location string, macPools []*network.MACPool) (bool, error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MacPoolClient ¶
type MacPoolClient struct { network.BaseClient // contains filtered or unexported fields }
MacPoolClient structure
func NewMacPoolClient ¶
func NewMacPoolClient(cloudFQDN string, authorizer auth.Authorizer) (*MacPoolClient, error)
NewMacPoolClient method returns new client
func (*MacPoolClient) CreateOrUpdate ¶
func (c *MacPoolClient) CreateOrUpdate(ctx context.Context, location, name string, macpool *network.MACPool) (*network.MACPool, error)
Ensure methods invokes create or update on the client
func (*MacPoolClient) Delete ¶
func (c *MacPoolClient) Delete(ctx context.Context, location, name string) error
Delete methods invokes delete of the network resource
func (*MacPoolClient) Precheck ¶ added in v0.19.3
func (c *MacPoolClient) Precheck(ctx context.Context, location string, macPools []*network.MACPool) (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.
type Service ¶
type Service interface { Get(context.Context, string, string) (*[]network.MACPool, error) CreateOrUpdate(context.Context, string, string, *network.MACPool) (*network.MACPool, error) Delete(context.Context, string, string) error Precheck(ctx context.Context, location string, macPools []*network.MACPool) (bool, error) }
Service interface
Click to show internal directories.
Click to hide internal directories.