Documentation
¶
Index ¶
- Variables
- func AssertAgentArtifactConstraints(obj model.AgentArtifact) error
- func AssertAgentArtifactListConstraints(obj model.AgentArtifactList) error
- func AssertAgentArtifactListRequired(obj model.AgentArtifactList) error
- func AssertAgentArtifactRequired(obj model.AgentArtifact) error
- func AssertAgentArtifactTypeQueryParamConstraints(obj model.AgentArtifactTypeQueryParam) error
- func AssertAgentArtifactTypeQueryParamRequired(obj model.AgentArtifactTypeQueryParam) error
- func AssertAgentConstraints(obj model.Agent) error
- func AssertAgentEnvVarConstraints(obj model.AgentEnvVar) error
- func AssertAgentEnvVarRequired(obj model.AgentEnvVar) error
- func AssertAgentImageArtifactConstraints(obj model.AgentImageArtifact) error
- func AssertAgentImageArtifactRequired(obj model.AgentImageArtifact) error
- func AssertAgentListConstraints(obj model.AgentList) error
- func AssertAgentListRequired(obj model.AgentList) error
- func AssertAgentRequired(obj model.Agent) error
- func AssertAgentTemplateArtifactConstraints(obj model.AgentTemplateArtifact) error
- func AssertAgentTemplateArtifactRequired(obj model.AgentTemplateArtifact) error
- func AssertArtifactTypeQueryParamConstraints(obj model.ArtifactTypeQueryParam) error
- func AssertArtifactTypeQueryParamRequired(obj model.ArtifactTypeQueryParam) error
- func AssertAssetPreviewResultConstraints(obj model.AssetPreviewResult) error
- func AssertAssetPreviewResultRequired(obj model.AssetPreviewResult) error
- func AssertAssetSourcePreviewResponseAllOfSummaryConstraints(obj model.AssetSourcePreviewResponseAllOfSummary) error
- func AssertAssetSourcePreviewResponseAllOfSummaryRequired(obj model.AssetSourcePreviewResponseAllOfSummary) error
- func AssertAssetSourcePreviewResponseConstraints(obj model.AssetSourcePreviewResponse) error
- func AssertAssetSourcePreviewResponseRequired(obj model.AssetSourcePreviewResponse) error
- func AssertBaseModelConstraints(obj model.BaseModel) error
- func AssertBaseModelRequired(obj model.BaseModel) error
- func AssertBaseResourceConstraints(obj model.BaseResource) error
- func AssertBaseResourceDatesConstraints(obj model.BaseResourceDates) error
- func AssertBaseResourceDatesRequired(obj model.BaseResourceDates) error
- func AssertBaseResourceListConstraints(obj model.BaseResourceList) error
- func AssertBaseResourceListRequired(obj model.BaseResourceList) error
- func AssertBaseResourceRequired(obj model.BaseResource) error
- func AssertCatalogArtifactConstraints(obj model.CatalogArtifact) error
- func AssertCatalogArtifactListConstraints(obj model.CatalogArtifactList) error
- func AssertCatalogArtifactListRequired(obj model.CatalogArtifactList) error
- func AssertCatalogArtifactRequired(obj model.CatalogArtifact) error
- func AssertCatalogAssetTypeConstraints(obj model.CatalogAssetType) error
- func AssertCatalogAssetTypeRequired(obj model.CatalogAssetType) error
- func AssertCatalogLabelConstraints(obj model.CatalogLabel) error
- func AssertCatalogLabelListConstraints(obj model.CatalogLabelList) error
- func AssertCatalogLabelListRequired(obj model.CatalogLabelList) error
- func AssertCatalogLabelRequired(obj model.CatalogLabel) error
- func AssertCatalogMetricsArtifactConstraints(obj model.CatalogMetricsArtifact) error
- func AssertCatalogMetricsArtifactRequired(obj model.CatalogMetricsArtifact) error
- func AssertCatalogModelArtifactConstraints(obj model.CatalogModelArtifact) error
- func AssertCatalogModelArtifactRequired(obj model.CatalogModelArtifact) error
- func AssertCatalogModelConstraints(obj model.CatalogModel) error
- func AssertCatalogModelListConstraints(obj model.CatalogModelList) error
- func AssertCatalogModelListRequired(obj model.CatalogModelList) error
- func AssertCatalogModelRequired(obj model.CatalogModel) error
- func AssertCatalogSourceConstraints(obj model.CatalogSource) error
- func AssertCatalogSourceListConstraints(obj model.CatalogSourceList) error
- func AssertCatalogSourceListRequired(obj model.CatalogSourceList) error
- func AssertCatalogSourcePreviewResponseAllOfSummaryConstraints(obj model.CatalogSourcePreviewResponseAllOfSummary) error
- func AssertCatalogSourcePreviewResponseAllOfSummaryRequired(obj model.CatalogSourcePreviewResponseAllOfSummary) error
- func AssertCatalogSourcePreviewResponseConstraints(obj model.CatalogSourcePreviewResponse) error
- func AssertCatalogSourcePreviewResponseRequired(obj model.CatalogSourcePreviewResponse) error
- func AssertCatalogSourceRequired(obj model.CatalogSource) error
- func AssertCatalogSourceStatusConstraints(obj model.CatalogSourceStatus) error
- func AssertCatalogSourceStatusRequired(obj model.CatalogSourceStatus) error
- func AssertErrorConstraints(obj model.Error) error
- func AssertErrorRequired(obj model.Error) error
- func AssertFieldFilterConstraints(obj model.FieldFilter) error
- func AssertFieldFilterRequired(obj model.FieldFilter) error
- func AssertFilterOptionRangeConstraints(obj model.FilterOptionRange) error
- func AssertFilterOptionRangeRequired(obj model.FilterOptionRange) error
- func AssertFilterOptionRequired(obj model.FilterOption) error
- func AssertFilterOptionsListConstraints(obj model.FilterOptionsList) error
- func AssertFilterOptionsListRequired(obj model.FilterOptionsList) error
- func AssertMCPArtifactConstraints(obj model.MCPArtifact) error
- func AssertMCPArtifactRequired(obj model.MCPArtifact) error
- func AssertMCPConfigMapKeyConstraints(obj model.MCPConfigMapKey) error
- func AssertMCPConfigMapKeyRequired(obj model.MCPConfigMapKey) error
- func AssertMCPConfigMapRequirementConstraints(obj model.MCPConfigMapRequirement) error
- func AssertMCPConfigMapRequirementRequired(obj model.MCPConfigMapRequirement) error
- func AssertMCPEndpointsConstraints(obj model.MCPEndpoints) error
- func AssertMCPEndpointsRequired(obj model.MCPEndpoints) error
- func AssertMCPEnvVarMetadataConstraints(obj model.MCPEnvVarMetadata) error
- func AssertMCPEnvVarMetadataRequired(obj model.MCPEnvVarMetadata) error
- func AssertMCPPrerequisitesConstraints(obj model.MCPPrerequisites) error
- func AssertMCPPrerequisitesRequired(obj model.MCPPrerequisites) error
- func AssertMCPResourceRecommendationConstraints(obj model.MCPResourceRecommendation) error
- func AssertMCPResourceRecommendationHighConstraints(obj model.MCPResourceRecommendationHigh) error
- func AssertMCPResourceRecommendationHighRequired(obj model.MCPResourceRecommendationHigh) error
- func AssertMCPResourceRecommendationMinimalConstraints(obj model.MCPResourceRecommendationMinimal) error
- func AssertMCPResourceRecommendationMinimalRequired(obj model.MCPResourceRecommendationMinimal) error
- func AssertMCPResourceRecommendationRecommendedConstraints(obj model.MCPResourceRecommendationRecommended) error
- func AssertMCPResourceRecommendationRecommendedRequired(obj model.MCPResourceRecommendationRecommended) error
- func AssertMCPResourceRecommendationRequired(obj model.MCPResourceRecommendation) error
- func AssertMCPRuntimeMetadataCapabilitiesConstraints(obj model.MCPRuntimeMetadataCapabilities) error
- func AssertMCPRuntimeMetadataCapabilitiesRequired(obj model.MCPRuntimeMetadataCapabilities) error
- func AssertMCPRuntimeMetadataConstraints(obj model.MCPRuntimeMetadata) error
- func AssertMCPRuntimeMetadataHealthEndpointsConstraints(obj model.MCPRuntimeMetadataHealthEndpoints) error
- func AssertMCPRuntimeMetadataHealthEndpointsRequired(obj model.MCPRuntimeMetadataHealthEndpoints) error
- func AssertMCPRuntimeMetadataRequired(obj model.MCPRuntimeMetadata) error
- func AssertMCPSecretKeyConstraints(obj model.MCPSecretKey) error
- func AssertMCPSecretKeyRequired(obj model.MCPSecretKey) error
- func AssertMCPSecretRequirementConstraints(obj model.MCPSecretRequirement) error
- func AssertMCPSecretRequirementRequired(obj model.MCPSecretRequirement) error
- func AssertMCPSecurityIndicatorConstraints(obj model.MCPSecurityIndicator) error
- func AssertMCPSecurityIndicatorRequired(obj model.MCPSecurityIndicator) error
- func AssertMCPServerConstraints(obj model.MCPServer) error
- func AssertMCPServerListConstraints(obj model.MCPServerList) error
- func AssertMCPServerListRequired(obj model.MCPServerList) error
- func AssertMCPServerRequired(obj model.MCPServer) error
- func AssertMCPServiceAccountRequirementConstraints(obj model.MCPServiceAccountRequirement) error
- func AssertMCPServiceAccountRequirementRequired(obj model.MCPServiceAccountRequirement) error
- func AssertMCPStorageMountConstraints(obj model.MCPStorageMount) error
- func AssertMCPStorageMountRequired(obj model.MCPStorageMount) error
- func AssertMCPStorageSourceConstraints(obj model.MCPStorageSource) error
- func AssertMCPStorageSourceRequired(obj model.MCPStorageSource) error
- func AssertMCPToolConstraints(obj model.MCPTool) error
- func AssertMCPToolParameterConstraints(obj model.MCPToolParameter) error
- func AssertMCPToolParameterRequired(obj model.MCPToolParameter) error
- func AssertMCPToolRequired(obj model.MCPTool) error
- func AssertMCPToolWithServerConstraints(obj model.MCPToolWithServer) error
- func AssertMCPToolWithServerRequired(obj model.MCPToolWithServer) error
- func AssertMCPToolsListConstraints(obj model.MCPToolsList) error
- func AssertMCPToolsListRequired(obj model.MCPToolsList) error
- func AssertMetadataBoolValueConstraints(obj model.MetadataBoolValue) error
- func AssertMetadataBoolValueRequired(obj model.MetadataBoolValue) error
- func AssertMetadataDoubleValueConstraints(obj model.MetadataDoubleValue) error
- func AssertMetadataDoubleValueRequired(obj model.MetadataDoubleValue) error
- func AssertMetadataIntValueConstraints(obj model.MetadataIntValue) error
- func AssertMetadataIntValueRequired(obj model.MetadataIntValue) error
- func AssertMetadataProtoValueConstraints(obj model.MetadataProtoValue) error
- func AssertMetadataProtoValueRequired(obj model.MetadataProtoValue) error
- func AssertMetadataStringValueConstraints(obj model.MetadataStringValue) error
- func AssertMetadataStringValueRequired(obj model.MetadataStringValue) error
- func AssertMetadataStructValueConstraints(obj model.MetadataStructValue) error
- func AssertMetadataStructValueRequired(obj model.MetadataStructValue) error
- func AssertModelPreviewResultConstraints(obj model.ModelPreviewResult) error
- func AssertModelPreviewResultRequired(obj model.ModelPreviewResult) error
- func AssertOrderByFieldConstraints(obj model.OrderByField) error
- func AssertOrderByFieldRequired(obj model.OrderByField) error
- func AssertPreviewCatalogSourceResponseConstraints(obj model.PreviewCatalogSourceResponse) error
- func AssertPreviewCatalogSourceResponseRequired(obj model.PreviewCatalogSourceResponse) error
- func AssertRecurseInterfaceRequired[T any](obj interface{}, callback func(T) error) error
- func AssertRecurseValueRequired[T any](value reflect.Value, callback func(T) error) error
- func AssertServingConfigConstraints(obj model.ServingConfig) error
- func AssertServingConfigRequired(obj model.ServingConfig) error
- func AssertSkillConstraints(obj model.Skill) error
- func AssertSkillListConstraints(obj model.SkillList) error
- func AssertSkillListRequired(obj model.SkillList) error
- func AssertSkillRequired(obj model.Skill) error
- func AssertSkillTrustTierConstraints(obj model.SkillTrustTier) error
- func AssertSkillTrustTierRequired(obj model.SkillTrustTier) error
- func AssertSortOrderConstraints(obj model.SortOrder) error
- func AssertSortOrderRequired(obj model.SortOrder) error
- func AssertSourceStatusConstraints(obj model.SourceStatus) error
- func AssertSourceStatusRequired(obj model.SourceStatus) error
- func AssertToolCallingConfigConstraints(obj model.ToolCallingConfig) error
- func AssertToolCallingConfigRequired(obj model.ToolCallingConfig) error
- func DefaultErrorHandler(w http.ResponseWriter, _ *http.Request, err error, result *ImplResponse)
- func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error
- func IsZeroValue(val interface{}) bool
- func Logger(inner http.Handler) http.Handler
- func NewRouter(routers ...Router) chi.Router
- func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)
- func ReadFormFilesToTempFiles(r *http.Request, key string) ([]*os.File, error)
- type AgentCatalogServiceAPIController
- func (c *AgentCatalogServiceAPIController) FindAgents(w http.ResponseWriter, r *http.Request)
- func (c *AgentCatalogServiceAPIController) FindAgentsFilterOptions(w http.ResponseWriter, r *http.Request)
- func (c *AgentCatalogServiceAPIController) GetAgent(w http.ResponseWriter, r *http.Request)
- func (c *AgentCatalogServiceAPIController) GetAgentArtifacts(w http.ResponseWriter, r *http.Request)
- func (c *AgentCatalogServiceAPIController) OrderedRoutes() []Route
- func (c *AgentCatalogServiceAPIController) Routes() Routes
- type AgentCatalogServiceAPIOption
- type AgentCatalogServiceAPIRouter
- type AgentCatalogServiceAPIService
- func (s *AgentCatalogServiceAPIService) FindAgents(ctx context.Context, name string, q string, source []string, ...) (ImplResponse, error)
- func (s *AgentCatalogServiceAPIService) FindAgentsFilterOptions(ctx context.Context) (ImplResponse, error)
- func (s *AgentCatalogServiceAPIService) GetAgent(ctx context.Context, id string) (ImplResponse, error)
- func (s *AgentCatalogServiceAPIService) GetAgentArtifacts(ctx context.Context, id string, ...) (ImplResponse, error)
- type AgentCatalogServiceAPIServicer
- type Constraint
- type ErrorHandler
- type ImplResponse
- type MCPCatalogServiceAPIController
- func (c *MCPCatalogServiceAPIController) FindMCPServerTools(w http.ResponseWriter, r *http.Request)
- func (c *MCPCatalogServiceAPIController) FindMCPServers(w http.ResponseWriter, r *http.Request)
- func (c *MCPCatalogServiceAPIController) FindMCPServersFilterOptions(w http.ResponseWriter, r *http.Request)
- func (c *MCPCatalogServiceAPIController) GetMCPServer(w http.ResponseWriter, r *http.Request)
- func (c *MCPCatalogServiceAPIController) GetMCPServerTool(w http.ResponseWriter, r *http.Request)
- func (c *MCPCatalogServiceAPIController) OrderedRoutes() []Route
- func (c *MCPCatalogServiceAPIController) Routes() Routes
- type MCPCatalogServiceAPIOption
- type MCPCatalogServiceAPIRouter
- type MCPCatalogServiceAPIService
- func (m *MCPCatalogServiceAPIService) FindMCPServerTools(ctx context.Context, serverID string, filterQuery string, pageSize string, ...) (ImplResponse, error)
- func (m *MCPCatalogServiceAPIService) FindMCPServers(ctx context.Context, name string, q string, sourceLabel []string, ...) (ImplResponse, error)
- func (m *MCPCatalogServiceAPIService) FindMCPServersFilterOptions(ctx context.Context) (ImplResponse, error)
- func (m *MCPCatalogServiceAPIService) GetMCPServer(ctx context.Context, serverID string, includeTools bool, toolLimit int32) (ImplResponse, error)
- func (m *MCPCatalogServiceAPIService) GetMCPServerTool(ctx context.Context, serverID string, toolName string) (ImplResponse, error)
- type MCPCatalogServiceAPIServicer
- type ModelCatalogServiceAPIController
- func (c *ModelCatalogServiceAPIController) ClearSourceStatus(w http.ResponseWriter, r *http.Request)
- func (c *ModelCatalogServiceAPIController) FindLabels(w http.ResponseWriter, r *http.Request)
- func (c *ModelCatalogServiceAPIController) FindModels(w http.ResponseWriter, r *http.Request)
- func (c *ModelCatalogServiceAPIController) FindModelsFilterOptions(w http.ResponseWriter, r *http.Request)
- func (c *ModelCatalogServiceAPIController) FindSources(w http.ResponseWriter, r *http.Request)
- func (c *ModelCatalogServiceAPIController) GetAllModelArtifacts(w http.ResponseWriter, r *http.Request)
- func (c *ModelCatalogServiceAPIController) GetAllModelPerformanceArtifacts(w http.ResponseWriter, r *http.Request)
- func (c *ModelCatalogServiceAPIController) GetModel(w http.ResponseWriter, r *http.Request)
- func (c *ModelCatalogServiceAPIController) GetSourceStatus(w http.ResponseWriter, r *http.Request)
- func (c *ModelCatalogServiceAPIController) OrderedRoutes() []Route
- func (c *ModelCatalogServiceAPIController) PreviewCatalogSource(w http.ResponseWriter, r *http.Request)
- func (c *ModelCatalogServiceAPIController) Routes() Routes
- type ModelCatalogServiceAPIOption
- type ModelCatalogServiceAPIRouter
- type ModelCatalogServiceAPIService
- func (m *ModelCatalogServiceAPIService) ClearSourceStatus(ctx context.Context, sourceID string) (ImplResponse, error)
- func (m *ModelCatalogServiceAPIService) FindLabels(ctx context.Context, assetType model.CatalogAssetType, pageSize string, ...) (ImplResponse, error)
- func (m *ModelCatalogServiceAPIService) FindModels(ctx context.Context, targetRPS int32, latencyProperty string, ...) (ImplResponse, error)
- func (m *ModelCatalogServiceAPIService) FindModelsFilterOptions(ctx context.Context) (ImplResponse, error)
- func (m *ModelCatalogServiceAPIService) FindSources(ctx context.Context, name string, assetType model.CatalogAssetType, ...) (ImplResponse, error)
- func (m *ModelCatalogServiceAPIService) GetAllModelArtifacts(ctx context.Context, sourceID string, modelName string, ...) (ImplResponse, error)
- func (m *ModelCatalogServiceAPIService) GetAllModelPerformanceArtifacts(ctx context.Context, sourceID string, modelName string, targetRPS int32, ...) (ImplResponse, error)
- func (m *ModelCatalogServiceAPIService) GetModel(ctx context.Context, sourceID, modelName string) (ImplResponse, error)
- func (m *ModelCatalogServiceAPIService) GetSourceStatus(ctx context.Context, sourceID string) (ImplResponse, error)
- func (m *ModelCatalogServiceAPIService) PreviewCatalogSource(ctx context.Context, configParam *os.File, pageSizeParam string, ...) (ImplResponse, error)
- type ModelCatalogServiceAPIServicer
- type ModelCatalogServiceOption
- type Number
- type Operation
- type ParseString
- type ParsingError
- type RequiredError
- type Route
- type Router
- type Routes
- type SkillCatalogServiceAPIController
- func (c *SkillCatalogServiceAPIController) FindSkills(w http.ResponseWriter, r *http.Request)
- func (c *SkillCatalogServiceAPIController) FindSkillsFilterOptions(w http.ResponseWriter, r *http.Request)
- func (c *SkillCatalogServiceAPIController) GetSkill(w http.ResponseWriter, r *http.Request)
- func (c *SkillCatalogServiceAPIController) OrderedRoutes() []Route
- func (c *SkillCatalogServiceAPIController) Routes() Routes
- type SkillCatalogServiceAPIOption
- type SkillCatalogServiceAPIRouter
- type SkillCatalogServiceAPIService
- func (s *SkillCatalogServiceAPIService) FindSkills(ctx context.Context, name string, q string, source []string, ...) (ImplResponse, error)
- func (s *SkillCatalogServiceAPIService) FindSkillsFilterOptions(ctx context.Context) (ImplResponse, error)
- func (s *SkillCatalogServiceAPIService) GetSkill(ctx context.Context, id string) (ImplResponse, error)
- type SkillCatalogServiceAPIServicer
- type SkillSourcePreviewer
Constants ¶
This section is empty.
Variables ¶
var ErrTypeAssertionError = errors.New("unable to assert type")
ErrTypeAssertionError is thrown when type an interface does not match the asserted type
Functions ¶
func AssertAgentArtifactConstraints ¶
func AssertAgentArtifactConstraints(obj model.AgentArtifact) error
AssertAgentArtifactConstraints checks if the values respects the defined constraints
func AssertAgentArtifactListConstraints ¶
func AssertAgentArtifactListConstraints(obj model.AgentArtifactList) error
AssertAgentArtifactListConstraints checks if the values respects the defined constraints
func AssertAgentArtifactListRequired ¶
func AssertAgentArtifactListRequired(obj model.AgentArtifactList) error
AssertAgentArtifactListRequired checks if the required fields are not zero-ed
func AssertAgentArtifactRequired ¶
func AssertAgentArtifactRequired(obj model.AgentArtifact) error
AssertAgentArtifactRequired checks if the required fields are not zero-ed
func AssertAgentArtifactTypeQueryParamConstraints ¶
func AssertAgentArtifactTypeQueryParamConstraints(obj model.AgentArtifactTypeQueryParam) error
AssertAgentArtifactTypeQueryParamConstraints checks if the values respects the defined constraints
func AssertAgentArtifactTypeQueryParamRequired ¶
func AssertAgentArtifactTypeQueryParamRequired(obj model.AgentArtifactTypeQueryParam) error
AssertAgentArtifactTypeQueryParamRequired checks if the required fields are not zero-ed
func AssertAgentConstraints ¶
AssertAgentConstraints checks if the values respects the defined constraints
func AssertAgentEnvVarConstraints ¶
func AssertAgentEnvVarConstraints(obj model.AgentEnvVar) error
AssertAgentEnvVarConstraints checks if the values respects the defined constraints
func AssertAgentEnvVarRequired ¶
func AssertAgentEnvVarRequired(obj model.AgentEnvVar) error
AssertAgentEnvVarRequired checks if the required fields are not zero-ed
func AssertAgentImageArtifactConstraints ¶
func AssertAgentImageArtifactConstraints(obj model.AgentImageArtifact) error
AssertAgentImageArtifactConstraints checks if the values respects the defined constraints
func AssertAgentImageArtifactRequired ¶
func AssertAgentImageArtifactRequired(obj model.AgentImageArtifact) error
AssertAgentImageArtifactRequired checks if the required fields are not zero-ed
func AssertAgentListConstraints ¶
AssertAgentListConstraints checks if the values respects the defined constraints
func AssertAgentListRequired ¶
AssertAgentListRequired checks if the required fields are not zero-ed
func AssertAgentRequired ¶
AssertAgentRequired checks if the required fields are not zero-ed
func AssertAgentTemplateArtifactConstraints ¶
func AssertAgentTemplateArtifactConstraints(obj model.AgentTemplateArtifact) error
AssertAgentTemplateArtifactConstraints checks if the values respects the defined constraints
func AssertAgentTemplateArtifactRequired ¶
func AssertAgentTemplateArtifactRequired(obj model.AgentTemplateArtifact) error
AssertAgentTemplateArtifactRequired checks if the required fields are not zero-ed
func AssertArtifactTypeQueryParamConstraints ¶
func AssertArtifactTypeQueryParamConstraints(obj model.ArtifactTypeQueryParam) error
AssertArtifactTypeQueryParamConstraints checks if the values respects the defined constraints
func AssertArtifactTypeQueryParamRequired ¶
func AssertArtifactTypeQueryParamRequired(obj model.ArtifactTypeQueryParam) error
AssertArtifactTypeQueryParamRequired checks if the required fields are not zero-ed
func AssertAssetPreviewResultConstraints ¶
func AssertAssetPreviewResultConstraints(obj model.AssetPreviewResult) error
AssertAssetPreviewResultConstraints checks if the values respects the defined constraints
func AssertAssetPreviewResultRequired ¶
func AssertAssetPreviewResultRequired(obj model.AssetPreviewResult) error
AssertAssetPreviewResultRequired checks if the required fields are not zero-ed
func AssertAssetSourcePreviewResponseAllOfSummaryConstraints ¶
func AssertAssetSourcePreviewResponseAllOfSummaryConstraints(obj model.AssetSourcePreviewResponseAllOfSummary) error
AssertAssetSourcePreviewResponseAllOfSummaryConstraints checks if the values respects the defined constraints
func AssertAssetSourcePreviewResponseAllOfSummaryRequired ¶
func AssertAssetSourcePreviewResponseAllOfSummaryRequired(obj model.AssetSourcePreviewResponseAllOfSummary) error
AssertAssetSourcePreviewResponseAllOfSummaryRequired checks if the required fields are not zero-ed
func AssertAssetSourcePreviewResponseConstraints ¶
func AssertAssetSourcePreviewResponseConstraints(obj model.AssetSourcePreviewResponse) error
AssertAssetSourcePreviewResponseConstraints checks if the values respects the defined constraints
func AssertAssetSourcePreviewResponseRequired ¶
func AssertAssetSourcePreviewResponseRequired(obj model.AssetSourcePreviewResponse) error
AssertAssetSourcePreviewResponseRequired checks if the required fields are not zero-ed
func AssertBaseModelConstraints ¶
AssertBaseModelConstraints checks if the values respects the defined constraints
func AssertBaseModelRequired ¶
AssertBaseModelRequired checks if the required fields are not zero-ed
func AssertBaseResourceConstraints ¶
func AssertBaseResourceConstraints(obj model.BaseResource) error
AssertBaseResourceConstraints checks if the values respects the defined constraints
func AssertBaseResourceDatesConstraints ¶
func AssertBaseResourceDatesConstraints(obj model.BaseResourceDates) error
AssertBaseResourceDatesConstraints checks if the values respects the defined constraints
func AssertBaseResourceDatesRequired ¶
func AssertBaseResourceDatesRequired(obj model.BaseResourceDates) error
AssertBaseResourceDatesRequired checks if the required fields are not zero-ed
func AssertBaseResourceListConstraints ¶
func AssertBaseResourceListConstraints(obj model.BaseResourceList) error
AssertBaseResourceListConstraints checks if the values respects the defined constraints
func AssertBaseResourceListRequired ¶
func AssertBaseResourceListRequired(obj model.BaseResourceList) error
AssertBaseResourceListRequired checks if the required fields are not zero-ed
func AssertBaseResourceRequired ¶
func AssertBaseResourceRequired(obj model.BaseResource) error
AssertBaseResourceRequired checks if the required fields are not zero-ed
func AssertCatalogArtifactConstraints ¶
func AssertCatalogArtifactConstraints(obj model.CatalogArtifact) error
AssertCatalogArtifactConstraints checks if the values respects the defined constraints
func AssertCatalogArtifactListConstraints ¶
func AssertCatalogArtifactListConstraints(obj model.CatalogArtifactList) error
AssertCatalogArtifactListConstraints checks if the values respects the defined constraints
func AssertCatalogArtifactListRequired ¶
func AssertCatalogArtifactListRequired(obj model.CatalogArtifactList) error
AssertCatalogArtifactListRequired checks if the required fields are not zero-ed
func AssertCatalogArtifactRequired ¶
func AssertCatalogArtifactRequired(obj model.CatalogArtifact) error
AssertCatalogArtifactRequired checks if the required fields are not zero-ed
func AssertCatalogAssetTypeConstraints ¶
func AssertCatalogAssetTypeConstraints(obj model.CatalogAssetType) error
AssertCatalogAssetTypeConstraints checks if the values respects the defined constraints
func AssertCatalogAssetTypeRequired ¶
func AssertCatalogAssetTypeRequired(obj model.CatalogAssetType) error
AssertCatalogAssetTypeRequired checks if the required fields are not zero-ed
func AssertCatalogLabelConstraints ¶
func AssertCatalogLabelConstraints(obj model.CatalogLabel) error
AssertCatalogLabelConstraints checks if the values respects the defined constraints
func AssertCatalogLabelListConstraints ¶
func AssertCatalogLabelListConstraints(obj model.CatalogLabelList) error
AssertCatalogLabelListConstraints checks if the values respects the defined constraints
func AssertCatalogLabelListRequired ¶
func AssertCatalogLabelListRequired(obj model.CatalogLabelList) error
AssertCatalogLabelListRequired checks if the required fields are not zero-ed
func AssertCatalogLabelRequired ¶
func AssertCatalogLabelRequired(obj model.CatalogLabel) error
AssertCatalogLabelRequired checks if the required fields are not zero-ed
func AssertCatalogMetricsArtifactConstraints ¶
func AssertCatalogMetricsArtifactConstraints(obj model.CatalogMetricsArtifact) error
AssertCatalogMetricsArtifactConstraints checks if the values respects the defined constraints
func AssertCatalogMetricsArtifactRequired ¶
func AssertCatalogMetricsArtifactRequired(obj model.CatalogMetricsArtifact) error
AssertCatalogMetricsArtifactRequired checks if the required fields are not zero-ed
func AssertCatalogModelArtifactConstraints ¶
func AssertCatalogModelArtifactConstraints(obj model.CatalogModelArtifact) error
AssertCatalogModelArtifactConstraints checks if the values respects the defined constraints
func AssertCatalogModelArtifactRequired ¶
func AssertCatalogModelArtifactRequired(obj model.CatalogModelArtifact) error
AssertCatalogModelArtifactRequired checks if the required fields are not zero-ed
func AssertCatalogModelConstraints ¶
func AssertCatalogModelConstraints(obj model.CatalogModel) error
AssertCatalogModelConstraints checks if the values respects the defined constraints
func AssertCatalogModelListConstraints ¶
func AssertCatalogModelListConstraints(obj model.CatalogModelList) error
AssertCatalogModelListConstraints checks if the values respects the defined constraints
func AssertCatalogModelListRequired ¶
func AssertCatalogModelListRequired(obj model.CatalogModelList) error
AssertCatalogModelListRequired checks if the required fields are not zero-ed
func AssertCatalogModelRequired ¶
func AssertCatalogModelRequired(obj model.CatalogModel) error
AssertCatalogModelRequired checks if the required fields are not zero-ed
func AssertCatalogSourceConstraints ¶
func AssertCatalogSourceConstraints(obj model.CatalogSource) error
AssertCatalogSourceConstraints checks if the values respects the defined constraints
func AssertCatalogSourceListConstraints ¶
func AssertCatalogSourceListConstraints(obj model.CatalogSourceList) error
AssertCatalogSourceListConstraints checks if the values respects the defined constraints
func AssertCatalogSourceListRequired ¶
func AssertCatalogSourceListRequired(obj model.CatalogSourceList) error
AssertCatalogSourceListRequired checks if the required fields are not zero-ed
func AssertCatalogSourcePreviewResponseAllOfSummaryConstraints ¶
func AssertCatalogSourcePreviewResponseAllOfSummaryConstraints(obj model.CatalogSourcePreviewResponseAllOfSummary) error
AssertCatalogSourcePreviewResponseAllOfSummaryConstraints checks if the values respects the defined constraints
func AssertCatalogSourcePreviewResponseAllOfSummaryRequired ¶
func AssertCatalogSourcePreviewResponseAllOfSummaryRequired(obj model.CatalogSourcePreviewResponseAllOfSummary) error
AssertCatalogSourcePreviewResponseAllOfSummaryRequired checks if the required fields are not zero-ed
func AssertCatalogSourcePreviewResponseConstraints ¶
func AssertCatalogSourcePreviewResponseConstraints(obj model.CatalogSourcePreviewResponse) error
AssertCatalogSourcePreviewResponseConstraints checks if the values respects the defined constraints
func AssertCatalogSourcePreviewResponseRequired ¶
func AssertCatalogSourcePreviewResponseRequired(obj model.CatalogSourcePreviewResponse) error
AssertCatalogSourcePreviewResponseRequired checks if the required fields are not zero-ed
func AssertCatalogSourceRequired ¶
func AssertCatalogSourceRequired(obj model.CatalogSource) error
AssertCatalogSourceRequired checks if the required fields are not zero-ed
func AssertCatalogSourceStatusConstraints ¶
func AssertCatalogSourceStatusConstraints(obj model.CatalogSourceStatus) error
AssertCatalogSourceStatusConstraints checks if the values respects the defined constraints
func AssertCatalogSourceStatusRequired ¶
func AssertCatalogSourceStatusRequired(obj model.CatalogSourceStatus) error
AssertCatalogSourceStatusRequired checks if the required fields are not zero-ed
func AssertErrorConstraints ¶
AssertErrorConstraints checks if the values respects the defined constraints
func AssertErrorRequired ¶
AssertErrorRequired checks if the required fields are not zero-ed
func AssertFieldFilterConstraints ¶
func AssertFieldFilterConstraints(obj model.FieldFilter) error
AssertFieldFilterConstraints checks if the values respects the defined constraints
func AssertFieldFilterRequired ¶
func AssertFieldFilterRequired(obj model.FieldFilter) error
AssertFieldFilterRequired checks if the required fields are not zero-ed
func AssertFilterOptionRangeConstraints ¶
func AssertFilterOptionRangeConstraints(obj model.FilterOptionRange) error
AssertFilterOptionRangeConstraints checks if the values respects the defined constraints
func AssertFilterOptionRangeRequired ¶
func AssertFilterOptionRangeRequired(obj model.FilterOptionRange) error
AssertFilterOptionRangeRequired checks if the required fields are not zero-ed
func AssertFilterOptionRequired ¶
func AssertFilterOptionRequired(obj model.FilterOption) error
AssertFilterOptionRequired checks if the required fields are not zero-ed
func AssertFilterOptionsListConstraints ¶
func AssertFilterOptionsListConstraints(obj model.FilterOptionsList) error
AssertFilterOptionsListConstraints checks if the values respects the defined constraints
func AssertFilterOptionsListRequired ¶
func AssertFilterOptionsListRequired(obj model.FilterOptionsList) error
AssertFilterOptionsListRequired checks if the required fields are not zero-ed
func AssertMCPArtifactConstraints ¶
func AssertMCPArtifactConstraints(obj model.MCPArtifact) error
AssertMCPArtifactConstraints checks if the values respects the defined constraints
func AssertMCPArtifactRequired ¶
func AssertMCPArtifactRequired(obj model.MCPArtifact) error
AssertMCPArtifactRequired checks if the required fields are not zero-ed
func AssertMCPConfigMapKeyConstraints ¶
func AssertMCPConfigMapKeyConstraints(obj model.MCPConfigMapKey) error
AssertMCPConfigMapKeyConstraints checks if the values respects the defined constraints
func AssertMCPConfigMapKeyRequired ¶
func AssertMCPConfigMapKeyRequired(obj model.MCPConfigMapKey) error
AssertMCPConfigMapKeyRequired checks if the required fields are not zero-ed
func AssertMCPConfigMapRequirementConstraints ¶
func AssertMCPConfigMapRequirementConstraints(obj model.MCPConfigMapRequirement) error
AssertMCPConfigMapRequirementConstraints checks if the values respects the defined constraints
func AssertMCPConfigMapRequirementRequired ¶
func AssertMCPConfigMapRequirementRequired(obj model.MCPConfigMapRequirement) error
AssertMCPConfigMapRequirementRequired checks if the required fields are not zero-ed
func AssertMCPEndpointsConstraints ¶
func AssertMCPEndpointsConstraints(obj model.MCPEndpoints) error
AssertMCPEndpointsConstraints checks if the values respects the defined constraints
func AssertMCPEndpointsRequired ¶
func AssertMCPEndpointsRequired(obj model.MCPEndpoints) error
AssertMCPEndpointsRequired checks if the required fields are not zero-ed
func AssertMCPEnvVarMetadataConstraints ¶
func AssertMCPEnvVarMetadataConstraints(obj model.MCPEnvVarMetadata) error
AssertMCPEnvVarMetadataConstraints checks if the values respects the defined constraints
func AssertMCPEnvVarMetadataRequired ¶
func AssertMCPEnvVarMetadataRequired(obj model.MCPEnvVarMetadata) error
AssertMCPEnvVarMetadataRequired checks if the required fields are not zero-ed
func AssertMCPPrerequisitesConstraints ¶
func AssertMCPPrerequisitesConstraints(obj model.MCPPrerequisites) error
AssertMCPPrerequisitesConstraints checks if the values respects the defined constraints
func AssertMCPPrerequisitesRequired ¶
func AssertMCPPrerequisitesRequired(obj model.MCPPrerequisites) error
AssertMCPPrerequisitesRequired checks if the required fields are not zero-ed
func AssertMCPResourceRecommendationConstraints ¶
func AssertMCPResourceRecommendationConstraints(obj model.MCPResourceRecommendation) error
AssertMCPResourceRecommendationConstraints checks if the values respects the defined constraints
func AssertMCPResourceRecommendationHighConstraints ¶
func AssertMCPResourceRecommendationHighConstraints(obj model.MCPResourceRecommendationHigh) error
AssertMCPResourceRecommendationHighConstraints checks if the values respects the defined constraints
func AssertMCPResourceRecommendationHighRequired ¶
func AssertMCPResourceRecommendationHighRequired(obj model.MCPResourceRecommendationHigh) error
AssertMCPResourceRecommendationHighRequired checks if the required fields are not zero-ed
func AssertMCPResourceRecommendationMinimalConstraints ¶
func AssertMCPResourceRecommendationMinimalConstraints(obj model.MCPResourceRecommendationMinimal) error
AssertMCPResourceRecommendationMinimalConstraints checks if the values respects the defined constraints
func AssertMCPResourceRecommendationMinimalRequired ¶
func AssertMCPResourceRecommendationMinimalRequired(obj model.MCPResourceRecommendationMinimal) error
AssertMCPResourceRecommendationMinimalRequired checks if the required fields are not zero-ed
func AssertMCPResourceRecommendationRecommendedConstraints ¶
func AssertMCPResourceRecommendationRecommendedConstraints(obj model.MCPResourceRecommendationRecommended) error
AssertMCPResourceRecommendationRecommendedConstraints checks if the values respects the defined constraints
func AssertMCPResourceRecommendationRecommendedRequired ¶
func AssertMCPResourceRecommendationRecommendedRequired(obj model.MCPResourceRecommendationRecommended) error
AssertMCPResourceRecommendationRecommendedRequired checks if the required fields are not zero-ed
func AssertMCPResourceRecommendationRequired ¶
func AssertMCPResourceRecommendationRequired(obj model.MCPResourceRecommendation) error
AssertMCPResourceRecommendationRequired checks if the required fields are not zero-ed
func AssertMCPRuntimeMetadataCapabilitiesConstraints ¶
func AssertMCPRuntimeMetadataCapabilitiesConstraints(obj model.MCPRuntimeMetadataCapabilities) error
AssertMCPRuntimeMetadataCapabilitiesConstraints checks if the values respects the defined constraints
func AssertMCPRuntimeMetadataCapabilitiesRequired ¶
func AssertMCPRuntimeMetadataCapabilitiesRequired(obj model.MCPRuntimeMetadataCapabilities) error
AssertMCPRuntimeMetadataCapabilitiesRequired checks if the required fields are not zero-ed
func AssertMCPRuntimeMetadataConstraints ¶
func AssertMCPRuntimeMetadataConstraints(obj model.MCPRuntimeMetadata) error
AssertMCPRuntimeMetadataConstraints checks if the values respects the defined constraints
func AssertMCPRuntimeMetadataHealthEndpointsConstraints ¶
func AssertMCPRuntimeMetadataHealthEndpointsConstraints(obj model.MCPRuntimeMetadataHealthEndpoints) error
AssertMCPRuntimeMetadataHealthEndpointsConstraints checks if the values respects the defined constraints
func AssertMCPRuntimeMetadataHealthEndpointsRequired ¶
func AssertMCPRuntimeMetadataHealthEndpointsRequired(obj model.MCPRuntimeMetadataHealthEndpoints) error
AssertMCPRuntimeMetadataHealthEndpointsRequired checks if the required fields are not zero-ed
func AssertMCPRuntimeMetadataRequired ¶
func AssertMCPRuntimeMetadataRequired(obj model.MCPRuntimeMetadata) error
AssertMCPRuntimeMetadataRequired checks if the required fields are not zero-ed
func AssertMCPSecretKeyConstraints ¶
func AssertMCPSecretKeyConstraints(obj model.MCPSecretKey) error
AssertMCPSecretKeyConstraints checks if the values respects the defined constraints
func AssertMCPSecretKeyRequired ¶
func AssertMCPSecretKeyRequired(obj model.MCPSecretKey) error
AssertMCPSecretKeyRequired checks if the required fields are not zero-ed
func AssertMCPSecretRequirementConstraints ¶
func AssertMCPSecretRequirementConstraints(obj model.MCPSecretRequirement) error
AssertMCPSecretRequirementConstraints checks if the values respects the defined constraints
func AssertMCPSecretRequirementRequired ¶
func AssertMCPSecretRequirementRequired(obj model.MCPSecretRequirement) error
AssertMCPSecretRequirementRequired checks if the required fields are not zero-ed
func AssertMCPSecurityIndicatorConstraints ¶
func AssertMCPSecurityIndicatorConstraints(obj model.MCPSecurityIndicator) error
AssertMCPSecurityIndicatorConstraints checks if the values respects the defined constraints
func AssertMCPSecurityIndicatorRequired ¶
func AssertMCPSecurityIndicatorRequired(obj model.MCPSecurityIndicator) error
AssertMCPSecurityIndicatorRequired checks if the required fields are not zero-ed
func AssertMCPServerConstraints ¶
AssertMCPServerConstraints checks if the values respects the defined constraints
func AssertMCPServerListConstraints ¶
func AssertMCPServerListConstraints(obj model.MCPServerList) error
AssertMCPServerListConstraints checks if the values respects the defined constraints
func AssertMCPServerListRequired ¶
func AssertMCPServerListRequired(obj model.MCPServerList) error
AssertMCPServerListRequired checks if the required fields are not zero-ed
func AssertMCPServerRequired ¶
AssertMCPServerRequired checks if the required fields are not zero-ed
func AssertMCPServiceAccountRequirementConstraints ¶
func AssertMCPServiceAccountRequirementConstraints(obj model.MCPServiceAccountRequirement) error
AssertMCPServiceAccountRequirementConstraints checks if the values respects the defined constraints
func AssertMCPServiceAccountRequirementRequired ¶
func AssertMCPServiceAccountRequirementRequired(obj model.MCPServiceAccountRequirement) error
AssertMCPServiceAccountRequirementRequired checks if the required fields are not zero-ed
func AssertMCPStorageMountConstraints ¶ added in v0.3.18
func AssertMCPStorageMountConstraints(obj model.MCPStorageMount) error
AssertMCPStorageMountConstraints checks if the values respects the defined constraints
func AssertMCPStorageMountRequired ¶ added in v0.3.18
func AssertMCPStorageMountRequired(obj model.MCPStorageMount) error
AssertMCPStorageMountRequired checks if the required fields are not zero-ed
func AssertMCPStorageSourceConstraints ¶ added in v0.3.18
func AssertMCPStorageSourceConstraints(obj model.MCPStorageSource) error
AssertMCPStorageSourceConstraints checks if the values respects the defined constraints
func AssertMCPStorageSourceRequired ¶ added in v0.3.18
func AssertMCPStorageSourceRequired(obj model.MCPStorageSource) error
AssertMCPStorageSourceRequired checks if the required fields are not zero-ed
func AssertMCPToolConstraints ¶
AssertMCPToolConstraints checks if the values respects the defined constraints
func AssertMCPToolParameterConstraints ¶
func AssertMCPToolParameterConstraints(obj model.MCPToolParameter) error
AssertMCPToolParameterConstraints checks if the values respects the defined constraints
func AssertMCPToolParameterRequired ¶
func AssertMCPToolParameterRequired(obj model.MCPToolParameter) error
AssertMCPToolParameterRequired checks if the required fields are not zero-ed
func AssertMCPToolRequired ¶
AssertMCPToolRequired checks if the required fields are not zero-ed
func AssertMCPToolWithServerConstraints ¶
func AssertMCPToolWithServerConstraints(obj model.MCPToolWithServer) error
AssertMCPToolWithServerConstraints checks if the values respects the defined constraints
func AssertMCPToolWithServerRequired ¶
func AssertMCPToolWithServerRequired(obj model.MCPToolWithServer) error
AssertMCPToolWithServerRequired checks if the required fields are not zero-ed
func AssertMCPToolsListConstraints ¶
func AssertMCPToolsListConstraints(obj model.MCPToolsList) error
AssertMCPToolsListConstraints checks if the values respects the defined constraints
func AssertMCPToolsListRequired ¶
func AssertMCPToolsListRequired(obj model.MCPToolsList) error
AssertMCPToolsListRequired checks if the required fields are not zero-ed
func AssertMetadataBoolValueConstraints ¶
func AssertMetadataBoolValueConstraints(obj model.MetadataBoolValue) error
AssertMetadataBoolValueConstraints checks if the values respects the defined constraints
func AssertMetadataBoolValueRequired ¶
func AssertMetadataBoolValueRequired(obj model.MetadataBoolValue) error
AssertMetadataBoolValueRequired checks if the required fields are not zero-ed
func AssertMetadataDoubleValueConstraints ¶
func AssertMetadataDoubleValueConstraints(obj model.MetadataDoubleValue) error
AssertMetadataDoubleValueConstraints checks if the values respects the defined constraints
func AssertMetadataDoubleValueRequired ¶
func AssertMetadataDoubleValueRequired(obj model.MetadataDoubleValue) error
AssertMetadataDoubleValueRequired checks if the required fields are not zero-ed
func AssertMetadataIntValueConstraints ¶
func AssertMetadataIntValueConstraints(obj model.MetadataIntValue) error
AssertMetadataIntValueConstraints checks if the values respects the defined constraints
func AssertMetadataIntValueRequired ¶
func AssertMetadataIntValueRequired(obj model.MetadataIntValue) error
AssertMetadataIntValueRequired checks if the required fields are not zero-ed
func AssertMetadataProtoValueConstraints ¶
func AssertMetadataProtoValueConstraints(obj model.MetadataProtoValue) error
AssertMetadataProtoValueConstraints checks if the values respects the defined constraints
func AssertMetadataProtoValueRequired ¶
func AssertMetadataProtoValueRequired(obj model.MetadataProtoValue) error
AssertMetadataProtoValueRequired checks if the required fields are not zero-ed
func AssertMetadataStringValueConstraints ¶
func AssertMetadataStringValueConstraints(obj model.MetadataStringValue) error
AssertMetadataStringValueConstraints checks if the values respects the defined constraints
func AssertMetadataStringValueRequired ¶
func AssertMetadataStringValueRequired(obj model.MetadataStringValue) error
AssertMetadataStringValueRequired checks if the required fields are not zero-ed
func AssertMetadataStructValueConstraints ¶
func AssertMetadataStructValueConstraints(obj model.MetadataStructValue) error
AssertMetadataStructValueConstraints checks if the values respects the defined constraints
func AssertMetadataStructValueRequired ¶
func AssertMetadataStructValueRequired(obj model.MetadataStructValue) error
AssertMetadataStructValueRequired checks if the required fields are not zero-ed
func AssertModelPreviewResultConstraints ¶
func AssertModelPreviewResultConstraints(obj model.ModelPreviewResult) error
AssertModelPreviewResultConstraints checks if the values respects the defined constraints
func AssertModelPreviewResultRequired ¶
func AssertModelPreviewResultRequired(obj model.ModelPreviewResult) error
AssertModelPreviewResultRequired checks if the required fields are not zero-ed
func AssertOrderByFieldConstraints ¶
func AssertOrderByFieldConstraints(obj model.OrderByField) error
AssertOrderByFieldConstraints checks if the values respects the defined constraints
func AssertOrderByFieldRequired ¶
func AssertOrderByFieldRequired(obj model.OrderByField) error
AssertOrderByFieldRequired checks if the required fields are not zero-ed
func AssertPreviewCatalogSourceResponseConstraints ¶
func AssertPreviewCatalogSourceResponseConstraints(obj model.PreviewCatalogSourceResponse) error
AssertPreviewCatalogSourceResponseConstraints checks if the values respects the defined constraints
func AssertPreviewCatalogSourceResponseRequired ¶
func AssertPreviewCatalogSourceResponseRequired(obj model.PreviewCatalogSourceResponse) error
AssertPreviewCatalogSourceResponseRequired checks if the required fields are not zero-ed
func AssertRecurseInterfaceRequired ¶
AssertRecurseInterfaceRequired recursively checks each struct in a slice against the callback. This method traverse nested slices in a preorder fashion.
func AssertRecurseValueRequired ¶
AssertRecurseValueRequired checks each struct in the nested slice against the callback. This method traverse nested slices in a preorder fashion. ErrTypeAssertionError is thrown if the underlying struct does not match type T.
func AssertServingConfigConstraints ¶
func AssertServingConfigConstraints(obj model.ServingConfig) error
AssertServingConfigConstraints checks if the values respects the defined constraints
func AssertServingConfigRequired ¶
func AssertServingConfigRequired(obj model.ServingConfig) error
AssertServingConfigRequired checks if the required fields are not zero-ed
func AssertSkillConstraints ¶
AssertSkillConstraints checks if the values respects the defined constraints
func AssertSkillListConstraints ¶
AssertSkillListConstraints checks if the values respects the defined constraints
func AssertSkillListRequired ¶
AssertSkillListRequired checks if the required fields are not zero-ed
func AssertSkillRequired ¶
AssertSkillRequired checks if the required fields are not zero-ed
func AssertSkillTrustTierConstraints ¶
func AssertSkillTrustTierConstraints(obj model.SkillTrustTier) error
AssertSkillTrustTierConstraints checks if the values respects the defined constraints
func AssertSkillTrustTierRequired ¶
func AssertSkillTrustTierRequired(obj model.SkillTrustTier) error
AssertSkillTrustTierRequired checks if the required fields are not zero-ed
func AssertSortOrderConstraints ¶
AssertSortOrderConstraints checks if the values respects the defined constraints
func AssertSortOrderRequired ¶
AssertSortOrderRequired checks if the required fields are not zero-ed
func AssertSourceStatusConstraints ¶ added in v0.3.17
func AssertSourceStatusConstraints(obj model.SourceStatus) error
AssertSourceStatusConstraints checks if the values respects the defined constraints
func AssertSourceStatusRequired ¶ added in v0.3.17
func AssertSourceStatusRequired(obj model.SourceStatus) error
AssertSourceStatusRequired checks if the required fields are not zero-ed
func AssertToolCallingConfigConstraints ¶
func AssertToolCallingConfigConstraints(obj model.ToolCallingConfig) error
AssertToolCallingConfigConstraints checks if the values respects the defined constraints
func AssertToolCallingConfigRequired ¶
func AssertToolCallingConfigRequired(obj model.ToolCallingConfig) error
AssertToolCallingConfigRequired checks if the required fields are not zero-ed
func DefaultErrorHandler ¶
func DefaultErrorHandler(w http.ResponseWriter, _ *http.Request, err error, result *ImplResponse)
DefaultErrorHandler defines the default logic on how to handle errors from the controller. Any errors from parsing request params will return a StatusBadRequest. Otherwise, the error code originating from the servicer will be used.
func EncodeJSONResponse ¶
func EncodeJSONResponse(i interface{}, status *int, w http.ResponseWriter) error
EncodeJSONResponse uses the json encoder to write an interface to the http response with an optional status code
func IsZeroValue ¶
func IsZeroValue(val interface{}) bool
IsZeroValue checks if the val is the zero-ed value.
func ReadFormFileToTempFile ¶
ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file
Types ¶
type AgentCatalogServiceAPIController ¶
type AgentCatalogServiceAPIController struct {
// contains filtered or unexported fields
}
AgentCatalogServiceAPIController binds http requests to an api service and writes the service results to the http response
func NewAgentCatalogServiceAPIController ¶
func NewAgentCatalogServiceAPIController(s AgentCatalogServiceAPIServicer, opts ...AgentCatalogServiceAPIOption) *AgentCatalogServiceAPIController
NewAgentCatalogServiceAPIController creates a default api controller
func (*AgentCatalogServiceAPIController) FindAgents ¶
func (c *AgentCatalogServiceAPIController) FindAgents(w http.ResponseWriter, r *http.Request)
FindAgents - List agents.
func (*AgentCatalogServiceAPIController) FindAgentsFilterOptions ¶
func (c *AgentCatalogServiceAPIController) FindAgentsFilterOptions(w http.ResponseWriter, r *http.Request)
FindAgentsFilterOptions - Lists fields and values that can be used in `filterQuery` on the list agents endpoint.
func (*AgentCatalogServiceAPIController) GetAgent ¶
func (c *AgentCatalogServiceAPIController) GetAgent(w http.ResponseWriter, r *http.Request)
GetAgent - Get an agent by ID.
func (*AgentCatalogServiceAPIController) GetAgentArtifacts ¶
func (c *AgentCatalogServiceAPIController) GetAgentArtifacts(w http.ResponseWriter, r *http.Request)
GetAgentArtifacts - List artifacts for an agent.
func (*AgentCatalogServiceAPIController) OrderedRoutes ¶
func (c *AgentCatalogServiceAPIController) OrderedRoutes() []Route
OrderedRoutes returns all the api routes in a deterministic order for the AgentCatalogServiceAPIController
func (*AgentCatalogServiceAPIController) Routes ¶
func (c *AgentCatalogServiceAPIController) Routes() Routes
Routes returns all the api routes for the AgentCatalogServiceAPIController
type AgentCatalogServiceAPIOption ¶
type AgentCatalogServiceAPIOption func(*AgentCatalogServiceAPIController)
AgentCatalogServiceAPIOption for how the controller is set up.
func WithAgentCatalogServiceAPIErrorHandler ¶
func WithAgentCatalogServiceAPIErrorHandler(h ErrorHandler) AgentCatalogServiceAPIOption
WithAgentCatalogServiceAPIErrorHandler inject ErrorHandler into controller
type AgentCatalogServiceAPIRouter ¶
type AgentCatalogServiceAPIRouter interface {
FindAgents(http.ResponseWriter, *http.Request)
FindAgentsFilterOptions(http.ResponseWriter, *http.Request)
GetAgent(http.ResponseWriter, *http.Request)
GetAgentArtifacts(http.ResponseWriter, *http.Request)
}
AgentCatalogServiceAPIRouter defines the required methods for binding the api requests to a responses for the AgentCatalogServiceAPI The AgentCatalogServiceAPIRouter implementation should parse necessary information from the http request, pass the data to a AgentCatalogServiceAPIServicer to perform the required actions, then write the service results to the http response.
type AgentCatalogServiceAPIService ¶
type AgentCatalogServiceAPIService struct {
// contains filtered or unexported fields
}
AgentCatalogServiceAPIService implements the AgentCatalogServiceAPIServicer interface.
func (*AgentCatalogServiceAPIService) FindAgents ¶
func (*AgentCatalogServiceAPIService) FindAgentsFilterOptions ¶
func (s *AgentCatalogServiceAPIService) FindAgentsFilterOptions(ctx context.Context) (ImplResponse, error)
func (*AgentCatalogServiceAPIService) GetAgent ¶
func (s *AgentCatalogServiceAPIService) GetAgent(ctx context.Context, id string) (ImplResponse, error)
func (*AgentCatalogServiceAPIService) GetAgentArtifacts ¶
func (s *AgentCatalogServiceAPIService) GetAgentArtifacts(ctx context.Context, id string, artifactType []model.AgentArtifactTypeQueryParam, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
type AgentCatalogServiceAPIServicer ¶
type AgentCatalogServiceAPIServicer interface {
FindAgents(context.Context, string, string, []string, []string, string, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error)
FindAgentsFilterOptions(context.Context) (ImplResponse, error)
GetAgent(context.Context, string) (ImplResponse, error)
GetAgentArtifacts(context.Context, string, []model.AgentArtifactTypeQueryParam, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error)
}
AgentCatalogServiceAPIServicer defines the api actions for the AgentCatalogServiceAPI service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can be ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewAgentCatalogServiceAPIService ¶
func NewAgentCatalogServiceAPIService(provider *agentcatalog.DBAgentCatalog, sources *agentcatalog.AgentSourceCollection) AgentCatalogServiceAPIServicer
type Constraint ¶
func WithMaximum ¶
func WithMaximum[T Number](expected T) Constraint[T]
func WithMinimum ¶
func WithMinimum[T Number](expected T) Constraint[T]
type ErrorHandler ¶
type ErrorHandler func(w http.ResponseWriter, r *http.Request, err error, result *ImplResponse)
ErrorHandler defines the required method for handling error. You may implement it and inject this into a controller if you would like errors to be handled differently from the DefaultErrorHandler
type ImplResponse ¶
type ImplResponse struct {
Code int
Body interface{}
}
ImplResponse defines an implementation response with error code and the associated body
func ErrorResponse ¶
func ErrorResponse(code int, err error) ImplResponse
func Response ¶
func Response(code int, body interface{}) ImplResponse
Response return a ImplResponse struct filled
type MCPCatalogServiceAPIController ¶
type MCPCatalogServiceAPIController struct {
// contains filtered or unexported fields
}
MCPCatalogServiceAPIController binds http requests to an api service and writes the service results to the http response
func NewMCPCatalogServiceAPIController ¶
func NewMCPCatalogServiceAPIController(s MCPCatalogServiceAPIServicer, opts ...MCPCatalogServiceAPIOption) *MCPCatalogServiceAPIController
NewMCPCatalogServiceAPIController creates a default api controller
func (*MCPCatalogServiceAPIController) FindMCPServerTools ¶
func (c *MCPCatalogServiceAPIController) FindMCPServerTools(w http.ResponseWriter, r *http.Request)
FindMCPServerTools - List tools exposed by an `MCPServer`.
func (*MCPCatalogServiceAPIController) FindMCPServers ¶
func (c *MCPCatalogServiceAPIController) FindMCPServers(w http.ResponseWriter, r *http.Request)
FindMCPServers - List MCP servers.
func (*MCPCatalogServiceAPIController) FindMCPServersFilterOptions ¶
func (c *MCPCatalogServiceAPIController) FindMCPServersFilterOptions(w http.ResponseWriter, r *http.Request)
FindMCPServersFilterOptions - Lists fields, values, and named queries that can be used in `filterQuery` on the list MCP servers endpoint.
func (*MCPCatalogServiceAPIController) GetMCPServer ¶
func (c *MCPCatalogServiceAPIController) GetMCPServer(w http.ResponseWriter, r *http.Request)
GetMCPServer - Get an `MCPServer`.
func (*MCPCatalogServiceAPIController) GetMCPServerTool ¶
func (c *MCPCatalogServiceAPIController) GetMCPServerTool(w http.ResponseWriter, r *http.Request)
GetMCPServerTool - Get an `MCPTool` from an `MCPServer`.
func (*MCPCatalogServiceAPIController) OrderedRoutes ¶
func (c *MCPCatalogServiceAPIController) OrderedRoutes() []Route
OrderedRoutes returns all the api routes in a deterministic order for the MCPCatalogServiceAPIController
func (*MCPCatalogServiceAPIController) Routes ¶
func (c *MCPCatalogServiceAPIController) Routes() Routes
Routes returns all the api routes for the MCPCatalogServiceAPIController
type MCPCatalogServiceAPIOption ¶
type MCPCatalogServiceAPIOption func(*MCPCatalogServiceAPIController)
MCPCatalogServiceAPIOption for how the controller is set up.
func WithMCPCatalogServiceAPIErrorHandler ¶
func WithMCPCatalogServiceAPIErrorHandler(h ErrorHandler) MCPCatalogServiceAPIOption
WithMCPCatalogServiceAPIErrorHandler inject ErrorHandler into controller
type MCPCatalogServiceAPIRouter ¶
type MCPCatalogServiceAPIRouter interface {
FindMCPServers(http.ResponseWriter, *http.Request)
FindMCPServersFilterOptions(http.ResponseWriter, *http.Request)
GetMCPServer(http.ResponseWriter, *http.Request)
FindMCPServerTools(http.ResponseWriter, *http.Request)
GetMCPServerTool(http.ResponseWriter, *http.Request)
}
MCPCatalogServiceAPIRouter defines the required methods for binding the api requests to a responses for the MCPCatalogServiceAPI The MCPCatalogServiceAPIRouter implementation should parse necessary information from the http request, pass the data to a MCPCatalogServiceAPIServicer to perform the required actions, then write the service results to the http response.
type MCPCatalogServiceAPIService ¶
type MCPCatalogServiceAPIService struct {
// contains filtered or unexported fields
}
MCPCatalogServiceAPIService is a service that implements the logic for the MCPCatalogServiceAPIServicer
func (*MCPCatalogServiceAPIService) FindMCPServerTools ¶
func (m *MCPCatalogServiceAPIService) FindMCPServerTools(ctx context.Context, serverID string, filterQuery string, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
FindMCPServerTools - List MCP server tools.
func (*MCPCatalogServiceAPIService) FindMCPServers ¶
func (m *MCPCatalogServiceAPIService) FindMCPServers(ctx context.Context, name string, q string, sourceLabel []string, filterQuery string, namedQuery string, includeTools bool, toolLimit int32, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
FindMCPServers - List MCP servers.
func (*MCPCatalogServiceAPIService) FindMCPServersFilterOptions ¶
func (m *MCPCatalogServiceAPIService) FindMCPServersFilterOptions(ctx context.Context) (ImplResponse, error)
FindMCPServersFilterOptions - Lists fields, values, and named queries that can be used in `filterQuery` on the list MCP servers endpoint.
func (*MCPCatalogServiceAPIService) GetMCPServer ¶
func (m *MCPCatalogServiceAPIService) GetMCPServer(ctx context.Context, serverID string, includeTools bool, toolLimit int32) (ImplResponse, error)
GetMCPServer - Get an `MCPServer`.
func (*MCPCatalogServiceAPIService) GetMCPServerTool ¶
func (m *MCPCatalogServiceAPIService) GetMCPServerTool(ctx context.Context, serverID string, toolName string) (ImplResponse, error)
GetMCPServerTool - Get an `MCPTool` from an `MCPServer`.
type MCPCatalogServiceAPIServicer ¶
type MCPCatalogServiceAPIServicer interface {
FindMCPServers(context.Context, string, string, []string, string, string, bool, int32, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error)
FindMCPServersFilterOptions(context.Context) (ImplResponse, error)
GetMCPServer(context.Context, string, bool, int32) (ImplResponse, error)
FindMCPServerTools(context.Context, string, string, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error)
GetMCPServerTool(context.Context, string, string) (ImplResponse, error)
}
MCPCatalogServiceAPIServicer defines the api actions for the MCPCatalogServiceAPI service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can be ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewMCPCatalogServiceAPIService ¶
func NewMCPCatalogServiceAPIService(mcpProvider catalog.MCPProvider, mcpSources *catalog.MCPSourceCollection) MCPCatalogServiceAPIServicer
NewMCPCatalogServiceAPIService creates a default api service
type ModelCatalogServiceAPIController ¶
type ModelCatalogServiceAPIController struct {
// contains filtered or unexported fields
}
ModelCatalogServiceAPIController binds http requests to an api service and writes the service results to the http response
func NewModelCatalogServiceAPIController ¶
func NewModelCatalogServiceAPIController(s ModelCatalogServiceAPIServicer, opts ...ModelCatalogServiceAPIOption) *ModelCatalogServiceAPIController
NewModelCatalogServiceAPIController creates a default api controller
func (*ModelCatalogServiceAPIController) ClearSourceStatus ¶ added in v0.3.17
func (c *ModelCatalogServiceAPIController) ClearSourceStatus(w http.ResponseWriter, r *http.Request)
ClearSourceStatus - Clear the persisted status of a `CatalogSource`.
func (*ModelCatalogServiceAPIController) FindLabels ¶
func (c *ModelCatalogServiceAPIController) FindLabels(w http.ResponseWriter, r *http.Request)
FindLabels - List All CatalogLabels
func (*ModelCatalogServiceAPIController) FindModels ¶
func (c *ModelCatalogServiceAPIController) FindModels(w http.ResponseWriter, r *http.Request)
FindModels - Search catalog models across sources.
func (*ModelCatalogServiceAPIController) FindModelsFilterOptions ¶
func (c *ModelCatalogServiceAPIController) FindModelsFilterOptions(w http.ResponseWriter, r *http.Request)
FindModelsFilterOptions - Lists fields and available options that can be used in `filterQuery` on the list models endpoint.
func (*ModelCatalogServiceAPIController) FindSources ¶
func (c *ModelCatalogServiceAPIController) FindSources(w http.ResponseWriter, r *http.Request)
FindSources - List All CatalogSources
func (*ModelCatalogServiceAPIController) GetAllModelArtifacts ¶
func (c *ModelCatalogServiceAPIController) GetAllModelArtifacts(w http.ResponseWriter, r *http.Request)
GetAllModelArtifacts - List CatalogArtifacts.
func (*ModelCatalogServiceAPIController) GetAllModelPerformanceArtifacts ¶
func (c *ModelCatalogServiceAPIController) GetAllModelPerformanceArtifacts(w http.ResponseWriter, r *http.Request)
GetAllModelPerformanceArtifacts - List CatalogArtifacts.
func (*ModelCatalogServiceAPIController) GetModel ¶
func (c *ModelCatalogServiceAPIController) GetModel(w http.ResponseWriter, r *http.Request)
GetModel - Get a `CatalogModel`.
func (*ModelCatalogServiceAPIController) GetSourceStatus ¶ added in v0.3.17
func (c *ModelCatalogServiceAPIController) GetSourceStatus(w http.ResponseWriter, r *http.Request)
GetSourceStatus - Get the persisted status of a `CatalogSource`.
func (*ModelCatalogServiceAPIController) OrderedRoutes ¶
func (c *ModelCatalogServiceAPIController) OrderedRoutes() []Route
OrderedRoutes returns all the api routes in a deterministic order for the ModelCatalogServiceAPIController
func (*ModelCatalogServiceAPIController) PreviewCatalogSource ¶
func (c *ModelCatalogServiceAPIController) PreviewCatalogSource(w http.ResponseWriter, r *http.Request)
PreviewCatalogSource - Preview catalog source configuration
func (*ModelCatalogServiceAPIController) Routes ¶
func (c *ModelCatalogServiceAPIController) Routes() Routes
Routes returns all the api routes for the ModelCatalogServiceAPIController
type ModelCatalogServiceAPIOption ¶
type ModelCatalogServiceAPIOption func(*ModelCatalogServiceAPIController)
ModelCatalogServiceAPIOption for how the controller is set up.
func WithModelCatalogServiceAPIErrorHandler ¶
func WithModelCatalogServiceAPIErrorHandler(h ErrorHandler) ModelCatalogServiceAPIOption
WithModelCatalogServiceAPIErrorHandler inject ErrorHandler into controller
type ModelCatalogServiceAPIRouter ¶
type ModelCatalogServiceAPIRouter interface {
FindLabels(http.ResponseWriter, *http.Request)
FindModels(http.ResponseWriter, *http.Request)
FindModelsFilterOptions(http.ResponseWriter, *http.Request)
FindSources(http.ResponseWriter, *http.Request)
PreviewCatalogSource(http.ResponseWriter, *http.Request)
GetModel(http.ResponseWriter, *http.Request)
GetAllModelArtifacts(http.ResponseWriter, *http.Request)
GetAllModelPerformanceArtifacts(http.ResponseWriter, *http.Request)
GetSourceStatus(http.ResponseWriter, *http.Request)
ClearSourceStatus(http.ResponseWriter, *http.Request)
}
ModelCatalogServiceAPIRouter defines the required methods for binding the api requests to a responses for the ModelCatalogServiceAPI The ModelCatalogServiceAPIRouter implementation should parse necessary information from the http request, pass the data to a ModelCatalogServiceAPIServicer to perform the required actions, then write the service results to the http response.
type ModelCatalogServiceAPIService ¶
type ModelCatalogServiceAPIService struct {
// contains filtered or unexported fields
}
ModelCatalogServiceAPIService is a service that implements the logic for the ModelCatalogServiceAPIServicer This service should implement the business logic for every endpoint for the ModelCatalogServiceAPI s.coreApi. Include any external packages or services that will be required by this service.
func (*ModelCatalogServiceAPIService) ClearSourceStatus ¶ added in v0.3.17
func (m *ModelCatalogServiceAPIService) ClearSourceStatus(ctx context.Context, sourceID string) (ImplResponse, error)
ClearSourceStatus deletes the operational status persisted for the given source. It is intended to be called immediately after a source configuration change is saved, so that FindSources and GetSourceStatus stop reporting a stale status while the backend picks up the new configuration on its next reload. Clearing a source with no persisted status is a no-op, not an error.
func (*ModelCatalogServiceAPIService) FindLabels ¶
func (m *ModelCatalogServiceAPIService) FindLabels(ctx context.Context, assetType model.CatalogAssetType, pageSize string, orderBy string, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
func (*ModelCatalogServiceAPIService) FindModels ¶
func (m *ModelCatalogServiceAPIService) FindModels(ctx context.Context, targetRPS int32, latencyProperty string, rpsProperty string, hardwareCountProperty string, hardwareTypeProperty string, sourceIDs []string, q string, sourceLabels []string, filterQuery string, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
func (*ModelCatalogServiceAPIService) FindModelsFilterOptions ¶
func (m *ModelCatalogServiceAPIService) FindModelsFilterOptions(ctx context.Context) (ImplResponse, error)
func (*ModelCatalogServiceAPIService) FindSources ¶
func (m *ModelCatalogServiceAPIService) FindSources(ctx context.Context, name string, assetType model.CatalogAssetType, strPageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
func (*ModelCatalogServiceAPIService) GetAllModelArtifacts ¶
func (m *ModelCatalogServiceAPIService) GetAllModelArtifacts(ctx context.Context, sourceID string, modelName string, artifactType []model.ArtifactTypeQueryParam, filterQuery string, pageSize string, orderBy string, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
GetAllModelArtifacts retrieves all model artifacts for a given model from the specified source.
func (*ModelCatalogServiceAPIService) GetAllModelPerformanceArtifacts ¶
func (m *ModelCatalogServiceAPIService) GetAllModelPerformanceArtifacts(ctx context.Context, sourceID string, modelName string, targetRPS int32, recommendations bool, rpsProperty string, latencyProperty string, hardwareCountProperty string, hardwareTypeProperty string, filterQuery string, pageSize string, orderBy string, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
func (*ModelCatalogServiceAPIService) GetModel ¶
func (m *ModelCatalogServiceAPIService) GetModel(ctx context.Context, sourceID, modelName string) (ImplResponse, error)
func (*ModelCatalogServiceAPIService) GetSourceStatus ¶ added in v0.3.17
func (m *ModelCatalogServiceAPIService) GetSourceStatus(ctx context.Context, sourceID string) (ImplResponse, error)
GetSourceStatus returns the operational status most recently persisted for the given source. The status is computed asynchronously by the loaders when a source is (re)loaded, so it may be empty immediately after a configuration change — for example, right after ClearSourceStatus has been called to discard a stale status. An empty SourceStatus (no status/error set) is returned in that case rather than a 404, since the source itself may still exist and simply has no persisted status yet.
func (*ModelCatalogServiceAPIService) PreviewCatalogSource ¶
type ModelCatalogServiceAPIServicer ¶
type ModelCatalogServiceAPIServicer interface {
FindLabels(context.Context, model.CatalogAssetType, string, string, model.SortOrder, string) (ImplResponse, error)
FindModels(context.Context, int32, string, string, string, string, []string, string, []string, string, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error)
FindModelsFilterOptions(context.Context) (ImplResponse, error)
FindSources(context.Context, string, model.CatalogAssetType, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error)
PreviewCatalogSource(context.Context, *os.File, string, string, string, *os.File) (ImplResponse, error)
GetModel(context.Context, string, string) (ImplResponse, error)
GetAllModelArtifacts(context.Context, string, string, []model.ArtifactTypeQueryParam, string, string, string, model.SortOrder, string) (ImplResponse, error)
GetAllModelPerformanceArtifacts(context.Context, string, string, int32, bool, string, string, string, string, string, string, string, model.SortOrder, string) (ImplResponse, error)
GetSourceStatus(context.Context, string) (ImplResponse, error)
ClearSourceStatus(context.Context, string) (ImplResponse, error)
}
ModelCatalogServiceAPIServicer defines the api actions for the ModelCatalogServiceAPI service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can be ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewModelCatalogServiceAPIService ¶
func NewModelCatalogServiceAPIService(provider catalog.APIProvider, sources *catalog.SourceCollection, mcpSources *catalog.MCPSourceCollection, agentSources *catalog.AgentSourceCollection, labels *catalog.LabelCollection, sourceRepository models.CatalogSourceRepository, opts ...ModelCatalogServiceOption) ModelCatalogServiceAPIServicer
NewModelCatalogServiceAPIService creates a default api service
type ModelCatalogServiceOption ¶
type ModelCatalogServiceOption func(*ModelCatalogServiceAPIService)
ModelCatalogServiceOption configures optional dependencies of the service.
func WithPreviewFiles ¶ added in v0.3.18
func WithPreviewFiles(pf *basecatalog.PreviewFiles) ModelCatalogServiceOption
WithPreviewFiles enables path-mode YAML previews, reading yamlCatalogPath through the given confined reader. When unset, a preview that relies on yamlCatalogPath instead of uploaded catalogData returns 422.
func WithSkillPreviewer ¶
func WithSkillPreviewer(p SkillSourcePreviewer) ModelCatalogServiceOption
WithSkillPreviewer enables previewing git-skills-plugin sources through the shared sources/preview endpoint. When unset, an assetType: skills preview returns 501 Not Implemented.
func WithSkillSources ¶
func WithSkillSources(sc *catalog.SkillSourceCollection) ModelCatalogServiceOption
WithSkillSources wires the skill source collection into FindSources so that sources with assetType: skills appear alongside model/MCP/agent sources.
type Operation ¶
func WithDefaultOrParse ¶
func WithDefaultOrParse[T Number | string | bool](def T, parse ParseString[T]) Operation[T]
func WithRequire ¶
func WithRequire[T Number | string | bool](parse ParseString[T]) Operation[T]
type ParsingError ¶
ParsingError indicates that an error has occurred when parsing request parameters
func (*ParsingError) Error ¶
func (e *ParsingError) Error() string
func (*ParsingError) Unwrap ¶
func (e *ParsingError) Unwrap() error
type RequiredError ¶
type RequiredError struct {
Field string
}
RequiredError indicates that an error has occurred when parsing request parameters
func (*RequiredError) Error ¶
func (e *RequiredError) Error() string
type Route ¶
type Route struct {
Name string
Method string
Pattern string
HandlerFunc http.HandlerFunc
}
A Route defines the parameters for an api endpoint
type SkillCatalogServiceAPIController ¶
type SkillCatalogServiceAPIController struct {
// contains filtered or unexported fields
}
SkillCatalogServiceAPIController binds http requests to an api service and writes the service results to the http response
func NewSkillCatalogServiceAPIController ¶
func NewSkillCatalogServiceAPIController(s SkillCatalogServiceAPIServicer, opts ...SkillCatalogServiceAPIOption) *SkillCatalogServiceAPIController
NewSkillCatalogServiceAPIController creates a default api controller
func (*SkillCatalogServiceAPIController) FindSkills ¶
func (c *SkillCatalogServiceAPIController) FindSkills(w http.ResponseWriter, r *http.Request)
FindSkills - List skills.
func (*SkillCatalogServiceAPIController) FindSkillsFilterOptions ¶
func (c *SkillCatalogServiceAPIController) FindSkillsFilterOptions(w http.ResponseWriter, r *http.Request)
FindSkillsFilterOptions - Lists fields and values that can be used in `filterQuery` on the list skills endpoint.
func (*SkillCatalogServiceAPIController) GetSkill ¶
func (c *SkillCatalogServiceAPIController) GetSkill(w http.ResponseWriter, r *http.Request)
GetSkill - Get a skill by ID.
func (*SkillCatalogServiceAPIController) OrderedRoutes ¶
func (c *SkillCatalogServiceAPIController) OrderedRoutes() []Route
OrderedRoutes returns all the api routes in a deterministic order for the SkillCatalogServiceAPIController
func (*SkillCatalogServiceAPIController) Routes ¶
func (c *SkillCatalogServiceAPIController) Routes() Routes
Routes returns all the api routes for the SkillCatalogServiceAPIController
type SkillCatalogServiceAPIOption ¶
type SkillCatalogServiceAPIOption func(*SkillCatalogServiceAPIController)
SkillCatalogServiceAPIOption for how the controller is set up.
func WithSkillCatalogServiceAPIErrorHandler ¶
func WithSkillCatalogServiceAPIErrorHandler(h ErrorHandler) SkillCatalogServiceAPIOption
WithSkillCatalogServiceAPIErrorHandler inject ErrorHandler into controller
type SkillCatalogServiceAPIRouter ¶
type SkillCatalogServiceAPIRouter interface {
FindSkills(http.ResponseWriter, *http.Request)
FindSkillsFilterOptions(http.ResponseWriter, *http.Request)
GetSkill(http.ResponseWriter, *http.Request)
}
SkillCatalogServiceAPIRouter defines the required methods for binding the api requests to a responses for the SkillCatalogServiceAPI The SkillCatalogServiceAPIRouter implementation should parse necessary information from the http request, pass the data to a SkillCatalogServiceAPIServicer to perform the required actions, then write the service results to the http response.
type SkillCatalogServiceAPIService ¶
type SkillCatalogServiceAPIService struct {
// contains filtered or unexported fields
}
SkillCatalogServiceAPIService implements SkillCatalogServiceAPIServicer by delegating to the skill catalog DB provider.
func (*SkillCatalogServiceAPIService) FindSkills ¶
func (s *SkillCatalogServiceAPIService) FindSkills(ctx context.Context, name string, q string, source []string, sourceLabel []string, filterQuery string, pageSize string, orderBy model.OrderByField, sortOrder model.SortOrder, nextPageToken string) (ImplResponse, error)
FindSkills lists skills.
func (*SkillCatalogServiceAPIService) FindSkillsFilterOptions ¶
func (s *SkillCatalogServiceAPIService) FindSkillsFilterOptions(ctx context.Context) (ImplResponse, error)
FindSkillsFilterOptions lists the fields and values usable in filterQuery.
func (*SkillCatalogServiceAPIService) GetSkill ¶
func (s *SkillCatalogServiceAPIService) GetSkill(ctx context.Context, id string) (ImplResponse, error)
GetSkill gets a skill by ID.
type SkillCatalogServiceAPIServicer ¶
type SkillCatalogServiceAPIServicer interface {
FindSkills(context.Context, string, string, []string, []string, string, string, model.OrderByField, model.SortOrder, string) (ImplResponse, error)
FindSkillsFilterOptions(context.Context) (ImplResponse, error)
GetSkill(context.Context, string) (ImplResponse, error)
}
SkillCatalogServiceAPIServicer defines the api actions for the SkillCatalogServiceAPI service This interface intended to stay up to date with the openapi yaml used to generate it, while the service implementation can be ignored with the .openapi-generator-ignore file and updated with the logic required for the API.
func NewSkillCatalogServiceAPIService ¶
func NewSkillCatalogServiceAPIService(provider *skillcatalog.DBSkillCatalog, sources *skillcatalog.SkillSourceCollection) SkillCatalogServiceAPIServicer
NewSkillCatalogServiceAPIService creates a skill catalog API service.
type SkillSourcePreviewer ¶
type SkillSourcePreviewer interface {
PreviewSkillSource(ctx context.Context, configBytes []byte) ([]model.AssetPreviewResult, error)
}
SkillSourcePreviewer previews a git-skills-plugin source by resolving its repositories. It is implemented by the skill plugin and injected via WithSkillPreviewer, so the shared sources/preview endpoint can dispatch assetType: skills without this package depending on the skill catalog package.
Source Files
¶
- api_agent.go
- api_agent_catalog_service.go
- api_agent_catalog_service_service.go
- api_mcp.go
- api_mcp_catalog_service.go
- api_mcp_catalog_service_service.go
- api_model.go
- api_model_catalog_service.go
- api_model_catalog_service_service.go
- api_skill.go
- api_skill_catalog_service.go
- api_skill_catalog_service_service.go
- error.go
- helpers.go
- impl.go
- logger.go
- order_by.go
- pagination.go
- routers.go
- type_asserts.go
- type_asserts_overrides.go