kollama

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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