Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,46 @@ multigroup: true
projectName: catalog
repo: go.bytebuilders.dev/catalog
resources:
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: AerospikeBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: CassandraBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: ClickHouseBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: DB2Binding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: DocumentDBBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
Expand All @@ -33,6 +73,30 @@ resources:
kind: FerretDBBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: HanaDBBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: HazelcastBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: IgniteBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
Expand All @@ -57,6 +121,14 @@ resources:
kind: MemcachedBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: MilvusBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
Expand All @@ -81,6 +153,22 @@ resources:
kind: MySQLBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: Neo4jBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: OracleBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
Expand Down Expand Up @@ -121,6 +209,14 @@ resources:
kind: ProxySQLBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: QdrantBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
Expand Down Expand Up @@ -153,6 +249,14 @@ resources:
kind: SolrBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
domain: appscode.com
group: catalog
kind: WeaviateBinding
path: go.bytebuilders.dev/catalog/api/catalog/v1alpha1
version: v1alpha1
- api:
crdVersion: v1
namespaced: true
Expand Down
78 changes: 78 additions & 0 deletions api/catalog/v1alpha1/aerospikebinding_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
Copyright AppsCode Inc. and Contributors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kmapi "kmodules.xyz/client-go/api/v1"
)

const (
ResourceKindAerospikeBinding = "AerospikeBinding"
ResourceAerospikeBinding = "aerospikebinding"
ResourceAerospikeBindings = "aerospikebindings"
)

// +kubebuilder:object:root=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:subresource:status
// +kubebuilder:resource:shortName=arbinding,categories={binding,kubedb,appscode}
// +kubebuilder:printcolumn:name="Src_NS",type="string",JSONPath=".spec.sourceRef.namespace"
// +kubebuilder:printcolumn:name="Src_Name",type="string",JSONPath=".spec.sourceRef.name"
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

// AerospikeBinding is the Schema for the aerospikebindings API
type AerospikeBinding struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec BindingSpec `json:"spec,omitempty"`
Status BindingStatus `json:"status,omitempty"`
}

//+kubebuilder:object:root=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// AerospikeBindingList contains a list of AerospikeBinding
type AerospikeBindingList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []AerospikeBinding `json:"items"`
}

func init() {
SchemeBuilder.Register(&AerospikeBinding{}, &AerospikeBindingList{})
}

var _ BindingInterface = &AerospikeBinding{}

func (in *AerospikeBinding) GetSourceRef() kmapi.ObjectReference {
return in.Spec.SourceRef
}

func (in *AerospikeBinding) GetStatus() *BindingStatus {
return &in.Status
}

func (in *AerospikeBinding) GetConditions() kmapi.Conditions {
return in.Status.Conditions
}

func (in *AerospikeBinding) SetConditions(conditions kmapi.Conditions) {
in.Status.Conditions = conditions
}
78 changes: 78 additions & 0 deletions api/catalog/v1alpha1/db2binding_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
Copyright AppsCode Inc. and Contributors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kmapi "kmodules.xyz/client-go/api/v1"
)

const (
ResourceKindDB2Binding = "DB2Binding"
ResourceDB2Binding = "db2binding"
ResourceDB2Bindings = "db2bindings"
)

// +kubebuilder:object:root=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:subresource:status
// +kubebuilder:resource:shortName=db2binding,categories={binding,kubedb,appscode}
// +kubebuilder:printcolumn:name="Src_NS",type="string",JSONPath=".spec.sourceRef.namespace"
// +kubebuilder:printcolumn:name="Src_Name",type="string",JSONPath=".spec.sourceRef.name"
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

// DB2Binding is the Schema for the db2bindings API
type DB2Binding struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec BindingSpec `json:"spec,omitempty"`
Status BindingStatus `json:"status,omitempty"`
}

//+kubebuilder:object:root=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// DB2BindingList contains a list of DB2Binding
type DB2BindingList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DB2Binding `json:"items"`
}

func init() {
SchemeBuilder.Register(&DB2Binding{}, &DB2BindingList{})
}

var _ BindingInterface = &DB2Binding{}

func (in *DB2Binding) GetSourceRef() kmapi.ObjectReference {
return in.Spec.SourceRef
}

func (in *DB2Binding) GetStatus() *BindingStatus {
return &in.Status
}

func (in *DB2Binding) GetConditions() kmapi.Conditions {
return in.Status.Conditions
}

func (in *DB2Binding) SetConditions(conditions kmapi.Conditions) {
in.Status.Conditions = conditions
}
78 changes: 78 additions & 0 deletions api/catalog/v1alpha1/documentdbbinding_types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
Copyright AppsCode Inc. and Contributors

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package v1alpha1

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
kmapi "kmodules.xyz/client-go/api/v1"
)

const (
ResourceKindDocumentDBBinding = "DocumentDBBinding"
ResourceDocumentDBBinding = "documentdbbinding"
ResourceDocumentDBBindings = "documentdbbindings"
)

// +kubebuilder:object:root=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:subresource:status
// +kubebuilder:resource:shortName=docbinding,categories={binding,kubedb,appscode}
// +kubebuilder:printcolumn:name="Src_NS",type="string",JSONPath=".spec.sourceRef.namespace"
// +kubebuilder:printcolumn:name="Src_Name",type="string",JSONPath=".spec.sourceRef.name"
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.phase"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

// DocumentDBBinding is the Schema for the documentdbbindings API
type DocumentDBBinding struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Spec BindingSpec `json:"spec,omitempty"`
Status BindingStatus `json:"status,omitempty"`
}

//+kubebuilder:object:root=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

// DocumentDBBindingList contains a list of DocumentDBBinding
type DocumentDBBindingList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []DocumentDBBinding `json:"items"`
}

func init() {
SchemeBuilder.Register(&DocumentDBBinding{}, &DocumentDBBindingList{})
}

var _ BindingInterface = &DocumentDBBinding{}

func (in *DocumentDBBinding) GetSourceRef() kmapi.ObjectReference {
return in.Spec.SourceRef
}

func (in *DocumentDBBinding) GetStatus() *BindingStatus {
return &in.Status
}

func (in *DocumentDBBinding) GetConditions() kmapi.Conditions {
return in.Status.Conditions
}

func (in *DocumentDBBinding) SetConditions(conditions kmapi.Conditions) {
in.Status.Conditions = conditions
}
Loading
Loading