v1alpha4

package
v0.13.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Overview

package v1alpha4 contains API Schema definitions for the schemas v1alpha4 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/schemahero/schemahero/pkg/apis/schemas +k8s:defaulter-gen=TypeMeta +groupName=schemas.schemahero.io

package v1alpha4 contains API Schema definitions for the schemas v1alpha4 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/schemahero/schemahero/pkg/apis/schemas +k8s:defaulter-gen=TypeMeta +groupName=schemas.schemahero.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "schemas.schemahero.io", Version: "v1alpha4"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme is required by pkg/client/...
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource is required by pkg/client/listers/...

Types

type CassandraClusteringOrder added in v0.12.0

type CassandraClusteringOrder struct {
	Column       string `json:"column" yaml:"column"`
	IsDescending *bool  `json:"isDescending,omitempty" yaml:"isDescending,omitempty"`
}

func (*CassandraClusteringOrder) DeepCopy added in v0.12.0

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

func (*CassandraClusteringOrder) DeepCopyInto added in v0.12.0

func (in *CassandraClusteringOrder) DeepCopyInto(out *CassandraClusteringOrder)

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

type CassandraColumn added in v0.12.0

type CassandraColumn struct {
	Name     string `json:"name" yaml:"name"`
	Type     string `json:"type" yaml:"type"`
	IsStatic *bool  `json:"isStatic,omitempty" yaml:"isStatic,omitempty"`
}

func (*CassandraColumn) DeepCopy added in v0.12.0

func (in *CassandraColumn) DeepCopy() *CassandraColumn

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

func (*CassandraColumn) DeepCopyInto added in v0.12.0

func (in *CassandraColumn) DeepCopyInto(out *CassandraColumn)

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

type CassandraDataTypeSchema added in v0.12.0

type CassandraDataTypeSchema struct {
	IsDeleted bool              `json:"isDeleted,omitempty" yaml:"isDeleted,omitempty"`
	Fields    []*CassandraField `json:"fields,omitempty" yaml:"fields,omitempty"`
}

func (*CassandraDataTypeSchema) DeepCopy added in v0.12.0

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

func (*CassandraDataTypeSchema) DeepCopyInto added in v0.12.0

func (in *CassandraDataTypeSchema) DeepCopyInto(out *CassandraDataTypeSchema)

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

type CassandraField added in v0.12.0

type CassandraField struct {
	Name string `json:"name" yaml:"name"`
	Type string `json:"type" yaml:"type"`
}

func (*CassandraField) DeepCopy added in v0.12.0

func (in *CassandraField) DeepCopy() *CassandraField

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

func (*CassandraField) DeepCopyInto added in v0.12.0

func (in *CassandraField) DeepCopyInto(out *CassandraField)

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

type CassandraTableProperties added in v0.12.0

type CassandraTableProperties struct {
	BloomFilterFPChance     string            `json:"bloomFilterFPChance,omitempty" yaml:"bloomFilterFPChance,omitempty"`
	Caching                 map[string]string `json:"caching,omitempty" yaml:"caching,omitempty"`
	Comment                 string            `json:"comment,omitempty" yaml:"comment,omitempty"`
	Compaction              map[string]string `json:"compaction,omitempty" yaml:"compaction,omitempty"`
	Compression             map[string]string `json:"compression,omitempty" yaml:"compression,omitempty"`
	CRCCheckChance          string            `json:"crcCheckChance,omitempty" yaml:"crcCheckChance,omitempty"`
	DCLocalReadRepairChance string            `json:"dcLocalReadRepairChance,omitempty" yaml:"dcLocalReadRepairChance,omitempty"`
	DefaultTTL              *int              `json:"defaultTTL,omitempty" yaml:"defaultTTL,omitempty"`
	GCGraceSeconds          *int              `json:"gcGraceSeconds,omitempty" yaml:"gcGraceSeconds,omitempty"`
	MaxIndexInterval        *int              `json:"maxIndexInterval,omitempty" yaml:"maxIndexInterval,omitempty"`
	MemtableFlushPeriodMS   *int              `json:"memtableFlushPeriodMs,omitempty" yaml:"memtableFlushPeriodMs,omitempty"`
	MinIndexInterval        *int              `json:"minIndexInterval,omitempty" yaml:"minIndexInterval,omitempty"`
	ReadRepairChance        string            `json:"readRepairChance,omitempty" yaml:"readRepairChance,omitempty"`
	SpeculativeRetry        string            `json:"speculativeRetry,omitempty" yaml:"speculativeRetry,omitempty"`
}

