Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the core v1alpha1 API group +kubebuilder:object:generate=true +groupName=core.k8sgpt.ai
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "core.k8sgpt.ai", 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 Failure ¶
type Failure struct { Text string `json:"text,omitempty"` Sensitive []Sensitive `json:"sensitive,omitempty"` }
func (*Failure) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Failure.
func (*Failure) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K8sGPT ¶
type K8sGPT struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec K8sGPTSpec `json:"spec,omitempty"` Status K8sGPTStatus `json:"status,omitempty"` }
K8sGPT is the Schema for the k8sgpts API
func (*K8sGPT) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sGPT.
func (*K8sGPT) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*K8sGPT) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K8sGPTList ¶
type K8sGPTList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []K8sGPT `json:"items"` }
K8sGPTList contains a list of K8sGPT
func (*K8sGPTList) DeepCopy ¶
func (in *K8sGPTList) DeepCopy() *K8sGPTList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sGPTList.
func (*K8sGPTList) DeepCopyInto ¶
func (in *K8sGPTList) DeepCopyInto(out *K8sGPTList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*K8sGPTList) DeepCopyObject ¶
func (in *K8sGPTList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type K8sGPTSpec ¶
type K8sGPTSpec struct { // +kubebuilder:default:=openai // +kubebuilder:validation:Enum=openai;localai;azureopenai Backend string `json:"backend,omitempty"` BaseUrl string `json:"baseUrl,omitempty"` // +kubebuilder:default:=gpt-3.5-turbo Model string `json:"model,omitempty"` Engine string `json:"engine,omitempty"` Secret *SecretRef `json:"secret,omitempty"` Version string `json:"version,omitempty"` EnableAI bool `json:"enableAI,omitempty"` NoCache bool `json:"noCache,omitempty"` }
K8sGPTSpec defines the desired state of K8sGPT
func (*K8sGPTSpec) DeepCopy ¶
func (in *K8sGPTSpec) DeepCopy() *K8sGPTSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sGPTSpec.
func (*K8sGPTSpec) DeepCopyInto ¶
func (in *K8sGPTSpec) DeepCopyInto(out *K8sGPTSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type K8sGPTStatus ¶
type K8sGPTStatus struct { }
K8sGPTStatus defines the observed state of K8sGPT
func (*K8sGPTStatus) DeepCopy ¶
func (in *K8sGPTStatus) DeepCopy() *K8sGPTStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new K8sGPTStatus.
func (*K8sGPTStatus) DeepCopyInto ¶
func (in *K8sGPTStatus) DeepCopyInto(out *K8sGPTStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Result ¶
type Result struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ResultSpec `json:"spec,omitempty"` Status ResultStatus `json:"status,omitempty"` }
Result is the Schema for the results API
func (*Result) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Result.
func (*Result) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Result) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResultList ¶
type ResultList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Result `json:"items"` }
ResultList contains a list of Result
func (*ResultList) DeepCopy ¶
func (in *ResultList) DeepCopy() *ResultList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResultList.
func (*ResultList) DeepCopyInto ¶
func (in *ResultList) DeepCopyInto(out *ResultList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ResultList) DeepCopyObject ¶
func (in *ResultList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ResultSpec ¶
type ResultSpec struct { // INSERT ADDITIONAL SPEC FIELDS - desired state of cluster // Important: Run "make" to regenerate code after modifying this file Kind string `json:"kind"` Name string `json:"name"` Error []Failure `json:"error"` Details string `json:"details"` ParentObject string `json:"parentObject"` }
ResultSpec defines the desired state of Result
func (*ResultSpec) DeepCopy ¶
func (in *ResultSpec) DeepCopy() *ResultSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResultSpec.
func (*ResultSpec) DeepCopyInto ¶
func (in *ResultSpec) DeepCopyInto(out *ResultSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResultStatus ¶
type ResultStatus struct { }
ResultStatus defines the observed state of Result
func (*ResultStatus) DeepCopy ¶
func (in *ResultStatus) DeepCopy() *ResultStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResultStatus.
func (*ResultStatus) DeepCopyInto ¶
func (in *ResultStatus) DeepCopyInto(out *ResultStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretRef ¶
func (*SecretRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Sensitive ¶
type Sensitive struct { Unmasked string `json:"unmasked,omitempty"` Masked string `json:"masked,omitempty"` }
func (*Sensitive) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Sensitive.
func (*Sensitive) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.