Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetServerResponse ¶
type GetServerResponse struct { // Contains filtered/unfiltered response of AWS. AwsResponse []server.ServerResponse `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:"Response,omitempty"` }
The struct that will return the filtered/unfiltered responses of variuos clouds.
type GetServersInput ¶
type GetServersInput struct { InstanceIds []string `json:"instanceids"` VpcIds []string `json:"vpcids"` SubnetIds []string `json:"subnetids"` Cloud cmn.Cloud }
func New ¶
func New() *GetServersInput
func (*GetServersInput) GetAllServers ¶
func (serv *GetServersInput) GetAllServers() ([]GetServerResponse, error)
Being GetAllServers, job of him is to fetch the details of all servers across the cloud 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 (*GetServersInput) GetServersDetails ¶
func (serv *GetServersInput) GetServersDetails() (GetServerResponse, error)
Being GetServersDetails, job of him is to fetch the details of servers with the instructions passed to him 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.