func (*CassandraTableProperties) DeepCopy added in v0.12.0

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

func (*CassandraTableProperties) DeepCopyInto added in v0.12.0

func (in *CassandraTableProperties) DeepCopyInto(out *CassandraTableProperties)

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

type CassandraTableSchema added in v0.12.0

type CassandraTableSchema struct {
	IsDeleted       bool                      `json:"isDeleted,omitempty" yaml:"isDeleted,omitempty"`
	PrimaryKey      [][]string                `json:"primaryKey,omitempty" yaml:"primaryKey,omitempty"`
	ClusteringOrder *CassandraClusteringOrder `json:"clusteringOrder,omitempty" yaml:"clusteringOrder,omitempty"`
	Columns         []*CassandraColumn        `json:"columns,omitempty" yaml:"columns,omitempty"`

	Properties *CassandraTableProperties `json:"properties,omitempty" yaml:"properties,omitempty"`
}

func (*CassandraTableSchema) DeepCopy added in v0.12.0

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

func (*CassandraTableSchema) DeepCopyInto added in v0.12.0

func (in *CassandraTableSchema) DeepCopyInto(out *CassandraTableSchema)

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

type Column added in v0.13.0

type Column struct {
	Column string        `json:"column" yaml:"column"`
	Value  SeedDataValue `json:"value" yaml:"value"`
}

func (*Column) DeepCopy added in v0.13.0

func (in *Column) DeepCopy() *Column

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

func (*Column) DeepCopyInto added in v0.13.0

func (in *Column) DeepCopyInto(out *Column)

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

type DataType added in v0.12.0

type DataType struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   DataTypeSpec   `json:"spec,omitempty"`
	Status DataTypeStatus `json:"status,omitempty"`
}

DataType is the Schema for the datatypes API +k8s:openapi-gen=true

func (*DataType) DeepCopy added in v0.12.0

func (in *DataType) DeepCopy() *DataType

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

func (*DataType) DeepCopyInto added in v0.12.0

func (in *DataType) DeepCopyInto(out *DataType)

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

func (*DataType) DeepCopyObject added in v0.12.0

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

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

type DataTypeList added in v0.12.0

type DataTypeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []DataType `json:"items"`
}

DataTypeList contains a list of DataType

func (*DataTypeList) DeepCopy added in v0.12.0

func (in *DataTypeList) DeepCopy() *DataTypeList

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

func (*DataTypeList) DeepCopyInto added in v0.12.0

func (in *DataTypeList) DeepCopyInto(out *DataTypeList)

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

func (*DataTypeList) DeepCopyObject added in v0.12.0

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

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

type DataTypeSchema added in v0.12.0

type DataTypeSchema struct {
	Cassandra *CassandraDataTypeSchema `json:"cassandra,omitempty" yaml:"cassandra,omitempty"`
}

func (*DataTypeSchema) DeepCopy added in v0.12.0

func (in *DataTypeSchema) DeepCopy() *DataTypeSchema

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

func (*DataTypeSchema) DeepCopyInto added in v0.12.0

func (in *DataTypeSchema) DeepCopyInto(out *DataTypeSchema)

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

type DataTypeSpec added in v0.12.0

type DataTypeSpec struct {
	Database string `json:"database" yaml:"database"`
	Name     string `json:"name" yaml:"name"`

	Schema *DataTypeSchema `json:"schema,omitempty" yaml:"schema,omitempty"`
}

