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