Documentation ¶
Overview ¶
The package which makes the tool cloud agnostic for deleting network and its components. The decision will be made here to route the request to respective package based on input.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteNetworkInput ¶
type DeleteNetworkInput struct { // Ids or names of VPC's which has to be deleted. VpcIds []string `json:"vpcids"` // Ids or names of SUBNET's which has to be deleted SubnetIds []string `json:"subnetids"` // Ids or name of Internet Gateways which has to be deleted. IgwIds []string `json:"igwids"` // Ids or name of Security Groups which has to be deletd. SecurityIds []string `json:"securityids"` Cloud cmn.Cloud }
The struct which implements method DeleteNetwork.
func New ¶
func New() *DeleteNetworkInput
func (*DeleteNetworkInput) DeleteNetwork ¶
func (net *DeleteNetworkInput) DeleteNetwork() (DeleteNetworkResponse, error)
Being DeleteNetwork, job of him is to delete the network and its components and give back the response who called him. Below method will take care of fetching details of appropriate user and his cloud profile details which was passed while calling it.
type DeleteNetworkResponse ¶
type DeleteNetworkResponse struct { // Contains filtered/unfiltered response of AWS. AwsResponse network.DeleteNetworkResponse `json:"AwsResponse,omitempty"` // Contains filtered/unfiltered response of Azure. AzureResponse string `json:"AzureResponse,omitempty"` // Default response if no inputs or matching the values required. DefaultResponse string `json:"DefaultResponse,omitempty"` }
The struct that will return the filtered/unfiltered responses of variuos clouds.
Click to show internal directories.
Click to hide internal directories.