Documentation
¶
Index ¶
- Constants
- type AuthenticationClass
- type AuthenticationProvider
- type Database
- type DatabaseConnection
- type DatabaseConnectionCredentialSpec
- type DatabaseConnectionList
- type DatabaseConnectionSpec
- type DatabaseCredentialSpec
- type DatabaseList
- type DatabaseProvider
- type DatabaseSpec
- type MysqlProvider
- type OIDCProvider
- type PostgresProvider
- type RedisProvider
- type ResponseType
- type S3Bucket
- type S3BucketCredential
- type S3BucketList
- type S3BucketSpec
- type S3Connection
- type S3ConnectionList
- type S3ConnectionSpec
- type S3Credential
Constants ¶
const S3BucketFinalizer = "s3bucket.finalizers.stack.zncdata.net"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticationClass ¶
type AuthenticationClass struct {
// +kubebuilder:validation:Required
AuthenticationProvider string `json:"provider,omitempty"`
}
func (*AuthenticationClass) DeepCopy ¶
func (in *AuthenticationClass) DeepCopy() *AuthenticationClass
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationClass.
func (*AuthenticationClass) DeepCopyInto ¶
func (in *AuthenticationClass) DeepCopyInto(out *AuthenticationClass)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AuthenticationProvider ¶
type AuthenticationProvider struct {
// +kubebuilder:validation:Optional
OIDC *OIDCProvider `json:"oidc,omitempty"`
}
func (*AuthenticationProvider) DeepCopy ¶
func (in *AuthenticationProvider) DeepCopy() *AuthenticationProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthenticationProvider.
func (*AuthenticationProvider) DeepCopyInto ¶
func (in *AuthenticationProvider) DeepCopyInto(out *AuthenticationProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Database ¶
type Database struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DatabaseSpec `json:"spec,omitempty"`
Status status.Status `json:"status,omitempty"`
}
Database is the Schema for the databases API
func (*Database) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Database.
func (*Database) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Database) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseConnection ¶
type DatabaseConnection struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec DatabaseConnectionSpec `json:"spec,omitempty"`
Status status.Status `json:"status,omitempty"`
}
DatabaseConnection is the Schema for the databaseconnections API
func (*DatabaseConnection) DeepCopy ¶
func (in *DatabaseConnection) DeepCopy() *DatabaseConnection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnection.
func (*DatabaseConnection) DeepCopyInto ¶
func (in *DatabaseConnection) DeepCopyInto(out *DatabaseConnection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseConnection) DeepCopyObject ¶
func (in *DatabaseConnection) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseConnectionCredentialSpec ¶
type DatabaseConnectionCredentialSpec struct {
ExistSecret string `json:"existingSecret,omitempty"`
}
DatabaseConnectionCredentialSpec include ExistSecret, it is encrypted by base64.
func (*DatabaseConnectionCredentialSpec) DeepCopy ¶
func (in *DatabaseConnectionCredentialSpec) DeepCopy() *DatabaseConnectionCredentialSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectionCredentialSpec.
func (*DatabaseConnectionCredentialSpec) DeepCopyInto ¶
func (in *DatabaseConnectionCredentialSpec) DeepCopyInto(out *DatabaseConnectionCredentialSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseConnectionList ¶
type DatabaseConnectionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DatabaseConnection `json:"items"`
}
DatabaseConnectionList contains a list of DatabaseConnection
func (*DatabaseConnectionList) DeepCopy ¶
func (in *DatabaseConnectionList) DeepCopy() *DatabaseConnectionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectionList.
func (*DatabaseConnectionList) DeepCopyInto ¶
func (in *DatabaseConnectionList) DeepCopyInto(out *DatabaseConnectionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseConnectionList) DeepCopyObject ¶
func (in *DatabaseConnectionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseConnectionSpec ¶
type DatabaseConnectionSpec struct {
// +kubebuilder:validation:Required
Provider *DatabaseProvider `json:"provider,omitempty"`
Default bool `json:"default,omitempty"`
}
DatabaseConnectionSpec defines the desired state of DatabaseConnection
func (*DatabaseConnectionSpec) DeepCopy ¶
func (in *DatabaseConnectionSpec) DeepCopy() *DatabaseConnectionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectionSpec.
func (*DatabaseConnectionSpec) DeepCopyInto ¶
func (in *DatabaseConnectionSpec) DeepCopyInto(out *DatabaseConnectionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseCredentialSpec ¶
type DatabaseCredentialSpec struct {
ExistSecret string `json:"existingSecret,omitempty"`
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"`
}
DatabaseCredentialSpec include: Username and Password or ExistSecret. ExistSecret include Username and Password ,it is encrypted by base64.
func (*DatabaseCredentialSpec) DeepCopy ¶
func (in *DatabaseCredentialSpec) DeepCopy() *DatabaseCredentialSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseCredentialSpec.
func (*DatabaseCredentialSpec) DeepCopyInto ¶
func (in *DatabaseCredentialSpec) DeepCopyInto(out *DatabaseCredentialSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseList ¶
type DatabaseList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Database `json:"items"`
}
DatabaseList contains a list of Database
func (*DatabaseList) DeepCopy ¶
func (in *DatabaseList) DeepCopy() *DatabaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseList.
func (*DatabaseList) DeepCopyInto ¶
func (in *DatabaseList) DeepCopyInto(out *DatabaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DatabaseList) DeepCopyObject ¶
func (in *DatabaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DatabaseProvider ¶
type DatabaseProvider struct {
// +kubebuilder:validation:Optional
Mysq *MysqlProvider `json:"mysql,omitempty"`
// +kubebuilder:validation:Optional
Postgres *PostgresProvider `json:"postgres,omitempty"`
// +kubebuilder:validation:Optional
Redis *RedisProvider `json:"redis,omitempty"`
}
DatabaseProvider defines all types database provider of DatabaseConnection
func (*DatabaseProvider) DeepCopy ¶
func (in *DatabaseProvider) DeepCopy() *DatabaseProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseProvider.
func (*DatabaseProvider) DeepCopyInto ¶
func (in *DatabaseProvider) DeepCopyInto(out *DatabaseProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DatabaseSpec ¶
type DatabaseSpec struct {
//+kubebuilder:validation:Required
Name string `json:"name,omitempty"`
//+kubebuilder:validation:Required
Reference string `json:"reference,omitempty"`
//+kubebuilder:validation:Required
Credential *DatabaseCredentialSpec `json:"credential,omitempty"`
}
DatabaseSpec defines the desired connection info of Database
func (*DatabaseSpec) DeepCopy ¶
func (in *DatabaseSpec) DeepCopy() *DatabaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseSpec.
func (*DatabaseSpec) DeepCopyInto ¶
func (in *DatabaseSpec) DeepCopyInto(out *DatabaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MysqlProvider ¶
type MysqlProvider struct {
// +kubebuilder:default=mysql
// +kubebuilder:validation:Required
Driver string `json:"driver,omitempty"`
// +kubebuilder:validation:Required
Host string `json:"host,omitempty"`
// +kubebuilder:validation:Required
Port int `json:"port,omitempty"`
// +kubebuilder:validation:Required
SSL bool `json:"ssl,omitempty"`
// +kubebuilder:validation:Required
Credential *DatabaseConnectionCredentialSpec `json:"credential,omitempty"`
}
MysqlProvider defines the desired connection info of Mysql
func (*MysqlProvider) DeepCopy ¶
func (in *MysqlProvider) DeepCopy() *MysqlProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MysqlProvider.
func (*MysqlProvider) DeepCopyInto ¶
func (in *MysqlProvider) DeepCopyInto(out *MysqlProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OIDCProvider ¶
type OIDCProvider struct {
Issuer string `json:"issuer,omitempty"`
ClientId string `json:"clientId,omitempty"`
// +kubebuilder:validation:Optional
ClientSecret string `json:"clientSecret,omitempty"`
// +kubebuilder:validation:Optional
ResponseType []ResponseType `json:"responseType,omitempty"`
// +kubebuilder:validation:Optional
RedirectURL string `json:"redirectUrl,omitempty"`
}
func (*OIDCProvider) DeepCopy ¶
func (in *OIDCProvider) DeepCopy() *OIDCProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OIDCProvider.
func (*OIDCProvider) DeepCopyInto ¶
func (in *OIDCProvider) DeepCopyInto(out *OIDCProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresProvider ¶
type PostgresProvider struct {
// +kubebuilder:default=postgres
Driver string `json:"driver,omitempty"`
// +kubebuilder:validation:Required
Host string `json:"host,omitempty"`
// +kubebuilder:validation:Required
Port int `json:"port,omitempty"`
// +kubebuilder:validation:Required
SSL bool `json:"ssl,omitempty"`
// +kubebuilder:validation:Required
Credential *DatabaseConnectionCredentialSpec `json:"credential,omitempty"`
}
PostgresProvider defines the desired connection info of Postgres
func (*PostgresProvider) DeepCopy ¶
func (in *PostgresProvider) DeepCopy() *PostgresProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresProvider.
func (*PostgresProvider) DeepCopyInto ¶
func (in *PostgresProvider) DeepCopyInto(out *PostgresProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisProvider ¶
type RedisProvider struct {
// +kubebuilder:validation:Required
Host string `json:"host,omitempty"`
// +kubebuilder:validation:Required
Port string `json:"port,omitempty"`
// +kubebuilder:validation:Optional
Credential *DatabaseConnectionCredentialSpec `json:"credential,omitempty"`
}
RedisProvider defines the desired connection info of Redis
func (*RedisProvider) DeepCopy ¶
func (in *RedisProvider) DeepCopy() *RedisProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisProvider.
func (*RedisProvider) DeepCopyInto ¶
func (in *RedisProvider) DeepCopyInto(out *RedisProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResponseType ¶
type ResponseType string
const ( ResponseTypeCode ResponseType = "code" ResponseTypeToken ResponseType = "id_token" )
type S3Bucket ¶
type S3Bucket struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec S3BucketSpec `json:"spec,omitempty"`
Status status.Status `json:"status,omitempty"`
}
S3Bucket is the Schema for the s3buckets API
func (*S3Bucket) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Bucket.
func (*S3Bucket) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*S3Bucket) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type S3BucketCredential ¶
type S3BucketCredential struct {
// +kubebuilder:validation:Optional
ExistSecret string `json:"existSecret,omitempty"`
}
S3BucketCredential defines the desired secret of S3Bucket
func (*S3BucketCredential) DeepCopy ¶
func (in *S3BucketCredential) DeepCopy() *S3BucketCredential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3BucketCredential.
func (*S3BucketCredential) DeepCopyInto ¶
func (in *S3BucketCredential) DeepCopyInto(out *S3BucketCredential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3BucketList ¶
type S3BucketList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []S3Bucket `json:"items"`
}
S3BucketList contains a list of S3Bucket
func (*S3BucketList) DeepCopy ¶
func (in *S3BucketList) DeepCopy() *S3BucketList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3BucketList.
func (*S3BucketList) DeepCopyInto ¶
func (in *S3BucketList) DeepCopyInto(out *S3BucketList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*S3BucketList) DeepCopyObject ¶
func (in *S3BucketList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type S3BucketSpec ¶
type S3BucketSpec struct {
// +kubebuilder:validation:Required
Reference string `json:"reference,omitempty"`
// +kubebuilder:validation:Optional
Credential *S3BucketCredential `json:"credential,omitempty"`
// +kubebuilder:validation:Required
Name string `json:"name,omitempty"`
}
S3BucketSpec defines the desired fields of S3Bucket
func (*S3BucketSpec) DeepCopy ¶
func (in *S3BucketSpec) DeepCopy() *S3BucketSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3BucketSpec.
func (*S3BucketSpec) DeepCopyInto ¶
func (in *S3BucketSpec) DeepCopyInto(out *S3BucketSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3Connection ¶
type S3Connection struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec S3ConnectionSpec `json:"spec,omitempty"`
Status status.Status `json:"status,omitempty"`
}
S3Connection is the Schema for the s3connections API
func (*S3Connection) DeepCopy ¶
func (in *S3Connection) DeepCopy() *S3Connection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Connection.
func (*S3Connection) DeepCopyInto ¶
func (in *S3Connection) DeepCopyInto(out *S3Connection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*S3Connection) DeepCopyObject ¶
func (in *S3Connection) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type S3ConnectionList ¶
type S3ConnectionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []S3Connection `json:"items"`
}
S3ConnectionList contains a list of S3Connection
func (*S3ConnectionList) DeepCopy ¶
func (in *S3ConnectionList) DeepCopy() *S3ConnectionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3ConnectionList.
func (*S3ConnectionList) DeepCopyInto ¶
func (in *S3ConnectionList) DeepCopyInto(out *S3ConnectionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*S3ConnectionList) DeepCopyObject ¶
func (in *S3ConnectionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type S3ConnectionSpec ¶
type S3ConnectionSpec struct {
// +kubebuilder:validation:Required
S3Credential *S3Credential `json:"credential,omitempty"`
// +kubebuilder:validation:Required
Endpoint string `json:"endpoint,omitempty"`
// +kubebuilder:validation:Optional
Region string `json:"region,omitempty"`
// +kubebuilder:validation:Optional
SSL bool `json:"ssl,omitempty"`
// +kubebuilder:validation:Optional
// +kubebuilder:default:=false
PathStyle bool `json:"pathStyle,omitempty"`
}
S3ConnectionSpec defines the desired credential of S3Connection
func (*S3ConnectionSpec) DeepCopy ¶
func (in *S3ConnectionSpec) DeepCopy() *S3ConnectionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3ConnectionSpec.
func (*S3ConnectionSpec) DeepCopyInto ¶
func (in *S3ConnectionSpec) DeepCopyInto(out *S3ConnectionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3Credential ¶
type S3Credential struct {
// +kubebuilder:validation:Optional
ExistSecret string `json:"existSecret,omitempty"`
// +kubebuilder:validation:Optional
AccessKey string `json:"accessKey,omitempty"`
// +kubebuilder:validation:Optional
SecretKey string `json:"secretKey,omitempty"`
}
S3Credential include AccessKey and SecretKey or ExistingSecret. ExistingSecret include AccessKey and SecretKey ,it is encrypted by base64.
func (*S3Credential) DeepCopy ¶
func (in *S3Credential) DeepCopy() *S3Credential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Credential.
func (*S3Credential) DeepCopyInto ¶
func (in *S3Credential) DeepCopyInto(out *S3Credential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.