kubeflowmodelregistry

package
v0.0.0-...-cbd6808 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeFlowInferenceServicesForModelVersion

func GetKubeFlowInferenceServicesForModelVersion(kfrm *KubeFlowRESTClientWrapper,
	mv *openapi.ModelVersion) ([]openapi.InferenceService, error)

Types

type ApiPopulator

type ApiPopulator struct {
	CommonPopulator
}

func (*ApiPopulator) GetDefinition

func (pop *ApiPopulator) GetDefinition() string

func (*ApiPopulator) GetDependencyOf

func (pop *ApiPopulator) GetDependencyOf() []string

func (*ApiPopulator) GetDisplayName

func (pop *ApiPopulator) GetDisplayName() string
func (pop *ApiPopulator) GetLinks() []backstage.EntityLink

func (*ApiPopulator) GetName

func (pop *ApiPopulator) GetName() string

func (*ApiPopulator) GetTags

func (pop *ApiPopulator) GetTags() []string

func (*ApiPopulator) GetTechdocRef

func (pop *ApiPopulator) GetTechdocRef() string

type CatalogModelArtifactsWrapper

type CatalogModelArtifactsWrapper struct {
	// contains filtered or unexported fields
}

type CommonPopulator

type CommonPopulator struct {
	Owner            string
	Lifecycle        string
	RegisteredModel  *openapi.RegisteredModel
	ModelVersion     *openapi.ModelVersion
	InferenceService *openapi.InferenceService
	Kfmr             *KubeFlowRESTClientWrapper
	Kis              *serverv1beta1.InferenceService
	CtrlClient       client.Client
	Ctx              context.Context
}

func (*CommonPopulator) GetDescription

func (pop *CommonPopulator) GetDescription() string

func (*CommonPopulator) GetInferenceServerByRegModelModelVersionName

func (pop *CommonPopulator) GetInferenceServerByRegModelModelVersionName() *serverv1beta1.InferenceService

func (*CommonPopulator) GetLifecycle

func (pop *CommonPopulator) GetLifecycle() string

func (*CommonPopulator) GetLinksFromInferenceServices

func (pop *CommonPopulator) GetLinksFromInferenceServices() []backstage.EntityLink

func (*CommonPopulator) GetOwner

func (pop *CommonPopulator) GetOwner() string

func (*CommonPopulator) GetProvidedAPIs

func (pop *CommonPopulator) GetProvidedAPIs() []string

type CommonSchemaPopulator

type CommonSchemaPopulator struct {
	// reuse the component populator as it houses all the KFMR artifacts of noew
	ComponentPopulator
}

type ComponentPopulator

type ComponentPopulator struct {
	CommonPopulator
	ModelArtifacts []openapi.ModelArtifact
}

func (*ComponentPopulator) GetDependsOn

func (pop *ComponentPopulator) GetDependsOn() []string

func (*ComponentPopulator) GetDisplayName

func (pop *ComponentPopulator) GetDisplayName() string
func (pop *ComponentPopulator) GetLinks() []backstage.EntityLink

func (*ComponentPopulator) GetName

func (pop *ComponentPopulator) GetName() string

func (*ComponentPopulator) GetTags

func (pop *ComponentPopulator) GetTags() []string

func (*ComponentPopulator) GetTechdocRef

func (pop *ComponentPopulator) GetTechdocRef() string

type KubeFlowRESTClientWrapper

type KubeFlowRESTClientWrapper struct {
	RESTClient      *resty.Client
	Config          *config.Config
	RootRegistryURL string
	RootCatalogURL  string
	Token           string
}

func SetupKubeflowRESTClient

func SetupKubeflowRESTClient(cfg *config.Config) *KubeFlowRESTClientWrapper

func (*KubeFlowRESTClientWrapper) GetCatalogModel

func (k *KubeFlowRESTClientWrapper) GetCatalogModel(sourceId, repositoryName, modelName string) (*openapi.CatalogModel, error)

func (*KubeFlowRESTClientWrapper) GetModelArtifact

func (k *KubeFlowRESTClientWrapper) GetModelArtifact(id string) (*openapi.ModelArtifact, error)

func (*KubeFlowRESTClientWrapper) GetModelCard

func (k *KubeFlowRESTClientWrapper) GetModelCard(sourceId, repositoryName, modelName string) (*string, error)

func (*KubeFlowRESTClientWrapper) GetModelVersions

func (k *KubeFlowRESTClientWrapper) GetModelVersions(id string) (*openapi.ModelVersion, error)

func (*KubeFlowRESTClientWrapper) GetRegisteredModel

func (k *KubeFlowRESTClientWrapper) GetRegisteredModel(registeredModelID string) (*openapi.RegisteredModel, error)

func (*KubeFlowRESTClientWrapper) GetServingEnvironment

func (k *KubeFlowRESTClientWrapper) GetServingEnvironment(id string) (*openapi.ServingEnvironment, error)

func (*KubeFlowRESTClientWrapper) ListCatalogModelArtifacts

func (k *KubeFlowRESTClientWrapper) ListCatalogModelArtifacts(sourceId, modelName string) ([]openapi.CatalogModelArtifact, error)

func (*KubeFlowRESTClientWrapper) ListCatalogModels

func (k *KubeFlowRESTClientWrapper) ListCatalogModels() ([]openapi.CatalogModel, error)

func (*KubeFlowRESTClientWrapper) ListCatalogSources

func (k *KubeFlowRESTClientWrapper) ListCatalogSources() ([]openapi.CatalogSource, error)

