v1alpha1

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the v1alpha1 API group +kubebuilder:object:generate=true +groupName=zncdata.dev

Index

Constants

View Source
const S3BucketFinalizer = "s3bucket.finalizers.zncdata.net"

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "zncdata.dev", 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 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

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 DatabaseStatus `json:"status,omitempty"`
}

Database is the Schema for the databases API

func (*Database) DeepCopy

func (in *Database) DeepCopy() *Database

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Database.

func (*Database) DeepCopyInto

func (in *Database) DeepCopyInto(out *Database)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Database) DeepCopyObject

func (in *Database) DeepCopyObject() runtime.Object

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 DatabaseConnectionStatus `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 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

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 DatabaseConnectionProvider added in v0.2.0

type DatabaseConnectionProvider struct {
	// +kubebuilder:validation:Optional
	Mysql *MysqlProvider `json:"mysql,omitempty"`
	// +kubebuilder:validation:Optional
	Postgres *PostgresProvider `json:"postgres,omitempty"`
	// +kubebuilder:validation:Optional
	Redis *RedisProvider `json:"redis,omitempty"`
}

DatabaseConnectionProvider defines the enum provider for DataConnection. You can choose one of mysql, postgres, redis, and provider is required.

func (*DatabaseConnectionProvider) DeepCopy added in v0.2.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectionProvider.

func (*DatabaseConnectionProvider) DeepCopyInto added in v0.2.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DatabaseConnectionSpec

type DatabaseConnectionSpec struct {
	// +kubebuilder:validation:Required
	Provider *DatabaseConnectionProvider `json:"provider,omitempty"`

	// +kubebuilder:validation:Optional
	Default bool `json:"default,omitempty"`
}

DatabaseConnectionSpec defines the desired state of DatabaseConnection

func (*DatabaseConnectionSpec) DeepCopy

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 DatabaseConnectionStatus added in v0.2.0

type DatabaseConnectionStatus struct {
	// +kubebuilder:validation:Optional
	Conditions []metav1.Condition `json:"condition,omitempty"`
}

func (*DatabaseConnectionStatus) DeepCopy added in v0.2.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseConnectionStatus.

func (*DatabaseConnectionStatus) DeepCopyInto added in v0.2.0

func (in *DatabaseConnectionStatus) DeepCopyInto(out *DatabaseConnectionStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DatabaseCredentialSpec

type DatabaseCredentialSpec struct {
	// ExistSecret is a Secret name, created by user.
	// It includes Username and Password, it is encrypted by base64.
	// If ExistSecret is not empty, Username and Password will be ignored.
	// +kubebuilder:validation:Optional
	ExistSecret string `json:"existingSecret,omitempty"`

	// Username is the username for the database.
	// +kubebuilder:validation:Optional
	Username string `json:"username,omitempty"`

	// Password is the password for the database.
	// +kubebuilder:validation:Optional
	Password string `json:"password,omitempty"`
}

DatabaseCredentialSpec include: Username and Password or ExistSecret.

func (*DatabaseCredentialSpec) DeepCopy

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 DatabaseSpec

type DatabaseSpec struct {

	//+kubebuilder:validation:Required
	DatabaseName string `json:"databaseName,omitempty"`

	// Name of DatabaseConnection CR to use for this database.
	//+kubebuilder:validation:Required
	Reference string `json:"reference,omitempty"`

	// Credential is the credential for the database.
	// It contains Username and Password, or ExistSecret.
	//+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 DatabaseStatus added in v0.2.0

type DatabaseStatus struct {
	// +kubebuilder:validation:Optional
	Conditions []metav1.Condition `json:"condition,omitempty"`
}

func (*DatabaseStatus) DeepCopy added in v0.2.0

func (in *DatabaseStatus) DeepCopy() *DatabaseStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseStatus.

func (*DatabaseStatus) DeepCopyInto added in v0.2.0

func (in *DatabaseStatus) DeepCopyInto(out *DatabaseStatus)

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 *DatabaseCredentialSpec `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=org.postgresql.Driver
	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 *DatabaseCredentialSpec `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"`
}

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 S3BucketStatus `json:"status,omitempty"`
}

S3Bucket is the Schema for the s3buckets API

func (*S3Bucket) DeepCopy

func (in *S3Bucket) DeepCopy() *S3Bucket

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Bucket.

func (*S3Bucket) DeepCopyInto

func (in *S3Bucket) DeepCopyInto(out *S3Bucket)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*S3Bucket) DeepCopyObject

func (in *S3Bucket) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

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
	BucketName string `json:"bucketName,omitempty"`

	// +kubebuilder:validation:Required
	Reference string `json:"reference,omitempty"`

	// +kubebuilder:validation:Optional
	Credential *S3Credential `json:"credential,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 S3BucketStatus added in v0.2.0

type S3BucketStatus struct {

	// +kubebuilder:validation:Optional
	Conditions []metav1.Condition `json:"condition,omitempty"`
}

func (*S3BucketStatus) DeepCopy added in v0.2.0

func (in *S3BucketStatus) DeepCopy() *S3BucketStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3BucketStatus.

func (*S3BucketStatus) DeepCopyInto added in v0.2.0

func (in *S3BucketStatus) DeepCopyInto(out *S3BucketStatus)

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 S3ConnectionStatus `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
	Credential *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 S3ConnectionStatus added in v0.2.0

type S3ConnectionStatus struct {

	// +kubebuilder:validation:Optional
	Conditions []metav1.Condition `json:"condition,omitempty"`
}

func (*S3ConnectionStatus) DeepCopy added in v0.2.0

func (in *S3ConnectionStatus) DeepCopy() *S3ConnectionStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3ConnectionStatus.

func (*S3ConnectionStatus) DeepCopyInto added in v0.2.0

func (in *S3ConnectionStatus) DeepCopyInto(out *S3ConnectionStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type S3Credential

type S3Credential struct {

	// ExistingSecret include `ACCESS_KEY` and `SECRET_KEY` ,it is encrypted by base64.
	// If ExistingSecret is not empty, `ACCESS_KEY` and `SECRET_KEY` will be ignored.
	// +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 `ACCESS_KEY` and `SECRET_KEY` or ExistingSecret.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL