v1alpha1

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlavorApplyConfiguration

type FlavorApplyConfiguration struct {
	Name         *v1alpha1.FlavorName `json:"name,omitempty"`
	Requests     *v1.ResourceList     `json:"requests,omitempty"`
	NodeSelector map[string]string    `json:"nodeSelector,omitempty"`
	Params       map[string]string    `json:"params,omitempty"`
}

FlavorApplyConfiguration represents a declarative configuration of the Flavor type for use with apply.

func Flavor

func Flavor() *FlavorApplyConfiguration

FlavorApplyConfiguration constructs a declarative configuration of the Flavor type for use with apply.

func (*FlavorApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*FlavorApplyConfiguration) WithNodeSelector

func (b *FlavorApplyConfiguration) WithNodeSelector(entries map[string]string) *FlavorApplyConfiguration

WithNodeSelector puts the entries into the NodeSelector field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the NodeSelector field, overwriting an existing map entries in NodeSelector field with the same key.

func (*FlavorApplyConfiguration) WithParams

func (b *FlavorApplyConfiguration) WithParams(entries map[string]string) *FlavorApplyConfiguration

WithParams puts the entries into the Params field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Params field, overwriting an existing map entries in Params field with the same key.

func (*FlavorApplyConfiguration) WithRequests

WithRequests sets the Requests field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Requests field is set to the value of the last call.

type ModelClaimApplyConfiguration

type ModelClaimApplyConfiguration struct {
	ModelName        *v1alpha1.ModelName   `json:"modelName,omitempty"`
	InferenceFlavors []v1alpha1.FlavorName `json:"inferenceFlavors,omitempty"`
}

ModelClaimApplyConfiguration represents a declarative configuration of the ModelClaim type for use with apply.

func ModelClaim

func ModelClaim() *ModelClaimApplyConfiguration

ModelClaimApplyConfiguration constructs a declarative configuration of the ModelClaim type for use with apply.

func (*ModelClaimApplyConfiguration) WithInferenceFlavors

WithInferenceFlavors adds the given value to the InferenceFlavors field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the InferenceFlavors field.

func (*ModelClaimApplyConfiguration) WithModelName

WithModelName sets the ModelName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ModelName field is set to the value of the last call.

type ModelClaimsApplyConfiguration added in v0.0.6

type ModelClaimsApplyConfiguration struct {
	Models           []ModelReferApplyConfiguration `json:"models,omitempty"`
	InferenceFlavors []corev1alpha1.FlavorName      `json:"inferenceFlavors,omitempty"`
}

ModelClaimsApplyConfiguration represents a declarative configuration of the ModelClaims type for use with apply.

func ModelClaims added in v0.0.6

func ModelClaims() *ModelClaimsApplyConfiguration

ModelClaimsApplyConfiguration constructs a declarative configuration of the ModelClaims type for use with apply.

func (*ModelClaimsApplyConfiguration) WithInferenceFlavors added in v0.0.6

WithInferenceFlavors adds the given value to the InferenceFlavors field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the InferenceFlavors field.

func (*ModelClaimsApplyConfiguration) WithModels added in v0.0.6

WithModels adds the given value to the Models field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Models field.

type ModelHubApplyConfiguration

type ModelHubApplyConfiguration struct {
	Name           *string  `json:"name,omitempty"`
	ModelID        *string  `json:"modelID,omitempty"`
	Filename       *string  `json:"filename,omitempty"`
	Revision       *string  `json:"revision,omitempty"`
	AllowPatterns  []string `json:"allowPatterns,omitempty"`
	IgnorePatterns []string `json:"ignorePatterns,omitempty"`
}

ModelHubApplyConfiguration represents a declarative configuration of the ModelHub type for use with apply.

func ModelHub

func ModelHub() *ModelHubApplyConfiguration

ModelHubApplyConfiguration constructs a declarative configuration of the ModelHub type for use with apply.

func (*ModelHubApplyConfiguration) WithAllowPatterns added in v0.0.8

func (b *ModelHubApplyConfiguration) WithAllowPatterns(values ...string) *ModelHubApplyConfiguration

WithAllowPatterns adds the given value to the AllowPatterns field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the AllowPatterns field.

