Documentation
¶
Index ¶
- func CallBackstagePrinters(ctx context.Context, owner, lifecycle string, rm *openapi.RegisteredModel, ...) error
- func GetKubeFlowInferenceServicesForModelVersion(kfrm *KubeFlowRESTClientWrapper, mv *openapi.ModelVersion) ([]openapi.InferenceService, error)
- func LoopOverKFMR(ids []string, kfmr *KubeFlowRESTClientWrapper) ([]openapi.RegisteredModel, map[string][]openapi.ModelVersion, ...)
- type ApiPopulator
- func (pop *ApiPopulator) GetDefinition() string
- func (pop *ApiPopulator) GetDependencyOf() []string
- func (pop *ApiPopulator) GetDisplayName() string
- func (pop *ApiPopulator) GetLinks() []backstage.EntityLink
- func (pop *ApiPopulator) GetName() string
- func (pop *ApiPopulator) GetTags() []string
- func (pop *ApiPopulator) GetTechdocRef() string
- type CatalogModelArtifactsWrapper
- type CommonPopulator
- func (pop *CommonPopulator) GetDescription() string
- func (pop *CommonPopulator) GetInferenceServerByRegModelModelVersionName() *serverv1beta1.InferenceService
- func (pop *CommonPopulator) GetLifecycle() string
- func (pop *CommonPopulator) GetLinksFromInferenceServices() []backstage.EntityLink
- func (pop *CommonPopulator) GetOwner() string
- func (pop *CommonPopulator) GetProvidedAPIs() []string
- type CommonSchemaPopulator
- type ComponentPopulator
- func (pop *ComponentPopulator) GetDependsOn() []string
- func (pop *ComponentPopulator) GetDisplayName() string
- func (pop *ComponentPopulator) GetLinks() []backstage.EntityLink
- func (pop *ComponentPopulator) GetName() string
- func (pop *ComponentPopulator) GetTags() []string
- func (pop *ComponentPopulator) GetTechdocRef() string
- type KubeFlowRESTClientWrapper
- func (k *KubeFlowRESTClientWrapper) GetCatalogModel(sourceId, repositoryName, modelName string) (*openapi.CatalogModel, error)
- func (k *KubeFlowRESTClientWrapper) GetModelArtifact(id string) (*openapi.ModelArtifact, error)
- func (k *KubeFlowRESTClientWrapper) GetModelCard(sourceId, repositoryName, modelName string) (*string, error)
- func (k *KubeFlowRESTClientWrapper) GetModelVersions(id string) (*openapi.ModelVersion, error)
- func (k *KubeFlowRESTClientWrapper) GetRegisteredModel(registeredModelID string) (*openapi.RegisteredModel, error)
- func (k *KubeFlowRESTClientWrapper) GetServingEnvironment(id string) (*openapi.ServingEnvironment, error)
- func (k *KubeFlowRESTClientWrapper) ListCatalogModelArtifacts(sourceId, modelName string) ([]openapi.CatalogModelArtifact, error)
- func (k *KubeFlowRESTClientWrapper) ListCatalogModels() ([]openapi.CatalogModel, error)
- func (k *KubeFlowRESTClientWrapper) ListCatalogSources() ([]openapi.CatalogSource, error)
- func (k *KubeFlowRESTClientWrapper) ListInferenceServices() ([]openapi.InferenceService, error)
- func (k *KubeFlowRESTClientWrapper) ListModelArtifacts(id string) ([]openapi.ModelArtifact, error)
- func (k *KubeFlowRESTClientWrapper) ListModelVersions(id string) ([]openapi.ModelVersion, error)
- func (k *KubeFlowRESTClientWrapper) ListRegisteredModels() ([]openapi.RegisteredModel, error)
- type ModelCatalogPopulator
- type ModelPopulator
- func (m *ModelPopulator) GetArtifactLocationURL() *string
- func (m *ModelPopulator) GetDescription() string
- func (m *ModelPopulator) GetEthics() *string
- func (m *ModelPopulator) GetHowToUseURL() *string
- func (m *ModelPopulator) GetLicense() *string
- func (m *ModelPopulator) GetLifecycle() string
- func (m *ModelPopulator) GetName() string
- func (m *ModelPopulator) GetOwner() string
- func (m *ModelPopulator) GetSupport() *string
- func (m *ModelPopulator) GetTags() []string
- func (m *ModelPopulator) GetTechDocs() *string
- func (m *ModelPopulator) GetTraining() *string
- func (m *ModelPopulator) GetUsage() *string
- type ModelServerAPIPopulator
- type ModelServerPopulator
- func (m *ModelServerPopulator) GetAPI() *golang.API
- func (m *ModelServerPopulator) GetAuthentication() *bool
- func (m *ModelServerPopulator) GetDescription() string
- func (m *ModelServerPopulator) GetHomepageURL() *string
- func (m *ModelServerPopulator) GetLifecycle() string
- func (m *ModelServerPopulator) GetName() string
- func (m *ModelServerPopulator) GetOwner() string
- func (m *ModelServerPopulator) GetTags() []string
- func (m *ModelServerPopulator) GetUsage() *string
- type ResourcePopulator
- func (pop *ResourcePopulator) GetDependencyOf() []string
- func (pop *ResourcePopulator) GetDisplayName() string
- func (pop *ResourcePopulator) GetLinks() []backstage.EntityLink
- func (pop *ResourcePopulator) GetName() string
- func (pop *ResourcePopulator) GetTags() []string
- func (pop *ResourcePopulator) GetTechdocRef() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CallBackstagePrinters ¶
func CallBackstagePrinters(ctx context.Context, owner, lifecycle string, rm *openapi.RegisteredModel, mvs *openapi.ModelVersion, mas []openapi.ModelArtifact, isl *openapi.InferenceService, is *serverv1beta1.InferenceService, kfmr *KubeFlowRESTClientWrapper, client client.Client, writer io.Writer, format brdgtypes.NormalizerFormat) error
func GetKubeFlowInferenceServicesForModelVersion ¶
func GetKubeFlowInferenceServicesForModelVersion(kfrm *KubeFlowRESTClientWrapper, mv *openapi.ModelVersion) ([]openapi.InferenceService, error)
func LoopOverKFMR ¶
func LoopOverKFMR(ids []string, kfmr *KubeFlowRESTClientWrapper) ([]openapi.RegisteredModel, map[string][]openapi.ModelVersion, map[string]map[string][]openapi.ModelArtifact, 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 (*ApiPopulator) GetLinks ¶
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 (*ComponentPopulator) GetLinks ¶
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 (*ResourcePopulator) GetLinks ¶
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
Click to show internal directories.
Click to hide internal directories.