DataTypeSpec defines the desired state of Type

func (*DataTypeSpec) DeepCopy added in v0.12.0

func (in *DataTypeSpec) DeepCopy() *DataTypeSpec

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

func (*DataTypeSpec) DeepCopyInto added in v0.12.0

func (in *DataTypeSpec) DeepCopyInto(out *DataTypeSpec)

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

type DataTypeStatus added in v0.12.0

type DataTypeStatus struct {
}

DataTypeStatus defines the observed state of Type

func (*DataTypeStatus) DeepCopy added in v0.12.0

func (in *DataTypeStatus) DeepCopy() *DataTypeStatus

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

func (*DataTypeStatus) DeepCopyInto added in v0.12.0

func (in *DataTypeStatus) DeepCopyInto(out *DataTypeStatus)

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

type Migration

type Migration struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   MigrationSpec   `json:"spec,omitempty"`
	Status MigrationStatus `json:"status,omitempty"`
}

Migration is the Schema for the migrations API +kubebuilder:printcolumn:name="Database",type=string,JSONPath=`.spec.databaseName` +kubebuilder:printcolumn:name="Table",type=string,JSONPath=`.spec.tableName` +kubebuilder:printcolumn:name="Namespace",type=string,JSONPath=`.metadata.namespace`,priority=1 +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +k8s:openapi-gen=true

func (*Migration) DeepCopy

func (in *Migration) DeepCopy() *Migration

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

func (*Migration) DeepCopyInto

func (in *Migration) DeepCopyInto(out *Migration)

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

func (*Migration) DeepCopyObject

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

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

type MigrationList

type MigrationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Migration `json:"items"`
}

MigrationList contains a list of Migration

func (*MigrationList) DeepCopy

func (in *MigrationList) DeepCopy() *MigrationList

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

func (*MigrationList) DeepCopyInto

func (in *MigrationList) DeepCopyInto(out *MigrationList)

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

func (*MigrationList) DeepCopyObject

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

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

type MigrationSpec

type MigrationSpec struct {
	DatabaseName   string `json:"databaseName,omitempty"`
	TableName      string `json:"tableName"`
	TableNamespace string `json:"tableNamespace"`
	GeneratedDDL   string `json:"generatedDDL,omitempty"`
	EditedDDL      string `json:"editedDDL,omitempty"`
}

MigrationSpec defines the desired state of Migration

func (*MigrationSpec) DeepCopy

func (in *MigrationSpec) DeepCopy() *MigrationSpec

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

func (*MigrationSpec) DeepCopyInto

func (in *MigrationSpec) DeepCopyInto(out *MigrationSpec)

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

type MigrationStatus

type MigrationStatus struct {
	Phase Phase `json:"phase,omitempty"`

	// PlannedAt is the unix nano timestamp when the plan was generated
	PlannedAt int64 `json:"plannedAt,omitempty"`

	// InvalidatedAt is the unix nano timestamp when this plan was determined to be invalid or outdated
	InvalidatedAt int64 `json:"invalidatedAt,omitempty"`

	ApprovedAt int64 `json:"approvedAt,omitempty"`
	RejectedAt int64 `json:"rejectedAt,omitempty"`
	ExecutedAt int64 `json:"executedAt,omitempty"`
}

MigrationStatus defines the observed state of Migration

func (*MigrationStatus) DeepCopy

func (in *MigrationStatus) DeepCopy() *MigrationStatus

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

func (*MigrationStatus) DeepCopyInto

func (in *MigrationStatus) DeepCopyInto(out *MigrationStatus)

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

type MysqlTableColumn added in v0.12.0