func (*ModelHubApplyConfiguration) WithFilename

WithFilename sets the Filename field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Filename field is set to the value of the last call.

func (*ModelHubApplyConfiguration) WithIgnorePatterns added in v0.0.8

func (b *ModelHubApplyConfiguration) WithIgnorePatterns(values ...string) *ModelHubApplyConfiguration

WithIgnorePatterns adds the given value to the IgnorePatterns field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the IgnorePatterns field.

func (*ModelHubApplyConfiguration) WithModelID

WithModelID sets the ModelID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ModelID field is set to the value of the last call.

func (*ModelHubApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*ModelHubApplyConfiguration) WithRevision

WithRevision sets the Revision field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Revision field is set to the value of the last call.

type ModelReferApplyConfiguration added in v0.0.7

type ModelReferApplyConfiguration struct {
	Name *v1alpha1.ModelName `json:"name,omitempty"`
	Role *v1alpha1.ModelRole `json:"role,omitempty"`
}

ModelReferApplyConfiguration represents a declarative configuration of the ModelRefer type for use with apply.

func ModelRefer added in v0.0.7

func ModelRefer() *ModelReferApplyConfiguration

ModelReferApplyConfiguration constructs a declarative configuration of the ModelRefer type for use with apply.

func (*ModelReferApplyConfiguration) WithName added in v0.0.7

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*ModelReferApplyConfiguration) WithRole added in v0.0.7

WithRole sets the Role field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Role field is set to the value of the last call.

type ModelSourceApplyConfiguration

type ModelSourceApplyConfiguration struct {
	ModelHub *ModelHubApplyConfiguration `json:"modelHub,omitempty"`
	URI      *corev1alpha1.URIProtocol   `json:"uri,omitempty"`
}

ModelSourceApplyConfiguration represents a declarative configuration of the ModelSource type for use with apply.

func ModelSource

func ModelSource() *ModelSourceApplyConfiguration

ModelSourceApplyConfiguration constructs a declarative configuration of the ModelSource type for use with apply.

func (*ModelSourceApplyConfiguration) WithModelHub

WithModelHub sets the ModelHub field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ModelHub field is set to the value of the last call.

func (*ModelSourceApplyConfiguration) WithURI

WithURI sets the URI field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the URI field is set to the value of the last call.

type ModelSpecApplyConfiguration

type ModelSpecApplyConfiguration struct {
	FamilyName       *v1alpha1.ModelName            `json:"familyName,omitempty"`
	Source           *ModelSourceApplyConfiguration `json:"source,omitempty"`
	InferenceFlavors []FlavorApplyConfiguration     `json:"inferenceFlavors,omitempty"`
}

ModelSpecApplyConfiguration represents a declarative configuration of the ModelSpec type for use with apply.

func ModelSpec

func ModelSpec() *ModelSpecApplyConfiguration

ModelSpecApplyConfiguration constructs a declarative configuration of the ModelSpec type for use with apply.

func (*ModelSpecApplyConfiguration) WithFamilyName

WithFamilyName sets the FamilyName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the FamilyName field is set to the value of the last call.

func (*ModelSpecApplyConfiguration) WithInferenceFlavors

WithInferenceFlavors adds the given value to the InferenceFlavors field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the InferenceFlavors field.

func (*ModelSpecApplyConfiguration) WithSource

WithSource sets the Source field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Source field is set to the value of the last call.

type ModelStatusApplyConfiguration

type ModelStatusApplyConfiguration struct {
	Conditions []v1.ConditionApplyConfiguration `json:"conditions,omitempty"`
}

ModelStatusApplyConfiguration represents a declarative configuration of the ModelStatus type for use with apply.

func ModelStatus

func ModelStatus() *ModelStatusApplyConfiguration

ModelStatusApplyConfiguration constructs a declarative configuration of the ModelStatus type for use with apply.

func (*ModelStatusApplyConfiguration) WithConditions

WithConditions adds the given value to the Conditions field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Conditions field.

type OpenModelApplyConfiguration

type OpenModelApplyConfiguration struct {
	v1.TypeMetaApplyConfiguration    `json:",inline"`
	*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
	Spec                             *ModelSpecApplyConfiguration   `json:"spec,omitempty"`
	Status                           *ModelStatusApplyConfiguration `json:"status,omitempty"`
}

