miscoperations

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetRegionInput

type GetRegionInput struct {
	Cloud cmn.Cloud
}

GetRegionInput holds the information required to fetch the details of region, and implements the methods for it

func New

func New() *GetRegionInput

New will return the new instance of GetRegionInput with empty values.

func (*GetRegionInput) GetRegions

func (reg *GetRegionInput) GetRegions() (GetRegionsResponse, error)

GetRegions will fetch the information about the regions specified, else the details of entire region across the region.

type GetRegionsResponse

type GetRegionsResponse struct {
	// Contains filtered/unfiltered response of AWS.
	AwsResponse awscommon.CommonResponse `json:"Regions,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"`
}

GetRegionsResponse return the filtered/unfiltered responses of variuos clouds.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL