v1alpha1

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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

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

func (in *Failure) DeepCopy() *Failure

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

func (*Failure) DeepCopyInto

func (in *Failure) DeepCopyInto(out *Failure)

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

func (in *K8sGPT) DeepCopy() *K8sGPT

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

func (*K8sGPT) DeepCopyInto

func (in *K8sGPT) DeepCopyInto(out *K8sGPT)

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

func (*K8sGPT) DeepCopyObject

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

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

func (in *Result) DeepCopy() *Result

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

func (*Result) DeepCopyInto

func (in *Result) DeepCopyInto(out *Result)

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

func (*Result) DeepCopyObject

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

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

type SecretRef struct {
	Name string `json:"name,omitempty"`
	Key  string `json:"key,omitempty"`
}

func (*SecretRef) DeepCopy

func (in *SecretRef) DeepCopy() *SecretRef

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

func (*SecretRef) DeepCopyInto

func (in *SecretRef) DeepCopyInto(out *SecretRef)

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

func (in *Sensitive) DeepCopy() *Sensitive

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

func (*Sensitive) DeepCopyInto

func (in *Sensitive) DeepCopyInto(out *Sensitive)

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