v1alpha1

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the trustyai.opendatahub.io v1alpha1 API group +kubebuilder:object:generate=true +groupName=trustyai.opendatahub.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "trustyai.opendatahub.io", 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 Condition

type Condition struct {
	Type               string                 `json:"type"`
	Status             corev1.ConditionStatus `json:"status"`
	LastTransitionTime metav1.Time            `json:"lastTransitionTime"`
	Reason             string                 `json:"reason"`
	Message            string                 `json:"message"`
}

Condition represents possible conditions of a TrustyAIServiceStatus

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type DataSpec

type DataSpec struct {
	Filename string `json:"filename"`
	Format   string `json:"format"`
}

func (*DataSpec) DeepCopy

func (in *DataSpec) DeepCopy() *DataSpec

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

func (*DataSpec) DeepCopyInto

func (in *DataSpec) DeepCopyInto(out *DataSpec)

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

type MetricsSpec

type MetricsSpec struct {
	Schedule  string `json:"schedule"`
	BatchSize *int   `json:"batchSize,omitempty"`
}

func (*MetricsSpec) DeepCopy

func (in *MetricsSpec) DeepCopy() *MetricsSpec

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

func (*MetricsSpec) DeepCopyInto

func (in *MetricsSpec) DeepCopyInto(out *MetricsSpec)

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

type StorageSpec

type StorageSpec struct {
	Format string `json:"format"`
	Folder string `json:"folder"`
	Size   string `json:"size"`
}

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 TrustyAIService

type TrustyAIService struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   TrustyAIServiceSpec   `json:"spec,omitempty"`
	Status TrustyAIServiceStatus `json:"status,omitempty"`
}

TrustyAIService is the Schema for the trustyaiservices API +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:subresource:status

func (*TrustyAIService) DeepCopy

func (in *TrustyAIService) DeepCopy() *TrustyAIService

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

func (*TrustyAIService) DeepCopyInto

func (in *TrustyAIService) DeepCopyInto(out *TrustyAIService)

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

func (*TrustyAIService) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*TrustyAIService) SetStatus added in v1.10.3

func (t *TrustyAIService) SetStatus(condType, reason, message string, status corev1.ConditionStatus)

SetStatus sets the status of the TrustyAIService

type TrustyAIServiceList

type TrustyAIServiceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []TrustyAIService `json:"items"`
}

TrustyAIServiceList contains a list of TrustyAIService

func (*TrustyAIServiceList) DeepCopy

func (in *TrustyAIServiceList) DeepCopy() *TrustyAIServiceList

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

func (*TrustyAIServiceList) DeepCopyInto

func (in *TrustyAIServiceList) DeepCopyInto(out *TrustyAIServiceList)

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

func (*TrustyAIServiceList) DeepCopyObject

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

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TrustyAIServiceSpec

type TrustyAIServiceSpec struct {
	// Number of replicas
	// +optional
	Replicas *int32      `json:"replicas"`
	Storage  StorageSpec `json:"storage"`
	Data     DataSpec    `json:"data"`
	Metrics  MetricsSpec `json:"metrics"`
}

TrustyAIServiceSpec defines the desired state of TrustyAIService

func (*TrustyAIServiceSpec) DeepCopy

func (in *TrustyAIServiceSpec) DeepCopy() *TrustyAIServiceSpec

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

func (*TrustyAIServiceSpec) DeepCopyInto

func (in *TrustyAIServiceSpec) DeepCopyInto(out *TrustyAIServiceSpec)

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

type TrustyAIServiceStatus

type TrustyAIServiceStatus struct {
	// Define your status fields here
	Phase      string                 `json:"phase"`
	Replicas   int32                  `json:"replicas"`
	Conditions []Condition            `json:"conditions"`
	Ready      corev1.ConditionStatus `json:"ready,omitempty"`
}

TrustyAIServiceStatus defines the observed state of TrustyAIService

func (*TrustyAIServiceStatus) DeepCopy

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

func (*TrustyAIServiceStatus) DeepCopyInto

func (in *TrustyAIServiceStatus) DeepCopyInto(out *TrustyAIServiceStatus)

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

Jump to

Keyboard shortcuts

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