v1alpha1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

+groupName=ml.google.kubeform.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api.
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: ml.GroupName, Version: "v1alpha1"}

Functions

func GetDecoder

func GetDecoder() map[string]jsoniter.ValDecoder

func GetEncoder

func GetEncoder() map[string]jsoniter.ValEncoder

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type EngineModel

type EngineModel struct {
	metav1.TypeMeta   `json:",inline,omitempty"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              EngineModelSpec   `json:"spec,omitempty"`
	Status            EngineModelStatus `json:"status,omitempty"`
}

func (*EngineModel) DeepCopy

func (in *EngineModel) DeepCopy() *EngineModel

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

func (*EngineModel) DeepCopyInto

func (in *EngineModel) DeepCopyInto(out *EngineModel)

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

func (*EngineModel) DeepCopyObject

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

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

func (*EngineModel) SetupWebhookWithManager

func (r *EngineModel) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*EngineModel) ValidateCreate

func (r *EngineModel) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*EngineModel) ValidateDelete

func (r *EngineModel) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*EngineModel) ValidateUpdate

func (r *EngineModel) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type EngineModelList

type EngineModelList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// Items is a list of EngineModel CRD objects
	Items []EngineModel `json:"items,omitempty"`
}

EngineModelList is a list of EngineModels

func (*EngineModelList) DeepCopy

func (in *EngineModelList) DeepCopy() *EngineModelList

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

func (*EngineModelList) DeepCopyInto

func (in *EngineModelList) DeepCopyInto(out *EngineModelList)

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

func (*EngineModelList) DeepCopyObject

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

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

type EngineModelSpec

type EngineModelSpec struct {
	State *EngineModelSpecResource `json:"state,omitempty" tf:"-"`

	Resource EngineModelSpecResource `json:"resource" tf:"resource"`

	UpdatePolicy base.UpdatePolicy `json:"updatePolicy,omitempty" tf:"-"`

	TerminationPolicy base.TerminationPolicy `json:"terminationPolicy,omitempty" tf:"-"`

	ProviderRef core.LocalObjectReference `json:"providerRef" tf:"-"`

	BackendRef *core.LocalObjectReference `json:"backendRef,omitempty" tf:"-"`
}

func (*EngineModelSpec) DeepCopy

func (in *EngineModelSpec) DeepCopy() *EngineModelSpec

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

func (*EngineModelSpec) DeepCopyInto

func (in *EngineModelSpec) DeepCopyInto(out *EngineModelSpec)

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

type EngineModelSpecDefaultVersion

type EngineModelSpecDefaultVersion struct {
	// The name specified for the version when it was created.
	Name *string `json:"name" tf:"name"`
}

func (*EngineModelSpecDefaultVersion) DeepCopy

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

func (*EngineModelSpecDefaultVersion) DeepCopyInto

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

type EngineModelSpecDefaultVersionCodec

type EngineModelSpecDefaultVersionCodec struct {
}

+k8s:deepcopy-gen=false

func (EngineModelSpecDefaultVersionCodec) Decode

func (EngineModelSpecDefaultVersionCodec) Encode

func (EngineModelSpecDefaultVersionCodec) IsEmpty

type EngineModelSpecResource

type EngineModelSpecResource struct {
	Timeouts *base.ResourceTimeout `json:"timeouts,omitempty" tf:"timeouts"`

	ID string `json:"id,omitempty" tf:"id,omitempty"`

	// The default version of the model. This version will be used to handle
	// prediction requests that do not specify a version.
	// +optional
	DefaultVersion *EngineModelSpecDefaultVersion `json:"defaultVersion,omitempty" tf:"default_version"`
	// The description specified for the model when it was created.
	// +optional
	Description *string `json:"description,omitempty" tf:"description"`
	// One or more labels that you can add, to organize your models.
	// +optional
	Labels *map[string]string `json:"labels,omitempty" tf:"labels"`
	// The name specified for the model.
	Name *string `json:"name" tf:"name"`
	// If true, online prediction nodes send stderr and stdout streams to Stackdriver Logging
	// +optional
	OnlinePredictionConsoleLogging *bool `json:"onlinePredictionConsoleLogging,omitempty" tf:"online_prediction_console_logging"`
	// If true, online prediction access logs are sent to StackDriver Logging.
	// +optional
	OnlinePredictionLogging *bool `json:"onlinePredictionLogging,omitempty" tf:"online_prediction_logging"`
	// +optional
	Project *string `json:"project,omitempty" tf:"project"`
	// The list of regions where the model is going to be deployed.
	// Currently only one region per model is supported
	// +optional
	Regions []string `json:"regions,omitempty" tf:"regions"`
}

func (*EngineModelSpecResource) DeepCopy

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

func (*EngineModelSpecResource) DeepCopyInto

func (in *EngineModelSpecResource) DeepCopyInto(out *EngineModelSpecResource)

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

type EngineModelStatus

type EngineModelStatus struct {
	// Resource generation, which is updated on mutation by the API Server.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// +optional
	Phase status.Status `json:"phase,omitempty"`
	// +optional
	Conditions []kmapi.Condition `json:"conditions,omitempty"`
}

func (*EngineModelStatus) DeepCopy

func (in *EngineModelStatus) DeepCopy() *EngineModelStatus

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

func (*EngineModelStatus) DeepCopyInto

func (in *EngineModelStatus) DeepCopyInto(out *EngineModelStatus)

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