type MysqlTableColumn struct {
	Name        string                       `json:"name" yaml:"name"`
	Type        string                       `json:"type" yaml:"type"`
	Constraints *MysqlTableColumnConstraints `json:"constraints,omitempty" yaml:"constraints,omitempty"`
	Attributes  *MysqlTableColumnAttributes  `json:"attributes,omitempty" yaml:"attributes,omitempty"`
	Default     *string                      `json:"default,omitempty" yaml:"default,omitempty"`
	Charset     string                       `json:"charset,omitempty" yaml:"charset,omitempty"`
	Collation   string                       `json:"collation,omitempty" yaml:"collation,omitempty"`
}

func (*MysqlTableColumn) DeepCopy added in v0.12.0

func (in *MysqlTableColumn) DeepCopy() *MysqlTableColumn

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

func (*MysqlTableColumn) DeepCopyInto added in v0.12.0

func (in *MysqlTableColumn) DeepCopyInto(out *MysqlTableColumn)

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

type MysqlTableColumnAttributes added in v0.12.0

type MysqlTableColumnAttributes struct {
	AutoIncrement *bool `json:"autoIncrement,omitempty" yaml:"autoIncrement,omitempty"`
}

func (*MysqlTableColumnAttributes) DeepCopy added in v0.12.0

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

func (*MysqlTableColumnAttributes) DeepCopyInto added in v0.12.0

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

type MysqlTableColumnConstraints added in v0.12.0

type MysqlTableColumnConstraints struct {
	NotNull *bool `json:"notNull,omitempty" yaml:"notNull,omitempty"`
}

func (*MysqlTableColumnConstraints) DeepCopy added in v0.12.0

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

func (*MysqlTableColumnConstraints) DeepCopyInto added in v0.12.0

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

type MysqlTableForeignKey added in v0.12.0

type MysqlTableForeignKey struct {
	Columns    []string                       `json:"columns" yaml:"columns"`
	References MysqlTableForeignKeyReferences `json:"references" yaml:"references"`
	OnDelete   string                         `json:"onDelete,omitempty" yaml:"onDelete,omitempty"`
	Name       string                         `json:"name,omitempty" yaml:"name,omitempty"`
}

func (*MysqlTableForeignKey) DeepCopy added in v0.12.0

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

func (*MysqlTableForeignKey) DeepCopyInto added in v0.12.0

func (in *MysqlTableForeignKey) DeepCopyInto(out *MysqlTableForeignKey)

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

type MysqlTableForeignKeyReferences added in v0.12.0

type MysqlTableForeignKeyReferences struct {
	Table   string   `json:"table"`
	Columns []string `json:"columns"`
}

func (*MysqlTableForeignKeyReferences) DeepCopy added in v0.12.0

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

func (*MysqlTableForeignKeyReferences) DeepCopyInto added in v0.12.0

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

type MysqlTableIndex added in v0.12.0

type MysqlTableIndex struct {
	Columns  []string `json:"columns" yaml:"columns"`
	Name     string   `json:"name,omitempty" yaml:"name,omitempty"`
	IsUnique bool     `json:"isUnique,omitempty" yaml:"isUnique,omitempty"`
	Type     string   `json:"type,omitempty" yaml:"type,omitempty"`
}

func (*MysqlTableIndex) DeepCopy added in v0.12.0

func (in *MysqlTableIndex) DeepCopy() *MysqlTableIndex

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

func (*MysqlTableIndex) DeepCopyInto added in v0.12.0

func (in *MysqlTableIndex) DeepCopyInto(out *MysqlTableIndex)

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

type MysqlTableSchema added in v0.12.0

type MysqlTableSchema struct {
	PrimaryKey     []string                `json:"primaryKey,omitempty" yaml:"primaryKey,omitempty"`
	ForeignKeys    []*MysqlTableForeignKey `json:"foreignKeys,omitempty" yaml:"foreignKeys,omitempty"`
	Indexes        []*MysqlTableIndex      `json:"indexes,omitempty" yaml:"indexes,omitempty"`
	Columns        []*MysqlTableColumn     `json:"columns,omitempty" yaml:"columns,omitempty"`
	IsDeleted      bool                    `json:"isDeleted,omitempty" yaml:"isDeleted,omitempty"`
	DefaultCharset string                  `json:"defaultCharset,omitempty" yaml:"defaultCharset,omitempty"`
	Collation      string                  `json:"collation,omitempty" yaml:"collation,omitempty"`
}

