Documentation
¶
Overview ¶
Package v1alpha3 contains API Schema definitions for the databases v1alpha3 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/schemahero/schemahero/pkg/apis/databases +k8s:defaulter-gen=TypeMeta +groupName=databases.schemahero.io
Package v1alpha3 contains API Schema definitions for the databases v1alpha3 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/schemahero/schemahero/pkg/apis/databases +k8s:defaulter-gen=TypeMeta +groupName=databases.schemahero.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: "databases.schemahero.io", Version: "v1alpha3"} // 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 Database ¶
type Database struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DatabaseSpec `json:"spec"` Status DatabaseStatus `json:"status,omitempty"` }
Database is the Schema for the databases API +k8s:openapi-gen=true +kubebuilder:subresource:status
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 { Postgres *PostgresConnection `json:"postgres,omitempty"` Mysql *MysqlConnection `json:"mysql,omitempty"` }
DatabaseConnection defines connection parameters for the database driver
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.
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 { Connection DatabaseConnection `json:"connection,omitempty"` ImmediateDeploy bool `json:"immediateDeploy,omitempty"` SchemaHero *SchemaHero `json:"schemahero,omitempty"` }
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 ¶
type DatabaseStatus struct { IsConnected bool `json:"isConnected"` LastPing string `json:"lastPing"` }
DatabaseStatus defines the observed state of Database
func (*DatabaseStatus) DeepCopy ¶
func (in *DatabaseStatus) DeepCopy() *DatabaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DatabaseStatus.
func (*DatabaseStatus) DeepCopyInto ¶
func (in *DatabaseStatus) DeepCopyInto(out *DatabaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InlineOrRef ¶
type InlineOrRef struct { Value string `json:"-" yaml:"-"` ValueFrom *ValueFrom `json:"valueFrom,omitempty" yaml:"valueFrom,omitempty"` }
func (*InlineOrRef) DeepCopy ¶
func (in *InlineOrRef) DeepCopy() *InlineOrRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InlineOrRef.
func (*InlineOrRef) DeepCopyInto ¶
func (in *InlineOrRef) DeepCopyInto(out *InlineOrRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InlineOrRef) UnmarshalYAML ¶
func (ir *InlineOrRef) UnmarshalYAML(unmarshal func(interface{}) error) error
type MysqlConnection ¶
type MysqlConnection struct {
URI ValueOrValueFrom `json:"uri,omitempty"`
}
func (*MysqlConnection) DeepCopy ¶
func (in *MysqlConnection) DeepCopy() *MysqlConnection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MysqlConnection.
func (*MysqlConnection) DeepCopyInto ¶
func (in *MysqlConnection) DeepCopyInto(out *MysqlConnection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresConnection ¶
type PostgresConnection struct {
URI ValueOrValueFrom `json:"uri,omitempty"`
}
func (*PostgresConnection) DeepCopy ¶
func (in *PostgresConnection) DeepCopy() *PostgresConnection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresConnection.
func (*PostgresConnection) DeepCopyInto ¶
func (in *PostgresConnection) DeepCopyInto(out *PostgresConnection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SchemaHero ¶
type SchemaHero struct { Image string `json:"image,omitempty"` NodeSelector map[string]string `json:"nodeSelector,omitempty"` }
func (*SchemaHero) DeepCopy ¶
func (in *SchemaHero) DeepCopy() *SchemaHero
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchemaHero.
func (*SchemaHero) DeepCopyInto ¶
func (in *SchemaHero) DeepCopyInto(out *SchemaHero)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretKeyRef ¶
type SecretKeyRef struct { Name string `json:"name" yaml:"name"` Key string `json:"key" yaml:"key"` }
func (*SecretKeyRef) DeepCopy ¶
func (in *SecretKeyRef) DeepCopy() *SecretKeyRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretKeyRef.
func (*SecretKeyRef) DeepCopyInto ¶
func (in *SecretKeyRef) DeepCopyInto(out *SecretKeyRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ValueFrom ¶
type ValueFrom struct {
SecretKeyRef *SecretKeyRef `json:"secretKeyRef,omitempty" yaml:"secretKeyRef,omitempty"`
}
func (*ValueFrom) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueFrom.
func (*ValueFrom) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ValueOrValueFrom ¶
type ValueOrValueFrom struct { Value string `json:"value,omitempty" yaml:"value,omitempty"` ValueFrom *ValueFrom `json:"valueFrom,omitempty" yaml:"valueFrom,omitempty"` }
func (*ValueOrValueFrom) DeepCopy ¶
func (in *ValueOrValueFrom) DeepCopy() *ValueOrValueFrom
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueOrValueFrom.
func (*ValueOrValueFrom) DeepCopyInto ¶
func (in *ValueOrValueFrom) DeepCopyInto(out *ValueOrValueFrom)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.