Documentation ¶
Overview ¶
+groupName=cloud.appscode.com
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type AWSCredential
- type AzureCredential
- type AzureStorageCredential
- type CloudProvider
- type CloudProviderList
- type CloudProviderSpec
- type Credential
- func (cred *Credential) ApplyLabels(resourceName, credType string, ownerID int64)
- func (_ Credential) CustomResourceDefinition() *apiextensions.CustomResourceDefinition
- func (in *Credential) DeepCopy() *Credential
- func (in *Credential) DeepCopyInto(out *Credential)
- func (in *Credential) DeepCopyObject() runtime.Object
- func (_ Credential) FormatLabels(resourceName, credType string, ownerID int64) labels.Selector
- type CredentialList
- type CredentialSpec
- type CredentialStatus
- type CredentialType
- type DigitalOceanCredential
- type GoogleCloudCredential
- type GoogleOAuthCredential
- type LinodeCredential
- type MachineType
- type MachineTypeList
- type MachineTypeSpec
- type PacketCredential
- type RancherCredential
- type Region
- type ScalewayCredential
- type SwiftCredential
- type VultrCredential
Constants ¶
const ( ResourceKindCredential = "Credential" ResourceCredential = "credential" ResourceCredentials = "credentials" )
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: "v1alpha1"}
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AWSCredential ¶
type AWSCredential struct { AccessKeyID string `json:"accessKeyID"` SecretAccessKey string `json:"secretAccessKey"` }
func (*AWSCredential) DeepCopy ¶
func (in *AWSCredential) DeepCopy() *AWSCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSCredential.
func (*AWSCredential) DeepCopyInto ¶
func (in *AWSCredential) DeepCopyInto(out *AWSCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureCredential ¶
type AzureCredential struct { TenantID string `json:"tenantID"` SubscriptionID string `json:"subscriptionID"` ClientID string `json:"clientID"` ClientSecret string `json:"clientSecret"` }
func (*AzureCredential) DeepCopy ¶
func (in *AzureCredential) DeepCopy() *AzureCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureCredential.
func (*AzureCredential) DeepCopyInto ¶
func (in *AzureCredential) DeepCopyInto(out *AzureCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AzureStorageCredential ¶
func (*AzureStorageCredential) DeepCopy ¶
func (in *AzureStorageCredential) DeepCopy() *AzureStorageCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AzureStorageCredential.
func (*AzureStorageCredential) DeepCopyInto ¶
func (in *AzureStorageCredential) DeepCopyInto(out *AzureStorageCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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={cloud,appscode}
func (CloudProvider) CustomResourceDefinition ¶
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"` }
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"` Status CredentialStatus `json:"status,omitempty"` }
+kubebuilder:object:root=true +kubebuilder:resource:path=credentials,singular=credential,shortName=cred,scope=Cluster,categories={kubernetes,resource-model,appscode} +kubebuilder:subresource:status
func (*Credential) ApplyLabels ¶ added in v0.0.8
func (cred *Credential) ApplyLabels(resourceName, credType string, ownerID int64)
func (Credential) CustomResourceDefinition ¶
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.
func (Credential) FormatLabels ¶
func (_ Credential) FormatLabels(resourceName, credType string, ownerID int64) labels.Selector
type CredentialList ¶
type CredentialList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Credential `json:"items,omitempty"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true
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 { Name string `json:"name"` Type CredentialType `json:"type"` OwnerID int64 `json:"ownerID"` //+optional AWS *AWSCredential `json:"aws,omitempty"` //+optional Azure *AzureCredential `json:"azure,omitempty"` //+optional AzureStorage *AzureStorageCredential `json:"azureStorage,omitempty"` //+optional DigitalOcean *DigitalOceanCredential `json:"digitalocean,omitempty"` //+optional GoogleCloud *GoogleCloudCredential `json:"googleCloud,omitempty"` //+optional GoogleOAuth *GoogleOAuthCredential `json:"googleOAuth,omitempty"` //+optional Linode *LinodeCredential `json:"linode,omitempty"` //+optional Packet *PacketCredential `json:"packet,omitempty"` //+optional Rancher *RancherCredential `json:"rancher,omitempty"` //+optional Scaleway *ScalewayCredential `json:"scaleway,omitempty"` //+optional Swift *SwiftCredential `json:"swift,omitempty"` //+optional Vultr *VultrCredential `json:"vultr,omitempty"` }
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 CredentialStatus ¶
type CredentialStatus struct { // ObservedGeneration is the most recent generation observed for this resource. It corresponds to the // resource's generation, which is updated on mutation by the API Server. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty"` }
func (*CredentialStatus) DeepCopy ¶
func (in *CredentialStatus) DeepCopy() *CredentialStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialStatus.
func (*CredentialStatus) DeepCopyInto ¶
func (in *CredentialStatus) DeepCopyInto(out *CredentialStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CredentialType ¶
type CredentialType string
+kubebuilder:validation:Enum=Aws;Azure;AzureStorage;DigitalOcean;GoogleCloud;GoogleOAuth;Linode;Packet;Rancher;Scaleway;Vultr
const ( CredentialTypeAWS CredentialType = "Aws" CredentialTypeAzure CredentialType = "Azure" CredentialTypeAzureStorage CredentialType = "AzureStorage" CredentialTypeDigitalOcean CredentialType = "DigitalOcean" CredentialTypeGoogleCloud CredentialType = "GoogleCloud" CredentialTypeGoogleOAuth CredentialType = "GoogleOAuth" CredentialTypeLinode CredentialType = "Linode" CredentialTypePacket CredentialType = "Packet" CredentialTypeRancher CredentialType = "Rancher" CredentialTypeScaleway CredentialType = "Scaleway" CredentialTypeVultr CredentialType = "Vultr" )
type DigitalOceanCredential ¶
type DigitalOceanCredential struct {
Token string `json:"token"`
}
func (*DigitalOceanCredential) DeepCopy ¶
func (in *DigitalOceanCredential) DeepCopy() *DigitalOceanCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DigitalOceanCredential.
func (*DigitalOceanCredential) DeepCopyInto ¶
func (in *DigitalOceanCredential) DeepCopyInto(out *DigitalOceanCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GoogleCloudCredential ¶
type GoogleCloudCredential struct { ProjectID string `json:"projectID"` ServiceAccount string `json:"serviceAccount"` }
func (*GoogleCloudCredential) DeepCopy ¶
func (in *GoogleCloudCredential) DeepCopy() *GoogleCloudCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoogleCloudCredential.
func (*GoogleCloudCredential) DeepCopyInto ¶
func (in *GoogleCloudCredential) DeepCopyInto(out *GoogleCloudCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GoogleOAuthCredential ¶
type GoogleOAuthCredential struct { AccessToken string `json:"accessToken"` // +optional RefreshToken string `json:"refreshToken,omitempty"` // +optional Scopes []string `json:"scopes,omitempty"` // +optional Expiry int64 `json:"expiry,omitempty"` }
func (*GoogleOAuthCredential) DeepCopy ¶
func (in *GoogleOAuthCredential) DeepCopy() *GoogleOAuthCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GoogleOAuthCredential.
func (*GoogleOAuthCredential) DeepCopyInto ¶
func (in *GoogleOAuthCredential) DeepCopyInto(out *GoogleOAuthCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LinodeCredential ¶
type LinodeCredential struct {
Token string `json:"token"`
}
func (*LinodeCredential) DeepCopy ¶
func (in *LinodeCredential) DeepCopy() *LinodeCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LinodeCredential.
func (*LinodeCredential) DeepCopyInto ¶
func (in *LinodeCredential) DeepCopyInto(out *LinodeCredential)
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={cloud,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 ¶
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 PacketCredential ¶
func (*PacketCredential) DeepCopy ¶
func (in *PacketCredential) DeepCopy() *PacketCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PacketCredential.
func (*PacketCredential) DeepCopyInto ¶
func (in *PacketCredential) DeepCopyInto(out *PacketCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RancherCredential ¶ added in v0.0.8
type RancherCredential struct { AccessKeyID string `json:"accessKeyID"` SecretAccessKey string `json:"secretAccessKey"` Endpoint string `json:"endpoint"` }
func (*RancherCredential) DeepCopy ¶ added in v0.0.8
func (in *RancherCredential) DeepCopy() *RancherCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RancherCredential.
func (*RancherCredential) DeepCopyInto ¶ added in v0.0.8
func (in *RancherCredential) DeepCopyInto(out *RancherCredential)
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.
type ScalewayCredential ¶
type ScalewayCredential struct { Organization string `json:"organization"` Token string `json:"token"` }
func (*ScalewayCredential) DeepCopy ¶
func (in *ScalewayCredential) DeepCopy() *ScalewayCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalewayCredential.
func (*ScalewayCredential) DeepCopyInto ¶
func (in *ScalewayCredential) DeepCopyInto(out *ScalewayCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SwiftCredential ¶
type SwiftCredential struct { Username string `json:"username"` Password string `json:"password"` TenantName string `json:"tenantName,omitempty"` TenantAuthURL string `json:"tenantAuthURL,omitempty"` Domain string `json:"domain,omitempty"` Region string `json:"region,omitempty"` TenantId string `json:"tenantID,omitempty"` TenantDomain string `json:"tenantDomain,omitempty"` }
func (*SwiftCredential) DeepCopy ¶
func (in *SwiftCredential) DeepCopy() *SwiftCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SwiftCredential.
func (*SwiftCredential) DeepCopyInto ¶
func (in *SwiftCredential) DeepCopyInto(out *SwiftCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type VultrCredential ¶
type VultrCredential struct {
Token string `json:"token"`
}
func (*VultrCredential) DeepCopy ¶
func (in *VultrCredential) DeepCopy() *VultrCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VultrCredential.
func (*VultrCredential) DeepCopyInto ¶
func (in *VultrCredential) DeepCopyInto(out *VultrCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.