func (*KubeFlowRESTClientWrapper) ListInferenceServices

func (k *KubeFlowRESTClientWrapper) ListInferenceServices() ([]openapi.InferenceService, error)

func (*KubeFlowRESTClientWrapper) ListModelArtifacts

func (k *KubeFlowRESTClientWrapper) ListModelArtifacts(id string) ([]openapi.ModelArtifact, error)

func (*KubeFlowRESTClientWrapper) ListModelVersions

func (k *KubeFlowRESTClientWrapper) ListModelVersions(id string) ([]openapi.ModelVersion, error)

func (*KubeFlowRESTClientWrapper) ListRegisteredModels

func (k *KubeFlowRESTClientWrapper) ListRegisteredModels() ([]openapi.RegisteredModel, error)

type ModelCatalogPopulator

type ModelCatalogPopulator struct {
	CommonSchemaPopulator
	MSPop *ModelServerPopulator
	MPops []*ModelPopulator
}

func (*ModelCatalogPopulator) GetModelServer

func (m *ModelCatalogPopulator) GetModelServer() *golang.ModelServer

func (*ModelCatalogPopulator) GetModels

func (m *ModelCatalogPopulator) GetModels() []golang.Model

type ModelPopulator

type ModelPopulator struct {
	CommonSchemaPopulator
	MVIndex int
	MAIndex int
}

func (*ModelPopulator) GetArtifactLocationURL

func (m *ModelPopulator) GetArtifactLocationURL() *string

func (*ModelPopulator) GetDescription

func (m *ModelPopulator) GetDescription() string

func (*ModelPopulator) GetEthics

func (m *ModelPopulator) GetEthics() *string

func (*ModelPopulator) GetHowToUseURL

func (m *ModelPopulator) GetHowToUseURL() *string

func (*ModelPopulator) GetLicense

func (m *ModelPopulator) GetLicense() *string

func (*ModelPopulator) GetLifecycle

func (m *ModelPopulator) GetLifecycle() string

func (*ModelPopulator) GetName

func (m *ModelPopulator) GetName() string

func (*ModelPopulator) GetOwner

func (m *ModelPopulator) GetOwner() string

func (*ModelPopulator) GetSupport

func (m *ModelPopulator) GetSupport() *string

func (*ModelPopulator) GetTags

func (m *ModelPopulator) GetTags() []string

func (*ModelPopulator) GetTechDocs

func (m *ModelPopulator) GetTechDocs() *string

func (*ModelPopulator) GetTraining

func (m *ModelPopulator) GetTraining() *string

func (*ModelPopulator) GetUsage

func (m *ModelPopulator) GetUsage() *string

type ModelServerAPIPopulator

type ModelServerAPIPopulator struct {
	CommonSchemaPopulator
	MVIndex int
	MAIndex int
}

func (*ModelServerAPIPopulator) GetSpec

func (m *ModelServerAPIPopulator) GetSpec() string

func (*ModelServerAPIPopulator) GetTags

func (m *ModelServerAPIPopulator) GetTags() []string

func (*ModelServerAPIPopulator) GetType

func (m *ModelServerAPIPopulator) GetType() golang.Type

func (*ModelServerAPIPopulator) GetURL

func (m *ModelServerAPIPopulator) GetURL() (string, string)

type ModelServerPopulator

type ModelServerPopulator struct {
	CommonSchemaPopulator
	ApiPop  ModelServerAPIPopulator
	MVIndex int
	MAIndex int
}

func (*ModelServerPopulator) GetAPI

func (m *ModelServerPopulator) GetAPI() *golang.API

func (*ModelServerPopulator) GetAuthentication

func (m *ModelServerPopulator) GetAuthentication() *bool

func (*ModelServerPopulator) GetDescription

func (m *ModelServerPopulator) GetDescription() string

func (*ModelServerPopulator) GetHomepageURL

func (m *ModelServerPopulator) GetHomepageURL() *string

func (*ModelServerPopulator) GetLifecycle

func (m *ModelServerPopulator) GetLifecycle() string

func (*ModelServerPopulator) GetName

func (m *ModelServerPopulator) GetName() string

GetName returns the inference server name, sanitized to meet the following criteria "a string that is sequences of [a-zA-Z0-9] separated by any of [-_.], at most 63 characters in total"

func (*ModelServerPopulator) GetOwner

func (m *ModelServerPopulator) GetOwner() string

func (*ModelServerPopulator) GetTags

func (m *ModelServerPopulator) GetTags() []string

func (*ModelServerPopulator) GetUsage

func (m *ModelServerPopulator) GetUsage() *string

type ResourcePopulator

type ResourcePopulator struct {
	CommonPopulator
	ModelVersion   *openapi.ModelVersion
	ModelArtifacts []openapi.ModelArtifact
}

func (*ResourcePopulator) GetDependencyOf

func (pop *ResourcePopulator) GetDependencyOf() []string

func (*ResourcePopulator) GetDisplayName

func (pop *ResourcePopulator) GetDisplayName() string
func (pop *ResourcePopulator) GetLinks() []backstage.EntityLink

func (*ResourcePopulator) GetName

func (pop *ResourcePopulator) GetName() string

func (*ResourcePopulator) GetTags

func (pop *ResourcePopulator) GetTags() []string

func (*ResourcePopulator) GetTechdocRef

func (pop *ResourcePopulator) GetTechdocRef() string

Jump to

Keyboard shortcuts

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