func (*MysqlTableSchema) DeepCopy added in v0.12.0

func (in *MysqlTableSchema) DeepCopy() *MysqlTableSchema

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

func (*MysqlTableSchema) DeepCopyInto added in v0.12.0

func (in *MysqlTableSchema) DeepCopyInto(out *MysqlTableSchema)

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

type Phase added in v0.12.7

type Phase string

+kubebuilder:validation:Enum=PLANNED;APPROVED;EXECUTED;INVALID

const (
	Planned  Phase = "PLANNED"
	Approved Phase = "APPROVED"
	Executed Phase = "EXECUTED"
	Invalid  Phase = "INVALID"
)

type PostgresqlTableColumn added in v0.12.0

type PostgresqlTableColumn struct {
	Name        string                            `json:"name" yaml:"name"`
	Type        string                            `json:"type" yaml:"type"`
	Constraints *PostgresqlTableColumnConstraints `json:"constraints,omitempty" yaml:"constraints,omitempty"`
	Attributes  *PostgresqlTableColumnAttributes  `json:"attributes,omitempty" yaml:"attributes,omitempty"`
	Default     *string                           `json:"default,omitempty" yaml:"default,omitempty"`
}

func (*PostgresqlTableColumn) DeepCopy added in v0.12.0

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

func (*PostgresqlTableColumn) DeepCopyInto added in v0.12.0

func (in *PostgresqlTableColumn) DeepCopyInto(out *PostgresqlTableColumn)

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

type PostgresqlTableColumnAttributes added in v0.12.0

type PostgresqlTableColumnAttributes struct {
	AutoIncrement *bool `json:"autoIncrement,omitempty" yaml:"autoIncrement,omitempty"`
}

func (*PostgresqlTableColumnAttributes) DeepCopy added in v0.12.0

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

func (*PostgresqlTableColumnAttributes) DeepCopyInto added in v0.12.0

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

type PostgresqlTableColumnConstraints added in v0.12.0

type PostgresqlTableColumnConstraints struct {
	NotNull *bool `json:"notNull,omitempty" yaml:"notNull,omitempty"`
}

func (*PostgresqlTableColumnConstraints) DeepCopy added in v0.12.0

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

func (*PostgresqlTableColumnConstraints) DeepCopyInto added in v0.12.0

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

type PostgresqlTableForeignKey added in v0.12.0

type PostgresqlTableForeignKey struct {
	Columns    []string                            `json:"columns" yaml:"columns"`
	References PostgresqlTableForeignKeyReferences `json:"references" yaml:"references"`
	OnDelete   string                              `json:"onDelete,omitempty" yaml:"onDelete,omitempty"`
	Name       string                              `json:"name,omitempty" yaml:"name,omitempty"`
}

func (*PostgresqlTableForeignKey) DeepCopy added in v0.12.0

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

func (*PostgresqlTableForeignKey) DeepCopyInto added in v0.12.0

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

type PostgresqlTableForeignKeyReferences added in v0.12.0

type PostgresqlTableForeignKeyReferences struct {
	Table   string   `json:"table"`
	Columns []string `json:"columns"`
}

func (*PostgresqlTableForeignKeyReferences) DeepCopy added in v0.12.0

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

func (*PostgresqlTableForeignKeyReferences) DeepCopyInto added in v0.12.0

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

type PostgresqlTableIndex added in v0.12.0

type PostgresqlTableIndex struct {
	Columns  []string `json:"columns" yaml:"columns"`
	Name     string   `json:"name,omitempty" yaml:"name,omitempty"`
	IsUnique bool     `json:"isUnique,omitempty" yaml:"isUnique,omitempty"`
	Type     string   `json:"type,omitempty" yaml:"type,omitempty"`
}

