Help us shape the future of Go! Take the 2026 Go Developer Survey

v1

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

func AssertAgentConstraints(obj model.Agent) error

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

func AssertAgentListConstraints(obj model.AgentList) error

AssertAgentListConstraints checks if the values respects the defined constraints

func AssertAgentListRequired

func AssertAgentListRequired(obj model.AgentList) error

AssertAgentListRequired checks if the required fields are not zero-ed

func AssertAgentRequired

func AssertAgentRequired(obj model.Agent) error

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

func AssertBaseModelConstraints(obj model.BaseModel) error

AssertBaseModelConstraints checks if the values respects the defined constraints

func AssertBaseModelRequired

func AssertBaseModelRequired(obj model.BaseModel) error

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

func AssertErrorConstraints(obj model.Error) error

AssertErrorConstraints checks if the values respects the defined constraints

func AssertErrorRequired

func AssertErrorRequired(obj model.Error) error

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

func AssertMCPServerConstraints(obj model.MCPServer) error

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

func AssertMCPServerRequired(obj model.MCPServer) error

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

func AssertMCPToolConstraints(obj model.MCPTool) error

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

func AssertMCPToolRequired(obj model.MCPTool) error

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

func AssertRecurseInterfaceRequired[T any](obj interface{}, callback func(T) error) error

AssertRecurseInterfaceRequired recursively checks each struct in a slice against the callback. This method traverse nested slices in a preorder fashion.

func AssertRecurseValueRequired

func AssertRecurseValueRequired[T any](value reflect.Value, callback func(T) error) error

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

func AssertSkillConstraints(obj model.Skill) error

AssertSkillConstraints checks if the values respects the defined constraints

func AssertSkillListConstraints

func AssertSkillListConstraints(obj model.SkillList) error

AssertSkillListConstraints checks if the values respects the defined constraints

func AssertSkillListRequired

func AssertSkillListRequired(obj model.SkillList) error

AssertSkillListRequired checks if the required fields are not zero-ed

func AssertSkillRequired

func AssertSkillRequired(obj model.Skill) error

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

func AssertSortOrderConstraints(obj model.SortOrder) error

AssertSortOrderConstraints checks if the values respects the defined constraints

func AssertSortOrderRequired

func AssertSortOrderRequired(obj model.SortOrder) error

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 Logger

func Logger(inner http.Handler) http.Handler

func NewRouter

func NewRouter(routers ...Router) chi.Router

NewRouter creates a new router for any number of api routers

func ReadFormFileToTempFile

func ReadFormFileToTempFile(r *http.Request, key string) (*os.File, error)

ReadFormFileToTempFile reads file data from a request form and writes it to a temporary file

func ReadFormFilesToTempFiles

func ReadFormFilesToTempFiles(r *http.Request, key string) ([]*os.File, error)

ReadFormFilesToTempFiles reads files array data from a request form and writes it to a temporary files

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

NewAgentCatalogServiceAPIController creates a default api controller

func (*AgentCatalogServiceAPIController) FindAgents

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

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

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 (s *AgentCatalogServiceAPIService) FindAgents(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)

func (*AgentCatalogServiceAPIService) FindAgentsFilterOptions

func (s *AgentCatalogServiceAPIService) FindAgentsFilterOptions(ctx context.Context) (ImplResponse, error)

func (*AgentCatalogServiceAPIService) GetAgent

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

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.

type Constraint

type Constraint[T Number | string | bool] func(actual T) error

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

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

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

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

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

FindLabels - List All CatalogLabels

func (*ModelCatalogServiceAPIController) FindModels

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

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

GetModel - Get a `CatalogModel`.

func (*ModelCatalogServiceAPIController) GetSourceStatus added in v0.3.17

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

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

func (m *ModelCatalogServiceAPIService) PreviewCatalogSource(ctx context.Context, configParam *os.File, pageSizeParam string, nextPageTokenParam string, filterStatusParam string, catalogDataParam *os.File) (ImplResponse, error)

type ModelCatalogServiceAPIServicer

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

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

WithSkillSources wires the skill source collection into FindSources so that sources with assetType: skills appear alongside model/MCP/agent sources.

type Number

type Number interface {
	~int32 | ~int64 | ~float32 | ~float64
}

type Operation

type Operation[T Number | string | bool] func(actual string) (T, bool, error)

func WithDefaultOrParse

func WithDefaultOrParse[T Number | string | bool](def T, parse ParseString[T]) Operation[T]

func WithParse

func WithParse[T Number | string | bool](parse ParseString[T]) Operation[T]

func WithRequire

func WithRequire[T Number | string | bool](parse ParseString[T]) Operation[T]

type ParseString

type ParseString[T Number | string | bool] func(v string) (T, error)

type ParsingError

type ParsingError struct {
	Param string
	Err   error
}

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 Router

type Router interface {
	Routes() Routes
	OrderedRoutes() []Route
}

Router defines the required methods for retrieving api routes

type Routes

type Routes map[string]Route

Routes is a map of defined api endpoints

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

NewSkillCatalogServiceAPIController creates a default api controller

func (*SkillCatalogServiceAPIController) FindSkills

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

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

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

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.

Jump to

Keyboard shortcuts

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