Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the cloud v1alpha1 API group +kubebuilder:object:generate=true +groupName=cloud.encoder.run
Index ¶
- Variables
- type GithubRepositorySpec
- type HuggingFaceModelSpec
- type Model
- type ModelDeploymentSpec
- type ModelList
- type ModelSpec
- type ModelState
- type ModelStatus
- type ModelType
- type Pipeline
- type PipelineExecution
- type PipelineExecutionList
- type PipelineExecutionSpec
- type PipelineExecutionState
- type PipelineExecutionStatus
- type PipelineList
- type PipelineSpec
- type PipelineState
- type PipelineStatus
- type PipelineType
- type PostgresSpec
- type Repository
- type RepositoryEmbeddingsSpec
- type RepositoryList
- type RepositorySpec
- type RepositoryStatus
- type RepositoryType
- type Storage
- type StorageDeploymentSpec
- type StorageList
- type StorageSpec
- type StorageState
- type StorageStatus
- type StorageType
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cloud.encoder.run", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type GithubRepositorySpec ¶
type GithubRepositorySpec struct {
// Owner of the repository
Owner string `json:"owner"`
// Name of the repository
Name string `json:"name"`
// URL of the repository
URL string `json:"url"`
// Branch of the repository
Branch string `json:"branch,omitempty"`
}
GithubRepositorySpec defines the desired state of a Github repository
func (*GithubRepositorySpec) DeepCopy ¶
func (in *GithubRepositorySpec) DeepCopy() *GithubRepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GithubRepositorySpec.
func (*GithubRepositorySpec) DeepCopyInto ¶
func (in *GithubRepositorySpec) DeepCopyInto(out *GithubRepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HuggingFaceModelSpec ¶
type HuggingFaceModelSpec struct {
Organization string `json:"organization"`
Name string `json:"name"`
MaxSequenceLength int `json:"maxSequenceLength"`
}
HuggingFaceModelSpec defines the desired state of HuggingFaceModel
func (*HuggingFaceModelSpec) DeepCopy ¶
func (in *HuggingFaceModelSpec) DeepCopy() *HuggingFaceModelSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HuggingFaceModelSpec.
func (*HuggingFaceModelSpec) DeepCopyInto ¶
func (in *HuggingFaceModelSpec) DeepCopyInto(out *HuggingFaceModelSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Model ¶
type Model struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ModelSpec `json:"spec,omitempty"`
Status ModelStatus `json:"status,omitempty"`
}
Model is the Schema for the models API
func (*Model) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Model.
func (*Model) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Model) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ModelDeploymentSpec ¶
type ModelDeploymentSpec struct {
Enabled bool `json:"enabled"`
CPU resource.Quantity `json:"cpu"`
Memory resource.Quantity `json:"memory"`
}
func (*ModelDeploymentSpec) DeepCopy ¶
func (in *ModelDeploymentSpec) DeepCopy() *ModelDeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelDeploymentSpec.
func (*ModelDeploymentSpec) DeepCopyInto ¶
func (in *ModelDeploymentSpec) DeepCopyInto(out *ModelDeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ModelList ¶
type ModelList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Model `json:"items"`
}
ModelList contains a list of Model
func (*ModelList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelList.
func (*ModelList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ModelList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ModelSpec ¶
type ModelSpec struct {
Type ModelType `json:"type"`
// Hugging Face model spec
HuggingFace *HuggingFaceModelSpec `json:"huggingface,omitempty"`
// Deployment spec
Deployment *ModelDeploymentSpec `json:"deployment,omitempty"`
}
ModelSpec defines the desired state of Model
func (*ModelSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelSpec.
func (*ModelSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ModelState ¶
type ModelState string
ModelState defines the state of the model
const ( // ModelStateNotDeployed represents a model that is not deployed ModelStateNotDeployed ModelState = "NOT_DEPLOYED" // ModelStateDeploying represents a model that is being deployed ModelStateDeploying ModelState = "DEPLOYING" // ModelStateReady represents a model that is ready ModelStateReady ModelState = "READY" // ModelStateError represents a model that has failed ModelStateError ModelState = "ERROR" )
type ModelStatus ¶
type ModelStatus struct {
State *ModelState `json:"state,omitempty"`
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
ModelStatus defines the observed state of Model
func (*ModelStatus) DeepCopy ¶
func (in *ModelStatus) DeepCopy() *ModelStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelStatus.
func (*ModelStatus) DeepCopyInto ¶
func (in *ModelStatus) DeepCopyInto(out *ModelStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Pipeline ¶
type Pipeline struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PipelineSpec `json:"spec,omitempty"`
Status PipelineStatus `json:"status,omitempty"`
}
Pipeline is the Schema for the pipelines API
func (*Pipeline) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pipeline.
func (*Pipeline) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Pipeline) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PipelineExecution ¶
type PipelineExecution struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PipelineExecutionSpec `json:"spec,omitempty"`
Status PipelineExecutionStatus `json:"status,omitempty"`
}
PipelineExecution is the Schema for the pipelineexecutions API
func (*PipelineExecution) DeepCopy ¶
func (in *PipelineExecution) DeepCopy() *PipelineExecution
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineExecution.
func (*PipelineExecution) DeepCopyInto ¶
func (in *PipelineExecution) DeepCopyInto(out *PipelineExecution)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineExecution) DeepCopyObject ¶
func (in *PipelineExecution) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PipelineExecutionList ¶
type PipelineExecutionList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PipelineExecution `json:"items"`
}
PipelineExecutionList contains a list of PipelineExecution
func (*PipelineExecutionList) DeepCopy ¶
func (in *PipelineExecutionList) DeepCopy() *PipelineExecutionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineExecutionList.
func (*PipelineExecutionList) DeepCopyInto ¶
func (in *PipelineExecutionList) DeepCopyInto(out *PipelineExecutionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineExecutionList) DeepCopyObject ¶
func (in *PipelineExecutionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PipelineExecutionSpec ¶
type PipelineExecutionSpec struct {
// PipelineRef is a reference to the pipeline
PipelineRef v1.ObjectReference `json:"pipelineRef"`
// Metadata is a map of metadata
Metadata map[string]string `json:"metadata,omitempty"`
}
PipelineExecutionSpec defines the desired state of PipelineExecution
func (*PipelineExecutionSpec) DeepCopy ¶
func (in *PipelineExecutionSpec) DeepCopy() *PipelineExecutionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineExecutionSpec.
func (*PipelineExecutionSpec) DeepCopyInto ¶
func (in *PipelineExecutionSpec) DeepCopyInto(out *PipelineExecutionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineExecutionState ¶
type PipelineExecutionState string
const ( // Active represents an active pipeline execution PipelineExecutionStateActive PipelineExecutionState = "ACTIVE" // Succeeded represents a succeeded pipeline execution PipelineExecutionStateSucceeded PipelineExecutionState = "SUCCEEDED" // Failed represents a failed pipeline execution PipelineExecutionStateFailed PipelineExecutionState = "FAILED" // Pending represents a pending pipeline execution PipelineExecutionStatePending PipelineExecutionState = "PENDING" )
type PipelineExecutionStatus ¶
type PipelineExecutionStatus struct {
State *PipelineExecutionState `json:"state,omitempty"`
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
PipelineExecutionStatus defines the observed state of PipelineExecution
func (*PipelineExecutionStatus) DeepCopy ¶
func (in *PipelineExecutionStatus) DeepCopy() *PipelineExecutionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineExecutionStatus.
func (*PipelineExecutionStatus) DeepCopyInto ¶
func (in *PipelineExecutionStatus) DeepCopyInto(out *PipelineExecutionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineList ¶
type PipelineList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Pipeline `json:"items"`
}
PipelineList contains a list of Pipeline
func (*PipelineList) DeepCopy ¶
func (in *PipelineList) DeepCopy() *PipelineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineList.
func (*PipelineList) DeepCopyInto ¶
func (in *PipelineList) DeepCopyInto(out *PipelineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PipelineList) DeepCopyObject ¶
func (in *PipelineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PipelineSpec ¶
type PipelineSpec struct {
// Name of the pipeline
Name string `json:"name"`
// Type of the pipeline
Type PipelineType `json:"type"`
// Enabled flag
Enabled bool `json:"enabled"`
// RepositoryEmbeddings pipeline spec
RepositoryEmbeddings *RepositoryEmbeddingsSpec `json:"repositoryembeddings,omitempty"`
}
PipelineSpec defines the desired state of Pipeline
func (*PipelineSpec) DeepCopy ¶
func (in *PipelineSpec) DeepCopy() *PipelineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineSpec.
func (*PipelineSpec) DeepCopyInto ¶
func (in *PipelineSpec) DeepCopyInto(out *PipelineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineState ¶
type PipelineState string
const ( PipelineStateReady PipelineState = "READY" PipelineStateError PipelineState = "ERROR" PipelineStateRunning PipelineState = "RUNNING" )
type PipelineStatus ¶
type PipelineStatus struct {
State *PipelineState `json:"state,omitempty"`
}
PipelineStatus defines the observed state of Pipeline
func (*PipelineStatus) DeepCopy ¶
func (in *PipelineStatus) DeepCopy() *PipelineStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineStatus.
func (*PipelineStatus) DeepCopyInto ¶
func (in *PipelineStatus) DeepCopyInto(out *PipelineStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineType ¶
type PipelineType string
const (
PipelineTypeRepositoryEmbeddings PipelineType = "REPOSITORY_EMBEDDINGS"
)
type PostgresSpec ¶
type PostgresSpec struct {
// External is a flag to indicate if the Postgres instance is external
External bool `json:"external"`
}
PostgresSpec defines the spec for Postgres storage
func (*PostgresSpec) DeepCopy ¶
func (in *PostgresSpec) DeepCopy() *PostgresSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresSpec.
func (*PostgresSpec) DeepCopyInto ¶
func (in *PostgresSpec) DeepCopyInto(out *PostgresSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Repository ¶
type Repository struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec RepositorySpec `json:"spec,omitempty"`
Status RepositoryStatus `json:"status,omitempty"`
}
Repository is the Schema for the repositories API
func (*Repository) DeepCopy ¶
func (in *Repository) DeepCopy() *Repository
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Repository.
func (*Repository) DeepCopyInto ¶
func (in *Repository) DeepCopyInto(out *Repository)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Repository) DeepCopyObject ¶
func (in *Repository) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RepositoryEmbeddingsSpec ¶
type RepositoryEmbeddingsSpec struct {
// Repository spec
Repository v1.ObjectReference `json:"repository"`
// Model spec
Model v1.ObjectReference `json:"model"`
// Storage spec
Storage v1.ObjectReference `json:"storage"`
}
func (*RepositoryEmbeddingsSpec) DeepCopy ¶
func (in *RepositoryEmbeddingsSpec) DeepCopy() *RepositoryEmbeddingsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryEmbeddingsSpec.
func (*RepositoryEmbeddingsSpec) DeepCopyInto ¶
func (in *RepositoryEmbeddingsSpec) DeepCopyInto(out *RepositoryEmbeddingsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryList ¶
type RepositoryList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Repository `json:"items"`
}
RepositoryList contains a list of Repository
func (*RepositoryList) DeepCopy ¶
func (in *RepositoryList) DeepCopy() *RepositoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryList.
func (*RepositoryList) DeepCopyInto ¶
func (in *RepositoryList) DeepCopyInto(out *RepositoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RepositoryList) DeepCopyObject ¶
func (in *RepositoryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RepositorySpec ¶
type RepositorySpec struct {
// Type of repository
Type RepositoryType `json:"type"`
// Github repository spec
Github *GithubRepositorySpec `json:"github,omitempty"`
}
RepositorySpec defines the desired state of Repository
func (*RepositorySpec) DeepCopy ¶
func (in *RepositorySpec) DeepCopy() *RepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositorySpec.
func (*RepositorySpec) DeepCopyInto ¶
func (in *RepositorySpec) DeepCopyInto(out *RepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryStatus ¶
type RepositoryStatus struct {
}
RepositoryStatus defines the observed state of Repository
func (*RepositoryStatus) DeepCopy ¶
func (in *RepositoryStatus) DeepCopy() *RepositoryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RepositoryStatus.
func (*RepositoryStatus) DeepCopyInto ¶
func (in *RepositoryStatus) DeepCopyInto(out *RepositoryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RepositoryType ¶
type RepositoryType string
RepositoryType defines the type of repository
const ( // RepositoryTypeGithub represents a Github repository RepositoryTypeGithub RepositoryType = "GITHUB" // RepositoryTypeGitlab represents a Gitlab repository RepositoryTypeGitlab RepositoryType = "GITLAB" // RepositoryTypeBitbucket represents a Bitbucket repository RepositoryTypeBitbucket RepositoryType = "BITBUCKET" )
type Storage ¶
type Storage struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec StorageSpec `json:"spec,omitempty"`
Status StorageStatus `json:"status,omitempty"`
}
Storage is the Schema for the storages API
func (*Storage) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.
func (*Storage) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Storage) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StorageDeploymentSpec ¶
type StorageDeploymentSpec struct {
Enabled bool `json:"enabled"`
CPU resource.Quantity `json:"cpu"`
Memory resource.Quantity `json:"memory"`
}
func (*StorageDeploymentSpec) DeepCopy ¶
func (in *StorageDeploymentSpec) DeepCopy() *StorageDeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageDeploymentSpec.
func (*StorageDeploymentSpec) DeepCopyInto ¶
func (in *StorageDeploymentSpec) DeepCopyInto(out *StorageDeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageList ¶
type StorageList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Storage `json:"items"`
}
StorageList contains a list of Storage
func (*StorageList) DeepCopy ¶
func (in *StorageList) DeepCopy() *StorageList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageList.
func (*StorageList) DeepCopyInto ¶
func (in *StorageList) DeepCopyInto(out *StorageList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageList) DeepCopyObject ¶
func (in *StorageList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StorageSpec ¶
type StorageSpec struct {
// Type of storage
Type StorageType `json:"type"`
// Name of the storage
Name string `json:"name"`
// Postgres spec
Postgres *PostgresSpec `json:"postgres,omitempty"`
// Deployment spec
Deployment *StorageDeploymentSpec `json:"deployment,omitempty"`
}
StorageSpec defines the desired state of Storage
func (*StorageSpec) DeepCopy ¶
func (in *StorageSpec) DeepCopy() *StorageSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageSpec.
func (*StorageSpec) DeepCopyInto ¶
func (in *StorageSpec) DeepCopyInto(out *StorageSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageState ¶
type StorageState string
StorageState defines the state of the storage
const ( // StorageStateNotDeployed represents a storage that is not deployed StorageStateNotDeployed StorageState = "NOT_DEPLOYED" // StorageStateDeploying represents a storage that is being deployed StorageStateDeploying StorageState = "DEPLOYING" // StorageStateReady represents a storage that is ready StorageStateReady StorageState = "READY" // StorageStateError represents a storage that has failed StorageStateError StorageState = "ERROR" )
type StorageStatus ¶
type StorageStatus struct {
State *StorageState `json:"state,omitempty"`
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
StorageStatus defines the observed state of Storage
func (*StorageStatus) DeepCopy ¶
func (in *StorageStatus) DeepCopy() *StorageStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageStatus.
func (*StorageStatus) DeepCopyInto ¶
func (in *StorageStatus) DeepCopyInto(out *StorageStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageType ¶
type StorageType string
StorageType defines the type of storage
const ( // StorageTypeRedis represents a Redis storage StorageTypeRedis StorageType = "REDIS" // StorageTypePostgres represents a Postgres storage StorageTypePostgres StorageType = "POSTGRES" // StorageTypeElasticsearch represents an Elasticsearch storage StorageTypeElasticsearch StorageType = "ELASTICSEARCH" )