Documentation ¶
Index ¶
- Variables
- func FromUnstructured[T any](obj *unstructured.Unstructured) (*T, error)
- func IsOllamaOperatorCRDSupported(discoveryClient discovery.DiscoveryInterface, resourceName string) (bool, error)
- func NewCmd(streams genericiooptions.IOStreams) *cobra.Command
- func NewCmdDeploy(streams genericiooptions.IOStreams) *cobra.Command
- func NewCmdExpose(streams genericiooptions.IOStreams) *cobra.Command
- func NewCmdUndeploy(streams genericiooptions.IOStreams) *cobra.Command
- func Unstructured[T runtime.Object](obj T) (*unstructured.Unstructured, error)
- type CmdDeployOptions
- type CmdExposeOptions
- type CmdUndeployOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrOllamaModelNotSupported = fmt.Errorf("%s is not supported on the cluster, did you install the Ollama Operator?", modelSchemaGroupVersionResource.String())
)
Functions ¶
func FromUnstructured ¶
func FromUnstructured[T any](obj *unstructured.Unstructured) (*T, error)
func IsOllamaOperatorCRDSupported ¶
func IsOllamaOperatorCRDSupported(discoveryClient discovery.DiscoveryInterface, resourceName string) (bool, error)
func NewCmd ¶
func NewCmd(streams genericiooptions.IOStreams) *cobra.Command
NewCmd provides a cobra command wrapping NamespaceOptions
func NewCmdDeploy ¶
func NewCmdDeploy(streams genericiooptions.IOStreams) *cobra.Command
NewCmdNamespace provides a cobra command wrapping CmdDeployOptions
func NewCmdExpose ¶ added in v0.4.0
func NewCmdExpose(streams genericiooptions.IOStreams) *cobra.Command
NewCmdExpose provides a cobra command wrapping NamespaceOptions
func NewCmdUndeploy ¶
func NewCmdUndeploy(streams genericiooptions.IOStreams) *cobra.Command
func Unstructured ¶
func Unstructured[T runtime.Object](obj T) (*unstructured.Unstructured, error)
Types ¶
type CmdDeployOptions ¶
type CmdDeployOptions struct { genericiooptions.IOStreams // contains filtered or unexported fields }
CmdDeployOptions provides information required to deploy a model
func NewCmdDeployOptions ¶
func NewCmdDeployOptions(streams genericiooptions.IOStreams) *CmdDeployOptions
NewCmdDeployOptions provides an instance of CmdDeployOptions with default values
type CmdExposeOptions ¶ added in v0.4.0
type CmdExposeOptions struct { genericiooptions.IOStreams // contains filtered or unexported fields }
CmdDeployOptions provides information required to expose a model
func NewCmdExposeOptions ¶ added in v0.4.0
func NewCmdExposeOptions(streams genericiooptions.IOStreams) *CmdExposeOptions
NewCmdExposeOptions provides an instance of CmdExposeOptions with default values
type CmdUndeployOptions ¶
type CmdUndeployOptions struct { genericiooptions.IOStreams // contains filtered or unexported fields }
func NewCmdUndeployOptions ¶
func NewCmdUndeployOptions(streams genericiooptions.IOStreams) *CmdUndeployOptions
Click to show internal directories.
Click to hide internal directories.