Documentation
¶
Overview ¶
+groupName=cloud.pharmer.io
Index ¶
- Constants
- Variables
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type CloudProvider
- type CloudProviderList
- type CloudProviderSpec
- type Credential
- type CredentialField
- type CredentialFormat
- type CredentialFormatList
- type CredentialFormatSpec
- type CredentialList
- type CredentialSpec
- type KubernetesVersion
- type KubernetesVersionList
- type KubernetesVersionSpec
- type MachineType
- type MachineTypeList
- type MachineTypeSpec
- type Region
Constants ¶
const ( ResourceCodeCredential = "cred" ResourceKindCredential = "Credential" ResourceNameCredential = "credential" ResourceTypeCredential = "credentials" ResourceProviderCredential = "provider" )
Variables ¶
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: cloud.GroupName, Version: "v1"}
Functions ¶
func GetOpenAPIDefinitions ¶
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type CloudProvider ¶
type CloudProvider struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CloudProviderSpec `json:"spec,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=cloudproviders,singular=cloudprovider,scope=Cluster,categories={pharmer,appscode}
func (CloudProvider) CustomResourceDefinition ¶ added in v0.5.0
func (_ CloudProvider) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*CloudProvider) DeepCopy ¶
func (in *CloudProvider) DeepCopy() *CloudProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProvider.
func (*CloudProvider) DeepCopyInto ¶
func (in *CloudProvider) DeepCopyInto(out *CloudProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudProvider) DeepCopyObject ¶
func (in *CloudProvider) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudProviderList ¶
type CloudProviderList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CloudProvider `json:"items"` }
CloudProviderList contains a list of CloudProvider
func (*CloudProviderList) DeepCopy ¶
func (in *CloudProviderList) DeepCopy() *CloudProviderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProviderList.
func (*CloudProviderList) DeepCopyInto ¶
func (in *CloudProviderList) DeepCopyInto(out *CloudProviderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CloudProviderList) DeepCopyObject ¶
func (in *CloudProviderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CloudProviderSpec ¶
type CloudProviderSpec struct { Regions []Region `json:"regions,omitempty"` MachineTypes []MachineType `json:"machineTypes,omitempty"` CredentialFormat CredentialFormat `json:"credentialFormat,omitempty"` KubernetesVersions []KubernetesVersion `json:"kubernetesVersions,omitempty"` }
CloudProviderSpec defines the desired state of CloudProvider
func (*CloudProviderSpec) DeepCopy ¶
func (in *CloudProviderSpec) DeepCopy() *CloudProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudProviderSpec.
func (*CloudProviderSpec) DeepCopyInto ¶
func (in *CloudProviderSpec) DeepCopyInto(out *CloudProviderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Credential ¶
type Credential struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CredentialSpec `json:"spec,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=credentials,singular=credential,scope=Cluster,categories={pharmer,appscode}
func (Credential) CustomResourceDefinition ¶ added in v0.5.0
func (_ Credential) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*Credential) DeepCopy ¶
func (in *Credential) DeepCopy() *Credential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Credential.
func (*Credential) DeepCopyInto ¶
func (in *Credential) DeepCopyInto(out *Credential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Credential) DeepCopyObject ¶
func (in *Credential) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CredentialField ¶
type CredentialField struct { Envconfig string `json:"envconfig,omitempty"` Form string `json:"form,omitempty"` JSON string `json:"json,omitempty"` Label string `json:"label,omitempty"` Input string `json:"input,omitempty"` }
func (*CredentialField) DeepCopy ¶
func (in *CredentialField) DeepCopy() *CredentialField
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialField.
func (*CredentialField) DeepCopyInto ¶
func (in *CredentialField) DeepCopyInto(out *CredentialField)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CredentialFormat ¶
type CredentialFormat struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CredentialFormatSpec `json:"spec,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=credentialformats,singular=credentialformat,scope=Cluster,categories={pharmer,appscode}
func (CredentialFormat) CustomResourceDefinition ¶ added in v0.5.0
func (_ CredentialFormat) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*CredentialFormat) DeepCopy ¶
func (in *CredentialFormat) DeepCopy() *CredentialFormat
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialFormat.
func (*CredentialFormat) DeepCopyInto ¶
func (in *CredentialFormat) DeepCopyInto(out *CredentialFormat)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CredentialFormat) DeepCopyObject ¶
func (in *CredentialFormat) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CredentialFormatList ¶
type CredentialFormatList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []CredentialFormat `json:"items"` }
CredentialFormatList contains a list of CredentialFormat
func (*CredentialFormatList) DeepCopy ¶
func (in *CredentialFormatList) DeepCopy() *CredentialFormatList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialFormatList.
func (*CredentialFormatList) DeepCopyInto ¶
func (in *CredentialFormatList) DeepCopyInto(out *CredentialFormatList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CredentialFormatList) DeepCopyObject ¶
func (in *CredentialFormatList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CredentialFormatSpec ¶
type CredentialFormatSpec struct { Provider string `json:"provider"` DisplayFormat string `json:"displayFormat"` Fields []CredentialField `json:"fields"` }
CredentialFormatSpec defines the desired state of CredentialFormat
func (*CredentialFormatSpec) DeepCopy ¶
func (in *CredentialFormatSpec) DeepCopy() *CredentialFormatSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialFormatSpec.
func (*CredentialFormatSpec) DeepCopyInto ¶
func (in *CredentialFormatSpec) DeepCopyInto(out *CredentialFormatSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CredentialList ¶
type CredentialList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Credential `json:"items"` }
CredentialList contains a list of Credential
func (*CredentialList) DeepCopy ¶
func (in *CredentialList) DeepCopy() *CredentialList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialList.
func (*CredentialList) DeepCopyInto ¶
func (in *CredentialList) DeepCopyInto(out *CredentialList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CredentialList) DeepCopyObject ¶
func (in *CredentialList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CredentialSpec ¶
type CredentialSpec struct { Provider string `json:"provider"` Data map[string]string `json:"data"` }
CredentialSpec defines the desired state of Credential
func (*CredentialSpec) DeepCopy ¶
func (in *CredentialSpec) DeepCopy() *CredentialSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialSpec.
func (*CredentialSpec) DeepCopyInto ¶
func (in *CredentialSpec) DeepCopyInto(out *CredentialSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubernetesVersion ¶
type KubernetesVersion struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec KubernetesVersionSpec `json:"spec,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=kubernetesversions,singular=kubernetesversion,scope=Cluster,categories={pharmer,appscode}
func (KubernetesVersion) CustomResourceDefinition ¶ added in v0.5.0
func (_ KubernetesVersion) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*KubernetesVersion) DeepCopy ¶
func (in *KubernetesVersion) DeepCopy() *KubernetesVersion
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesVersion.
func (*KubernetesVersion) DeepCopyInto ¶
func (in *KubernetesVersion) DeepCopyInto(out *KubernetesVersion)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubernetesVersion) DeepCopyObject ¶
func (in *KubernetesVersion) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubernetesVersionList ¶
type KubernetesVersionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KubernetesVersion `json:"items"` }
KubernetesVersionList contains a list of KubernetesVersion
func (*KubernetesVersionList) DeepCopy ¶
func (in *KubernetesVersionList) DeepCopy() *KubernetesVersionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesVersionList.
func (*KubernetesVersionList) DeepCopyInto ¶
func (in *KubernetesVersionList) DeepCopyInto(out *KubernetesVersionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KubernetesVersionList) DeepCopyObject ¶
func (in *KubernetesVersionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type KubernetesVersionSpec ¶
type KubernetesVersionSpec struct { Major string `json:"major,omitempty"` Minor string `json:"minor,omitempty"` GitVersion string `json:"gitVersion"` Envs map[string]bool `json:"envs,omitempty"` }
KubernetesVersionSpec defines the desired state of KubernetesVersion
func (*KubernetesVersionSpec) DeepCopy ¶
func (in *KubernetesVersionSpec) DeepCopy() *KubernetesVersionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesVersionSpec.
func (*KubernetesVersionSpec) DeepCopyInto ¶
func (in *KubernetesVersionSpec) DeepCopyInto(out *KubernetesVersionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MachineType ¶
type MachineType struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MachineTypeSpec `json:"spec,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=machinetypes,singular=machinetype,scope=Cluster,categories={pharmer,appscode} +kubebuilder:printcolumn:name="SKU",type="string",JSONPath=".spec.sku" +kubebuilder:printcolumn:name="CPU",type="string",JSONPath=".spec.cpu" +kubebuilder:printcolumn:name="RAM",type="string",JSONPath=".spec.ram"
func (MachineType) CustomResourceDefinition ¶ added in v0.5.0
func (_ MachineType) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
func (*MachineType) DeepCopy ¶
func (in *MachineType) DeepCopy() *MachineType
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineType.
func (*MachineType) DeepCopyInto ¶
func (in *MachineType) DeepCopyInto(out *MachineType)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineType) DeepCopyObject ¶
func (in *MachineType) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineTypeList ¶
type MachineTypeList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []MachineType `json:"items"` }
MachineTypeList contains a list of MachineType
func (*MachineTypeList) DeepCopy ¶
func (in *MachineTypeList) DeepCopy() *MachineTypeList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTypeList.
func (*MachineTypeList) DeepCopyInto ¶
func (in *MachineTypeList) DeepCopyInto(out *MachineTypeList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MachineTypeList) DeepCopyObject ¶
func (in *MachineTypeList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MachineTypeSpec ¶
type MachineTypeSpec struct { SKU string `json:"sku"` Description string `json:"description,omitempty"` Category string `json:"category,omitempty"` CPU *resource.Quantity `json:"cpu"` RAM *resource.Quantity `json:"ram"` Disk *resource.Quantity `json:"disk,omitempty"` Regions []string `json:"regions,omitempty"` Zones []string `json:"zones,omitempty"` Deprecated bool `json:"deprecated,omitempty"` }
MachineTypeSpec defines the desired state of MachineType
func (*MachineTypeSpec) DeepCopy ¶
func (in *MachineTypeSpec) DeepCopy() *MachineTypeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MachineTypeSpec.
func (*MachineTypeSpec) DeepCopyInto ¶
func (in *MachineTypeSpec) DeepCopyInto(out *MachineTypeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Region ¶
type Region struct { Region string `json:"region"` Zones []string `json:"zones,omitempty"` Location string `json:"location,omitempty"` }
Region defines the desired state of Region
func (*Region) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Region.
func (*Region) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files
¶
- cloudprovider_helpers.go
- cloudprovider_types.go
- credential_helpers.go
- credential_types.go
- credentialformat_helpers.go
- credentialformat_types.go
- doc.go
- kubernetesversion_helpers.go
- kubernetesversion_types.go
- machinetype_helpers.go
- machinetype_types.go
- openapi_generated.go
- register.go
- zz_generated.deepcopy.go