...

Source file src/edge-infra.dev/pkg/edge/datasync/apis/v1alpha1/groupversion_info.go

Documentation: edge-infra.dev/pkg/edge/datasync/apis/v1alpha1

     1  // Package v1alpha1 contains API Schema definitions for the datasync v1alpha1 API group
     2  // +kubebuilder:object:generate=true
     3  // +groupName=datasync.edge.ncr.com
     4  package v1alpha1
     5  
     6  import (
     7  	"k8s.io/apimachinery/pkg/runtime/schema"
     8  	"sigs.k8s.io/controller-runtime/pkg/scheme"
     9  )
    10  
    11  var (
    12  	// GroupVersion is group version used to register these objects
    13  	GroupVersion = schema.GroupVersion{Group: "datasync.edge.ncr.com", Version: "v1alpha1"}
    14  
    15  	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
    16  	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
    17  
    18  	// AddToScheme adds the types in this group-version to the given scheme.
    19  	AddToScheme = SchemeBuilder.AddToScheme
    20  )
    21  
    22  func init() {
    23  	// We only register manually written functions here. The registration of the
    24  	// generated functions takes place in the generated files. The separation
    25  	// makes the code compile even when the generated files are missing.
    26  	SchemeBuilder.Register(&CouchDBCredential{},
    27  		&CouchDBCredentialList{},
    28  		&CouchDBDatabase{},
    29  		&CouchDBDatabaseList{},
    30  		&CouchDBDesignDoc{},
    31  		&CouchDBDesignDocList{},
    32  		&CouchDBReplicationDoc{},
    33  		&CouchDBReplicationDocList{},
    34  		&CouchDBUser{},
    35  		&CouchDBUserList{},
    36  		&CouchDBServer{},
    37  		&CouchDBServerList{},
    38  		&CouchDBReplicationSet{},
    39  		&CouchDBReplicationSetList{},
    40  		&CouchDBPersistence{},
    41  		&CouchDBPersistenceList{},
    42  		&CouchDBPersistenceList{},
    43  		&CouchDBIndex{},
    44  		&CouchDBIndexList{})
    45  }
    46  

View as plain text