Documentation ¶
Overview ¶
The package which makes the tool cloud agnostic for fetching network details. 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 GetNetworksInput ¶
type GetNetworksInput struct { // Ids or names of VPC's of which the information has to be fetched. VpcIds []string `json:"vpcids"` // Ids or names of the SUBNET's of which the informaion has to be fetched. SubnetIds []string `json:"subnetids"` Cloud cmn.Cloud }
The struct which implements method GetNetworks, GetSubnets.
func New ¶
func New() *GetNetworksInput
func (GetNetworksInput) GetAllNetworks ¶
func (net GetNetworksInput) GetAllNetworks() ([]GetNetworksResponse, error)
Being GetAllNetworks, job of him is to fetch the details of all networks entered and give back the response who called this. Below method will take care of fetching details of appropriate user and his cloud profile details which was passed while calling it.
func (*GetNetworksInput) GetNetworks ¶
func (net *GetNetworksInput) GetNetworks() (GetNetworksResponse, error)
Being GetNetwork, job of him is to fetch the details of networks entered and give back the response who called this. Below method will take care of fetching details of appropriate user and his cloud profile details which was passed while calling it.
func (GetNetworksInput) GetSubnets ¶
func (sub GetNetworksInput) GetSubnets() (GetSubnetsResponse, error)
Being GetSubnets, job of him is to fetch the details of subnets entered and give back the response who called this. Below method will take care of fetching details of appropriate user and his cloud profile details which was passed while calling it.
type GetNetworksResponse ¶
type GetNetworksResponse struct { // Contains filtered/unfiltered response of AWS. AwsResponse []network.NetworkResponse `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.
type GetSubnetsResponse ¶
type GetSubnetsResponse struct { // Contains filtered/unfiltered response of AWS. AwsResponse network.NetworkResponse `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.