func (*PostgresqlTableIndex) DeepCopy added in v0.12.0

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

func (*PostgresqlTableIndex) DeepCopyInto added in v0.12.0

func (in *PostgresqlTableIndex) DeepCopyInto(out *PostgresqlTableIndex)

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

type PostgresqlTableSchema added in v0.12.0

type PostgresqlTableSchema struct {
	PrimaryKey  []string                     `json:"primaryKey,omitempty" yaml:"primaryKey,omitempty"`
	ForeignKeys []*PostgresqlTableForeignKey `json:"foreignKeys,omitempty" yaml:"foreignKeys,omitempty"`
	Indexes     []*PostgresqlTableIndex      `json:"indexes,omitempty" yaml:"indexes,omitempty"`
	Columns     []*PostgresqlTableColumn     `json:"columns,omitempty" yaml:"columns,omitempty"`
	IsDeleted   bool                         `json:"isDeleted,omitempty" yaml:"isDeleted,omitempty"`
	Triggers    []*PostgresqlTableTrigger    `json:"json:triggers,omitempty" yaml:"triggers,omitempty"`
}

func (*PostgresqlTableSchema) DeepCopy added in v0.12.0

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

func (*PostgresqlTableSchema) DeepCopyInto added in v0.12.0

func (in *PostgresqlTableSchema) DeepCopyInto(out *PostgresqlTableSchema)

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

type PostgresqlTableTrigger added in v0.12.0

type PostgresqlTableTrigger struct {
	Name              string   `json:"name,omitempty" yaml:"name,omitempty"`
	ConstraintTrigger *bool    `json:"constraintTrigger,omitempty" yaml:"constraintTrigger,omitempty"`
	Events            []string `json:"events" yaml:"events"`
	ForEachStatement  *bool    `json:"forEachStatement,omitempty" yaml:"forEachStatement,omitempty"`
	ForEachRow        *bool    `json:"forEachRun,omitempty" yaml:"forEachRow,omitempty"`
	Condition         *string  `json:"condition,omitempty" yaml:"condition,omitempty"`
	ExecuteProcedure  string   `json:"executeProcedure" yaml:"executeProcedure"`
	Arguments         []string `json:"arguments,omitempty" yaml:"arguments,omitempty"`
}

func (*PostgresqlTableTrigger) DeepCopy added in v0.12.0

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

func (*PostgresqlTableTrigger) DeepCopyInto added in v0.12.0

func (in *PostgresqlTableTrigger) DeepCopyInto(out *PostgresqlTableTrigger)

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

type SeedData added in v0.13.0

type SeedData struct {
	Rows []SeedDataRow `json:"rows" yaml:"rows"`
}

func (*SeedData) DeepCopy added in v0.13.0

func (in *SeedData) DeepCopy() *SeedData

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

func (*SeedData) DeepCopyInto added in v0.13.0

func (in *SeedData) DeepCopyInto(out *SeedData)

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

type SeedDataRow added in v0.13.0

type SeedDataRow struct {
	Columns []Column `json:"columns" yaml:"columns"`
}

func (*SeedDataRow) DeepCopy added in v0.13.0

func (in *SeedDataRow) DeepCopy() *SeedDataRow

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

func (*SeedDataRow) DeepCopyInto added in v0.13.0

func (in *SeedDataRow) DeepCopyInto(out *SeedDataRow)

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

type SeedDataValue added in v0.13.0

type SeedDataValue struct {
	Int *int    `json:"int" yaml:"int"`
	Str *string `json:"str" yaml:"str"`
}

func (*SeedDataValue) DeepCopy added in v0.13.0

func (in *SeedDataValue) DeepCopy() *SeedDataValue

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

func (*SeedDataValue) DeepCopyInto added in v0.13.0

func (in *SeedDataValue) DeepCopyInto(out *SeedDataValue)

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

