Documentation ¶
Index ¶
- type AttributeResponse
- type ClusterRecommendationAccuracy
- type ClusterRecommendationReq
- type ClusterRecommendationResp
- type ClusterRecommender
- type ClusterScaleoutRecommendationReq
- type Continent
- type ContinentsDataResponse
- type ContinentsResponse
- type GetAttributeValuesPathParams
- type GetImagesQueryParams
- type GetProviderPathParams
- type GetRegionPathParams
- type GetRegionResp
- type GetServicesPathParams
- type Image
- type ImagesResponse
- type LocationVersion
- type MultiClusterRecommendationReq
- type NodePool
- type NodePoolDesc
- type NodePoolRecommender
- type ProductDetails
- type ProductDetailsResponse
- type Provider
- type ProviderResponse
- type ProvidersResponse
- type Region
- type RegionsResponse
- type Service
- type ServiceResponse
- type ServicesResponse
- type SingleClusterRecommendationReq
- type VMRecommender
- type Version
- type VersionsResponse
- type VirtualMachine
- type ZonePrice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeResponse ¶
type AttributeResponse struct { // attribute name AttributeName string `json:"attributeName,omitempty"` // attribute values AttributeValues []float64 `json:"attributeValues"` }
AttributeResponse AttributeResponse AttributeResponse holds attribute values swagger:model AttributeResponse
func (*AttributeResponse) MarshalBinary ¶
func (m *AttributeResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AttributeResponse) UnmarshalBinary ¶
func (m *AttributeResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ClusterRecommendationAccuracy ¶
type ClusterRecommendationAccuracy struct { // Number of recommended cpus RecCPU float64 `json:"cpu,omitempty"` // Amount of master instance type prices in the recommended cluster RecMasterPrice float64 `json:"masterPrice,omitempty"` // The summarised amount of memory in the recommended cluster RecMem float64 `json:"memory,omitempty"` // Number of recommended nodes RecNodes int64 `json:"nodes,omitempty"` // Number of regular instance type in the recommended cluster RecRegularNodes int64 `json:"regularNodes,omitempty"` // Amount of regular instance type prices in the recommended cluster RecRegularPrice float64 `json:"regularPrice,omitempty"` // Number of spot instance type in the recommended cluster RecSpotNodes int64 `json:"spotNodes,omitempty"` // Amount of spot instance type prices in the recommended cluster RecSpotPrice float64 `json:"spotPrice,omitempty"` // Total price in the recommended cluster RecTotalPrice float64 `json:"totalPrice,omitempty"` // Amount of worker instance type prices in the recommended cluster RecWorkerPrice float64 `json:"workerPrice,omitempty"` // Availability zone in the recommendation RecZone string `json:"zone,omitempty"` }
ClusterRecommendationAccuracy ClusterRecommendationAccuracy encapsulates recommendation accuracy swagger:model ClusterRecommendationAccuracy
func (*ClusterRecommendationAccuracy) MarshalBinary ¶
func (m *ClusterRecommendationAccuracy) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ClusterRecommendationAccuracy) UnmarshalBinary ¶
func (m *ClusterRecommendationAccuracy) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ClusterRecommendationReq ¶
type ClusterRecommendationReq struct { // Are burst instances allowed in recommendation AllowBurst bool `json:"allowBurst,omitempty"` // AllowOlderGen allow older generations of virtual machines (applies for EC2 only) AllowOlderGen bool `json:"allowOlderGen,omitempty"` // Category specifies the virtual machine category Category []string `json:"category"` // Maximum number of nodes in the recommended cluster MaxNodes int64 `json:"maxNodes,omitempty"` // Minimum number of nodes in the recommended cluster MinNodes int64 `json:"minNodes,omitempty"` // NetworkPerf specifies the network performance category NetworkPerf []string `json:"networkPerf"` // Percentage of regular (on-demand) nodes in the recommended cluster OnDemandPct int64 `json:"onDemandPct,omitempty"` // If true, recommended instance types will have a similar size SameSize bool `json:"sameSize,omitempty"` // Total number of CPUs requested for the cluster SumCPU float64 `json:"sumCpu,omitempty"` // Total number of GPUs requested for the cluster SumGpu int64 `json:"sumGpu,omitempty"` // Total memory requested for the cluster (GB) SumMem float64 `json:"sumMem,omitempty"` }
ClusterRecommendationReq ClusterRecommendationReq encapsulates the recommendation input data swagger:model ClusterRecommendationReq
func (*ClusterRecommendationReq) MarshalBinary ¶
func (m *ClusterRecommendationReq) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ClusterRecommendationReq) UnmarshalBinary ¶
func (m *ClusterRecommendationReq) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ClusterRecommendationResp ¶
type ClusterRecommendationResp struct { // Recommended node pools NodePools []*NodePool `json:"nodePools"` // The cloud provider Provider string `json:"provider,omitempty"` // Service's region Region string `json:"region,omitempty"` // Provider's service Service string `json:"service,omitempty"` // Availability zone in the recommendation - a multi-zone recommendation means that all node pools should expand to all zones Zone string `json:"zone,omitempty"` // accuracy Accuracy *ClusterRecommendationAccuracy `json:"accuracy,omitempty"` }
ClusterRecommendationResp ClusterRecommendationResp encapsulates recommendation result data swagger:model ClusterRecommendationResp
func (*ClusterRecommendationResp) MarshalBinary ¶
func (m *ClusterRecommendationResp) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ClusterRecommendationResp) UnmarshalBinary ¶
func (m *ClusterRecommendationResp) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ClusterRecommender ¶
type ClusterRecommender interface{}
ClusterRecommender ClusterRecommender is the main entry point for cluster recommendation swagger:model ClusterRecommender
type ClusterScaleoutRecommendationReq ¶
type ClusterScaleoutRecommendationReq struct { // Description of the current cluster layout // in:body ActualLayout []*NodePoolDesc `json:"actualLayout"` // Total desired number of CPUs in the cluster after the scale out DesiredCPU float64 `json:"desiredCpu,omitempty"` // Total desired number of GPUs in the cluster after the scale out DesiredGpu int64 `json:"desiredGpu,omitempty"` // Total desired memory (GB) in the cluster after the scale out DesiredMem float64 `json:"desiredMem,omitempty"` // Excludes is a blacklist - a slice with vm types to be excluded from the recommendation Excludes []string `json:"excludes"` // Percentage of regular (on-demand) nodes among the scale out nodes OnDemandPct int64 `json:"onDemandPct,omitempty"` // Availability zone to be included in the recommendation Zone string `json:"zone,omitempty"` }
ClusterScaleoutRecommendationReq ClusterScaleoutRecommendationReq encapsulates the recommendation input data swagger:model ClusterScaleoutRecommendationReq
func (*ClusterScaleoutRecommendationReq) MarshalBinary ¶
func (m *ClusterScaleoutRecommendationReq) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ClusterScaleoutRecommendationReq) UnmarshalBinary ¶
func (m *ClusterScaleoutRecommendationReq) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Continent ¶
type Continent struct { // name Name string `json:"name,omitempty"` // regions Regions []*Region `json:"regions"` }
Continent Continent Continent holds continent and regions of a cloud provider swagger:model Continent
func (*Continent) MarshalBinary ¶
MarshalBinary interface implementation
func (*Continent) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ContinentsDataResponse ¶
type ContinentsDataResponse []*Continent
ContinentsDataResponse ContinentsDataResponse ContinentsDataResponse holds the list of available continents and regions of a cloud provider swagger:model ContinentsDataResponse
type ContinentsResponse ¶
type ContinentsResponse []string
ContinentsResponse ContinentsResponse ContinentsResponse holds the list of available continents swagger:model ContinentsResponse
type GetAttributeValuesPathParams ¶
type GetAttributeValuesPathParams struct { // in:path Attribute string `json:"attribute,omitempty"` // in:path Provider string `json:"provider,omitempty"` // in:path Region string `json:"region,omitempty"` // in:path Service string `json:"service,omitempty"` }
GetAttributeValuesPathParams GetAttributeValuesPathParams GetAttributeValuesPathParams is a placeholder for the get attribute values route's path parameters swagger:model GetAttributeValuesPathParams
func (*GetAttributeValuesPathParams) MarshalBinary ¶
func (m *GetAttributeValuesPathParams) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetAttributeValuesPathParams) UnmarshalBinary ¶
func (m *GetAttributeValuesPathParams) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetImagesQueryParams ¶
type GetImagesQueryParams struct { // in:query Gpu string `json:"gpu,omitempty"` // in:query Version string `json:"version,omitempty"` }
GetImagesQueryParams GetImagesQueryParams GetImagesQueryParams is a placeholder for the get images query parameters swagger:model GetImagesQueryParams
func (*GetImagesQueryParams) MarshalBinary ¶
func (m *GetImagesQueryParams) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetImagesQueryParams) UnmarshalBinary ¶
func (m *GetImagesQueryParams) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetProviderPathParams ¶
type GetProviderPathParams struct { // in:path Provider string `json:"provider,omitempty"` }
GetProviderPathParams GetProviderPathParams GetProviderPathParams is a placeholder for the providers related route path parameters swagger:model GetProviderPathParams
func (*GetProviderPathParams) MarshalBinary ¶
func (m *GetProviderPathParams) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetProviderPathParams) UnmarshalBinary ¶
func (m *GetProviderPathParams) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRegionPathParams ¶
type GetRegionPathParams struct { // in:path Provider string `json:"provider,omitempty"` // in:path Region string `json:"region,omitempty"` // in:path Service string `json:"service,omitempty"` }
GetRegionPathParams GetRegionPathParams GetRegionPathParams is a placeholder for the regions related route path parameters swagger:model GetRegionPathParams
func (*GetRegionPathParams) MarshalBinary ¶
func (m *GetRegionPathParams) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRegionPathParams) UnmarshalBinary ¶
func (m *GetRegionPathParams) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetRegionResp ¶
type GetRegionResp struct { // Id ID string `json:"id,omitempty"` // name Name string `json:"name,omitempty"` // zones Zones []string `json:"zones"` }
GetRegionResp GetRegionResp GetRegionResp holds the detailed description of a specific region of a cloud provider swagger:model GetRegionResp
func (*GetRegionResp) MarshalBinary ¶
func (m *GetRegionResp) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetRegionResp) UnmarshalBinary ¶
func (m *GetRegionResp) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetServicesPathParams ¶
type GetServicesPathParams struct { // in:path Provider string `json:"provider,omitempty"` // in:path Service string `json:"service,omitempty"` }
GetServicesPathParams GetServicesPathParams GetServicesPathParams is a placeholder for the services related route path parameters swagger:model GetServicesPathParams
func (*GetServicesPathParams) MarshalBinary ¶
func (m *GetServicesPathParams) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetServicesPathParams) UnmarshalBinary ¶
func (m *GetServicesPathParams) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Image ¶
type Image struct { // gpu available GpuAvailable bool `json:"gpu,omitempty"` // name Name string `json:"name,omitempty"` // version Version string `json:"version,omitempty"` }
Image Image Image represents an image swagger:model Image
func (*Image) MarshalBinary ¶
MarshalBinary interface implementation
func (*Image) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ImagesResponse ¶
type ImagesResponse struct { // images Images []*Image `json:"images"` }
ImagesResponse ImagesResponse ImagesResponse holds the list of available images swagger:model ImagesResponse
func (*ImagesResponse) MarshalBinary ¶
func (m *ImagesResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ImagesResponse) UnmarshalBinary ¶
func (m *ImagesResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type LocationVersion ¶
type LocationVersion struct { // default Default string `json:"default,omitempty"` // location Location string `json:"location,omitempty"` // versions Versions []string `json:"versions"` }
LocationVersion LocationVersion LocationVersion struct for displaying version information per location swagger:model LocationVersion
func (*LocationVersion) MarshalBinary ¶
func (m *LocationVersion) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LocationVersion) UnmarshalBinary ¶
func (m *LocationVersion) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type MultiClusterRecommendationReq ¶
type MultiClusterRecommendationReq struct { // Are burst instances allowed in recommendation AllowBurst bool `json:"allowBurst,omitempty"` // AllowOlderGen allow older generations of virtual machines (applies for EC2 only) AllowOlderGen bool `json:"allowOlderGen,omitempty"` // Category specifies the virtual machine category Category []string `json:"category"` // continents Continents []string `json:"continents"` // Excludes is a blacklist - a slice with vm types to be excluded from the recommendation Excludes map[string]map[string][]string `json:"excludes,omitempty"` // Includes is a whitelist - a slice with vm types to be contained in the recommendation Includes map[string]map[string][]string `json:"includes,omitempty"` // Maximum number of nodes in the recommended cluster MaxNodes int64 `json:"maxNodes,omitempty"` // Minimum number of nodes in the recommended cluster MinNodes int64 `json:"minNodes,omitempty"` // NetworkPerf specifies the network performance category NetworkPerf []string `json:"networkPerf"` // Percentage of regular (on-demand) nodes in the recommended cluster OnDemandPct int64 `json:"onDemandPct,omitempty"` // providers Providers []*Provider `json:"providers"` // Maximum number of response per service RespPerService int64 `json:"respPerService,omitempty"` // If true, recommended instance types will have a similar size SameSize bool `json:"sameSize,omitempty"` // Total number of CPUs requested for the cluster SumCPU float64 `json:"sumCpu,omitempty"` // Total number of GPUs requested for the cluster SumGpu int64 `json:"sumGpu,omitempty"` // Total memory requested for the cluster (GB) SumMem float64 `json:"sumMem,omitempty"` }
MultiClusterRecommendationReq MultiClusterRecommendationReq encapsulates the recommendation input data swagger:model MultiClusterRecommendationReq
func (*MultiClusterRecommendationReq) MarshalBinary ¶
func (m *MultiClusterRecommendationReq) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*MultiClusterRecommendationReq) UnmarshalBinary ¶
func (m *MultiClusterRecommendationReq) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NodePool ¶
type NodePool struct { // Role in the cluster, eg. master or worker Role string `json:"role,omitempty"` // Recommended number of nodes in the node pool SumNodes int64 `json:"sumNodes,omitempty"` // Specifies if the recommended node pool consists of regular or spot/preemptible instance types VMClass string `json:"vmClass,omitempty"` // vm VM *VirtualMachine `json:"vm,omitempty"` }
NodePool NodePool represents a set of instances with a specific vm type swagger:model NodePool
func (*NodePool) MarshalBinary ¶
MarshalBinary interface implementation
func (*NodePool) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type NodePoolDesc ¶
type NodePoolDesc struct { // Instance type of VMs in the node pool InstanceType string `json:"instanceType,omitempty"` // Number of VMs in the node pool SumNodes int64 `json:"sumNodes,omitempty"` // Signals that the node pool consists of regular or spot/preemptible instance types VMClass string `json:"vmClass,omitempty"` }
NodePoolDesc node pool desc swagger:model NodePoolDesc
func (*NodePoolDesc) MarshalBinary ¶
func (m *NodePoolDesc) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NodePoolDesc) UnmarshalBinary ¶
func (m *NodePoolDesc) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NodePoolRecommender ¶
type NodePoolRecommender interface{}
NodePoolRecommender node pool recommender swagger:model NodePoolRecommender
type ProductDetails ¶
type ProductDetails struct { // attributes Attributes map[string]string `json:"attributes,omitempty"` // Burst this is derived for now Burst bool `json:"burst,omitempty"` // category Category string `json:"category,omitempty"` // cpus Cpus float64 `json:"cpusPerVm,omitempty"` // CurrentGen signals whether the instance type generation is the current one. Only applies for amazon CurrentGen bool `json:"currentGen,omitempty"` // gpus Gpus float64 `json:"gpusPerVm,omitempty"` // mem Mem float64 `json:"memPerVm,omitempty"` // ntw perf NtwPerf string `json:"ntwPerf,omitempty"` // ntw perf cat NtwPerfCat string `json:"ntwPerfCategory,omitempty"` // on demand price OnDemandPrice float64 `json:"onDemandPrice,omitempty"` // spot price SpotPrice []*ZonePrice `json:"spotPrice"` // type Type string `json:"type,omitempty"` // zones Zones []string `json:"zones"` }
ProductDetails ProductDetails ProductDetails extended view of the virtual machine details swagger:model ProductDetails
func (*ProductDetails) MarshalBinary ¶
func (m *ProductDetails) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProductDetails) UnmarshalBinary ¶
func (m *ProductDetails) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProductDetailsResponse ¶
type ProductDetailsResponse struct { // Products represents a slice of products for a given provider (VMs with attributes and process) Products []*ProductDetails `json:"products"` // ScrapingTime represents scraping time for a given provider in milliseconds ScrapingTime string `json:"scrapingTime,omitempty"` }
ProductDetailsResponse ProductDetailsResponse ProductDetailsResponse Api object to be mapped to product info response swagger:model ProductDetailsResponse
func (*ProductDetailsResponse) MarshalBinary ¶
func (m *ProductDetailsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProductDetailsResponse) UnmarshalBinary ¶
func (m *ProductDetailsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Provider ¶
type Provider struct { // provider Provider string `json:"provider,omitempty"` // services Services []*Service `json:"services"` }
Provider Provider Provider represents a cloud provider swagger:model Provider
func (*Provider) MarshalBinary ¶
MarshalBinary interface implementation
func (*Provider) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ProviderResponse ¶
type ProviderResponse struct { // provider Provider *Provider `json:"provider,omitempty"` }
ProviderResponse ProviderResponse ProviderResponse is the response used for the requested provider swagger:model ProviderResponse
func (*ProviderResponse) MarshalBinary ¶
func (m *ProviderResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProviderResponse) UnmarshalBinary ¶
func (m *ProviderResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ProvidersResponse ¶
type ProvidersResponse struct { // providers Providers []*Provider `json:"providers"` }
ProvidersResponse ProvidersResponse ProvidersResponse is the response used for the supported providers swagger:model ProvidersResponse
func (*ProvidersResponse) MarshalBinary ¶
func (m *ProvidersResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ProvidersResponse) UnmarshalBinary ¶
func (m *ProvidersResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Region ¶
type Region struct { // Id ID string `json:"id,omitempty"` // name Name string `json:"name,omitempty"` }
Region Region Region hold the id and name of a cloud provider region swagger:model Region
func (*Region) MarshalBinary ¶
MarshalBinary interface implementation
func (*Region) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RegionsResponse ¶
type RegionsResponse []*Region
RegionsResponse RegionsResponse RegionsResponse holds the list of available regions of a cloud provider swagger:model RegionsResponse
type Service ¶
type Service struct { // is static IsStatic bool `json:"isStatic,omitempty"` // service Service string `json:"service,omitempty"` }
Service Service Service represents a service supported by a given provider.
it's intended to implement the ServiceDescriber interface swagger:model Service
func (*Service) MarshalBinary ¶
MarshalBinary interface implementation
func (*Service) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ServiceResponse ¶
type ServiceResponse struct { // service Service *Service `json:"service,omitempty"` }
ServiceResponse ServiceResponse ServiceResponse holds the list of available services swagger:model ServiceResponse
func (*ServiceResponse) MarshalBinary ¶
func (m *ServiceResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServiceResponse) UnmarshalBinary ¶
func (m *ServiceResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ServicesResponse ¶
type ServicesResponse struct { // services Services []*Service `json:"services"` }
ServicesResponse ServicesResponse ServicesResponse holds the list of available services swagger:model ServicesResponse
func (*ServicesResponse) MarshalBinary ¶
func (m *ServicesResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ServicesResponse) UnmarshalBinary ¶
func (m *ServicesResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SingleClusterRecommendationReq ¶
type SingleClusterRecommendationReq struct { // Are burst instances allowed in recommendation AllowBurst bool `json:"allowBurst,omitempty"` // AllowOlderGen allow older generations of virtual machines (applies for EC2 only) AllowOlderGen bool `json:"allowOlderGen,omitempty"` // Category specifies the virtual machine category Category []string `json:"category"` // Excludes is a blacklist - a slice with vm types to be excluded from the recommendation Excludes []string `json:"excludes"` // Includes is a whitelist - a slice with vm types to be contained in the recommendation Includes []string `json:"includes"` // Maximum number of nodes in the recommended cluster MaxNodes int64 `json:"maxNodes,omitempty"` // Minimum number of nodes in the recommended cluster MinNodes int64 `json:"minNodes,omitempty"` // NetworkPerf specifies the network performance category NetworkPerf []string `json:"networkPerf"` // Percentage of regular (on-demand) nodes in the recommended cluster OnDemandPct int64 `json:"onDemandPct,omitempty"` // If true, recommended instance types will have a similar size SameSize bool `json:"sameSize,omitempty"` // Total number of CPUs requested for the cluster SumCPU float64 `json:"sumCpu,omitempty"` // Total number of GPUs requested for the cluster SumGpu int64 `json:"sumGpu,omitempty"` // Total memory requested for the cluster (GB) SumMem float64 `json:"sumMem,omitempty"` // Availability zone that the cluster should expand to Zone string `json:"zone,omitempty"` }
SingleClusterRecommendationReq SingleClusterRecommendationReq encapsulates the recommendation input data swagger:model SingleClusterRecommendationReq
func (*SingleClusterRecommendationReq) MarshalBinary ¶
func (m *SingleClusterRecommendationReq) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SingleClusterRecommendationReq) UnmarshalBinary ¶
func (m *SingleClusterRecommendationReq) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type VMRecommender ¶
type VMRecommender interface{}
VMRecommender Vm recommender swagger:model VmRecommender
type Version ¶
type Version struct { // default Default bool `json:"default,omitempty"` // version Version string `json:"version,omitempty"` }
Version Version version swagger:model Version
func (*Version) MarshalBinary ¶
MarshalBinary interface implementation
func (*Version) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type VersionsResponse ¶
type VersionsResponse struct { // versions Versions []*LocationVersion `json:"versions"` }
VersionsResponse VersionsResponse VersionsResponse holds the list of available versions swagger:model VersionsResponse
func (*VersionsResponse) MarshalBinary ¶
func (m *VersionsResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VersionsResponse) UnmarshalBinary ¶
func (m *VersionsResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type VirtualMachine ¶
type VirtualMachine struct { // Average price of the instance (differs from on demand price in case of spot or preemptible instances) AvgPrice float64 `json:"avgPrice,omitempty"` // Burst signals a burst type instance Burst bool `json:"burst,omitempty"` // Instance type category Category string `json:"category,omitempty"` // Number of CPUs in the instance type Cpus float64 `json:"cpusPerVm,omitempty"` // CurrentGen the vm is of current generation CurrentGen bool `json:"currentGen,omitempty"` // Number of GPUs in the instance type Gpus float64 `json:"gpusPerVm,omitempty"` // Available memory in the instance type (GB) Mem float64 `json:"memPerVm,omitempty"` // NetworkPerf holds the network performance NetworkPerf string `json:"networkPerf,omitempty"` // NetworkPerfCat holds the network performance category NetworkPerfCat string `json:"networkPerfCategory,omitempty"` // Regular price of the instance type OnDemandPrice float64 `json:"onDemandPrice,omitempty"` // Instance type Type string `json:"type,omitempty"` // Zones Zones []string `json:"zones"` }
VirtualMachine VirtualMachine describes an instance type swagger:model VirtualMachine
func (*VirtualMachine) MarshalBinary ¶
func (m *VirtualMachine) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*VirtualMachine) UnmarshalBinary ¶
func (m *VirtualMachine) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ZonePrice ¶
type ZonePrice struct { // price Price float64 `json:"price,omitempty"` // zone Zone string `json:"zone,omitempty"` }
ZonePrice ZonePrice ZonePrice struct for displaying price information per zone swagger:model ZonePrice
func (*ZonePrice) MarshalBinary ¶
MarshalBinary interface implementation
func (*ZonePrice) UnmarshalBinary ¶
UnmarshalBinary interface implementation
Source Files ¶
- attribute_response.go
- cluster_recommendation_accuracy.go
- cluster_recommendation_req.go
- cluster_recommendation_resp.go
- cluster_recommender.go
- cluster_scaleout_recommendation_req.go
- continent.go
- continents_data_response.go
- continents_response.go
- get_attribute_values_path_params.go
- get_images_query_params.go
- get_provider_path_params.go
- get_region_path_params.go
- get_region_resp.go
- get_services_path_params.go
- image.go
- images_response.go
- location_version.go
- multi_cluster_recommendation_req.go
- node_pool.go
- node_pool_desc.go
- node_pool_recommender.go
- product_details.go
- product_details_response.go
- provider.go
- provider_response.go
- providers_response.go
- region.go
- regions_response.go
- service.go
- service_response.go
- services_response.go
- single_cluster_recommendation_req.go
- version.go
- versions_response.go
- virtual_machine.go
- vm_recommender.go
- zone_price.go