Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobStoragePropsForAzure ¶
type BlobStoragePropsForAzure struct { ResourceGroup string `json:"resourceGroup" binding:"required"` StorageAccount string `json:"storageAccount" binding:"required"` }
BlobStoragePropsForAzure describes the Azure specific properties
type ClusterProfileAzure ¶
type ClusterProfileAzure struct { KubernetesVersion string `json:"kubernetesVersion"` NodePools map[string]*NodePoolCreate `json:"nodePools,omitempty"` }
ClusterProfileAzure describes an Azure profile
type Config ¶
type Config struct { Location string `json:"location"` Name string `json:"name"` Properties struct { KubeConfig string `json:"kubeConfig"` } `json:"properties"` }
Config describes an Azure kubeconfig
type CreateAzureObjectStoreBucketProperties ¶
type CreateAzureObjectStoreBucketProperties struct { Location string `json:"location" binding:"required"` StorageAccount string `json:"storageAccount"` ResourceGroup string `json:"resourceGroup"` }
CreateAzureObjectStoreBucketProperties describes an Azure ObjectStore Container Creation request
type CreateClusterAzure ¶
type CreateClusterAzure struct { ResourceGroup string `json:"resourceGroup"` KubernetesVersion string `json:"kubernetesVersion"` NodePools map[string]*NodePoolCreate `json:"nodePools,omitempty"` }
CreateClusterAzure describes Azure fields of a CreateCluster request
func (*CreateClusterAzure) Validate ¶
func (azure *CreateClusterAzure) Validate() error
Validate validates azure cluster create request
type ListResponse ¶
ListResponse describes an Azure cluster list
type NodePoolCreate ¶
type NodePoolCreate struct { Autoscaling bool `json:"autoscaling"` MinCount int `json:"minCount"` MaxCount int `json:"maxCount"` Count int `json:"count"` NodeInstanceType string `json:"instanceType"` }
NodePoolCreate describes Azure's node fields of a CreateCluster request
type NodePoolUpdate ¶
type NodePoolUpdate struct { Autoscaling bool `json:"autoscaling"` MinCount int `json:"minCount"` MaxCount int `json:"maxCount"` Count int `json:"count"` }
NodePoolUpdate describes Azure's node count of a UpdateCluster request
type Profile ¶
type Profile struct { Name string `json:"name"` Autoscaling bool `json:"autoscaling"` MinCount int `json:"minCount"` MaxCount int `json:"maxCount"` Count int `json:"count"` VmSize string `json:"vmSize"` }
Profile describes an Azure agent pool
type Properties ¶
type Properties struct { ProvisioningState string `json:"provisioningState"` AgentPoolProfiles []Profile `json:"agentPoolProfiles"` Fqdn string `json:"fqdn"` }
Properties describes an Azure cluster properties
type ResponseWithValue ¶
type ResponseWithValue struct { StatusCode int `json:"status_code"` Value Value `json:"message,omitempty"` }
ResponseWithValue describes an Azure cluster
func (*ResponseWithValue) Update ¶
func (r *ResponseWithValue) Update(code int, Value Value)
Update updates `ResponseWithValue` with the given response code and value
type UpdateClusterAzure ¶
type UpdateClusterAzure struct {
NodePools map[string]*NodePoolUpdate `json:"nodePools,omitempty"`
}
UpdateClusterAzure describes Azure's node fields of an UpdateCluster request
func (*UpdateClusterAzure) Validate ¶
func (a *UpdateClusterAzure) Validate() error
Validate validates the update request (only azure part). If any of the fields is missing, the method fills with stored data.