type SqliteTableColumn added in v0.12.0

type SqliteTableColumn struct {
	Name        string                        `json:"name" yaml:"name"`
	Type        string                        `json:"type" yaml:"type"`
	Constraints *SqliteTableColumnConstraints `json:"constraints,omitempty" yaml:"constraints,omitempty"`
	Attributes  *SqliteTableColumnAttributes  `json:"attributes,omitempty" yaml:"attributes,omitempty"`
	Default     *string                       `json:"default,omitempty" yaml:"default,omitempty"`
}

func (*SqliteTableColumn) DeepCopy added in v0.12.0

func (in *SqliteTableColumn) DeepCopy() *SqliteTableColumn

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

func (*SqliteTableColumn) DeepCopyInto added in v0.12.0

func (in *SqliteTableColumn) DeepCopyInto(out *SqliteTableColumn)

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

type SqliteTableColumnAttributes added in v0.12.0

type SqliteTableColumnAttributes struct {
	AutoIncrement *bool `json:"autoIncrement,omitempty" yaml:"autoIncrement,omitempty"`
}

func (*SqliteTableColumnAttributes) DeepCopy added in v0.12.0

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

func (*SqliteTableColumnAttributes) DeepCopyInto added in v0.12.0

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

type SqliteTableColumnConstraints added in v0.12.0

type SqliteTableColumnConstraints struct {
	NotNull *bool `json:"notNull,omitempty" yaml:"notNull,omitempty"`
}

func (*SqliteTableColumnConstraints) DeepCopy added in v0.12.0

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

func (*SqliteTableColumnConstraints) DeepCopyInto added in v0.12.0

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

type SqliteTableForeignKey added in v0.12.0

type SqliteTableForeignKey struct {
	Columns    []string                        `json:"columns" yaml:"columns"`
	References SqliteTableForeignKeyReferences `json:"references" yaml:"references"`
	OnDelete   string                          `json:"onDelete,omitempty" yaml:"onDelete,omitempty"`
	Name       string                          `json:"name,omitempty" yaml:"name,omitempty"`
}

func (*SqliteTableForeignKey) DeepCopy added in v0.12.0

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

func (*SqliteTableForeignKey) DeepCopyInto added in v0.12.0

func (in *SqliteTableForeignKey) DeepCopyInto(out *SqliteTableForeignKey)

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

type SqliteTableForeignKeyReferences added in v0.12.0

type SqliteTableForeignKeyReferences struct {
	Table   string   `json:"table"`
	Columns []string `json:"columns"`
}

func (*SqliteTableForeignKeyReferences) DeepCopy added in v0.12.0

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

func (*SqliteTableForeignKeyReferences) DeepCopyInto added in v0.12.0

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

type SqliteTableIndex added in v0.12.0

type SqliteTableIndex struct {
	Columns  []string `json:"columns" yaml:"columns"`
	Name     string   `json:"name,omitempty" yaml:"name,omitempty"`
	IsUnique bool     `json:"isUnique,omitempty" yaml:"isUnique,omitempty"`
	Type     string   `json:"type,omitempty" yaml:"type,omitempty"`
}

func (*SqliteTableIndex) DeepCopy added in v0.12.0

func (in *SqliteTableIndex) DeepCopy() *SqliteTableIndex

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

func (*SqliteTableIndex) DeepCopyInto added in v0.12.0

func (in *SqliteTableIndex) DeepCopyInto(out *SqliteTableIndex)

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

type SqliteTableSchema added in v0.12.0

type SqliteTableSchema struct {
	PrimaryKey  []string                 `json:"primaryKey,omitempty" yaml:"primaryKey,omitempty"`
	ForeignKeys []*SqliteTableForeignKey `json:"foreignKeys,omitempty" yaml:"foreignKeys,omitempty"`
	Indexes     []*SqliteTableIndex      `json:"indexes,omitempty" yaml:"indexes,omitempty"`
	Columns     []*SqliteTableColumn     `json:"columns,omitempty" yaml:"columns,omitempty"`
	IsDeleted   bool                     `json:"isDeleted,omitempty" yaml:"isDeleted,omitempty"`
}

