Documentation
¶
Index ¶
- func CallBackstagePrinters(owner, lifecycle string, rm *openapi.RegisteredModel, ...) error
- func LoopOverKFMR(owner, lifecycle string, ids []string, writer io.Writer, ...) ([]openapi.RegisteredModel, map[string][]openapi.ModelVersion, error)
- 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 CommonPopulator
- 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) GetModelArtifact(id string) (*openapi.ModelArtifact, 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) 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 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(owner, lifecycle string, rm *openapi.RegisteredModel, mvs []openapi.ModelVersion, mas map[string][]openapi.ModelArtifact, isl []openapi.InferenceService, is *serverv1beta1.InferenceService, kfmr *KubeFlowRESTClientWrapper, client client.Client, writer io.Writer) error
func LoopOverKFMR ¶
func LoopOverKFMR(owner, lifecycle string, ids []string, writer io.Writer, kfmr *KubeFlowRESTClientWrapper, client client.Client) ([]openapi.RegisteredModel, map[string][]openapi.ModelVersion, error)
Types ¶
type ApiPopulator ¶
type ApiPopulator struct {
CommonPopulator
}
TODO Until we get the inferenceservice endpoint URL associated with the model registry related API won't have much for Backstage API here
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 CommonPopulator ¶
type CommonPopulator struct { Owner string Lifecycle string RegisteredModel *openapi.RegisteredModel InferenceServices []openapi.InferenceService Kfmr *KubeFlowRESTClientWrapper Kis *serverv1beta1.InferenceService CtrlClient client.Client }
func (*CommonPopulator) GetDescription ¶
func (pop *CommonPopulator) GetDescription() string
func (*CommonPopulator) GetLifecycle ¶
func (pop *CommonPopulator) GetLifecycle() string
func (*CommonPopulator) GetOwner ¶
func (pop *CommonPopulator) GetOwner() string
func (*CommonPopulator) GetProvidedAPIs ¶
func (pop *CommonPopulator) GetProvidedAPIs() []string
TODO won't have API until KubeFlow Model Registry gets us inferenceservice endpoints
type ComponentPopulator ¶
type ComponentPopulator struct { CommonPopulator ModelVersions []openapi.ModelVersion ModelArtifacts map[string][]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 RootURL string Token string }
func SetupKubeflowRESTClient ¶
func SetupKubeflowRESTClient(cfg *config.Config) *KubeFlowRESTClientWrapper
func (*KubeFlowRESTClientWrapper) GetModelArtifact ¶
func (k *KubeFlowRESTClientWrapper) GetModelArtifact(id string) (*openapi.ModelArtifact, 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) 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 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.