v1alpha1

package
v0.0.0-...-f4df796 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the cloud v1alpha1 API group +kubebuilder:object:generate=true +groupName=cloud.encoder.run

Index

Constants

This section is empty.

Variables

View Source
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

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

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

func (in *Model) DeepCopy() *Model

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Model.

func (*Model) DeepCopyInto

func (in *Model) DeepCopyInto(out *Model)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Model) DeepCopyObject

func (in *Model) DeepCopyObject() runtime.Object

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

func (in *ModelList) DeepCopy() *ModelList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelList.

func (*ModelList) DeepCopyInto

func (in *ModelList) DeepCopyInto(out *ModelList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ModelList) DeepCopyObject

func (in *ModelList) DeepCopyObject() runtime.Object

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

func (in *ModelSpec) DeepCopy() *ModelSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ModelSpec.

func (*ModelSpec) DeepCopyInto

func (in *ModelSpec) DeepCopyInto(out *ModelSpec)

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 ModelType

type ModelType string

ModelType defines the type of model

const (
	// ModelTypeHuggingFace represents a Hugging Face model
	ModelTypeHuggingFace ModelType = "HUGGINGFACE"
	// ModelTypeExternal represents an external model
	ModelTypeExternal ModelType = "EXTERNAL"
)

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

func (in *Pipeline) DeepCopy() *Pipeline

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pipeline.

func (*Pipeline) DeepCopyInto

func (in *Pipeline) DeepCopyInto(out *Pipeline)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Pipeline) DeepCopyObject

func (in *Pipeline) DeepCopyObject() runtime.Object

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

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

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

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

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

func (in *Storage) DeepCopy() *Storage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Storage.

func (*Storage) DeepCopyInto

func (in *Storage) DeepCopyInto(out *Storage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Storage) DeepCopyObject

func (in *Storage) DeepCopyObject() runtime.Object

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

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL