Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=stenic.io
Index ¶
- Variables
- type CleanupPolicy
- type EngineType
- type OwnerID
- type SqlCredentials
- type SqlDatabase
- func (in *SqlDatabase) DeepCopy() *SqlDatabase
- func (in *SqlDatabase) DeepCopyInto(out *SqlDatabase)
- func (in *SqlDatabase) DeepCopyObject() runtime.Object
- func (r *SqlDatabase) Default()
- func (r *SqlDatabase) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *SqlDatabase) ValidateCreate() error
- func (r *SqlDatabase) ValidateDelete() error
- func (r *SqlDatabase) ValidateUpdate(old runtime.Object) error
- type SqlDatabaseList
- type SqlDatabaseSpec
- type SqlDatabaseStatus
- type SqlGrant
- type SqlGrantList
- type SqlGrantSpec
- type SqlGrantStatus
- type SqlHost
- type SqlHostList
- type SqlHostSpec
- type SqlHostStatus
- type SqlObjectRef
- type SqlUser
- func (in *SqlUser) DeepCopy() *SqlUser
- func (in *SqlUser) DeepCopyInto(out *SqlUser)
- func (in *SqlUser) DeepCopyObject() runtime.Object
- func (r *SqlUser) Default()
- func (r *SqlUser) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *SqlUser) ValidateCreate() error
- func (r *SqlUser) ValidateDelete() error
- func (r *SqlUser) ValidateUpdate(old runtime.Object) error
- type SqlUserList
- type SqlUserSpec
- type SqlUserStatus
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "stenic.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type CleanupPolicy ¶
type CleanupPolicy string
CleanupPolicy describes how the resource will be handled on delete. +kubebuilder:validation:Enum=Retain;Delete
const ( // Keep CleanupPolicyRetain CleanupPolicy = "Retain" // ForbidConcurrent forbids concurrent runs, skipping next run if previous // hasn't finished yet. CleanupPolicyDelete CleanupPolicy = "Delete" )
type EngineType ¶
type EngineType string
+kubebuilder:validation:Enum=Mysql
const ( // Keep EngineTypeMysql EngineType = "Mysql" )
type SqlCredentials ¶
type SqlCredentials struct { // Username for the sql user Username string `json:"username,omitempty"` // Password for the sql user Password string `json:"password,omitempty"` }
func (*SqlCredentials) DeepCopy ¶
func (in *SqlCredentials) DeepCopy() *SqlCredentials
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlCredentials.
func (*SqlCredentials) DeepCopyInto ¶
func (in *SqlCredentials) DeepCopyInto(out *SqlCredentials)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SqlDatabase ¶
type SqlDatabase struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SqlDatabaseSpec `json:"spec,omitempty"` Status SqlDatabaseStatus `json:"status,omitempty"` }
SqlDatabase is the Schema for the sqldatabases API
func (*SqlDatabase) DeepCopy ¶
func (in *SqlDatabase) DeepCopy() *SqlDatabase
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlDatabase.
func (*SqlDatabase) DeepCopyInto ¶
func (in *SqlDatabase) DeepCopyInto(out *SqlDatabase)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SqlDatabase) DeepCopyObject ¶
func (in *SqlDatabase) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SqlDatabase) Default ¶ added in v1.3.0
func (r *SqlDatabase) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*SqlDatabase) SetupWebhookWithManager ¶ added in v1.3.0
func (r *SqlDatabase) SetupWebhookWithManager(mgr ctrl.Manager) error
func (*SqlDatabase) ValidateCreate ¶ added in v1.3.0
func (r *SqlDatabase) ValidateCreate() error
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*SqlDatabase) ValidateDelete ¶ added in v1.3.0
func (r *SqlDatabase) ValidateDelete() error
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
func (*SqlDatabase) ValidateUpdate ¶ added in v1.3.0
func (r *SqlDatabase) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook.Validator so a webhook will be registered for the type
type SqlDatabaseList ¶
type SqlDatabaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SqlDatabase `json:"items"` }
SqlDatabaseList contains a list of SqlDatabase
func (*SqlDatabaseList) DeepCopy ¶
func (in *SqlDatabaseList) DeepCopy() *SqlDatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlDatabaseList.
func (*SqlDatabaseList) DeepCopyInto ¶
func (in *SqlDatabaseList) DeepCopyInto(out *SqlDatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SqlDatabaseList) DeepCopyObject ¶
func (in *SqlDatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SqlDatabaseSpec ¶
type SqlDatabaseSpec struct { // Reference to the SqlHost HostRef SqlObjectRef `json:"hostRef"` // Name of the external database DatabaseName string `json:"databaseName"` // Specifies how to handle deletion of a SqlUser. // Valid values are: // - "Retain" (default): keeps the external resource when the object is deleted; // - "Delete": deletes the external resource when the object is deleted; // +optional CleanupPolicy CleanupPolicy `json:"cleanupPolicy,omitempty"` }
SqlDatabaseSpec defines the desired state of SqlDatabase
func (*SqlDatabaseSpec) DeepCopy ¶
func (in *SqlDatabaseSpec) DeepCopy() *SqlDatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlDatabaseSpec.
func (*SqlDatabaseSpec) DeepCopyInto ¶
func (in *SqlDatabaseSpec) DeepCopyInto(out *SqlDatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SqlDatabaseStatus ¶
type SqlDatabaseStatus struct { // Boolean indicating the creation process has started Created bool `json:"created"` // Timestamp when the user was first created. CreationTimestamp *metav1.Time `json:"creationTimestamp,omitempty"` // Timestamp when the user was last updated/checked. LastModifiedTimestamp *metav1.Time `json:"lastModifiedTimestamp,omitempty"` // String used to identify owership OwnerID OwnerID `json:"ownerID,omitempty"` }
SqlDatabaseStatus defines the observed state of SqlDatabase
func (*SqlDatabaseStatus) DeepCopy ¶
func (in *SqlDatabaseStatus) DeepCopy() *SqlDatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlDatabaseStatus.
func (*SqlDatabaseStatus) DeepCopyInto ¶
func (in *SqlDatabaseStatus) DeepCopyInto(out *SqlDatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SqlGrant ¶
type SqlGrant struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SqlGrantSpec `json:"spec,omitempty"` Status SqlGrantStatus `json:"status,omitempty"` }
SqlGrant is the Schema for the sqlgrant API
func (*SqlGrant) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlGrant.
func (*SqlGrant) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SqlGrant) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SqlGrantList ¶
type SqlGrantList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SqlGrant `json:"items"` }
SqlGrantList contains a list of SqlGrant
func (*SqlGrantList) DeepCopy ¶
func (in *SqlGrantList) DeepCopy() *SqlGrantList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlGrantList.
func (*SqlGrantList) DeepCopyInto ¶
func (in *SqlGrantList) DeepCopyInto(out *SqlGrantList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SqlGrantList) DeepCopyObject ¶
func (in *SqlGrantList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SqlGrantSpec ¶
type SqlGrantSpec struct { // Reference to the SqlUser UserRef SqlObjectRef `json:"userRef"` // Reference to the SqlUser DatabaseRef SqlObjectRef `json:"databaseRef"` // List of grants Grants []string `json:"grants"` // Specifies how to handle deletion of a SqlUser. // Valid values are: // - "Retain" (default): keeps the external resource when the object is deleted; // - "Delete": deletes the external resource when the object is deleted; // +optional CleanupPolicy CleanupPolicy `json:"cleanupPolicy,omitempty"` }
SqlGrantSpec defines the desired state of SqlGrant
func (*SqlGrantSpec) DeepCopy ¶
func (in *SqlGrantSpec) DeepCopy() *SqlGrantSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlGrantSpec.
func (*SqlGrantSpec) DeepCopyInto ¶
func (in *SqlGrantSpec) DeepCopyInto(out *SqlGrantSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SqlGrantStatus ¶
type SqlGrantStatus struct { // Boolean indicating the creation process has started Created bool `json:"created"` // Timestamp when the user was first created. CreationTimestamp *metav1.Time `json:"creationTimestamp,omitempty"` // Timestamp when the user was last updated/checked. LastModifiedTimestamp *metav1.Time `json:"lastModifiedTimestamp,omitempty"` CurrentGrants []string `json:"currentGrants,omitempty"` // String used to identify owership OwnerID OwnerID `json:"ownerID,omitempty"` }
SqlGrantStatus defines the observed state of SqlGrant
func (*SqlGrantStatus) DeepCopy ¶
func (in *SqlGrantStatus) DeepCopy() *SqlGrantStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlGrantStatus.
func (*SqlGrantStatus) DeepCopyInto ¶
func (in *SqlGrantStatus) DeepCopyInto(out *SqlGrantStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SqlHost ¶
type SqlHost struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SqlHostSpec `json:"spec,omitempty"` Status SqlHostStatus `json:"status,omitempty"` }
SqlHost is the Schema for the sqlhosts API
func (*SqlHost) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlHost.
func (*SqlHost) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SqlHost) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SqlHostList ¶
type SqlHostList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SqlHost `json:"items"` }
SqlHostList contains a list of SqlHost
func (*SqlHostList) DeepCopy ¶
func (in *SqlHostList) DeepCopy() *SqlHostList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlHostList.
func (*SqlHostList) DeepCopyInto ¶
func (in *SqlHostList) DeepCopyInto(out *SqlHostList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SqlHostList) DeepCopyObject ¶
func (in *SqlHostList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SqlHostSpec ¶
type SqlHostSpec struct { // Engine of the external endpoint (like Mysql) Engine EngineType `json:"engine"` // Endpoint to manage DSN string `json:"dsn"` }
SqlHostSpec defines the desired state of SqlHost
func (*SqlHostSpec) DeepCopy ¶
func (in *SqlHostSpec) DeepCopy() *SqlHostSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlHostSpec.
func (*SqlHostSpec) DeepCopyInto ¶
func (in *SqlHostSpec) DeepCopyInto(out *SqlHostSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SqlHostStatus ¶
type SqlHostStatus struct { }
SqlHostStatus defines the observed state of SqlHost
func (*SqlHostStatus) DeepCopy ¶
func (in *SqlHostStatus) DeepCopy() *SqlHostStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlHostStatus.
func (*SqlHostStatus) DeepCopyInto ¶
func (in *SqlHostStatus) DeepCopyInto(out *SqlHostStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SqlObjectRef ¶
type SqlObjectRef struct { // Name of the SqlObject Name string `json:"name,omitempty"` // Namespace of the SqlObject Namespace string `json:"namespace,omitempty"` }
func (*SqlObjectRef) DeepCopy ¶
func (in *SqlObjectRef) DeepCopy() *SqlObjectRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlObjectRef.
func (*SqlObjectRef) DeepCopyInto ¶
func (in *SqlObjectRef) DeepCopyInto(out *SqlObjectRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SqlUser ¶
type SqlUser struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SqlUserSpec `json:"spec,omitempty"` Status SqlUserStatus `json:"status,omitempty"` }
SqlUser is the Schema for the sqlusers API
func (*SqlUser) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlUser.
func (*SqlUser) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SqlUser) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*SqlUser) Default ¶ added in v1.3.0
func (r *SqlUser) Default()
Default implements webhook.Defaulter so a webhook will be registered for the type
func (*SqlUser) SetupWebhookWithManager ¶ added in v1.3.0
func (*SqlUser) ValidateCreate ¶ added in v1.3.0
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*SqlUser) ValidateDelete ¶ added in v1.3.0
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type SqlUserList ¶
type SqlUserList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []SqlUser `json:"items"` }
SqlUserList contains a list of SqlUser
func (*SqlUserList) DeepCopy ¶
func (in *SqlUserList) DeepCopy() *SqlUserList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlUserList.
func (*SqlUserList) DeepCopyInto ¶
func (in *SqlUserList) DeepCopyInto(out *SqlUserList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SqlUserList) DeepCopyObject ¶
func (in *SqlUserList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SqlUserSpec ¶
type SqlUserSpec struct { // Reference to the SqlHost HostRef SqlObjectRef `json:"hostRef"` // Credentials to use for creating the user Credentials SqlCredentials `json:"credentials,omitempty"` // Specifies how to handle deletion of a SqlUser. // Valid values are: // - "Retain" (default): keeps the external resource when the object is deleted; // - "Delete": deletes the external resource when the object is deleted; // +optional CleanupPolicy CleanupPolicy `json:"cleanupPolicy,omitempty"` }
SqlUserSpec defines the desired state of SqlUser
func (*SqlUserSpec) DeepCopy ¶
func (in *SqlUserSpec) DeepCopy() *SqlUserSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlUserSpec.
func (*SqlUserSpec) DeepCopyInto ¶
func (in *SqlUserSpec) DeepCopyInto(out *SqlUserSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SqlUserStatus ¶
type SqlUserStatus struct { // Boolean indicating the creation process has started Created bool `json:"created"` // Timestamp when the user was first created. CreationTimestamp *metav1.Time `json:"creationTimestamp,omitempty"` // Timestamp when the user was last updated/checked. LastModifiedTimestamp *metav1.Time `json:"lastModifiedTimestamp,omitempty"` // String used to identify owership OwnerID OwnerID `json:"ownerID,omitempty"` }
SqlUserStatus defines the observed state of SqlUser
func (*SqlUserStatus) DeepCopy ¶
func (in *SqlUserStatus) DeepCopy() *SqlUserStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SqlUserStatus.
func (*SqlUserStatus) DeepCopyInto ¶
func (in *SqlUserStatus) DeepCopyInto(out *SqlUserStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.