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 ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type Migration
- type MigrationList
- type MigrationSpec
- type MigrationStatus
- type SQLTableColumn
- type SQLTableColumnConstraints
- type SQLTableForeignKey
- type SQLTableForeignKeyReferences
- type SQLTableIndex
- type SQLTableSchema
- type Table
- type TableList
- type TableSchema
- type TableSpec
- type TableStatus
Constants ¶
This section is empty.
Variables ¶
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 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 +k8s:openapi-gen=true
func (*Migration) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Migration.
func (*Migration) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Migration) DeepCopyObject ¶
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 { 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 { // 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 SQLTableColumn ¶
type SQLTableColumn struct { Name string `json:"name" yaml:"name"` Type string `json:"type" yaml:"type"` Constraints *SQLTableColumnConstraints `json:"constraints,omitempty" yaml:"constraints,omitempty"` Default *string `json:"default,omitempty" yaml:"default,omitempty"` }
func (*SQLTableColumn) DeepCopy ¶
func (in *SQLTableColumn) DeepCopy() *SQLTableColumn
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLTableColumn.
func (*SQLTableColumn) DeepCopyInto ¶
func (in *SQLTableColumn) DeepCopyInto(out *SQLTableColumn)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SQLTableColumnConstraints ¶
type SQLTableColumnConstraints struct {
NotNull *bool `json:"notNull,omitempty" yaml:"notNull,omitempty"`
}
func (*SQLTableColumnConstraints) DeepCopy ¶
func (in *SQLTableColumnConstraints) DeepCopy() *SQLTableColumnConstraints
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLTableColumnConstraints.
func (*SQLTableColumnConstraints) DeepCopyInto ¶
func (in *SQLTableColumnConstraints) DeepCopyInto(out *SQLTableColumnConstraints)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SQLTableForeignKey ¶
type SQLTableForeignKey struct { Columns []string `json:"columns" yaml:"columns"` References SQLTableForeignKeyReferences `json:"references" yaml:"references"` OnDelete string `json:"onDelete,omitempty" yaml:"onDelete,omitempty"` Name string `json:"name,omitempty" yaml:"name,omitempty"` }
func (*SQLTableForeignKey) DeepCopy ¶
func (in *SQLTableForeignKey) DeepCopy() *SQLTableForeignKey
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLTableForeignKey.
func (*SQLTableForeignKey) DeepCopyInto ¶
func (in *SQLTableForeignKey) DeepCopyInto(out *SQLTableForeignKey)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SQLTableForeignKeyReferences ¶
type SQLTableForeignKeyReferences struct { Table string `json:"table"` Columns []string `json:"columns"` }
func (*SQLTableForeignKeyReferences) DeepCopy ¶
func (in *SQLTableForeignKeyReferences) DeepCopy() *SQLTableForeignKeyReferences
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLTableForeignKeyReferences.
func (*SQLTableForeignKeyReferences) DeepCopyInto ¶
func (in *SQLTableForeignKeyReferences) DeepCopyInto(out *SQLTableForeignKeyReferences)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SQLTableIndex ¶
type SQLTableIndex 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 (*SQLTableIndex) DeepCopy ¶
func (in *SQLTableIndex) DeepCopy() *SQLTableIndex
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLTableIndex.
func (*SQLTableIndex) DeepCopyInto ¶
func (in *SQLTableIndex) DeepCopyInto(out *SQLTableIndex)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SQLTableSchema ¶
type SQLTableSchema struct { PrimaryKey []string `json:"primaryKey,omitempty" yaml:"primaryKey,omitempty"` ForeignKeys []*SQLTableForeignKey `json:"foreignKeys,omitempty" yaml:"foreignKeys,omitempty"` Indexes []*SQLTableIndex `json:"indexes,omitempty" yaml:"indexes,omitempty"` Columns []*SQLTableColumn `json:"columns,omitempty" yaml:"columns,omitempty"` IsDeleted bool `json:"isDeleted,omitempty" yaml:"isDeleted,omitempty"` }
func (*SQLTableSchema) DeepCopy ¶
func (in *SQLTableSchema) DeepCopy() *SQLTableSchema
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLTableSchema.
func (*SQLTableSchema) DeepCopyInto ¶
func (in *SQLTableSchema) DeepCopyInto(out *SQLTableSchema)
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 +k8s:openapi-gen=true
func (*Table) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Table.
func (*Table) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Table) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TableList.
func (*TableList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TableList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type TableSchema ¶
type TableSchema struct { Postgres *SQLTableSchema `json:"postgres,omitempty" yaml:"postgres,omitempty"` Mysql *SQLTableSchema `json:"mysql,omitempty" yaml:"mysql,omitempty"` CockroachDB *SQLTableSchema `json:"cockroachdb,omitempty" yaml:"cockroachdb,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"` }
TableSpec defines the desired state of Table
func (*TableSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TableSpec.
func (*TableSpec) DeepCopyInto ¶
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.