OpenModelApplyConfiguration represents a declarative configuration of the OpenModel type for use with apply.

func OpenModel

func OpenModel(name, namespace string) *OpenModelApplyConfiguration

OpenModel constructs a declarative configuration of the OpenModel type for use with apply.

func (*OpenModelApplyConfiguration) GetName added in v0.0.8

func (b *OpenModelApplyConfiguration) GetName() *string

GetName retrieves the value of the Name field in the declarative configuration.

func (*OpenModelApplyConfiguration) WithAPIVersion

WithAPIVersion sets the APIVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the APIVersion field is set to the value of the last call.

func (*OpenModelApplyConfiguration) WithAnnotations

func (b *OpenModelApplyConfiguration) WithAnnotations(entries map[string]string) *OpenModelApplyConfiguration

WithAnnotations puts the entries into the Annotations field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Annotations field, overwriting an existing map entries in Annotations field with the same key.

func (*OpenModelApplyConfiguration) WithCreationTimestamp

func (b *OpenModelApplyConfiguration) WithCreationTimestamp(value metav1.Time) *OpenModelApplyConfiguration

WithCreationTimestamp sets the CreationTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the CreationTimestamp field is set to the value of the last call.

func (*OpenModelApplyConfiguration) WithDeletionGracePeriodSeconds

func (b *OpenModelApplyConfiguration) WithDeletionGracePeriodSeconds(value int64) *OpenModelApplyConfiguration

WithDeletionGracePeriodSeconds sets the DeletionGracePeriodSeconds field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionGracePeriodSeconds field is set to the value of the last call.

func (*OpenModelApplyConfiguration) WithDeletionTimestamp

func (b *OpenModelApplyConfiguration) WithDeletionTimestamp(value metav1.Time) *OpenModelApplyConfiguration

WithDeletionTimestamp sets the DeletionTimestamp field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the DeletionTimestamp field is set to the value of the last call.

func (*OpenModelApplyConfiguration) WithFinalizers

func (b *OpenModelApplyConfiguration) WithFinalizers(values ...string) *OpenModelApplyConfiguration

WithFinalizers adds the given value to the Finalizers field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the Finalizers field.

func (*OpenModelApplyConfiguration) WithGenerateName

WithGenerateName sets the GenerateName field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the GenerateName field is set to the value of the last call.

func (*OpenModelApplyConfiguration) WithGeneration

WithGeneration sets the Generation field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Generation field is set to the value of the last call.

func (*OpenModelApplyConfiguration) WithKind

WithKind sets the Kind field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Kind field is set to the value of the last call.

func (*OpenModelApplyConfiguration) WithLabels

WithLabels puts the entries into the Labels field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, the entries provided by each call will be put on the Labels field, overwriting an existing map entries in Labels field with the same key.

func (*OpenModelApplyConfiguration) WithName

WithName sets the Name field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Name field is set to the value of the last call.

func (*OpenModelApplyConfiguration) WithNamespace

WithNamespace sets the Namespace field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Namespace field is set to the value of the last call.

func (*OpenModelApplyConfiguration) WithOwnerReferences

WithOwnerReferences adds the given value to the OwnerReferences field in the declarative configuration and returns the receiver, so that objects can be build by chaining "With" function invocations. If called multiple times, values provided by each call will be appended to the OwnerReferences field.

func (*OpenModelApplyConfiguration) WithResourceVersion

func (b *OpenModelApplyConfiguration) WithResourceVersion(value string) *OpenModelApplyConfiguration

WithResourceVersion sets the ResourceVersion field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the ResourceVersion field is set to the value of the last call.

func (*OpenModelApplyConfiguration) WithSpec

WithSpec sets the Spec field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Spec field is set to the value of the last call.

func (*OpenModelApplyConfiguration) WithStatus

WithStatus sets the Status field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the Status field is set to the value of the last call.

func (*OpenModelApplyConfiguration) WithUID

WithUID sets the UID field in the declarative configuration to the given value and returns the receiver, so that objects can be built by chaining "With" function invocations. If called multiple times, the UID field is set to the value of the last call.

Jump to

Keyboard shortcuts

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