func (*SqliteTableSchema) DeepCopy added in v0.12.0

func (in *SqliteTableSchema) DeepCopy() *SqliteTableSchema

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

func (*SqliteTableSchema) DeepCopyInto added in v0.12.0

func (in *SqliteTableSchema) DeepCopyInto(out *SqliteTableSchema)

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

type Table

type Table struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TableSpec   `json:"spec,omitempty"`
	Status TableStatus `json:"status,omitempty"`
}

Table is the Schema for the tables API +kubebuilder:printcolumn:name="Namespace",type=string,JSONPath=`.metadata.namespace`,priority=1 +kubebuilder:printcolumn:name="Table",type=string,JSONPath=`.spec.name` +kubebuilder:printcolumn:name="Database",type=string,JSONPath=`.spec.database` +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" +k8s:openapi-gen=true

func (*Table) DeepCopy

func (in *Table) DeepCopy() *Table

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

func (*Table) DeepCopyInto

func (in *Table) DeepCopyInto(out *Table)

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

func (*Table) DeepCopyObject

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

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

func (Table) GetSHA

func (t Table) GetSHA() (string, error)

type TableList

type TableList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Table `json:"items"`
}

TableList contains a list of Table

func (*TableList) DeepCopy

func (in *TableList) DeepCopy() *TableList

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

func (*TableList) DeepCopyInto

func (in *TableList) DeepCopyInto(out *TableList)

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

func (*TableList) DeepCopyObject

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

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

type TableSchema

type TableSchema struct {
	Postgres    *PostgresqlTableSchema `json:"postgres,omitempty" yaml:"postgres,omitempty"`
	Mysql       *MysqlTableSchema      `json:"mysql,omitempty" yaml:"mysql,omitempty"`
	CockroachDB *PostgresqlTableSchema `json:"cockroachdb,omitempty" yaml:"cockroachdb,omitempty"`
	Cassandra   *CassandraTableSchema  `json:"cassandra,omitempty" yaml:"cassandra,omitempty"`
	SQLite      *SqliteTableSchema     `json:"sqlite,omitempty" yaml:"sqlite,omitempty"`
}

func (*TableSchema) DeepCopy

func (in *TableSchema) DeepCopy() *TableSchema

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

func (*TableSchema) DeepCopyInto

func (in *TableSchema) DeepCopyInto(out *TableSchema)

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

type TableSpec

type TableSpec struct {
	Database string   `json:"database" yaml:"database"`
	Name     string   `json:"name" yaml:"name"`
	Requires []string `json:"requires,omitempty" yaml:"requires,omitempty"`

	Schema   *TableSchema `json:"schema,omitempty" yaml:"schema,omitempty"`
	SeedData *SeedData    `json:"seedData,omitempty" yaml:"seedData,omitempty"`
}

TableSpec defines the desired state of Table

func (*TableSpec) DeepCopy

func (in *TableSpec) DeepCopy() *TableSpec

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

func (*TableSpec) DeepCopyInto

func (in *TableSpec) DeepCopyInto(out *TableSpec)

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

type TableStatus

type TableStatus struct {
	// We store the SHA of the table spec from the last time we executed a plan to
	// make startup less noisy by skipping re-planning objects that have been planned
	// we cannot use the resourceVersion or generation fields because updating them
	// would cause the object to be modified again
	LastPlannedTableSpecSHA string `json:"lastPlannedTableSpecSHA,omitempty" yaml:"lastPlannedTableSpecSHA,omitempty"`
}

TableStatus defines the observed state of Table

func (*TableStatus) DeepCopy

func (in *TableStatus) DeepCopy() *TableStatus

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

func (*TableStatus) DeepCopyInto

func (in *TableStatus) DeepCopyInto(out *TableStatus)

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