azdext

package
v0.0.0-...-68c4d05 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 47 Imported by: 8

Documentation

Index

Constants

View Source
const (
	AccountService_ListSubscriptions_FullMethodName = "/azdext.AccountService/ListSubscriptions"
	AccountService_LookupTenant_FullMethodName      = "/azdext.AccountService/LookupTenant"
)
View Source
const (
	AiErrorReasonMissingSubscription  = "AI_MISSING_SUBSCRIPTION"
	AiErrorReasonLocationRequired     = "AI_LOCATION_REQUIRED"
	AiErrorReasonQuotaLocation        = "AI_QUOTA_LOCATION_REQUIRED"
	AiErrorReasonModelNotFound        = "AI_MODEL_NOT_FOUND"
	AiErrorReasonNoModelsMatch        = "AI_NO_MODELS_MATCH"
	AiErrorReasonNoDeploymentMatch    = "AI_NO_DEPLOYMENT_MATCH"
	AiErrorReasonNoValidSkus          = "AI_NO_VALID_SKUS"
	AiErrorReasonNoLocationsWithQuota = "AI_NO_LOCATIONS_WITH_QUOTA"
	AiErrorReasonInvalidCapacity      = "AI_INVALID_CAPACITY"
	AiErrorReasonInteractiveRequired  = "AI_INTERACTIVE_REQUIRED"
)

AI error reason codes used in gRPC ErrorInfo.Reason.

View Source
const (
	AiModelService_ListModels_FullMethodName                  = "/azdext.AiModelService/ListModels"
	AiModelService_ResolveModelDeployments_FullMethodName     = "/azdext.AiModelService/ResolveModelDeployments"
	AiModelService_ListUsages_FullMethodName                  = "/azdext.AiModelService/ListUsages"
	AiModelService_ListLocationsWithQuota_FullMethodName      = "/azdext.AiModelService/ListLocationsWithQuota"
	AiModelService_ListModelLocationsWithQuota_FullMethodName = "/azdext.AiModelService/ListModelLocationsWithQuota"
)
View Source
const (
	ComposeService_ListResources_FullMethodName     = "/azdext.ComposeService/ListResources"
	ComposeService_GetResource_FullMethodName       = "/azdext.ComposeService/GetResource"
	ComposeService_ListResourceTypes_FullMethodName = "/azdext.ComposeService/ListResourceTypes"
	ComposeService_GetResourceType_FullMethodName   = "/azdext.ComposeService/GetResourceType"
	ComposeService_AddResource_FullMethodName       = "/azdext.ComposeService/AddResource"
)
View Source
const (
	ContainerService_Build_FullMethodName   = "/azdext.ContainerService/Build"
	ContainerService_Package_FullMethodName = "/azdext.ContainerService/Package"
	ContainerService_Publish_FullMethodName = "/azdext.ContainerService/Publish"
)
View Source
const (
	TraceparentKey = "traceparent"
	TracestateKey  = "tracestate"

	TraceparentEnv = "TRACEPARENT"
	TracestateEnv  = "TRACESTATE"
)
View Source
const (
	CopilotService_Initialize_FullMethodName      = "/azdext.CopilotService/Initialize"
	CopilotService_ListSessions_FullMethodName    = "/azdext.CopilotService/ListSessions"
	CopilotService_SendMessage_FullMethodName     = "/azdext.CopilotService/SendMessage"
	CopilotService_GetUsageMetrics_FullMethodName = "/azdext.CopilotService/GetUsageMetrics"
	CopilotService_GetFileChanges_FullMethodName  = "/azdext.CopilotService/GetFileChanges"
	CopilotService_StopSession_FullMethodName     = "/azdext.CopilotService/StopSession"
	CopilotService_GetMessages_FullMethodName     = "/azdext.CopilotService/GetMessages"
)
View Source
const (
	DeploymentService_GetDeployment_FullMethodName        = "/azdext.DeploymentService/GetDeployment"
	DeploymentService_GetDeploymentContext_FullMethodName = "/azdext.DeploymentService/GetDeploymentContext"
)
View Source
const (
	EnvironmentService_GetCurrent_FullMethodName       = "/azdext.EnvironmentService/GetCurrent"
	EnvironmentService_List_FullMethodName             = "/azdext.EnvironmentService/List"
	EnvironmentService_Get_FullMethodName              = "/azdext.EnvironmentService/Get"
	EnvironmentService_Select_FullMethodName           = "/azdext.EnvironmentService/Select"
	EnvironmentService_GetValues_FullMethodName        = "/azdext.EnvironmentService/GetValues"
	EnvironmentService_GetValue_FullMethodName         = "/azdext.EnvironmentService/GetValue"
	EnvironmentService_SetValue_FullMethodName         = "/azdext.EnvironmentService/SetValue"
	EnvironmentService_GetConfig_FullMethodName        = "/azdext.EnvironmentService/GetConfig"
	EnvironmentService_GetConfigString_FullMethodName  = "/azdext.EnvironmentService/GetConfigString"
	EnvironmentService_GetConfigSection_FullMethodName = "/azdext.EnvironmentService/GetConfigSection"
	EnvironmentService_SetConfig_FullMethodName        = "/azdext.EnvironmentService/SetConfig"
	EnvironmentService_UnsetConfig_FullMethodName      = "/azdext.EnvironmentService/UnsetConfig"
)
View Source
const (
	ExtensionService_Ready_FullMethodName       = "/azdext.ExtensionService/Ready"
	ExtensionService_ReportError_FullMethodName = "/azdext.ExtensionService/ReportError"
)
View Source
const (
	ProjectService_Get_FullMethodName                      = "/azdext.ProjectService/Get"
	ProjectService_GetServiceTargetResource_FullMethodName = "/azdext.ProjectService/GetServiceTargetResource"
	ProjectService_AddService_FullMethodName               = "/azdext.ProjectService/AddService"
	ProjectService_GetResolvedServices_FullMethodName      = "/azdext.ProjectService/GetResolvedServices"
	ProjectService_ParseGitHubUrl_FullMethodName           = "/azdext.ProjectService/ParseGitHubUrl"
	ProjectService_GetConfigSection_FullMethodName         = "/azdext.ProjectService/GetConfigSection"
	ProjectService_GetConfigValue_FullMethodName           = "/azdext.ProjectService/GetConfigValue"
	ProjectService_SetConfigSection_FullMethodName         = "/azdext.ProjectService/SetConfigSection"
	ProjectService_SetConfigValue_FullMethodName           = "/azdext.ProjectService/SetConfigValue"
	ProjectService_UnsetConfig_FullMethodName              = "/azdext.ProjectService/UnsetConfig"
	ProjectService_GetServiceConfigSection_FullMethodName  = "/azdext.ProjectService/GetServiceConfigSection"
	ProjectService_GetServiceConfigValue_FullMethodName    = "/azdext.ProjectService/GetServiceConfigValue"
	ProjectService_SetServiceConfigSection_FullMethodName  = "/azdext.ProjectService/SetServiceConfigSection"
	ProjectService_SetServiceConfigValue_FullMethodName    = "/azdext.ProjectService/SetServiceConfigValue"
	ProjectService_UnsetServiceConfig_FullMethodName       = "/azdext.ProjectService/UnsetServiceConfig"
)
View Source
const (
	PromptService_PromptSubscription_FullMethodName             = "/azdext.PromptService/PromptSubscription"
	PromptService_PromptLocation_FullMethodName                 = "/azdext.PromptService/PromptLocation"
	PromptService_PromptResourceGroup_FullMethodName            = "/azdext.PromptService/PromptResourceGroup"
	PromptService_Confirm_FullMethodName                        = "/azdext.PromptService/Confirm"
	PromptService_Prompt_FullMethodName                         = "/azdext.PromptService/Prompt"
	PromptService_Select_FullMethodName                         = "/azdext.PromptService/Select"
	PromptService_MultiSelect_FullMethodName                    = "/azdext.PromptService/MultiSelect"
	PromptService_PromptSubscriptionResource_FullMethodName     = "/azdext.PromptService/PromptSubscriptionResource"
	PromptService_PromptResourceGroupResource_FullMethodName    = "/azdext.PromptService/PromptResourceGroupResource"
	PromptService_PromptAiModel_FullMethodName                  = "/azdext.PromptService/PromptAiModel"
	PromptService_PromptAiDeployment_FullMethodName             = "/azdext.PromptService/PromptAiDeployment"
	PromptService_PromptAiLocationWithQuota_FullMethodName      = "/azdext.PromptService/PromptAiLocationWithQuota"
	PromptService_PromptAiModelLocationWithQuota_FullMethodName = "/azdext.PromptService/PromptAiModelLocationWithQuota"
)
View Source
const (
	UserConfigService_Get_FullMethodName        = "/azdext.UserConfigService/Get"
	UserConfigService_GetString_FullMethodName  = "/azdext.UserConfigService/GetString"
	UserConfigService_GetSection_FullMethodName = "/azdext.UserConfigService/GetSection"
	UserConfigService_Set_FullMethodName        = "/azdext.UserConfigService/Set"
	UserConfigService_Unset_FullMethodName      = "/azdext.UserConfigService/Unset"
)
View Source
const (
	AiErrorDomain = "azd.ai"
)

AI error metadata constants used in gRPC ErrorInfo for AI model/prompt APIs.

View Source
const (
	EventService_EventStream_FullMethodName = "/azdext.EventService/EventStream"
)
View Source
const (
	FrameworkService_Stream_FullMethodName = "/azdext.FrameworkService/Stream"
)
View Source
const (
	ServiceTargetService_Stream_FullMethodName = "/azdext.ServiceTargetService/Stream"
)
View Source
const Version = "0.1.0"

Version is the semantic version of the azdext SDK package. Update this when releasing new versions of the extension SDK.

View Source
const (
	WorkflowService_Run_FullMethodName = "/azdext.WorkflowService/Run"
)

Variables

View Source
var (
	CopilotFileChangeType_name = map[int32]string{
		0: "COPILOT_FILE_CHANGE_TYPE_UNSPECIFIED",
		1: "COPILOT_FILE_CHANGE_TYPE_CREATED",
		2: "COPILOT_FILE_CHANGE_TYPE_MODIFIED",
		3: "COPILOT_FILE_CHANGE_TYPE_DELETED",
	}
	CopilotFileChangeType_value = map[string]int32{
		"COPILOT_FILE_CHANGE_TYPE_UNSPECIFIED": 0,
		"COPILOT_FILE_CHANGE_TYPE_CREATED":     1,
		"COPILOT_FILE_CHANGE_TYPE_MODIFIED":    2,
		"COPILOT_FILE_CHANGE_TYPE_DELETED":     3,
	}
)

Enum value maps for CopilotFileChangeType.

View Source
var (
	ErrorOrigin_name = map[int32]string{
		0: "ERROR_ORIGIN_UNSPECIFIED",
		1: "ERROR_ORIGIN_LOCAL",
		2: "ERROR_ORIGIN_SERVICE",
		3: "ERROR_ORIGIN_TOOL",
	}
	ErrorOrigin_value = map[string]int32{
		"ERROR_ORIGIN_UNSPECIFIED": 0,
		"ERROR_ORIGIN_LOCAL":       1,
		"ERROR_ORIGIN_SERVICE":     2,
		"ERROR_ORIGIN_TOOL":        3,
	}
)

Enum value maps for ErrorOrigin.

View Source
var (
	ArtifactKind_name = map[int32]string{
		0: "ARTIFACT_KIND_UNSPECIFIED",
		1: "ARTIFACT_KIND_DIRECTORY",
		2: "ARTIFACT_KIND_CONFIG",
		3: "ARTIFACT_KIND_ARCHIVE",
		4: "ARTIFACT_KIND_CONTAINER",
		5: "ARTIFACT_KIND_ENDPOINT",
		6: "ARTIFACT_KIND_DEPLOYMENT",
		7: "ARTIFACT_KIND_RESOURCE",
	}
	ArtifactKind_value = map[string]int32{
		"ARTIFACT_KIND_UNSPECIFIED": 0,
		"ARTIFACT_KIND_DIRECTORY":   1,
		"ARTIFACT_KIND_CONFIG":      2,
		"ARTIFACT_KIND_ARCHIVE":     3,
		"ARTIFACT_KIND_CONTAINER":   4,
		"ARTIFACT_KIND_ENDPOINT":    5,
		"ARTIFACT_KIND_DEPLOYMENT":  6,
		"ARTIFACT_KIND_RESOURCE":    7,
	}
)

Enum value maps for ArtifactKind.

View Source
var (
	LocationKind_name = map[int32]string{
		0: "LOCATION_KIND_UNSPECIFIED",
		1: "LOCATION_KIND_LOCAL",
		2: "LOCATION_KIND_REMOTE",
	}
	LocationKind_value = map[string]int32{
		"LOCATION_KIND_UNSPECIFIED": 0,
		"LOCATION_KIND_LOCAL":       1,
		"LOCATION_KIND_REMOTE":      2,
	}
)

Enum value maps for LocationKind.

View Source
var AccountService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.AccountService",
	HandlerType: (*AccountServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListSubscriptions",
			Handler:    _AccountService_ListSubscriptions_Handler,
		},
		{
			MethodName: "LookupTenant",
			Handler:    _AccountService_LookupTenant_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "account.proto",
}

AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var AiModelService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.AiModelService",
	HandlerType: (*AiModelServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListModels",
			Handler:    _AiModelService_ListModels_Handler,
		},
		{
			MethodName: "ResolveModelDeployments",
			Handler:    _AiModelService_ResolveModelDeployments_Handler,
		},
		{
			MethodName: "ListUsages",
			Handler:    _AiModelService_ListUsages_Handler,
		},
		{
			MethodName: "ListLocationsWithQuota",
			Handler:    _AiModelService_ListLocationsWithQuota_Handler,
		},
		{
			MethodName: "ListModelLocationsWithQuota",
			Handler:    _AiModelService_ListModelLocationsWithQuota_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ai_model.proto",
}

AiModelService_ServiceDesc is the grpc.ServiceDesc for AiModelService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ComposeService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.ComposeService",
	HandlerType: (*ComposeServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListResources",
			Handler:    _ComposeService_ListResources_Handler,
		},
		{
			MethodName: "GetResource",
			Handler:    _ComposeService_GetResource_Handler,
		},
		{
			MethodName: "ListResourceTypes",
			Handler:    _ComposeService_ListResourceTypes_Handler,
		},
		{
			MethodName: "GetResourceType",
			Handler:    _ComposeService_GetResourceType_Handler,
		},
		{
			MethodName: "AddResource",
			Handler:    _ComposeService_AddResource_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "compose.proto",
}

ComposeService_ServiceDesc is the grpc.ServiceDesc for ComposeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ContainerService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.ContainerService",
	HandlerType: (*ContainerServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Build",
			Handler:    _ContainerService_Build_Handler,
		},
		{
			MethodName: "Package",
			Handler:    _ContainerService_Package_Handler,
		},
		{
			MethodName: "Publish",
			Handler:    _ContainerService_Publish_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "container.proto",
}

ContainerService_ServiceDesc is the grpc.ServiceDesc for ContainerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var CopilotService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.CopilotService",
	HandlerType: (*CopilotServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Initialize",
			Handler:    _CopilotService_Initialize_Handler,
		},
		{
			MethodName: "ListSessions",
			Handler:    _CopilotService_ListSessions_Handler,
		},
		{
			MethodName: "SendMessage",
			Handler:    _CopilotService_SendMessage_Handler,
		},
		{
			MethodName: "GetUsageMetrics",
			Handler:    _CopilotService_GetUsageMetrics_Handler,
		},
		{
			MethodName: "GetFileChanges",
			Handler:    _CopilotService_GetFileChanges_Handler,
		},
		{
			MethodName: "StopSession",
			Handler:    _CopilotService_StopSession_Handler,
		},
		{
			MethodName: "GetMessages",
			Handler:    _CopilotService_GetMessages_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "copilot.proto",
}

CopilotService_ServiceDesc is the grpc.ServiceDesc for CopilotService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var DeploymentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.DeploymentService",
	HandlerType: (*DeploymentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDeployment",
			Handler:    _DeploymentService_GetDeployment_Handler,
		},
		{
			MethodName: "GetDeploymentContext",
			Handler:    _DeploymentService_GetDeploymentContext_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "deployment.proto",
}

DeploymentService_ServiceDesc is the grpc.ServiceDesc for DeploymentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var EnvironmentService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.EnvironmentService",
	HandlerType: (*EnvironmentServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetCurrent",
			Handler:    _EnvironmentService_GetCurrent_Handler,
		},
		{
			MethodName: "List",
			Handler:    _EnvironmentService_List_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _EnvironmentService_Get_Handler,
		},
		{
			MethodName: "Select",
			Handler:    _EnvironmentService_Select_Handler,
		},
		{
			MethodName: "GetValues",
			Handler:    _EnvironmentService_GetValues_Handler,
		},
		{
			MethodName: "GetValue",
			Handler:    _EnvironmentService_GetValue_Handler,
		},
		{
			MethodName: "SetValue",
			Handler:    _EnvironmentService_SetValue_Handler,
		},
		{
			MethodName: "GetConfig",
			Handler:    _EnvironmentService_GetConfig_Handler,
		},
		{
			MethodName: "GetConfigString",
			Handler:    _EnvironmentService_GetConfigString_Handler,
		},
		{
			MethodName: "GetConfigSection",
			Handler:    _EnvironmentService_GetConfigSection_Handler,
		},
		{
			MethodName: "SetConfig",
			Handler:    _EnvironmentService_SetConfig_Handler,
		},
		{
			MethodName: "UnsetConfig",
			Handler:    _EnvironmentService_UnsetConfig_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "environment.proto",
}

EnvironmentService_ServiceDesc is the grpc.ServiceDesc for EnvironmentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ErrDebuggerAborted = errors.New("debugger attach aborted")

ErrDebuggerAborted is returned when the user declines to attach a debugger.

View Source
var EventService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.EventService",
	HandlerType: (*EventServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "EventStream",
			Handler:       _EventService_EventStream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "event.proto",
}

EventService_ServiceDesc is the grpc.ServiceDesc for EventService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ExtensionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.ExtensionService",
	HandlerType: (*ExtensionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ready",
			Handler:    _ExtensionService_Ready_Handler,
		},
		{
			MethodName: "ReportError",
			Handler:    _ExtensionService_ReportError_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "extension.proto",
}

ExtensionService_ServiceDesc is the grpc.ServiceDesc for ExtensionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_account_proto protoreflect.FileDescriptor
View Source
var File_ai_model_proto protoreflect.FileDescriptor
View Source
var File_compose_proto protoreflect.FileDescriptor
View Source
var File_container_proto protoreflect.FileDescriptor
View Source
var File_copilot_proto protoreflect.FileDescriptor
View Source
var File_deployment_proto protoreflect.FileDescriptor
View Source
var File_environment_proto protoreflect.FileDescriptor
View Source
var File_errors_proto protoreflect.FileDescriptor
View Source
var File_event_proto protoreflect.FileDescriptor
View Source
var File_extension_proto protoreflect.FileDescriptor
View Source
var File_framework_service_proto protoreflect.FileDescriptor
View Source
var File_models_proto protoreflect.FileDescriptor
View Source
var File_project_proto protoreflect.FileDescriptor
View Source
var File_prompt_proto protoreflect.FileDescriptor
View Source
var File_service_target_proto protoreflect.FileDescriptor
View Source
var File_user_config_proto protoreflect.FileDescriptor
View Source
var File_workflow_proto protoreflect.FileDescriptor
View Source
var (
	FrameworkServiceFactoryKey = func(config *ServiceConfig) string {
		return string(config.Language)
	}
)
View Source
var FrameworkService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.FrameworkService",
	HandlerType: (*FrameworkServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Stream",
			Handler:       _FrameworkService_Stream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "framework_service.proto",
}

FrameworkService_ServiceDesc is the grpc.ServiceDesc for FrameworkService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ProjectService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.ProjectService",
	HandlerType: (*ProjectServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _ProjectService_Get_Handler,
		},
		{
			MethodName: "GetServiceTargetResource",
			Handler:    _ProjectService_GetServiceTargetResource_Handler,
		},
		{
			MethodName: "AddService",
			Handler:    _ProjectService_AddService_Handler,
		},
		{
			MethodName: "GetResolvedServices",
			Handler:    _ProjectService_GetResolvedServices_Handler,
		},
		{
			MethodName: "ParseGitHubUrl",
			Handler:    _ProjectService_ParseGitHubUrl_Handler,
		},
		{
			MethodName: "GetConfigSection",
			Handler:    _ProjectService_GetConfigSection_Handler,
		},
		{
			MethodName: "GetConfigValue",
			Handler:    _ProjectService_GetConfigValue_Handler,
		},
		{
			MethodName: "SetConfigSection",
			Handler:    _ProjectService_SetConfigSection_Handler,
		},
		{
			MethodName: "SetConfigValue",
			Handler:    _ProjectService_SetConfigValue_Handler,
		},
		{
			MethodName: "UnsetConfig",
			Handler:    _ProjectService_UnsetConfig_Handler,
		},
		{
			MethodName: "GetServiceConfigSection",
			Handler:    _ProjectService_GetServiceConfigSection_Handler,
		},
		{
			MethodName: "GetServiceConfigValue",
			Handler:    _ProjectService_GetServiceConfigValue_Handler,
		},
		{
			MethodName: "SetServiceConfigSection",
			Handler:    _ProjectService_SetServiceConfigSection_Handler,
		},
		{
			MethodName: "SetServiceConfigValue",
			Handler:    _ProjectService_SetServiceConfigValue_Handler,
		},
		{
			MethodName: "UnsetServiceConfig",
			Handler:    _ProjectService_UnsetServiceConfig_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "project.proto",
}

ProjectService_ServiceDesc is the grpc.ServiceDesc for ProjectService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var PromptService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.PromptService",
	HandlerType: (*PromptServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "PromptSubscription",
			Handler:    _PromptService_PromptSubscription_Handler,
		},
		{
			MethodName: "PromptLocation",
			Handler:    _PromptService_PromptLocation_Handler,
		},
		{
			MethodName: "PromptResourceGroup",
			Handler:    _PromptService_PromptResourceGroup_Handler,
		},
		{
			MethodName: "Confirm",
			Handler:    _PromptService_Confirm_Handler,
		},
		{
			MethodName: "Prompt",
			Handler:    _PromptService_Prompt_Handler,
		},
		{
			MethodName: "Select",
			Handler:    _PromptService_Select_Handler,
		},
		{
			MethodName: "MultiSelect",
			Handler:    _PromptService_MultiSelect_Handler,
		},
		{
			MethodName: "PromptSubscriptionResource",
			Handler:    _PromptService_PromptSubscriptionResource_Handler,
		},
		{
			MethodName: "PromptResourceGroupResource",
			Handler:    _PromptService_PromptResourceGroupResource_Handler,
		},
		{
			MethodName: "PromptAiModel",
			Handler:    _PromptService_PromptAiModel_Handler,
		},
		{
			MethodName: "PromptAiDeployment",
			Handler:    _PromptService_PromptAiDeployment_Handler,
		},
		{
			MethodName: "PromptAiLocationWithQuota",
			Handler:    _PromptService_PromptAiLocationWithQuota_Handler,
		},
		{
			MethodName: "PromptAiModelLocationWithQuota",
			Handler:    _PromptService_PromptAiModelLocationWithQuota_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "prompt.proto",
}

PromptService_ServiceDesc is the grpc.ServiceDesc for PromptService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var (
	ServiceTargetFactoryKey = func(config *ServiceConfig) string {
		return string(config.Host)
	}
)
View Source
var ServiceTargetService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.ServiceTargetService",
	HandlerType: (*ServiceTargetServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Stream",
			Handler:       _ServiceTargetService_Stream_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "service_target.proto",
}

ServiceTargetService_ServiceDesc is the grpc.ServiceDesc for ServiceTargetService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var UserConfigService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.UserConfigService",
	HandlerType: (*UserConfigServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _UserConfigService_Get_Handler,
		},
		{
			MethodName: "GetString",
			Handler:    _UserConfigService_GetString_Handler,
		},
		{
			MethodName: "GetSection",
			Handler:    _UserConfigService_GetSection_Handler,
		},
		{
			MethodName: "Set",
			Handler:    _UserConfigService_Set_Handler,
		},
		{
			MethodName: "Unset",
			Handler:    _UserConfigService_Unset_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user_config.proto",
}

UserConfigService_ServiceDesc is the grpc.ServiceDesc for UserConfigService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var WorkflowService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "azdext.WorkflowService",
	HandlerType: (*WorkflowServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Run",
			Handler:    _WorkflowService_Run_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "workflow.proto",
}

WorkflowService_ServiceDesc is the grpc.ServiceDesc for WorkflowService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func ErrorMessage

func ErrorMessage(err error) string

ErrorMessage extracts the user-friendly Message field from a LocalError or ServiceError. Returns an empty string if the error is not an extension error type.

func ErrorSuggestion

func ErrorSuggestion(err error) string

ErrorSuggestion extracts the Suggestion field from a LocalError or ServiceError. Returns an empty string if the error has no suggestion.

func GenerateExtensionMetadata

func GenerateExtensionMetadata(schemaVersion, id string, root *cobra.Command) *extensions.ExtensionCommandMetadata

GenerateExtensionMetadata generates ExtensionCommandMetadata from a Cobra root command This function is typically called by extensions to generate their metadata

func MCPErrorResult

func MCPErrorResult(format string, args ...any) *mcp.CallToolResult

MCPErrorResult creates an error CallToolResult with IsError set to true.

func MCPJSONResult

func MCPJSONResult(data any) *mcp.CallToolResult

MCPJSONResult marshals data to JSON and creates a text-content CallToolResult. Returns an error result if marshaling fails.

func MCPTextResult

func MCPTextResult(format string, args ...any) *mcp.CallToolResult

MCPTextResult creates a text-content CallToolResult.

func NewContext

func NewContext() context.Context

NewContext initializes a new context with tracing information extracted from environment variables.

func NewListenCommand

func NewListenCommand(configure func(host *ExtensionHost)) *cobra.Command

NewListenCommand creates the standard "listen" command for lifecycle event extensions. The configure function receives an ExtensionHost to register service targets, framework services, and event handlers before the host starts. If configure is nil, the host runs with no custom registrations.

func NewMetadataCommand

func NewMetadataCommand(schemaVersion, extensionId string, rootCmdProvider func() *cobra.Command) *cobra.Command

NewMetadataCommand creates the standard "metadata" command that outputs extension command metadata for IntelliSense/discovery. rootCmdProvider returns the root command to introspect.

func NewVersionCommand

func NewVersionCommand(extensionId, version string, outputFormat *string) *cobra.Command

NewVersionCommand creates the standard "version" command. outputFormat is a pointer to the output format string (for JSON support).

func RegisterAccountServiceServer

func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)

func RegisterAiModelServiceServer

func RegisterAiModelServiceServer(s grpc.ServiceRegistrar, srv AiModelServiceServer)

func RegisterComposeServiceServer

func RegisterComposeServiceServer(s grpc.ServiceRegistrar, srv ComposeServiceServer)

func RegisterContainerServiceServer

func RegisterContainerServiceServer(s grpc.ServiceRegistrar, srv ContainerServiceServer)

func RegisterCopilotServiceServer

func RegisterCopilotServiceServer(s grpc.ServiceRegistrar, srv CopilotServiceServer)

func RegisterDeploymentServiceServer

func RegisterDeploymentServiceServer(s grpc.ServiceRegistrar, srv DeploymentServiceServer)

func RegisterEnvironmentServiceServer

func RegisterEnvironmentServiceServer(s grpc.ServiceRegistrar, srv EnvironmentServiceServer)

func RegisterEventServiceServer

func RegisterEventServiceServer(s grpc.ServiceRegistrar, srv EventServiceServer)

func RegisterExtensionServiceServer

func RegisterExtensionServiceServer(s grpc.ServiceRegistrar, srv ExtensionServiceServer)

func RegisterFrameworkServiceServer

func RegisterFrameworkServiceServer(s grpc.ServiceRegistrar, srv FrameworkServiceServer)

func RegisterProjectServiceServer

func RegisterProjectServiceServer(s grpc.ServiceRegistrar, srv ProjectServiceServer)

func RegisterPromptServiceServer

func RegisterPromptServiceServer(s grpc.ServiceRegistrar, srv PromptServiceServer)

func RegisterServiceTargetServiceServer

func RegisterServiceTargetServiceServer(s grpc.ServiceRegistrar, srv ServiceTargetServiceServer)

func RegisterUserConfigServiceServer

func RegisterUserConfigServiceServer(s grpc.ServiceRegistrar, srv UserConfigServiceServer)

func RegisterWorkflowServiceServer

func RegisterWorkflowServiceServer(s grpc.ServiceRegistrar, srv WorkflowServiceServer)

func ReportError

func ReportError(ctx context.Context, err error) error

ReportError sends a structured extension error to the azd host via gRPC. It creates a temporary gRPC client using the AZD_SERVER environment variable. Returns nil if AZD_SERVER is not set (extension running outside azd).

func Run

func Run(rootCmd *cobra.Command, opts ...RunOption)

Run is the standard entry point for azd extensions. It handles all lifecycle boilerplate that every extension needs:

  • FORCE_COLOR environment variable → color.NoColor
  • cobra SilenceErrors (Run controls error output)
  • Context creation with tracing propagation
  • gRPC access token injection via WithAccessToken
  • Command execution
  • Structured error reporting via gRPC ReportError
  • Error + suggestion display
  • os.Exit on failure

A typical extension main.go becomes:

func main() {
    azdext.Run(cmd.NewRootCommand())
}

func SSRFSafeRedirect

func SSRFSafeRedirect(req *http.Request, via []*http.Request) error

SSRFSafeRedirect is an http.Client CheckRedirect function that blocks redirects to private/loopback IP literals, hostnames that resolve to private networks, and cloud metadata endpoints. It prevents redirect-based SSRF attacks where an attacker-controlled URL redirects to an internal service.

Usage:

client := &http.Client{CheckRedirect: azdext.SSRFSafeRedirect}

func UnwrapError

func UnwrapError(msg *ExtensionError) error

UnwrapError converts an ExtensionError proto back to a typed Go error. It is called from the azd host (via [ExtensionService.ReportError] handler and envelope GetError methods) to deserialize errors received from extensions for telemetry classification and error handling. It returns the appropriate error type based on the origin field.

func WaitForDebugger

func WaitForDebugger(ctx context.Context, azdClient *AzdClient) error

WaitForDebugger checks if AZD_EXT_DEBUG environment variable is set to a truthy value. If set, prompts the user to attach a debugger to the current process. This should be called at the start of extension command implementations to enable debugging.

Returns nil if debugging is not enabled or if user confirms.

Returns ErrDebuggerAborted if the user declines to attach a debugger. Returns context.Canceled if the user cancels the prompt (e.g., via Ctrl+C).

func WithAccessToken

func WithAccessToken(ctx context.Context, params ...string) context.Context

WithAccessToken sets the access token for the `azd` client into a new Go context.

Types

type AccountServiceClient

type AccountServiceClient interface {
	// ListSubscriptions lists all subscriptions accessible by the current account.
	ListSubscriptions(ctx context.Context, in *ListSubscriptionsRequest, opts ...grpc.CallOption) (*ListSubscriptionsResponse, error)
	// LookupTenant resolves the tenant ID required to access a specific subscription.
	LookupTenant(ctx context.Context, in *LookupTenantRequest, opts ...grpc.CallOption) (*LookupTenantResponse, error)
}

AccountServiceClient is the client API for AccountService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AccountServiceServer

type AccountServiceServer interface {
	// ListSubscriptions lists all subscriptions accessible by the current account.
	ListSubscriptions(context.Context, *ListSubscriptionsRequest) (*ListSubscriptionsResponse, error)
	// LookupTenant resolves the tenant ID required to access a specific subscription.
	LookupTenant(context.Context, *LookupTenantRequest) (*LookupTenantResponse, error)
	// contains filtered or unexported methods
}

AccountServiceServer is the server API for AccountService service. All implementations must embed UnimplementedAccountServiceServer for forward compatibility.

type AddResourceRequest

type AddResourceRequest struct {
	Resource *ComposedResource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

AddResourceRequest is a request to add a new composability resource.

func (*AddResourceRequest) Descriptor deprecated

func (*AddResourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddResourceRequest.ProtoReflect.Descriptor instead.

func (*AddResourceRequest) GetResource

func (x *AddResourceRequest) GetResource() *ComposedResource

func (*AddResourceRequest) ProtoMessage

func (*AddResourceRequest) ProtoMessage()

func (*AddResourceRequest) ProtoReflect

func (x *AddResourceRequest) ProtoReflect() protoreflect.Message

func (*AddResourceRequest) Reset

func (x *AddResourceRequest) Reset()

func (*AddResourceRequest) String

func (x *AddResourceRequest) String() string

type AddResourceResponse

type AddResourceResponse struct {
	Resource *ComposedResource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

AddResourceResponse is the response of AddResource operation.

func (*AddResourceResponse) Descriptor deprecated

func (*AddResourceResponse) Descriptor() ([]byte, []int)

Deprecated: Use AddResourceResponse.ProtoReflect.Descriptor instead.

func (*AddResourceResponse) GetResource

func (x *AddResourceResponse) GetResource() *ComposedResource

func (*AddResourceResponse) ProtoMessage

func (*AddResourceResponse) ProtoMessage()

func (*AddResourceResponse) ProtoReflect

func (x *AddResourceResponse) ProtoReflect() protoreflect.Message

func (*AddResourceResponse) Reset

func (x *AddResourceResponse) Reset()

func (*AddResourceResponse) String

func (x *AddResourceResponse) String() string

type AddServiceRequest

type AddServiceRequest struct {
	Service *ServiceConfig `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
	// contains filtered or unexported fields
}

AddServiceRequest message definition

func (*AddServiceRequest) Descriptor deprecated

func (*AddServiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddServiceRequest.ProtoReflect.Descriptor instead.

func (*AddServiceRequest) GetService

func (x *AddServiceRequest) GetService() *ServiceConfig

func (*AddServiceRequest) ProtoMessage

func (*AddServiceRequest) ProtoMessage()

func (*AddServiceRequest) ProtoReflect

func (x *AddServiceRequest) ProtoReflect() protoreflect.Message

func (*AddServiceRequest) Reset

func (x *AddServiceRequest) Reset()

func (*AddServiceRequest) String

func (x *AddServiceRequest) String() string

type AiModel

type AiModel struct {
	Name            string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                                              // e.g. "gpt-4o"
	Format          string            `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`                                          // e.g. "OpenAI"
	LifecycleStatus string            `protobuf:"bytes,3,opt,name=lifecycle_status,json=lifecycleStatus,proto3" json:"lifecycle_status,omitempty"` // e.g. "preview", "stable"
	Capabilities    []string          `protobuf:"bytes,4,rep,name=capabilities,proto3" json:"capabilities,omitempty"`                              // e.g. ["chat", "embeddings"]
	Versions        []*AiModelVersion `protobuf:"bytes,5,rep,name=versions,proto3" json:"versions,omitempty"`
	Locations       []string          `protobuf:"bytes,6,rep,name=locations,proto3" json:"locations,omitempty"` // canonical locations where available
	// contains filtered or unexported fields
}

func (*AiModel) Descriptor deprecated

func (*AiModel) Descriptor() ([]byte, []int)

Deprecated: Use AiModel.ProtoReflect.Descriptor instead.

func (*AiModel) GetCapabilities

func (x *AiModel) GetCapabilities() []string

func (*AiModel) GetFormat

func (x *AiModel) GetFormat() string

func (*AiModel) GetLifecycleStatus

func (x *AiModel) GetLifecycleStatus() string

func (*AiModel) GetLocations

func (x *AiModel) GetLocations() []string

func (*AiModel) GetName

func (x *AiModel) GetName() string

func (*AiModel) GetVersions

func (x *AiModel) GetVersions() []*AiModelVersion

func (*AiModel) ProtoMessage

func (*AiModel) ProtoMessage()

func (*AiModel) ProtoReflect

func (x *AiModel) ProtoReflect() protoreflect.Message

func (*AiModel) Reset

func (x *AiModel) Reset()

func (*AiModel) String

func (x *AiModel) String() string

type AiModelDeployment

type AiModelDeployment struct {
	ModelName      string      `protobuf:"bytes,1,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
	Format         string      `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty"`
	Version        string      `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	Location       string      `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
	Sku            *AiModelSku `protobuf:"bytes,5,opt,name=sku,proto3" json:"sku,omitempty"`
	Capacity       int32       `protobuf:"varint,6,opt,name=capacity,proto3" json:"capacity,omitempty"`
	RemainingQuota *float64    `protobuf:"fixed64,7,opt,name=remaining_quota,json=remainingQuota,proto3,oneof" json:"remaining_quota,omitempty"` // populated when QuotaCheckOptions used
	// contains filtered or unexported fields
}

AiModelDeployment is a fully resolved deployment configuration. capacity = deployment-level units; remaining_quota = subscription-level remaining.

func (*AiModelDeployment) Descriptor deprecated

func (*AiModelDeployment) Descriptor() ([]byte, []int)

Deprecated: Use AiModelDeployment.ProtoReflect.Descriptor instead.

func (*AiModelDeployment) GetCapacity

func (x *AiModelDeployment) GetCapacity() int32

func (*AiModelDeployment) GetFormat

func (x *AiModelDeployment) GetFormat() string

func (*AiModelDeployment) GetLocation

func (x *AiModelDeployment) GetLocation() string

func (*AiModelDeployment) GetModelName

func (x *AiModelDeployment) GetModelName() string

func (*AiModelDeployment) GetRemainingQuota

func (x *AiModelDeployment) GetRemainingQuota() float64

func (*AiModelDeployment) GetSku

func (x *AiModelDeployment) GetSku() *AiModelSku

func (*AiModelDeployment) GetVersion

func (x *AiModelDeployment) GetVersion() string

func (*AiModelDeployment) ProtoMessage

func (*AiModelDeployment) ProtoMessage()

func (*AiModelDeployment) ProtoReflect

func (x *AiModelDeployment) ProtoReflect() protoreflect.Message

func (*AiModelDeployment) Reset

func (x *AiModelDeployment) Reset()

func (*AiModelDeployment) String

func (x *AiModelDeployment) String() string

type AiModelDeploymentOptions

type AiModelDeploymentOptions struct {

	// Preferred deployment locations. Empty means all subscription locations.
	Locations []string `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	// Preferred model versions. Empty means all available versions.
	Versions []string `protobuf:"bytes,2,rep,name=versions,proto3" json:"versions,omitempty"`
	// Preferred SKU names. Empty means all available SKUs.
	Skus []string `protobuf:"bytes,3,rep,name=skus,proto3" json:"skus,omitempty"`
	// Preferred deployment capacity. If unset, SKU default is used.
	Capacity *int32 `protobuf:"varint,4,opt,name=capacity,proto3,oneof" json:"capacity,omitempty"`
	// contains filtered or unexported fields
}

AiModelDeploymentOptions: all fields optional — empty means no filtering.

func (*AiModelDeploymentOptions) Descriptor deprecated

func (*AiModelDeploymentOptions) Descriptor() ([]byte, []int)

Deprecated: Use AiModelDeploymentOptions.ProtoReflect.Descriptor instead.

func (*AiModelDeploymentOptions) GetCapacity

func (x *AiModelDeploymentOptions) GetCapacity() int32

func (*AiModelDeploymentOptions) GetLocations

func (x *AiModelDeploymentOptions) GetLocations() []string

func (*AiModelDeploymentOptions) GetSkus

func (x *AiModelDeploymentOptions) GetSkus() []string

func (*AiModelDeploymentOptions) GetVersions

func (x *AiModelDeploymentOptions) GetVersions() []string

func (*AiModelDeploymentOptions) ProtoMessage

func (*AiModelDeploymentOptions) ProtoMessage()

func (*AiModelDeploymentOptions) ProtoReflect

func (x *AiModelDeploymentOptions) ProtoReflect() protoreflect.Message

func (*AiModelDeploymentOptions) Reset

func (x *AiModelDeploymentOptions) Reset()

func (*AiModelDeploymentOptions) String

func (x *AiModelDeploymentOptions) String() string

type AiModelFilterOptions

type AiModelFilterOptions struct {

	// Restrict which models are returned to ones available in these locations
	// (region names like "eastus", "swedencentral").
	// This filter does not rewrite AiModel.locations in the response.
	Locations []string `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	// Include models that expose at least one of these capabilities.
	// Matches values from AiModel.capabilities (for example: "chatCompletion").
	Capabilities []string `protobuf:"bytes,2,rep,name=capabilities,proto3" json:"capabilities,omitempty"`
	// Include models whose format matches one of these values.
	// Matches AiModel.format exactly (for example: "OpenAI", "Microsoft").
	Formats []string `protobuf:"bytes,3,rep,name=formats,proto3" json:"formats,omitempty"`
	// Include models whose lifecycle status matches one of these values.
	// Matches AiModel.lifecycle_status exactly (for example: "Stable", "Preview").
	Statuses []string `protobuf:"bytes,4,rep,name=statuses,proto3" json:"statuses,omitempty"`
	// Exclude models by exact model name (for example: "gpt-4o-mini").
	ExcludeModelNames []string `protobuf:"bytes,5,rep,name=exclude_model_names,json=excludeModelNames,proto3" json:"exclude_model_names,omitempty"`
	// contains filtered or unexported fields
}

func (*AiModelFilterOptions) Descriptor deprecated

func (*AiModelFilterOptions) Descriptor() ([]byte, []int)

Deprecated: Use AiModelFilterOptions.ProtoReflect.Descriptor instead.

func (*AiModelFilterOptions) GetCapabilities

func (x *AiModelFilterOptions) GetCapabilities() []string

func (*AiModelFilterOptions) GetExcludeModelNames

func (x *AiModelFilterOptions) GetExcludeModelNames() []string

func (*AiModelFilterOptions) GetFormats

func (x *AiModelFilterOptions) GetFormats() []string

func (*AiModelFilterOptions) GetLocations

func (x *AiModelFilterOptions) GetLocations() []string

func (*AiModelFilterOptions) GetStatuses

func (x *AiModelFilterOptions) GetStatuses() []string

func (*AiModelFilterOptions) ProtoMessage

func (*AiModelFilterOptions) ProtoMessage()

func (*AiModelFilterOptions) ProtoReflect

func (x *AiModelFilterOptions) ProtoReflect() protoreflect.Message

func (*AiModelFilterOptions) Reset

func (x *AiModelFilterOptions) Reset()

func (*AiModelFilterOptions) String

func (x *AiModelFilterOptions) String() string

type AiModelServiceClient

type AiModelServiceClient interface {
	// ListModels returns available AI models, optionally filtered by filter.locations.
	// If filter.locations is empty, models are queried across all subscription locations.
	// Note: filter.locations controls which models are returned, but each returned model
	// keeps canonical metadata (including the full locations list).
	ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error)
	// ResolveModelDeployments returns all valid deployment configs for a model.
	// options.locations controls location scoping (empty means all subscription locations).
	// If quota is set, options.locations must contain exactly one location.
	ResolveModelDeployments(ctx context.Context, in *ResolveModelDeploymentsRequest, opts ...grpc.CallOption) (*ResolveModelDeploymentsResponse, error)
	// ListUsages returns quota/usage data for request.location.
	// request.location is required.
	ListUsages(ctx context.Context, in *ListUsagesRequest, opts ...grpc.CallOption) (*ListUsagesResponse, error)
	// ListLocationsWithQuota returns locations with sufficient quota.
	ListLocationsWithQuota(ctx context.Context, in *ListLocationsWithQuotaRequest, opts ...grpc.CallOption) (*ListLocationsWithQuotaResponse, error)
	// ListModelLocationsWithQuota returns locations where model has sufficient quota.
	// Response includes max remaining quota per location for label rendering.
	ListModelLocationsWithQuota(ctx context.Context, in *ListModelLocationsWithQuotaRequest, opts ...grpc.CallOption) (*ListModelLocationsWithQuotaResponse, error)
}

AiModelServiceClient is the client API for AiModelService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

AiModelService provides data-only operations for AI model catalog, deployment resolution, and quota/usage from Azure Cognitive Services. AzureContext is required for subscription_id.

type AiModelServiceServer

type AiModelServiceServer interface {
	// ListModels returns available AI models, optionally filtered by filter.locations.
	// If filter.locations is empty, models are queried across all subscription locations.
	// Note: filter.locations controls which models are returned, but each returned model
	// keeps canonical metadata (including the full locations list).
	ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error)
	// ResolveModelDeployments returns all valid deployment configs for a model.
	// options.locations controls location scoping (empty means all subscription locations).
	// If quota is set, options.locations must contain exactly one location.
	ResolveModelDeployments(context.Context, *ResolveModelDeploymentsRequest) (*ResolveModelDeploymentsResponse, error)
	// ListUsages returns quota/usage data for request.location.
	// request.location is required.
	ListUsages(context.Context, *ListUsagesRequest) (*ListUsagesResponse, error)
	// ListLocationsWithQuota returns locations with sufficient quota.
	ListLocationsWithQuota(context.Context, *ListLocationsWithQuotaRequest) (*ListLocationsWithQuotaResponse, error)
	// ListModelLocationsWithQuota returns locations where model has sufficient quota.
	// Response includes max remaining quota per location for label rendering.
	ListModelLocationsWithQuota(context.Context, *ListModelLocationsWithQuotaRequest) (*ListModelLocationsWithQuotaResponse, error)
	// contains filtered or unexported methods
}

AiModelServiceServer is the server API for AiModelService service. All implementations must embed UnimplementedAiModelServiceServer for forward compatibility.

AiModelService provides data-only operations for AI model catalog, deployment resolution, and quota/usage from Azure Cognitive Services. AzureContext is required for subscription_id.

type AiModelSku

type AiModelSku struct {
	Name            string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                            // e.g. "GlobalStandard"
	UsageName       string `protobuf:"bytes,2,opt,name=usage_name,json=usageName,proto3" json:"usage_name,omitempty"` // join key to usage API, e.g. "OpenAI.Standard.gpt-4o"
	DefaultCapacity int32  `protobuf:"varint,3,opt,name=default_capacity,json=defaultCapacity,proto3" json:"default_capacity,omitempty"`
	MinCapacity     int32  `protobuf:"varint,4,opt,name=min_capacity,json=minCapacity,proto3" json:"min_capacity,omitempty"`
	MaxCapacity     int32  `protobuf:"varint,5,opt,name=max_capacity,json=maxCapacity,proto3" json:"max_capacity,omitempty"`
	CapacityStep    int32  `protobuf:"varint,6,opt,name=capacity_step,json=capacityStep,proto3" json:"capacity_step,omitempty"`
	// contains filtered or unexported fields
}

AiModelSku represents a deployment SKU with capacity constraints.

func (*AiModelSku) Descriptor deprecated

func (*AiModelSku) Descriptor() ([]byte, []int)

Deprecated: Use AiModelSku.ProtoReflect.Descriptor instead.

func (*AiModelSku) GetCapacityStep

func (x *AiModelSku) GetCapacityStep() int32

func (*AiModelSku) GetDefaultCapacity

func (x *AiModelSku) GetDefaultCapacity() int32

func (*AiModelSku) GetMaxCapacity

func (x *AiModelSku) GetMaxCapacity() int32

func (*AiModelSku) GetMinCapacity

func (x *AiModelSku) GetMinCapacity() int32

func (*AiModelSku) GetName

func (x *AiModelSku) GetName() string

func (*AiModelSku) GetUsageName

func (x *AiModelSku) GetUsageName() string

func (*AiModelSku) ProtoMessage

func (*AiModelSku) ProtoMessage()

func (*AiModelSku) ProtoReflect

func (x *AiModelSku) ProtoReflect() protoreflect.Message

func (*AiModelSku) Reset

func (x *AiModelSku) Reset()

func (*AiModelSku) String

func (x *AiModelSku) String() string

type AiModelUsage

type AiModelUsage struct {
	Name         string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // quota usage name
	CurrentValue float64 `protobuf:"fixed64,2,opt,name=current_value,json=currentValue,proto3" json:"current_value,omitempty"`
	Limit        float64 `protobuf:"fixed64,3,opt,name=limit,proto3" json:"limit,omitempty"`
	// contains filtered or unexported fields
}

func (*AiModelUsage) Descriptor deprecated

func (*AiModelUsage) Descriptor() ([]byte, []int)

Deprecated: Use AiModelUsage.ProtoReflect.Descriptor instead.

func (*AiModelUsage) GetCurrentValue

func (x *AiModelUsage) GetCurrentValue() float64

func (*AiModelUsage) GetLimit

func (x *AiModelUsage) GetLimit() float64

func (*AiModelUsage) GetName

func (x *AiModelUsage) GetName() string

func (*AiModelUsage) ProtoMessage

func (*AiModelUsage) ProtoMessage()

func (*AiModelUsage) ProtoReflect

func (x *AiModelUsage) ProtoReflect() protoreflect.Message

func (*AiModelUsage) Reset

func (x *AiModelUsage) Reset()

func (*AiModelUsage) String

func (x *AiModelUsage) String() string

type AiModelVersion

type AiModelVersion struct {
	Version   string        `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	IsDefault bool          `protobuf:"varint,2,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
	Skus      []*AiModelSku `protobuf:"bytes,3,rep,name=skus,proto3" json:"skus,omitempty"`
	// contains filtered or unexported fields
}

func (*AiModelVersion) Descriptor deprecated

func (*AiModelVersion) Descriptor() ([]byte, []int)

Deprecated: Use AiModelVersion.ProtoReflect.Descriptor instead.

func (*AiModelVersion) GetIsDefault

func (x *AiModelVersion) GetIsDefault() bool

func (*AiModelVersion) GetSkus

func (x *AiModelVersion) GetSkus() []*AiModelSku

func (*AiModelVersion) GetVersion

func (x *AiModelVersion) GetVersion() string

func (*AiModelVersion) ProtoMessage

func (*AiModelVersion) ProtoMessage()

func (*AiModelVersion) ProtoReflect

func (x *AiModelVersion) ProtoReflect() protoreflect.Message

func (*AiModelVersion) Reset

func (x *AiModelVersion) Reset()

func (*AiModelVersion) String

func (x *AiModelVersion) String() string

type Artifact

type Artifact struct {
	Kind         ArtifactKind      `protobuf:"varint,1,opt,name=kind,proto3,enum=azdext.ArtifactKind" json:"kind,omitempty"`                                     // Required: type of artifact
	Location     string            `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`                                                       // Optional: location of the artifact (local path or remote reference)
	LocationKind LocationKind      `protobuf:"varint,3,opt,name=location_kind,json=locationKind,proto3,enum=azdext.LocationKind" json:"location_kind,omitempty"` // Required: where the artifact is stored
	Metadata     map[string]string ``                                                                                                                            // Optional: arbitrary key/value pairs for extension-specific data
	/* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

Artifact represents a build, package, or deployment artifact with its location and metadata

func (*Artifact) Descriptor deprecated

func (*Artifact) Descriptor() ([]byte, []int)

Deprecated: Use Artifact.ProtoReflect.Descriptor instead.

func (*Artifact) GetKind

func (x *Artifact) GetKind() ArtifactKind

func (*Artifact) GetLocation

func (x *Artifact) GetLocation() string

func (*Artifact) GetLocationKind

func (x *Artifact) GetLocationKind() LocationKind

func (*Artifact) GetMetadata

func (x *Artifact) GetMetadata() map[string]string

func (*Artifact) ProtoMessage

func (*Artifact) ProtoMessage()

func (*Artifact) ProtoReflect

func (x *Artifact) ProtoReflect() protoreflect.Message

func (*Artifact) Reset

func (x *Artifact) Reset()

func (*Artifact) String

func (x *Artifact) String() string

type ArtifactKind

type ArtifactKind int32

Artifact kinds - matching the existing Go ArtifactKind enum

const (
	ArtifactKind_ARTIFACT_KIND_UNSPECIFIED ArtifactKind = 0 // Default/unknown artifact kind
	ArtifactKind_ARTIFACT_KIND_DIRECTORY   ArtifactKind = 1 // Directory containing project or build artifacts
	ArtifactKind_ARTIFACT_KIND_CONFIG      ArtifactKind = 2 // Configuration file
	ArtifactKind_ARTIFACT_KIND_ARCHIVE     ArtifactKind = 3 // Zip/archive package
	ArtifactKind_ARTIFACT_KIND_CONTAINER   ArtifactKind = 4 // Docker/container image
	ArtifactKind_ARTIFACT_KIND_ENDPOINT    ArtifactKind = 5 // Service endpoint URL
	ArtifactKind_ARTIFACT_KIND_DEPLOYMENT  ArtifactKind = 6 // Deployment result or endpoint
	ArtifactKind_ARTIFACT_KIND_RESOURCE    ArtifactKind = 7 // Azure Resource
)

func (ArtifactKind) Descriptor

func (ArtifactKind) Enum

func (x ArtifactKind) Enum() *ArtifactKind

func (ArtifactKind) EnumDescriptor deprecated

func (ArtifactKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use ArtifactKind.Descriptor instead.

func (ArtifactKind) Number

func (ArtifactKind) String

func (x ArtifactKind) String() string

func (ArtifactKind) Type

type ArtifactList

type ArtifactList struct {
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// contains filtered or unexported fields
}

ArtifactList represents a list of artifacts for map values in ServiceContext

func (*ArtifactList) Descriptor deprecated

func (*ArtifactList) Descriptor() ([]byte, []int)

Deprecated: Use ArtifactList.ProtoReflect.Descriptor instead.

func (*ArtifactList) GetArtifacts

func (x *ArtifactList) GetArtifacts() []*Artifact

func (*ArtifactList) ProtoMessage

func (*ArtifactList) ProtoMessage()

func (*ArtifactList) ProtoReflect

func (x *ArtifactList) ProtoReflect() protoreflect.Message

func (*ArtifactList) Reset

func (x *ArtifactList) Reset()

func (*ArtifactList) String

func (x *ArtifactList) String() string

type AzdClient

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

AzdClient is the client for the `azd` gRPC server.

func NewAzdClient

func NewAzdClient(opts ...AzdClientOption) (*AzdClient, error)

NewAzdClient creates a new `azd` client.

func (*AzdClient) Account

func (c *AzdClient) Account() AccountServiceClient

Account returns the account service client.

func (*AzdClient) Ai

Ai returns the AI model service client.

func (*AzdClient) Close

func (c *AzdClient) Close()

Close closes the connection to the `azd` server.

func (*AzdClient) Compose

func (c *AzdClient) Compose() ComposeServiceClient

Compose returns the compose service client.

func (*AzdClient) Container

func (c *AzdClient) Container() ContainerServiceClient

Container returns the container service client.

func (*AzdClient) Copilot

func (c *AzdClient) Copilot() CopilotServiceClient

Copilot returns the Copilot agent service client.

func (*AzdClient) Deployment

func (c *AzdClient) Deployment() DeploymentServiceClient

Deployment returns the deployment service client.

func (*AzdClient) Environment

func (c *AzdClient) Environment() EnvironmentServiceClient

Environment returns the environment service client.

func (*AzdClient) Events

func (c *AzdClient) Events() EventServiceClient

Events returns the event service client.

func (*AzdClient) Extension

func (c *AzdClient) Extension() ExtensionServiceClient

Extension returns the extension service client.

func (*AzdClient) FrameworkService

func (c *AzdClient) FrameworkService() FrameworkServiceClient

FrameworkService returns the framework service client.

func (*AzdClient) Project

func (c *AzdClient) Project() ProjectServiceClient

Project returns the project service client.

func (*AzdClient) Prompt

func (c *AzdClient) Prompt() PromptServiceClient

Prompt returns the prompt service client.

func (*AzdClient) ServiceTarget

func (c *AzdClient) ServiceTarget() ServiceTargetServiceClient

ServiceTarget returns the service target service client.

func (*AzdClient) UserConfig

func (c *AzdClient) UserConfig() UserConfigServiceClient

UserConfig returns the user config service client.

func (*AzdClient) Workflow

func (c *AzdClient) Workflow() WorkflowServiceClient

Workflow returns the workflow service client.

type AzdClientOption

type AzdClientOption func(*AzdClient) error

func WithAddress

func WithAddress(address string) AzdClientOption

WithAddress sets the address of the `azd` gRPC server.

type AzureContext

type AzureContext struct {
	Scope     *AzureScope `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
	Resources []string    `protobuf:"bytes,2,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*AzureContext) Descriptor deprecated

func (*AzureContext) Descriptor() ([]byte, []int)

Deprecated: Use AzureContext.ProtoReflect.Descriptor instead.

func (*AzureContext) GetResources

func (x *AzureContext) GetResources() []string

func (*AzureContext) GetScope

func (x *AzureContext) GetScope() *AzureScope

func (*AzureContext) ProtoMessage

func (*AzureContext) ProtoMessage()

func (*AzureContext) ProtoReflect

func (x *AzureContext) ProtoReflect() protoreflect.Message

func (*AzureContext) Reset

func (x *AzureContext) Reset()

func (*AzureContext) String

func (x *AzureContext) String() string

type AzureScope

type AzureScope struct {
	TenantId       string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	SubscriptionId string `protobuf:"bytes,2,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
	Location       string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	ResourceGroup  string `protobuf:"bytes,4,opt,name=resource_group,json=resourceGroup,proto3" json:"resource_group,omitempty"`
	// contains filtered or unexported fields
}

func (*AzureScope) Descriptor deprecated

func (*AzureScope) Descriptor() ([]byte, []int)

Deprecated: Use AzureScope.ProtoReflect.Descriptor instead.

func (*AzureScope) GetLocation

func (x *AzureScope) GetLocation() string

func (*AzureScope) GetResourceGroup

func (x *AzureScope) GetResourceGroup() string

func (*AzureScope) GetSubscriptionId

func (x *AzureScope) GetSubscriptionId() string

func (*AzureScope) GetTenantId

func (x *AzureScope) GetTenantId() string

func (*AzureScope) ProtoMessage

func (*AzureScope) ProtoMessage()

func (*AzureScope) ProtoReflect

func (x *AzureScope) ProtoReflect() protoreflect.Message

func (*AzureScope) Reset

func (x *AzureScope) Reset()

func (*AzureScope) String

func (x *AzureScope) String() string

type BaseServiceTargetProvider

type BaseServiceTargetProvider struct{}

BaseServiceTargetProvider provides no-op default implementations for all ServiceTargetProvider methods. Extensions should embed this struct and override only the methods they need.

Example:

type MyProvider struct {
    azdext.BaseServiceTargetProvider
}

func (p *MyProvider) Deploy(
    ctx context.Context,
    serviceConfig *azdext.ServiceConfig,
    serviceContext *azdext.ServiceContext,
    targetResource *azdext.TargetResource,
    progress azdext.ProgressReporter,
) (*azdext.ServiceDeployResult, error) {
    // custom deploy logic
}

func (*BaseServiceTargetProvider) Deploy

func (b *BaseServiceTargetProvider) Deploy(
	ctx context.Context,
	serviceConfig *ServiceConfig,
	serviceContext *ServiceContext,
	targetResource *TargetResource,
	progress ProgressReporter,
) (*ServiceDeployResult, error)

func (*BaseServiceTargetProvider) Endpoints

func (b *BaseServiceTargetProvider) Endpoints(
	ctx context.Context,
	serviceConfig *ServiceConfig,
	targetResource *TargetResource,
) ([]string, error)

func (*BaseServiceTargetProvider) GetTargetResource

func (b *BaseServiceTargetProvider) GetTargetResource(
	ctx context.Context,
	subscriptionId string,
	serviceConfig *ServiceConfig,
	defaultResolver func() (*TargetResource, error),
) (*TargetResource, error)

func (*BaseServiceTargetProvider) Initialize

func (b *BaseServiceTargetProvider) Initialize(ctx context.Context, serviceConfig *ServiceConfig) error

func (*BaseServiceTargetProvider) Package

func (b *BaseServiceTargetProvider) Package(
	ctx context.Context,
	serviceConfig *ServiceConfig,
	serviceContext *ServiceContext,
	progress ProgressReporter,
) (*ServicePackageResult, error)

func (*BaseServiceTargetProvider) Publish

func (b *BaseServiceTargetProvider) Publish(
	ctx context.Context,
	serviceConfig *ServiceConfig,
	serviceContext *ServiceContext,
	targetResource *TargetResource,
	publishOptions *PublishOptions,
	progress ProgressReporter,
) (*ServicePublishResult, error)

type ComponentManager

type ComponentManager[T Provider] struct {
	// contains filtered or unexported fields
}

ComponentManager provides common instance management functionality for both service targets and framework services

func NewComponentManager

func NewComponentManager[T Provider](factoryKeyFunc FactoryKeyProvider, managerTypeName string) *ComponentManager[T]

NewComponentManager creates a new ComponentManager with the specified factory key function

func (*ComponentManager[T]) Close

func (m *ComponentManager[T]) Close() error

Close cleans up all instances

func (*ComponentManager[T]) GetAnyInstance

func (m *ComponentManager[T]) GetAnyInstance() (T, error)

GetAnyInstance gets any available instance (used for Requirements call)

func (*ComponentManager[T]) GetInstance

func (m *ComponentManager[T]) GetInstance(serviceName string) (T, error)

GetInstance gets an existing instance for the service, returns error if not found

func (*ComponentManager[T]) GetOrCreateInstance

func (m *ComponentManager[T]) GetOrCreateInstance(ctx context.Context, serviceConfig *ServiceConfig) (T, error)

GetOrCreateInstance gets an existing instance or creates a new one using the factory

func (*ComponentManager[T]) HasFactory

func (m *ComponentManager[T]) HasFactory(factoryKey string) bool

HasFactory checks if a factory is registered for the given key

func (*ComponentManager[T]) RegisterFactory

func (m *ComponentManager[T]) RegisterFactory(factoryKey string, factory func() T)

RegisterFactory registers a factory function for the given key

type ComposeServiceClient

type ComposeServiceClient interface {
	// ListResources retrieves all configured composability resources in the current project.
	ListResources(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListResourcesResponse, error)
	// GetResource retrieves the configuration of a specific named composability resource.
	GetResource(ctx context.Context, in *GetResourceRequest, opts ...grpc.CallOption) (*GetResourceResponse, error)
	// ListResourceTypes retrieves all supported composability resource types.
	ListResourceTypes(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*ListResourceTypesResponse, error)
	// GetResourceType retrieves the schema of a specific named composability resource type.
	GetResourceType(ctx context.Context, in *GetResourceTypeRequest, opts ...grpc.CallOption) (*GetResourceTypeResponse, error)
	// AddResource adds a new composability resource to the current project.
	AddResource(ctx context.Context, in *AddResourceRequest, opts ...grpc.CallOption) (*AddResourceResponse, error)
}

ComposeServiceClient is the client API for ComposeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ComposeServiceServer

type ComposeServiceServer interface {
	// ListResources retrieves all configured composability resources in the current project.
	ListResources(context.Context, *EmptyRequest) (*ListResourcesResponse, error)
	// GetResource retrieves the configuration of a specific named composability resource.
	GetResource(context.Context, *GetResourceRequest) (*GetResourceResponse, error)
	// ListResourceTypes retrieves all supported composability resource types.
	ListResourceTypes(context.Context, *EmptyRequest) (*ListResourceTypesResponse, error)
	// GetResourceType retrieves the schema of a specific named composability resource type.
	GetResourceType(context.Context, *GetResourceTypeRequest) (*GetResourceTypeResponse, error)
	// AddResource adds a new composability resource to the current project.
	AddResource(context.Context, *AddResourceRequest) (*AddResourceResponse, error)
	// contains filtered or unexported methods
}

ComposeServiceServer is the server API for ComposeService service. All implementations must embed UnimplementedComposeServiceServer for forward compatibility.

type ComposedResource

type ComposedResource struct {
	Name       string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Type       string   `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Config     []byte   `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"`
	Uses       []string `protobuf:"bytes,4,rep,name=uses,proto3" json:"uses,omitempty"`
	ResourceId string   `protobuf:"bytes,5,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// contains filtered or unexported fields
}

ComposedResource represents a composability resource in an AZD project.

func (*ComposedResource) Descriptor deprecated

func (*ComposedResource) Descriptor() ([]byte, []int)

Deprecated: Use ComposedResource.ProtoReflect.Descriptor instead.

func (*ComposedResource) GetConfig

func (x *ComposedResource) GetConfig() []byte

func (*ComposedResource) GetName

func (x *ComposedResource) GetName() string

func (*ComposedResource) GetResourceId

func (x *ComposedResource) GetResourceId() string

func (*ComposedResource) GetType

func (x *ComposedResource) GetType() string

func (*ComposedResource) GetUses

func (x *ComposedResource) GetUses() []string

func (*ComposedResource) ProtoMessage

func (*ComposedResource) ProtoMessage()

func (*ComposedResource) ProtoReflect

func (x *ComposedResource) ProtoReflect() protoreflect.Message

func (*ComposedResource) Reset

func (x *ComposedResource) Reset()

func (*ComposedResource) String

func (x *ComposedResource) String() string

type ComposedResourceType

type ComposedResourceType struct {
	Name        string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	DisplayName string   `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	Type        string   `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Kinds       []string `protobuf:"bytes,4,rep,name=kinds,proto3" json:"kinds,omitempty"`
	// contains filtered or unexported fields
}

ComposedResourceType represents a type of composability resource.

func (*ComposedResourceType) Descriptor deprecated

func (*ComposedResourceType) Descriptor() ([]byte, []int)

Deprecated: Use ComposedResourceType.ProtoReflect.Descriptor instead.

func (*ComposedResourceType) GetDisplayName

func (x *ComposedResourceType) GetDisplayName() string

func (*ComposedResourceType) GetKinds

func (x *ComposedResourceType) GetKinds() []string

func (*ComposedResourceType) GetName

func (x *ComposedResourceType) GetName() string

func (*ComposedResourceType) GetType

func (x *ComposedResourceType) GetType() string

func (*ComposedResourceType) ProtoMessage

func (*ComposedResourceType) ProtoMessage()

func (*ComposedResourceType) ProtoReflect

func (x *ComposedResourceType) ProtoReflect() protoreflect.Message

func (*ComposedResourceType) Reset

func (x *ComposedResourceType) Reset()

func (*ComposedResourceType) String

func (x *ComposedResourceType) String() string

type ConfirmOptions

type ConfirmOptions struct {
	DefaultValue *bool  `protobuf:"varint,1,opt,name=default_value,json=defaultValue,proto3,oneof" json:"default_value,omitempty"`
	Message      string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	HelpMessage  string `protobuf:"bytes,3,opt,name=help_message,json=helpMessage,proto3" json:"help_message,omitempty"`
	Hint         string `protobuf:"bytes,4,opt,name=hint,proto3" json:"hint,omitempty"`
	Placeholder  string `protobuf:"bytes,5,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfirmOptions) Descriptor deprecated

func (*ConfirmOptions) Descriptor() ([]byte, []int)

Deprecated: Use ConfirmOptions.ProtoReflect.Descriptor instead.

func (*ConfirmOptions) GetDefaultValue

func (x *ConfirmOptions) GetDefaultValue() bool

func (*ConfirmOptions) GetHelpMessage

func (x *ConfirmOptions) GetHelpMessage() string

func (*ConfirmOptions) GetHint

func (x *ConfirmOptions) GetHint() string

func (*ConfirmOptions) GetMessage

func (x *ConfirmOptions) GetMessage() string

func (*ConfirmOptions) GetPlaceholder

func (x *ConfirmOptions) GetPlaceholder() string

func (*ConfirmOptions) ProtoMessage

func (*ConfirmOptions) ProtoMessage()

func (*ConfirmOptions) ProtoReflect

func (x *ConfirmOptions) ProtoReflect() protoreflect.Message

func (*ConfirmOptions) Reset

func (x *ConfirmOptions) Reset()

func (*ConfirmOptions) String

func (x *ConfirmOptions) String() string

type ConfirmRequest

type ConfirmRequest struct {
	Options *ConfirmOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfirmRequest) Descriptor deprecated

func (*ConfirmRequest) Descriptor() ([]byte, []int)

Deprecated: Use ConfirmRequest.ProtoReflect.Descriptor instead.

func (*ConfirmRequest) GetOptions

func (x *ConfirmRequest) GetOptions() *ConfirmOptions

func (*ConfirmRequest) ProtoMessage

func (*ConfirmRequest) ProtoMessage()

func (*ConfirmRequest) ProtoReflect

func (x *ConfirmRequest) ProtoReflect() protoreflect.Message

func (*ConfirmRequest) Reset

func (x *ConfirmRequest) Reset()

func (*ConfirmRequest) String

func (x *ConfirmRequest) String() string

type ConfirmResponse

type ConfirmResponse struct {
	Value *bool `protobuf:"varint,1,opt,name=value,proto3,oneof" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*ConfirmResponse) Descriptor deprecated

func (*ConfirmResponse) Descriptor() ([]byte, []int)

Deprecated: Use ConfirmResponse.ProtoReflect.Descriptor instead.

func (*ConfirmResponse) GetValue

func (x *ConfirmResponse) GetValue() bool

func (*ConfirmResponse) ProtoMessage

func (*ConfirmResponse) ProtoMessage()

func (*ConfirmResponse) ProtoReflect

func (x *ConfirmResponse) ProtoReflect() protoreflect.Message

func (*ConfirmResponse) Reset

func (x *ConfirmResponse) Reset()

func (*ConfirmResponse) String

func (x *ConfirmResponse) String() string

type ContainerBuildRequest

type ContainerBuildRequest struct {
	ServiceName    string          `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
	// contains filtered or unexported fields
}

func (*ContainerBuildRequest) Descriptor deprecated

func (*ContainerBuildRequest) Descriptor() ([]byte, []int)

Deprecated: Use ContainerBuildRequest.ProtoReflect.Descriptor instead.

func (*ContainerBuildRequest) GetServiceContext

func (x *ContainerBuildRequest) GetServiceContext() *ServiceContext

func (*ContainerBuildRequest) GetServiceName

func (x *ContainerBuildRequest) GetServiceName() string

func (*ContainerBuildRequest) ProtoMessage

func (*ContainerBuildRequest) ProtoMessage()

func (*ContainerBuildRequest) ProtoReflect

func (x *ContainerBuildRequest) ProtoReflect() protoreflect.Message

func (*ContainerBuildRequest) Reset

func (x *ContainerBuildRequest) Reset()

func (*ContainerBuildRequest) String

func (x *ContainerBuildRequest) String() string

type ContainerBuildResponse

type ContainerBuildResponse struct {
	Result *ServiceBuildResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

Response from the container build operation

func (*ContainerBuildResponse) Descriptor deprecated

func (*ContainerBuildResponse) Descriptor() ([]byte, []int)

Deprecated: Use ContainerBuildResponse.ProtoReflect.Descriptor instead.

func (*ContainerBuildResponse) GetResult

func (*ContainerBuildResponse) ProtoMessage

func (*ContainerBuildResponse) ProtoMessage()

func (*ContainerBuildResponse) ProtoReflect

func (x *ContainerBuildResponse) ProtoReflect() protoreflect.Message

func (*ContainerBuildResponse) Reset

func (x *ContainerBuildResponse) Reset()

func (*ContainerBuildResponse) String

func (x *ContainerBuildResponse) String() string

type ContainerPackageRequest

type ContainerPackageRequest struct {

	// Name of the service to package (required)
	ServiceName    string          `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
	// contains filtered or unexported fields
}

Request to package a service's container

func (*ContainerPackageRequest) Descriptor deprecated

func (*ContainerPackageRequest) Descriptor() ([]byte, []int)

Deprecated: Use ContainerPackageRequest.ProtoReflect.Descriptor instead.

func (*ContainerPackageRequest) GetServiceContext

func (x *ContainerPackageRequest) GetServiceContext() *ServiceContext

func (*ContainerPackageRequest) GetServiceName

func (x *ContainerPackageRequest) GetServiceName() string

func (*ContainerPackageRequest) ProtoMessage

func (*ContainerPackageRequest) ProtoMessage()

func (*ContainerPackageRequest) ProtoReflect

func (x *ContainerPackageRequest) ProtoReflect() protoreflect.Message

func (*ContainerPackageRequest) Reset

func (x *ContainerPackageRequest) Reset()

func (*ContainerPackageRequest) String

func (x *ContainerPackageRequest) String() string

type ContainerPackageResponse

type ContainerPackageResponse struct {
	Result *ServicePackageResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

Response from container package operation

func (*ContainerPackageResponse) Descriptor deprecated

func (*ContainerPackageResponse) Descriptor() ([]byte, []int)

Deprecated: Use ContainerPackageResponse.ProtoReflect.Descriptor instead.

func (*ContainerPackageResponse) GetResult

func (*ContainerPackageResponse) ProtoMessage

func (*ContainerPackageResponse) ProtoMessage()

func (*ContainerPackageResponse) ProtoReflect

func (x *ContainerPackageResponse) ProtoReflect() protoreflect.Message

func (*ContainerPackageResponse) Reset

func (x *ContainerPackageResponse) Reset()

func (*ContainerPackageResponse) String

func (x *ContainerPackageResponse) String() string

type ContainerPublishRequest

type ContainerPublishRequest struct {

	// Name of the service to publish (required)
	ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// Package result from previous package operation (optional - will re-package if not provided)
	ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
	// contains filtered or unexported fields
}

Request to publish a container service

func (*ContainerPublishRequest) Descriptor deprecated

func (*ContainerPublishRequest) Descriptor() ([]byte, []int)

Deprecated: Use ContainerPublishRequest.ProtoReflect.Descriptor instead.

func (*ContainerPublishRequest) GetServiceContext

func (x *ContainerPublishRequest) GetServiceContext() *ServiceContext

func (*ContainerPublishRequest) GetServiceName

func (x *ContainerPublishRequest) GetServiceName() string

func (*ContainerPublishRequest) ProtoMessage

func (*ContainerPublishRequest) ProtoMessage()

func (*ContainerPublishRequest) ProtoReflect

func (x *ContainerPublishRequest) ProtoReflect() protoreflect.Message

func (*ContainerPublishRequest) Reset

func (x *ContainerPublishRequest) Reset()

func (*ContainerPublishRequest) String

func (x *ContainerPublishRequest) String() string

type ContainerPublishResponse

type ContainerPublishResponse struct {
	Result *ServicePublishResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

Response from container publish operation

func (*ContainerPublishResponse) Descriptor deprecated

func (*ContainerPublishResponse) Descriptor() ([]byte, []int)

Deprecated: Use ContainerPublishResponse.ProtoReflect.Descriptor instead.

func (*ContainerPublishResponse) GetResult

func (*ContainerPublishResponse) ProtoMessage

func (*ContainerPublishResponse) ProtoMessage()

func (*ContainerPublishResponse) ProtoReflect

func (x *ContainerPublishResponse) ProtoReflect() protoreflect.Message

func (*ContainerPublishResponse) Reset

func (x *ContainerPublishResponse) Reset()

func (*ContainerPublishResponse) String

func (x *ContainerPublishResponse) String() string

type ContainerServiceClient

type ContainerServiceClient interface {
	// Build a services' container
	Build(ctx context.Context, in *ContainerBuildRequest, opts ...grpc.CallOption) (*ContainerBuildResponse, error)
	// Package a service's container
	Package(ctx context.Context, in *ContainerPackageRequest, opts ...grpc.CallOption) (*ContainerPackageResponse, error)
	// Publish a service's container to a registry
	Publish(ctx context.Context, in *ContainerPublishRequest, opts ...grpc.CallOption) (*ContainerPublishResponse, error)
}

ContainerServiceClient is the client API for ContainerService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

ContainerService provides container build, package, and publish operations for extensions that need to work with containers but don't want to implement the full complexity of Docker CLI integration, registry authentication, etc.

type ContainerServiceServer

type ContainerServiceServer interface {
	// Build a services' container
	Build(context.Context, *ContainerBuildRequest) (*ContainerBuildResponse, error)
	// Package a service's container
	Package(context.Context, *ContainerPackageRequest) (*ContainerPackageResponse, error)
	// Publish a service's container to a registry
	Publish(context.Context, *ContainerPublishRequest) (*ContainerPublishResponse, error)
	// contains filtered or unexported methods
}

ContainerServiceServer is the server API for ContainerService service. All implementations must embed UnimplementedContainerServiceServer for forward compatibility.

ContainerService provides container build, package, and publish operations for extensions that need to work with containers but don't want to implement the full complexity of Docker CLI integration, registry authentication, etc.

type CopilotFileChange

type CopilotFileChange struct {
	Path       string                `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // File path (relative to working directory).
	ChangeType CopilotFileChangeType ``                                                              // Type of change.
	/* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

CopilotFileChange describes a single file change.

func (*CopilotFileChange) Descriptor deprecated

func (*CopilotFileChange) Descriptor() ([]byte, []int)

Deprecated: Use CopilotFileChange.ProtoReflect.Descriptor instead.

func (*CopilotFileChange) GetChangeType

func (x *CopilotFileChange) GetChangeType() CopilotFileChangeType

func (*CopilotFileChange) GetPath

func (x *CopilotFileChange) GetPath() string

func (*CopilotFileChange) ProtoMessage

func (*CopilotFileChange) ProtoMessage()

func (*CopilotFileChange) ProtoReflect

func (x *CopilotFileChange) ProtoReflect() protoreflect.Message

func (*CopilotFileChange) Reset

func (x *CopilotFileChange) Reset()

func (*CopilotFileChange) String

func (x *CopilotFileChange) String() string

type CopilotFileChangeType

type CopilotFileChangeType int32

CopilotFileChangeType enumerates the types of file changes.

const (
	CopilotFileChangeType_COPILOT_FILE_CHANGE_TYPE_UNSPECIFIED CopilotFileChangeType = 0 // Unknown change type.
	CopilotFileChangeType_COPILOT_FILE_CHANGE_TYPE_CREATED     CopilotFileChangeType = 1 // File was created.
	CopilotFileChangeType_COPILOT_FILE_CHANGE_TYPE_MODIFIED    CopilotFileChangeType = 2 // File was modified.
	CopilotFileChangeType_COPILOT_FILE_CHANGE_TYPE_DELETED     CopilotFileChangeType = 3 // File was deleted.
)

func (CopilotFileChangeType) Descriptor

func (CopilotFileChangeType) Enum

func (CopilotFileChangeType) EnumDescriptor deprecated

func (CopilotFileChangeType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CopilotFileChangeType.Descriptor instead.

func (CopilotFileChangeType) Number

func (CopilotFileChangeType) String

func (x CopilotFileChangeType) String() string

func (CopilotFileChangeType) Type

type CopilotServiceClient

type CopilotServiceClient interface {
	// Initialize starts the Copilot client, verifies authentication, and
	// resolves model/reasoning configuration. Call before SendMessage to
	// warm up the client and validate settings. Idempotent.
	Initialize(ctx context.Context, in *InitializeCopilotRequest, opts ...grpc.CallOption) (*InitializeCopilotResponse, error)
	// ListSessions returns available Copilot sessions for a working directory.
	ListSessions(ctx context.Context, in *ListCopilotSessionsRequest, opts ...grpc.CallOption) (*ListCopilotSessionsResponse, error)
	// SendMessage sends a prompt to the Copilot agent. On the first call,
	// a new session is created using the provided configuration. If session_id
	// is set, that existing session is resumed instead. Subsequent calls with
	// the returned session_id reuse the same session without re-bootstrapping.
	SendMessage(ctx context.Context, in *SendCopilotMessageRequest, opts ...grpc.CallOption) (*SendCopilotMessageResponse, error)
	// GetUsageMetrics returns cumulative usage metrics cached for a session.
	GetUsageMetrics(ctx context.Context, in *GetCopilotUsageMetricsRequest, opts ...grpc.CallOption) (*GetCopilotUsageMetricsResponse, error)
	// GetFileChanges returns files created, modified, or deleted during a session.
	GetFileChanges(ctx context.Context, in *GetCopilotFileChangesRequest, opts ...grpc.CallOption) (*GetCopilotFileChangesResponse, error)
	// StopSession stops and cleans up a Copilot agent session.
	StopSession(ctx context.Context, in *StopCopilotSessionRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	// GetMessages returns the session event log from the Copilot SDK.
	// Each event contains a type, timestamp, and dynamic data as a Struct.
	GetMessages(ctx context.Context, in *GetCopilotMessagesRequest, opts ...grpc.CallOption) (*GetCopilotMessagesResponse, error)
}

CopilotServiceClient is the client API for CopilotService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

CopilotService provides Copilot agent capabilities to extensions. Sessions are created lazily on the first SendMessage call and can be reused across multiple calls. Sessions run in headless/autopilot mode by default when invoked via gRPC, suppressing all console output.

type CopilotServiceServer

type CopilotServiceServer interface {
	// Initialize starts the Copilot client, verifies authentication, and
	// resolves model/reasoning configuration. Call before SendMessage to
	// warm up the client and validate settings. Idempotent.
	Initialize(context.Context, *InitializeCopilotRequest) (*InitializeCopilotResponse, error)
	// ListSessions returns available Copilot sessions for a working directory.
	ListSessions(context.Context, *ListCopilotSessionsRequest) (*ListCopilotSessionsResponse, error)
	// SendMessage sends a prompt to the Copilot agent. On the first call,
	// a new session is created using the provided configuration. If session_id
	// is set, that existing session is resumed instead. Subsequent calls with
	// the returned session_id reuse the same session without re-bootstrapping.
	SendMessage(context.Context, *SendCopilotMessageRequest) (*SendCopilotMessageResponse, error)
	// GetUsageMetrics returns cumulative usage metrics cached for a session.
	GetUsageMetrics(context.Context, *GetCopilotUsageMetricsRequest) (*GetCopilotUsageMetricsResponse, error)
	// GetFileChanges returns files created, modified, or deleted during a session.
	GetFileChanges(context.Context, *GetCopilotFileChangesRequest) (*GetCopilotFileChangesResponse, error)
	// StopSession stops and cleans up a Copilot agent session.
	StopSession(context.Context, *StopCopilotSessionRequest) (*EmptyResponse, error)
	// GetMessages returns the session event log from the Copilot SDK.
	// Each event contains a type, timestamp, and dynamic data as a Struct.
	GetMessages(context.Context, *GetCopilotMessagesRequest) (*GetCopilotMessagesResponse, error)
	// contains filtered or unexported methods
}

CopilotServiceServer is the server API for CopilotService service. All implementations must embed UnimplementedCopilotServiceServer for forward compatibility.

CopilotService provides Copilot agent capabilities to extensions. Sessions are created lazily on the first SendMessage call and can be reused across multiple calls. Sessions run in headless/autopilot mode by default when invoked via gRPC, suppressing all console output.

type CopilotSessionEvent

type CopilotSessionEvent struct {
	Type      string           `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`           // Event type (e.g., "assistant.message", "tool.execution_complete").
	Timestamp string           `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // ISO 8601 timestamp.
	Data      *structpb.Struct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`           // Full event data as a dynamic struct.
	// contains filtered or unexported fields
}

CopilotSessionEvent represents a single event from the Copilot session log. The data field uses google.protobuf.Struct to carry dynamic event data without requiring schema updates when the SDK adds new event types or fields.

func (*CopilotSessionEvent) Descriptor deprecated

func (*CopilotSessionEvent) Descriptor() ([]byte, []int)

Deprecated: Use CopilotSessionEvent.ProtoReflect.Descriptor instead.

func (*CopilotSessionEvent) GetData

func (x *CopilotSessionEvent) GetData() *structpb.Struct

func (*CopilotSessionEvent) GetTimestamp

func (x *CopilotSessionEvent) GetTimestamp() string

func (*CopilotSessionEvent) GetType

func (x *CopilotSessionEvent) GetType() string

func (*CopilotSessionEvent) ProtoMessage

func (*CopilotSessionEvent) ProtoMessage()

func (*CopilotSessionEvent) ProtoReflect

func (x *CopilotSessionEvent) ProtoReflect() protoreflect.Message

func (*CopilotSessionEvent) Reset

func (x *CopilotSessionEvent) Reset()

func (*CopilotSessionEvent) String

func (x *CopilotSessionEvent) String() string

type CopilotSessionMetadata

type CopilotSessionMetadata struct {
	SessionId    string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`          // Unique session identifier.
	ModifiedTime string `protobuf:"bytes,2,opt,name=modified_time,json=modifiedTime,proto3" json:"modified_time,omitempty"` // Last modified time (RFC3339 format).
	Summary      string `protobuf:"bytes,3,opt,name=summary,proto3" json:"summary,omitempty"`                               // Optional session summary.
	// contains filtered or unexported fields
}

CopilotSessionMetadata describes a previous Copilot session.

func (*CopilotSessionMetadata) Descriptor deprecated

func (*CopilotSessionMetadata) Descriptor() ([]byte, []int)

Deprecated: Use CopilotSessionMetadata.ProtoReflect.Descriptor instead.

func (*CopilotSessionMetadata) GetModifiedTime

func (x *CopilotSessionMetadata) GetModifiedTime() string

func (*CopilotSessionMetadata) GetSessionId

func (x *CopilotSessionMetadata) GetSessionId() string

func (*CopilotSessionMetadata) GetSummary

func (x *CopilotSessionMetadata) GetSummary() string

func (*CopilotSessionMetadata) ProtoMessage

func (*CopilotSessionMetadata) ProtoMessage()

func (*CopilotSessionMetadata) ProtoReflect

func (x *CopilotSessionMetadata) ProtoReflect() protoreflect.Message

func (*CopilotSessionMetadata) Reset

func (x *CopilotSessionMetadata) Reset()

func (*CopilotSessionMetadata) String

func (x *CopilotSessionMetadata) String() string

type CopilotUsageMetrics

type CopilotUsageMetrics struct {
	Model           string  `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`                                              // Model used.
	InputTokens     float64 `protobuf:"fixed64,2,opt,name=input_tokens,json=inputTokens,proto3" json:"input_tokens,omitempty"`             // Total input tokens consumed.
	OutputTokens    float64 `protobuf:"fixed64,3,opt,name=output_tokens,json=outputTokens,proto3" json:"output_tokens,omitempty"`          // Total output tokens consumed.
	TotalTokens     float64 `protobuf:"fixed64,4,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"`             // Sum of input + output tokens.
	BillingRate     float64 `protobuf:"fixed64,5,opt,name=billing_rate,json=billingRate,proto3" json:"billing_rate,omitempty"`             // Per-request cost multiplier (e.g., 1.0x, 2.0x).
	PremiumRequests float64 `protobuf:"fixed64,6,opt,name=premium_requests,json=premiumRequests,proto3" json:"premium_requests,omitempty"` // Number of premium requests used.
	DurationMs      float64 `protobuf:"fixed64,7,opt,name=duration_ms,json=durationMs,proto3" json:"duration_ms,omitempty"`                // Total API duration in milliseconds.
	// contains filtered or unexported fields
}

CopilotUsageMetrics tracks resource consumption for a Copilot session.

func (*CopilotUsageMetrics) Descriptor deprecated

func (*CopilotUsageMetrics) Descriptor() ([]byte, []int)

Deprecated: Use CopilotUsageMetrics.ProtoReflect.Descriptor instead.

func (*CopilotUsageMetrics) GetBillingRate

func (x *CopilotUsageMetrics) GetBillingRate() float64

func (*CopilotUsageMetrics) GetDurationMs

func (x *CopilotUsageMetrics) GetDurationMs() float64

func (*CopilotUsageMetrics) GetInputTokens

func (x *CopilotUsageMetrics) GetInputTokens() float64

func (*CopilotUsageMetrics) GetModel

func (x *CopilotUsageMetrics) GetModel() string

func (*CopilotUsageMetrics) GetOutputTokens

func (x *CopilotUsageMetrics) GetOutputTokens() float64

func (*CopilotUsageMetrics) GetPremiumRequests

func (x *CopilotUsageMetrics) GetPremiumRequests() float64

func (*CopilotUsageMetrics) GetTotalTokens

func (x *CopilotUsageMetrics) GetTotalTokens() float64

func (*CopilotUsageMetrics) ProtoMessage

func (*CopilotUsageMetrics) ProtoMessage()

func (*CopilotUsageMetrics) ProtoReflect

func (x *CopilotUsageMetrics) ProtoReflect() protoreflect.Message

func (*CopilotUsageMetrics) Reset

func (x *CopilotUsageMetrics) Reset()

func (*CopilotUsageMetrics) String

func (x *CopilotUsageMetrics) String() string

type Deployment

type Deployment struct {
	Id           string            `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Location     string            `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	DeploymentId string            `protobuf:"bytes,3,opt,name=deploymentId,proto3" json:"deploymentId,omitempty"`
	Name         string            `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Type         string            `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	Tags         map[string]string `` /* 135-byte string literal not displayed */
	Outputs      map[string]string `` /* 141-byte string literal not displayed */
	Resources    []string          `protobuf:"bytes,8,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

func (*Deployment) Descriptor deprecated

func (*Deployment) Descriptor() ([]byte, []int)

Deprecated: Use Deployment.ProtoReflect.Descriptor instead.

func (*Deployment) GetDeploymentId

func (x *Deployment) GetDeploymentId() string

func (*Deployment) GetId

func (x *Deployment) GetId() string

func (*Deployment) GetLocation

func (x *Deployment) GetLocation() string

func (*Deployment) GetName

func (x *Deployment) GetName() string

func (*Deployment) GetOutputs

func (x *Deployment) GetOutputs() map[string]string

func (*Deployment) GetResources

func (x *Deployment) GetResources() []string

func (*Deployment) GetTags

func (x *Deployment) GetTags() map[string]string

func (*Deployment) GetType

func (x *Deployment) GetType() string

func (*Deployment) ProtoMessage

func (*Deployment) ProtoMessage()

func (*Deployment) ProtoReflect

func (x *Deployment) ProtoReflect() protoreflect.Message

func (*Deployment) Reset

func (x *Deployment) Reset()

func (*Deployment) String

func (x *Deployment) String() string

type DeploymentServiceClient

type DeploymentServiceClient interface {
	// Gets the current environment.
	GetDeployment(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GetDeploymentResponse, error)
	// GetDeploymentContext retrieves the current deployment context.
	GetDeploymentContext(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GetDeploymentContextResponse, error)
}

DeploymentServiceClient is the client API for DeploymentService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type DeploymentServiceServer

type DeploymentServiceServer interface {
	// Gets the current environment.
	GetDeployment(context.Context, *EmptyRequest) (*GetDeploymentResponse, error)
	// GetDeploymentContext retrieves the current deployment context.
	GetDeploymentContext(context.Context, *EmptyRequest) (*GetDeploymentContextResponse, error)
	// contains filtered or unexported methods
}

DeploymentServiceServer is the server API for DeploymentService service. All implementations must embed UnimplementedDeploymentServiceServer for forward compatibility.

type DockerProjectOptions

type DockerProjectOptions struct {
	Path        string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Context     string   `protobuf:"bytes,2,opt,name=context,proto3" json:"context,omitempty"`
	Platform    string   `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
	Target      string   `protobuf:"bytes,4,opt,name=target,proto3" json:"target,omitempty"`
	Registry    string   `protobuf:"bytes,5,opt,name=registry,proto3" json:"registry,omitempty"`
	Image       string   `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"`
	Tag         string   `protobuf:"bytes,7,opt,name=tag,proto3" json:"tag,omitempty"`
	RemoteBuild bool     `protobuf:"varint,8,opt,name=remote_build,json=remoteBuild,proto3" json:"remote_build,omitempty"`
	BuildArgs   []string `protobuf:"bytes,9,rep,name=build_args,json=buildArgs,proto3" json:"build_args,omitempty"`
	// contains filtered or unexported fields
}

DockerProjectOptions message definition

func (*DockerProjectOptions) Descriptor deprecated

func (*DockerProjectOptions) Descriptor() ([]byte, []int)

Deprecated: Use DockerProjectOptions.ProtoReflect.Descriptor instead.

func (*DockerProjectOptions) GetBuildArgs

func (x *DockerProjectOptions) GetBuildArgs() []string

func (*DockerProjectOptions) GetContext

func (x *DockerProjectOptions) GetContext() string

func (*DockerProjectOptions) GetImage

func (x *DockerProjectOptions) GetImage() string

func (*DockerProjectOptions) GetPath

func (x *DockerProjectOptions) GetPath() string

func (*DockerProjectOptions) GetPlatform

func (x *DockerProjectOptions) GetPlatform() string

func (*DockerProjectOptions) GetRegistry

func (x *DockerProjectOptions) GetRegistry() string

func (*DockerProjectOptions) GetRemoteBuild

func (x *DockerProjectOptions) GetRemoteBuild() bool

func (*DockerProjectOptions) GetTag

func (x *DockerProjectOptions) GetTag() string

func (*DockerProjectOptions) GetTarget

func (x *DockerProjectOptions) GetTarget() string

func (*DockerProjectOptions) ProtoMessage

func (*DockerProjectOptions) ProtoMessage()

func (*DockerProjectOptions) ProtoReflect

func (x *DockerProjectOptions) ProtoReflect() protoreflect.Message

func (*DockerProjectOptions) Reset

func (x *DockerProjectOptions) Reset()

func (*DockerProjectOptions) String

func (x *DockerProjectOptions) String() string

type EmptyRequest

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

Messages for requests and responses

func (*EmptyRequest) Descriptor deprecated

func (*EmptyRequest) Descriptor() ([]byte, []int)

Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.

func (*EmptyRequest) ProtoMessage

func (*EmptyRequest) ProtoMessage()

func (*EmptyRequest) ProtoReflect

func (x *EmptyRequest) ProtoReflect() protoreflect.Message

func (*EmptyRequest) Reset

func (x *EmptyRequest) Reset()

func (*EmptyRequest) String

func (x *EmptyRequest) String() string

type EmptyResponse

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

EmptyResponse message for methods with no output.

func (*EmptyResponse) Descriptor deprecated

func (*EmptyResponse) Descriptor() ([]byte, []int)

Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.

func (*EmptyResponse) ProtoMessage

func (*EmptyResponse) ProtoMessage()

func (*EmptyResponse) ProtoReflect

func (x *EmptyResponse) ProtoReflect() protoreflect.Message

func (*EmptyResponse) Reset

func (x *EmptyResponse) Reset()

func (*EmptyResponse) String

func (x *EmptyResponse) String() string

type Environment

type Environment struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Name of the environment.
	// contains filtered or unexported fields
}

Environment object definition.

func (*Environment) Descriptor deprecated

func (*Environment) Descriptor() ([]byte, []int)

Deprecated: Use Environment.ProtoReflect.Descriptor instead.

func (*Environment) GetName

func (x *Environment) GetName() string

func (*Environment) ProtoMessage

func (*Environment) ProtoMessage()

func (*Environment) ProtoReflect

func (x *Environment) ProtoReflect() protoreflect.Message

func (*Environment) Reset

func (x *Environment) Reset()

func (*Environment) String

func (x *Environment) String() string

type EnvironmentDescription

type EnvironmentDescription struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`        // Name of the environment.
	Local   bool   `protobuf:"varint,2,opt,name=local,proto3" json:"local,omitempty"`     // Whether the environment is local.
	Remote  bool   `protobuf:"varint,3,opt,name=remote,proto3" json:"remote,omitempty"`   // Whether the environment is remote.
	Default bool   `protobuf:"varint,4,opt,name=default,proto3" json:"default,omitempty"` // Whether the environment is the default.
	// contains filtered or unexported fields
}

func (*EnvironmentDescription) Descriptor deprecated

func (*EnvironmentDescription) Descriptor() ([]byte, []int)

Deprecated: Use EnvironmentDescription.ProtoReflect.Descriptor instead.

func (*EnvironmentDescription) GetDefault

func (x *EnvironmentDescription) GetDefault() bool

func (*EnvironmentDescription) GetLocal

func (x *EnvironmentDescription) GetLocal() bool

func (*EnvironmentDescription) GetName

func (x *EnvironmentDescription) GetName() string

func (*EnvironmentDescription) GetRemote

func (x *EnvironmentDescription) GetRemote() bool

func (*EnvironmentDescription) ProtoMessage

func (*EnvironmentDescription) ProtoMessage()

func (*EnvironmentDescription) ProtoReflect

func (x *EnvironmentDescription) ProtoReflect() protoreflect.Message

func (*EnvironmentDescription) Reset

func (x *EnvironmentDescription) Reset()

func (*EnvironmentDescription) String

func (x *EnvironmentDescription) String() string

type EnvironmentListResponse

type EnvironmentListResponse struct {
	Environments []*EnvironmentDescription `protobuf:"bytes,1,rep,name=environments,proto3" json:"environments,omitempty"` // List of environments.
	// contains filtered or unexported fields
}

func (*EnvironmentListResponse) Descriptor deprecated

func (*EnvironmentListResponse) Descriptor() ([]byte, []int)

Deprecated: Use EnvironmentListResponse.ProtoReflect.Descriptor instead.

func (*EnvironmentListResponse) GetEnvironments

func (x *EnvironmentListResponse) GetEnvironments() []*EnvironmentDescription

func (*EnvironmentListResponse) ProtoMessage

func (*EnvironmentListResponse) ProtoMessage()

func (*EnvironmentListResponse) ProtoReflect

func (x *EnvironmentListResponse) ProtoReflect() protoreflect.Message

func (*EnvironmentListResponse) Reset

func (x *EnvironmentListResponse) Reset()

func (*EnvironmentListResponse) String

func (x *EnvironmentListResponse) String() string

type EnvironmentResponse

type EnvironmentResponse struct {
	Environment *Environment `protobuf:"bytes,1,opt,name=environment,proto3" json:"environment,omitempty"` // Environment details.
	// contains filtered or unexported fields
}

Response containing details of an environment.

func (*EnvironmentResponse) Descriptor deprecated

func (*EnvironmentResponse) Descriptor() ([]byte, []int)

Deprecated: Use EnvironmentResponse.ProtoReflect.Descriptor instead.

func (*EnvironmentResponse) GetEnvironment

func (x *EnvironmentResponse) GetEnvironment() *Environment

func (*EnvironmentResponse) ProtoMessage

func (*EnvironmentResponse) ProtoMessage()

func (*EnvironmentResponse) ProtoReflect

func (x *EnvironmentResponse) ProtoReflect() protoreflect.Message

func (*EnvironmentResponse) Reset

func (x *EnvironmentResponse) Reset()

func (*EnvironmentResponse) String

func (x *EnvironmentResponse) String() string

type EnvironmentServiceClient

type EnvironmentServiceClient interface {
	// Gets the current environment.
	GetCurrent(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EnvironmentResponse, error)
	// List retrieves all azd environments.
	List(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*EnvironmentListResponse, error)
	// Get retrieves an environment by its name.
	Get(ctx context.Context, in *GetEnvironmentRequest, opts ...grpc.CallOption) (*EnvironmentResponse, error)
	// Select sets the current environment to the specified environment.
	Select(ctx context.Context, in *SelectEnvironmentRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	// GetValues retrieves all key-value pairs in the specified environment.
	GetValues(ctx context.Context, in *GetEnvironmentRequest, opts ...grpc.CallOption) (*KeyValueListResponse, error)
	// GetValue retrieves the value of a specific key in the specified environment.
	GetValue(ctx context.Context, in *GetEnvRequest, opts ...grpc.CallOption) (*KeyValueResponse, error)
	// SetValue sets the value of a key in the specified environment.
	SetValue(ctx context.Context, in *SetEnvRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	// GetConfig retrieves a config value by path
	GetConfig(ctx context.Context, in *GetConfigRequest, opts ...grpc.CallOption) (*GetConfigResponse, error)
	// GetConfigString retrieves a config value by path and returns it as a string
	GetConfigString(ctx context.Context, in *GetConfigStringRequest, opts ...grpc.CallOption) (*GetConfigStringResponse, error)
	// GetConfigSection retrieves a config section by path
	GetConfigSection(ctx context.Context, in *GetConfigSectionRequest, opts ...grpc.CallOption) (*GetConfigSectionResponse, error)
	// SetConfig sets a config value at a given path
	SetConfig(ctx context.Context, in *SetConfigRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	// UnsetConfig removes a config value at a given path
	UnsetConfig(ctx context.Context, in *UnsetConfigRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
}

EnvironmentServiceClient is the client API for EnvironmentService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

EnvironmentService defines methods for managing environments and their key-value pairs.

type EnvironmentServiceServer

type EnvironmentServiceServer interface {
	// Gets the current environment.
	GetCurrent(context.Context, *EmptyRequest) (*EnvironmentResponse, error)
	// List retrieves all azd environments.
	List(context.Context, *EmptyRequest) (*EnvironmentListResponse, error)
	// Get retrieves an environment by its name.
	Get(context.Context, *GetEnvironmentRequest) (*EnvironmentResponse, error)
	// Select sets the current environment to the specified environment.
	Select(context.Context, *SelectEnvironmentRequest) (*EmptyResponse, error)
	// GetValues retrieves all key-value pairs in the specified environment.
	GetValues(context.Context, *GetEnvironmentRequest) (*KeyValueListResponse, error)
	// GetValue retrieves the value of a specific key in the specified environment.
	GetValue(context.Context, *GetEnvRequest) (*KeyValueResponse, error)
	// SetValue sets the value of a key in the specified environment.
	SetValue(context.Context, *SetEnvRequest) (*EmptyResponse, error)
	// GetConfig retrieves a config value by path
	GetConfig(context.Context, *GetConfigRequest) (*GetConfigResponse, error)
	// GetConfigString retrieves a config value by path and returns it as a string
	GetConfigString(context.Context, *GetConfigStringRequest) (*GetConfigStringResponse, error)
	// GetConfigSection retrieves a config section by path
	GetConfigSection(context.Context, *GetConfigSectionRequest) (*GetConfigSectionResponse, error)
	// SetConfig sets a config value at a given path
	SetConfig(context.Context, *SetConfigRequest) (*EmptyResponse, error)
	// UnsetConfig removes a config value at a given path
	UnsetConfig(context.Context, *UnsetConfigRequest) (*EmptyResponse, error)
	// contains filtered or unexported methods
}

EnvironmentServiceServer is the server API for EnvironmentService service. All implementations must embed UnimplementedEnvironmentServiceServer for forward compatibility.

EnvironmentService defines methods for managing environments and their key-value pairs.

type ErrorOrigin

type ErrorOrigin int32

ErrorOrigin indicates where an error originated from. This helps with telemetry categorization and error handling strategies.

const (
	ErrorOrigin_ERROR_ORIGIN_UNSPECIFIED ErrorOrigin = 0 // Default/unknown origin
	ErrorOrigin_ERROR_ORIGIN_LOCAL       ErrorOrigin = 1 // Local errors: config, filesystem, auth state, validation, etc.
	ErrorOrigin_ERROR_ORIGIN_SERVICE     ErrorOrigin = 2 // HTTP/gRPC upstream service errors
	ErrorOrigin_ERROR_ORIGIN_TOOL        ErrorOrigin = 3 // Subprocess, plugin, or external tool errors
)

func (ErrorOrigin) Descriptor

func (ErrorOrigin) Enum

func (x ErrorOrigin) Enum() *ErrorOrigin

func (ErrorOrigin) EnumDescriptor deprecated

func (ErrorOrigin) EnumDescriptor() ([]byte, []int)

Deprecated: Use ErrorOrigin.Descriptor instead.

func (ErrorOrigin) Number

func (x ErrorOrigin) Number() protoreflect.EnumNumber

func (ErrorOrigin) String

func (x ErrorOrigin) String() string

func (ErrorOrigin) Type

type EventManager

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

func NewEventManager

func NewEventManager(extensionId string, azdClient *AzdClient, brokerLogger *log.Logger) *EventManager

func (*EventManager) AddProjectEventHandler

func (em *EventManager) AddProjectEventHandler(ctx context.Context, eventName string, handler ProjectEventHandler) error

func (*EventManager) AddServiceEventHandler

func (em *EventManager) AddServiceEventHandler(
	ctx context.Context,
	eventName string,
	handler ServiceEventHandler,
	options *ServiceEventOptions,
) error

func (*EventManager) Close

func (em *EventManager) Close() error

func (*EventManager) Ready

func (em *EventManager) Ready(ctx context.Context) error

Ready blocks until the message broker starts receiving messages or the context is cancelled. This ensures the stream is initialized and then waits for the broker to be ready. Returns nil when ready, or context error if the context is cancelled before ready.

func (*EventManager) Receive

func (em *EventManager) Receive(ctx context.Context) error

Receive starts the broker's message dispatcher and blocks until the stream completes. Returns nil on graceful shutdown, or an error if the stream fails. This method is safe for concurrent access but only allows one active Run() at a time. Receive starts the broker's message dispatcher and blocks until the stream completes. This method ensures the stream is initialized then runs the broker.

func (*EventManager) RemoveProjectEventHandler

func (em *EventManager) RemoveProjectEventHandler(eventName string)

func (*EventManager) RemoveServiceEventHandler

func (em *EventManager) RemoveServiceEventHandler(eventName string)

type EventMessage

type EventMessage struct {

	// Types that are valid to be assigned to MessageType:
	//
	//	*EventMessage_SubscribeProjectEvent
	//	*EventMessage_InvokeProjectHandler
	//	*EventMessage_ProjectHandlerStatus
	//	*EventMessage_SubscribeServiceEvent
	//	*EventMessage_InvokeServiceHandler
	//	*EventMessage_ServiceHandlerStatus
	MessageType isEventMessage_MessageType `protobuf_oneof:"message_type"`
	// contains filtered or unexported fields
}

Represents different types of messages sent over the stream

func (*EventMessage) Descriptor deprecated

func (*EventMessage) Descriptor() ([]byte, []int)

Deprecated: Use EventMessage.ProtoReflect.Descriptor instead.

func (*EventMessage) GetInvokeProjectHandler

func (x *EventMessage) GetInvokeProjectHandler() *InvokeProjectHandler

func (*EventMessage) GetInvokeServiceHandler

func (x *EventMessage) GetInvokeServiceHandler() *InvokeServiceHandler

func (*EventMessage) GetMessageType

func (x *EventMessage) GetMessageType() isEventMessage_MessageType

func (*EventMessage) GetProjectHandlerStatus

func (x *EventMessage) GetProjectHandlerStatus() *ProjectHandlerStatus

func (*EventMessage) GetServiceHandlerStatus

func (x *EventMessage) GetServiceHandlerStatus() *ServiceHandlerStatus

func (*EventMessage) GetSubscribeProjectEvent

func (x *EventMessage) GetSubscribeProjectEvent() *SubscribeProjectEvent

func (*EventMessage) GetSubscribeServiceEvent

func (x *EventMessage) GetSubscribeServiceEvent() *SubscribeServiceEvent

func (*EventMessage) ProtoMessage

func (*EventMessage) ProtoMessage()

func (*EventMessage) ProtoReflect

func (x *EventMessage) ProtoReflect() protoreflect.Message

func (*EventMessage) Reset

func (x *EventMessage) Reset()

func (*EventMessage) String

func (x *EventMessage) String() string

type EventMessageEnvelope

type EventMessageEnvelope struct{}

EventMessageEnvelope provides message operations for EventMessage It implements the grpcbroker.MessageEnvelope interface This envelope extracts extension ID from gRPC context for correlation.

func NewEventMessageEnvelope

func NewEventMessageEnvelope() *EventMessageEnvelope

NewEventMessageEnvelope creates a new EventMessageEnvelope instance.

func (*EventMessageEnvelope) CreateProgressMessage

func (ops *EventMessageEnvelope) CreateProgressMessage(requestId string, message string) *EventMessage

CreateProgressMessage returns nil as EventMessage doesn't support progress messages

func (*EventMessageEnvelope) GetError

func (ops *EventMessageEnvelope) GetError(msg *EventMessage) error

GetError returns nil as EventMessage doesn't have an Error field. Error handling is done through status strings in handler status messages.

func (*EventMessageEnvelope) GetInnerMessage

func (ops *EventMessageEnvelope) GetInnerMessage(msg *EventMessage) any

GetInnerMessage returns the inner message from the oneof field

func (*EventMessageEnvelope) GetProgressMessage

func (ops *EventMessageEnvelope) GetProgressMessage(msg *EventMessage) string

GetProgressMessage returns empty string as EventMessage doesn't support progress messages

func (*EventMessageEnvelope) GetRequestId

func (ops *EventMessageEnvelope) GetRequestId(ctx context.Context, msg *EventMessage) string

GetRequestId generates a correlation key from the message content and context. For EventMessage, the correlation key is generated from extension.Id (from context) + eventName + serviceName.

func (*EventMessageEnvelope) IsProgressMessage

func (ops *EventMessageEnvelope) IsProgressMessage(msg *EventMessage) bool

IsProgressMessage returns false as EventMessage doesn't support progress messages

func (*EventMessageEnvelope) SetError

func (ops *EventMessageEnvelope) SetError(msg *EventMessage, err error)

SetError is a no-op for EventMessage as it doesn't have an Error field.

func (*EventMessageEnvelope) SetRequestId

func (ops *EventMessageEnvelope) SetRequestId(ctx context.Context, msg *EventMessage, id string)

SetRequestId is a no-op for EventMessage as it doesn't have a RequestId field. Correlation is managed through message content (event names).

type EventMessage_InvokeProjectHandler

type EventMessage_InvokeProjectHandler struct {
	InvokeProjectHandler *InvokeProjectHandler `protobuf:"bytes,2,opt,name=invoke_project_handler,json=invokeProjectHandler,proto3,oneof"`
}

type EventMessage_InvokeServiceHandler

type EventMessage_InvokeServiceHandler struct {
	InvokeServiceHandler *InvokeServiceHandler `protobuf:"bytes,5,opt,name=invoke_service_handler,json=invokeServiceHandler,proto3,oneof"`
}

type EventMessage_ProjectHandlerStatus

type EventMessage_ProjectHandlerStatus struct {
	ProjectHandlerStatus *ProjectHandlerStatus `protobuf:"bytes,3,opt,name=project_handler_status,json=projectHandlerStatus,proto3,oneof"`
}

type EventMessage_ServiceHandlerStatus

type EventMessage_ServiceHandlerStatus struct {
	ServiceHandlerStatus *ServiceHandlerStatus `protobuf:"bytes,6,opt,name=service_handler_status,json=serviceHandlerStatus,proto3,oneof"`
}

type EventMessage_SubscribeProjectEvent

type EventMessage_SubscribeProjectEvent struct {
	SubscribeProjectEvent *SubscribeProjectEvent `protobuf:"bytes,1,opt,name=subscribe_project_event,json=subscribeProjectEvent,proto3,oneof"`
}

type EventMessage_SubscribeServiceEvent

type EventMessage_SubscribeServiceEvent struct {
	SubscribeServiceEvent *SubscribeServiceEvent `protobuf:"bytes,4,opt,name=subscribe_service_event,json=subscribeServiceEvent,proto3,oneof"`
}

type EventServiceClient

type EventServiceClient interface {
	// Bidirectional stream for event subscription, invocation, and status updates.
	EventStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[EventMessage, EventMessage], error)
}

EventServiceClient is the client API for EventService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

EventService defines methods for event subscription, invocation, and status updates. Clients can subscribe to events and receive notifications via a bidirectional stream.

type EventServiceServer

type EventServiceServer interface {
	// Bidirectional stream for event subscription, invocation, and status updates.
	EventStream(grpc.BidiStreamingServer[EventMessage, EventMessage]) error
	// contains filtered or unexported methods
}

EventServiceServer is the server API for EventService service. All implementations must embed UnimplementedEventServiceServer for forward compatibility.

EventService defines methods for event subscription, invocation, and status updates. Clients can subscribe to events and receive notifications via a bidirectional stream.

type EventService_EventStreamClient

type EventService_EventStreamClient = grpc.BidiStreamingClient[EventMessage, EventMessage]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type EventService_EventStreamServer

type EventService_EventStreamServer = grpc.BidiStreamingServer[EventMessage, EventMessage]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type ExtensionCommandOptions

type ExtensionCommandOptions struct {
	// Name is the extension name (used in command Use field)
	Name string
	// Version is the extension version
	Version string
	// Use overrides the default Use string (defaults to Name)
	Use string
	// Short is a short description
	Short string
	// Long is a long description
	Long string
}

ExtensionCommandOptions configures the extension root command.

type ExtensionContext

type ExtensionContext struct {
	Debug        bool
	NoPrompt     bool
	Cwd          string
	Environment  string
	OutputFormat string
	// contains filtered or unexported fields
}

ExtensionContext holds parsed global state available to extension commands.

func NewExtensionRootCommand

func NewExtensionRootCommand(opts ExtensionCommandOptions) (*cobra.Command, *ExtensionContext)

NewExtensionRootCommand creates a root cobra.Command pre-configured for azd extensions. It automatically:

  • Registers azd's global flags (--debug, --no-prompt, --cwd, -e/--environment, --output)
  • Reads AZD_* environment variables set by the azd framework
  • Sets up OpenTelemetry trace context from TRACEPARENT/TRACESTATE env vars
  • Calls WithAccessToken() on the command context

The returned command has PersistentPreRunE configured to set up the ExtensionContext.

func (*ExtensionContext) Context

func (ec *ExtensionContext) Context() context.Context

Context returns the prepared context with tracing and access token metadata.

type ExtensionError

type ExtensionError struct {
	Message    string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`                        // Human-readable error message
	Origin     ErrorOrigin `protobuf:"varint,4,opt,name=origin,proto3,enum=azdext.ErrorOrigin" json:"origin,omitempty"` // Where the error originated from
	Suggestion string      `protobuf:"bytes,5,opt,name=suggestion,proto3" json:"suggestion,omitempty"`                  // Optional user-facing suggestion for resolving the error
	// Source-specific structured details. Only one should be set based on origin.
	//
	// Types that are valid to be assigned to Source:
	//
	//	*ExtensionError_ServiceError
	//	*ExtensionError_LocalError
	Source isExtensionError_Source `protobuf_oneof:"source"`
	// contains filtered or unexported fields
}

ExtensionError is a unified error message that can represent errors from different sources. It provides structured error information for telemetry and error handling.

func WrapError

func WrapError(err error) *ExtensionError

WrapError converts a Go error into an ExtensionError proto for transmission to the azd host. It is called from extension processes (via ReportError and envelope SetError methods) to serialize errors before sending them over gRPC.

The function applies detection in priority order:

  1. ServiceError / LocalError — already structured by extension code (highest specificity)
  2. azcore.ResponseError — Azure SDK HTTP errors
  3. gRPC Unauthenticated — auto-classified as auth category (safety net)
  4. Fallback — unclassified error with original message

The counterpart UnwrapError is called from the azd host to deserialize the proto back into typed Go errors for telemetry classification.

func (*ExtensionError) Descriptor deprecated

func (*ExtensionError) Descriptor() ([]byte, []int)

Deprecated: Use ExtensionError.ProtoReflect.Descriptor instead.

func (*ExtensionError) GetLocalError

func (x *ExtensionError) GetLocalError() *LocalErrorDetail

func (*ExtensionError) GetMessage

func (x *ExtensionError) GetMessage() string

func (*ExtensionError) GetOrigin

func (x *ExtensionError) GetOrigin() ErrorOrigin

func (*ExtensionError) GetServiceError

func (x *ExtensionError) GetServiceError() *ServiceErrorDetail

func (*ExtensionError) GetSource

func (x *ExtensionError) GetSource() isExtensionError_Source

func (*ExtensionError) GetSuggestion

func (x *ExtensionError) GetSuggestion() string

func (*ExtensionError) ProtoMessage

func (*ExtensionError) ProtoMessage()

func (*ExtensionError) ProtoReflect

func (x *ExtensionError) ProtoReflect() protoreflect.Message

func (*ExtensionError) Reset

func (x *ExtensionError) Reset()

func (*ExtensionError) String

func (x *ExtensionError) String() string

type ExtensionError_LocalError

type ExtensionError_LocalError struct {
	LocalError *LocalErrorDetail `protobuf:"bytes,11,opt,name=local_error,json=localError,proto3,oneof"` // ToolErrorDetail tool_error = 12;
}

type ExtensionError_ServiceError

type ExtensionError_ServiceError struct {
	ServiceError *ServiceErrorDetail `protobuf:"bytes,10,opt,name=service_error,json=serviceError,proto3,oneof"`
}

type ExtensionHost

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

ExtensionHost coordinates registering service targets, wiring event handlers, and signaling readiness.

func NewExtensionHost

func NewExtensionHost(client *AzdClient) *ExtensionHost

NewExtensionHost creates a new ExtensionHost for the supplied azd client.

func (*ExtensionHost) Client

func (er *ExtensionHost) Client() *AzdClient

Client returns the underlying AzdClient. This is useful when service target or framework service factories need the client, for example when called from a NewListenCommand configure callback:

azdext.NewListenCommand(func(host *azdext.ExtensionHost) {
    host.WithServiceTarget("appservice", func() azdext.ServiceTargetProvider {
        return NewAppServiceProvider(host.Client())
    })
})

func (*ExtensionHost) Run

func (er *ExtensionHost) Run(ctx context.Context) error

Run wires the configured service targets and event handlers, signals readiness, and blocks until shutdown.

func (*ExtensionHost) WithFrameworkService

func (er *ExtensionHost) WithFrameworkService(language string, factory FrameworkServiceFactory) *ExtensionHost

WithFrameworkService registers a framework service provider to be wired when Run is invoked.

func (*ExtensionHost) WithProjectEventHandler

func (er *ExtensionHost) WithProjectEventHandler(eventName string, handler ProjectEventHandler) *ExtensionHost

WithProjectEventHandler registers a project-level event handler to be wired when Run is invoked.

func (*ExtensionHost) WithServiceEventHandler

func (er *ExtensionHost) WithServiceEventHandler(
	eventName string,
	handler ServiceEventHandler,
	options *ServiceEventOptions,
) *ExtensionHost

WithServiceEventHandler registers a service-level event handler to be wired when Run is invoked.

func (*ExtensionHost) WithServiceTarget

func (er *ExtensionHost) WithServiceTarget(host string, factory ServiceTargetFactory) *ExtensionHost

WithServiceTarget registers a service target provider to be wired when Run is invoked.

type ExtensionServiceClient

type ExtensionServiceClient interface {
	// Signal that the extension is done registering all capabilities
	Ready(ctx context.Context, in *ReadyRequest, opts ...grpc.CallOption) (*ReadyResponse, error)
	// Report a structured error from the extension back to the host.
	// Called by the extension SDK before the process exits on failure.
	ReportError(ctx context.Context, in *ReportErrorRequest, opts ...grpc.CallOption) (*ReportErrorResponse, error)
}

ExtensionServiceClient is the client API for ExtensionService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Top-level service for extension registration and lifecycle

type ExtensionServiceServer

type ExtensionServiceServer interface {
	// Signal that the extension is done registering all capabilities
	Ready(context.Context, *ReadyRequest) (*ReadyResponse, error)
	// Report a structured error from the extension back to the host.
	// Called by the extension SDK before the process exits on failure.
	ReportError(context.Context, *ReportErrorRequest) (*ReportErrorResponse, error)
	// contains filtered or unexported methods
}

ExtensionServiceServer is the server API for ExtensionService service. All implementations must embed UnimplementedExtensionServiceServer for forward compatibility.

Top-level service for extension registration and lifecycle

type ExternalTool

type ExternalTool struct {
	Name       string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	InstallUrl string `protobuf:"bytes,2,opt,name=install_url,json=installUrl,proto3" json:"install_url,omitempty"`
	// contains filtered or unexported fields
}

External tool definition

func (*ExternalTool) Descriptor deprecated

func (*ExternalTool) Descriptor() ([]byte, []int)

Deprecated: Use ExternalTool.ProtoReflect.Descriptor instead.

func (*ExternalTool) GetInstallUrl

func (x *ExternalTool) GetInstallUrl() string

func (*ExternalTool) GetName

func (x *ExternalTool) GetName() string

func (*ExternalTool) ProtoMessage

func (*ExternalTool) ProtoMessage()

func (*ExternalTool) ProtoReflect

func (x *ExternalTool) ProtoReflect() protoreflect.Message

func (*ExternalTool) Reset

func (x *ExternalTool) Reset()

func (*ExternalTool) String

func (x *ExternalTool) String() string

type FactoryKeyProvider

type FactoryKeyProvider func(*ServiceConfig) string

FactoryKeyProvider extracts the factory key from a ServiceConfig

type FrameworkPackageRequirements

type FrameworkPackageRequirements struct {
	RequireRestore bool `protobuf:"varint,1,opt,name=require_restore,json=requireRestore,proto3" json:"require_restore,omitempty"`
	RequireBuild   bool `protobuf:"varint,2,opt,name=require_build,json=requireBuild,proto3" json:"require_build,omitempty"`
	// contains filtered or unexported fields
}

func (*FrameworkPackageRequirements) Descriptor deprecated

func (*FrameworkPackageRequirements) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkPackageRequirements.ProtoReflect.Descriptor instead.

func (*FrameworkPackageRequirements) GetRequireBuild

func (x *FrameworkPackageRequirements) GetRequireBuild() bool

func (*FrameworkPackageRequirements) GetRequireRestore

func (x *FrameworkPackageRequirements) GetRequireRestore() bool

func (*FrameworkPackageRequirements) ProtoMessage

func (*FrameworkPackageRequirements) ProtoMessage()

func (*FrameworkPackageRequirements) ProtoReflect

func (*FrameworkPackageRequirements) Reset

func (x *FrameworkPackageRequirements) Reset()

func (*FrameworkPackageRequirements) String

type FrameworkRequirements

type FrameworkRequirements struct {
	Package *FrameworkPackageRequirements `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"`
	// contains filtered or unexported fields
}

Framework requirements definition

func (*FrameworkRequirements) Descriptor deprecated

func (*FrameworkRequirements) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkRequirements.ProtoReflect.Descriptor instead.

func (*FrameworkRequirements) GetPackage

func (*FrameworkRequirements) ProtoMessage

func (*FrameworkRequirements) ProtoMessage()

func (*FrameworkRequirements) ProtoReflect

func (x *FrameworkRequirements) ProtoReflect() protoreflect.Message

func (*FrameworkRequirements) Reset

func (x *FrameworkRequirements) Reset()

func (*FrameworkRequirements) String

func (x *FrameworkRequirements) String() string

type FrameworkServiceBuildRequest

type FrameworkServiceBuildRequest struct {
	ServiceConfig  *ServiceConfig  `protobuf:"bytes,1,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"`
	ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
	// contains filtered or unexported fields
}

Build request and response

func (*FrameworkServiceBuildRequest) Descriptor deprecated

func (*FrameworkServiceBuildRequest) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkServiceBuildRequest.ProtoReflect.Descriptor instead.

func (*FrameworkServiceBuildRequest) GetServiceConfig

func (x *FrameworkServiceBuildRequest) GetServiceConfig() *ServiceConfig

func (*FrameworkServiceBuildRequest) GetServiceContext

func (x *FrameworkServiceBuildRequest) GetServiceContext() *ServiceContext

func (*FrameworkServiceBuildRequest) ProtoMessage

func (*FrameworkServiceBuildRequest) ProtoMessage()

func (*FrameworkServiceBuildRequest) ProtoReflect

func (*FrameworkServiceBuildRequest) Reset

func (x *FrameworkServiceBuildRequest) Reset()

func (*FrameworkServiceBuildRequest) String

type FrameworkServiceBuildResponse

type FrameworkServiceBuildResponse struct {
	Result *ServiceBuildResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*FrameworkServiceBuildResponse) Descriptor deprecated

func (*FrameworkServiceBuildResponse) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkServiceBuildResponse.ProtoReflect.Descriptor instead.

func (*FrameworkServiceBuildResponse) GetResult

func (*FrameworkServiceBuildResponse) ProtoMessage

func (*FrameworkServiceBuildResponse) ProtoMessage()

func (*FrameworkServiceBuildResponse) ProtoReflect

func (*FrameworkServiceBuildResponse) Reset

func (x *FrameworkServiceBuildResponse) Reset()

func (*FrameworkServiceBuildResponse) String

type FrameworkServiceClient

type FrameworkServiceClient interface {
	// Bidirectional stream for framework service requests and responses
	Stream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[FrameworkServiceMessage, FrameworkServiceMessage], error)
}

FrameworkServiceClient is the client API for FrameworkService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type FrameworkServiceEnvelope

type FrameworkServiceEnvelope struct{}

FrameworkServiceEnvelope provides message operations for FrameworkServiceMessage It implements the grpcbroker.MessageEnvelope interface

func NewFrameworkServiceEnvelope

func NewFrameworkServiceEnvelope() *FrameworkServiceEnvelope

NewFrameworkServiceEnvelope creates a new FrameworkServiceEnvelope instance

func (*FrameworkServiceEnvelope) CreateProgressMessage

func (ops *FrameworkServiceEnvelope) CreateProgressMessage(requestId string, message string) *FrameworkServiceMessage

CreateProgressMessage creates a new progress message envelope with the given text. This is used by server-side handlers to send progress updates back to clients.

func (*FrameworkServiceEnvelope) GetError

GetError returns the error from the message as a Go error type. It returns a typed error based on the ErrorOrigin that preserves structured information for telemetry.

func (*FrameworkServiceEnvelope) GetInnerMessage

func (ops *FrameworkServiceEnvelope) GetInnerMessage(msg *FrameworkServiceMessage) any

GetInnerMessage returns the inner message from the oneof field

func (*FrameworkServiceEnvelope) GetProgressMessage

func (ops *FrameworkServiceEnvelope) GetProgressMessage(msg *FrameworkServiceMessage) string

GetProgressMessage extracts the progress message text from a progress message. Returns empty string if the message is not a progress message.

func (*FrameworkServiceEnvelope) GetRequestId

GetRequestId returns the request ID from the message

func (*FrameworkServiceEnvelope) IsProgressMessage

func (ops *FrameworkServiceEnvelope) IsProgressMessage(msg *FrameworkServiceMessage) bool

IsProgressMessage returns true if the message contains a progress message

func (*FrameworkServiceEnvelope) SetError

func (ops *FrameworkServiceEnvelope) SetError(msg *FrameworkServiceMessage, err error)

SetError sets an error on the message. It detects the error type and populates the appropriate source details.

func (*FrameworkServiceEnvelope) SetRequestId

func (ops *FrameworkServiceEnvelope) SetRequestId(ctx context.Context, msg *FrameworkServiceMessage, id string)

SetRequestId sets the request ID on the message

type FrameworkServiceFactory

type FrameworkServiceFactory ProviderFactory[FrameworkServiceProvider]

FrameworkServiceFactory describes a function that creates an instance of a framework service provider

type FrameworkServiceInitializeRequest

type FrameworkServiceInitializeRequest struct {
	ServiceConfig *ServiceConfig `protobuf:"bytes,1,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"`
	// contains filtered or unexported fields
}

Initialize request and response

func (*FrameworkServiceInitializeRequest) Descriptor deprecated

func (*FrameworkServiceInitializeRequest) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkServiceInitializeRequest.ProtoReflect.Descriptor instead.

func (*FrameworkServiceInitializeRequest) GetServiceConfig

func (x *FrameworkServiceInitializeRequest) GetServiceConfig() *ServiceConfig

func (*FrameworkServiceInitializeRequest) ProtoMessage

func (*FrameworkServiceInitializeRequest) ProtoMessage()

func (*FrameworkServiceInitializeRequest) ProtoReflect

func (*FrameworkServiceInitializeRequest) Reset

func (*FrameworkServiceInitializeRequest) String

type FrameworkServiceInitializeResponse

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

func (*FrameworkServiceInitializeResponse) Descriptor deprecated

func (*FrameworkServiceInitializeResponse) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkServiceInitializeResponse.ProtoReflect.Descriptor instead.

func (*FrameworkServiceInitializeResponse) ProtoMessage

func (*FrameworkServiceInitializeResponse) ProtoMessage()

func (*FrameworkServiceInitializeResponse) ProtoReflect

func (*FrameworkServiceInitializeResponse) Reset

func (*FrameworkServiceInitializeResponse) String

type FrameworkServiceManager

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

FrameworkServiceManager handles registration and request forwarding for a framework service provider.

func NewFrameworkServiceManager

func NewFrameworkServiceManager(extensionId string, client *AzdClient, brokerLogger *log.Logger) *FrameworkServiceManager

NewFrameworkServiceManager creates a new FrameworkServiceManager for an AzdClient.

func (*FrameworkServiceManager) Close

func (m *FrameworkServiceManager) Close() error

Close closes the framework service manager and cleans up resources. This method is thread-safe for concurrent access.

func (*FrameworkServiceManager) Ready

Ready blocks until the message broker starts receiving messages or the context is cancelled. This ensures the stream is initialized and then waits for the broker to be ready. Returns nil when ready, or context error if the context is cancelled before ready.

func (*FrameworkServiceManager) Receive

func (m *FrameworkServiceManager) Receive(ctx context.Context) error

Receive starts the broker's message dispatcher and blocks until the stream completes. This method ensures the stream is initialized then runs the broker.

func (*FrameworkServiceManager) Register

func (m *FrameworkServiceManager) Register(
	ctx context.Context,
	factory FrameworkServiceFactory,
	language string,
) error

Register registers a framework service provider with the specified language name.

type FrameworkServiceMessage

type FrameworkServiceMessage struct {
	RequestId string          `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Error     *ExtensionError `protobuf:"bytes,99,opt,name=error,proto3" json:"error,omitempty"`
	// Types that are valid to be assigned to MessageType:
	//
	//	*FrameworkServiceMessage_RegisterFrameworkServiceRequest
	//	*FrameworkServiceMessage_RegisterFrameworkServiceResponse
	//	*FrameworkServiceMessage_InitializeRequest
	//	*FrameworkServiceMessage_InitializeResponse
	//	*FrameworkServiceMessage_RequiredExternalToolsRequest
	//	*FrameworkServiceMessage_RequiredExternalToolsResponse
	//	*FrameworkServiceMessage_RequirementsRequest
	//	*FrameworkServiceMessage_RequirementsResponse
	//	*FrameworkServiceMessage_RestoreRequest
	//	*FrameworkServiceMessage_RestoreResponse
	//	*FrameworkServiceMessage_BuildRequest
	//	*FrameworkServiceMessage_BuildResponse
	//	*FrameworkServiceMessage_PackageRequest
	//	*FrameworkServiceMessage_PackageResponse
	//	*FrameworkServiceMessage_ProgressMessage
	MessageType isFrameworkServiceMessage_MessageType `protobuf_oneof:"message_type"`
	// contains filtered or unexported fields
}

Envelope for all possible framework service messages (requests and responses)

func (*FrameworkServiceMessage) Descriptor deprecated

func (*FrameworkServiceMessage) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkServiceMessage.ProtoReflect.Descriptor instead.

func (*FrameworkServiceMessage) GetBuildRequest

func (*FrameworkServiceMessage) GetBuildResponse

func (*FrameworkServiceMessage) GetError

func (x *FrameworkServiceMessage) GetError() *ExtensionError

func (*FrameworkServiceMessage) GetInitializeRequest

func (*FrameworkServiceMessage) GetInitializeResponse

func (x *FrameworkServiceMessage) GetInitializeResponse() *FrameworkServiceInitializeResponse

func (*FrameworkServiceMessage) GetMessageType

func (x *FrameworkServiceMessage) GetMessageType() isFrameworkServiceMessage_MessageType

func (*FrameworkServiceMessage) GetPackageRequest

func (*FrameworkServiceMessage) GetPackageResponse

func (*FrameworkServiceMessage) GetProgressMessage

func (*FrameworkServiceMessage) GetRegisterFrameworkServiceRequest

func (x *FrameworkServiceMessage) GetRegisterFrameworkServiceRequest() *RegisterFrameworkServiceRequest

func (*FrameworkServiceMessage) GetRegisterFrameworkServiceResponse

func (x *FrameworkServiceMessage) GetRegisterFrameworkServiceResponse() *RegisterFrameworkServiceResponse

func (*FrameworkServiceMessage) GetRequestId

func (x *FrameworkServiceMessage) GetRequestId() string

func (*FrameworkServiceMessage) GetRequiredExternalToolsRequest

func (x *FrameworkServiceMessage) GetRequiredExternalToolsRequest() *FrameworkServiceRequiredExternalToolsRequest

func (*FrameworkServiceMessage) GetRequiredExternalToolsResponse

func (x *FrameworkServiceMessage) GetRequiredExternalToolsResponse() *FrameworkServiceRequiredExternalToolsResponse

func (*FrameworkServiceMessage) GetRequirementsRequest

func (x *FrameworkServiceMessage) GetRequirementsRequest() *FrameworkServiceRequirementsRequest

func (*FrameworkServiceMessage) GetRequirementsResponse

func (x *FrameworkServiceMessage) GetRequirementsResponse() *FrameworkServiceRequirementsResponse

func (*FrameworkServiceMessage) GetRestoreRequest

func (*FrameworkServiceMessage) GetRestoreResponse

func (*FrameworkServiceMessage) ProtoMessage

func (*FrameworkServiceMessage) ProtoMessage()

func (*FrameworkServiceMessage) ProtoReflect

func (x *FrameworkServiceMessage) ProtoReflect() protoreflect.Message

func (*FrameworkServiceMessage) Reset

func (x *FrameworkServiceMessage) Reset()

func (*FrameworkServiceMessage) String

func (x *FrameworkServiceMessage) String() string

type FrameworkServiceMessage_BuildRequest

type FrameworkServiceMessage_BuildRequest struct {
	BuildRequest *FrameworkServiceBuildRequest `protobuf:"bytes,12,opt,name=build_request,json=buildRequest,proto3,oneof"`
}

type FrameworkServiceMessage_BuildResponse

type FrameworkServiceMessage_BuildResponse struct {
	BuildResponse *FrameworkServiceBuildResponse `protobuf:"bytes,13,opt,name=build_response,json=buildResponse,proto3,oneof"`
}

type FrameworkServiceMessage_InitializeRequest

type FrameworkServiceMessage_InitializeRequest struct {
	InitializeRequest *FrameworkServiceInitializeRequest `protobuf:"bytes,4,opt,name=initialize_request,json=initializeRequest,proto3,oneof"`
}

type FrameworkServiceMessage_InitializeResponse

type FrameworkServiceMessage_InitializeResponse struct {
	InitializeResponse *FrameworkServiceInitializeResponse `protobuf:"bytes,5,opt,name=initialize_response,json=initializeResponse,proto3,oneof"`
}

type FrameworkServiceMessage_PackageRequest

type FrameworkServiceMessage_PackageRequest struct {
	PackageRequest *FrameworkServicePackageRequest `protobuf:"bytes,14,opt,name=package_request,json=packageRequest,proto3,oneof"`
}

type FrameworkServiceMessage_PackageResponse

type FrameworkServiceMessage_PackageResponse struct {
	PackageResponse *FrameworkServicePackageResponse `protobuf:"bytes,15,opt,name=package_response,json=packageResponse,proto3,oneof"`
}

type FrameworkServiceMessage_ProgressMessage

type FrameworkServiceMessage_ProgressMessage struct {
	ProgressMessage *FrameworkServiceProgressMessage `protobuf:"bytes,16,opt,name=progress_message,json=progressMessage,proto3,oneof"`
}

type FrameworkServiceMessage_RegisterFrameworkServiceRequest

type FrameworkServiceMessage_RegisterFrameworkServiceRequest struct {
	RegisterFrameworkServiceRequest *RegisterFrameworkServiceRequest `protobuf:"bytes,2,opt,name=register_framework_service_request,json=registerFrameworkServiceRequest,proto3,oneof"`
}

type FrameworkServiceMessage_RegisterFrameworkServiceResponse

type FrameworkServiceMessage_RegisterFrameworkServiceResponse struct {
	RegisterFrameworkServiceResponse *RegisterFrameworkServiceResponse `protobuf:"bytes,3,opt,name=register_framework_service_response,json=registerFrameworkServiceResponse,proto3,oneof"`
}

type FrameworkServiceMessage_RequiredExternalToolsRequest

type FrameworkServiceMessage_RequiredExternalToolsRequest struct {
	RequiredExternalToolsRequest *FrameworkServiceRequiredExternalToolsRequest `protobuf:"bytes,6,opt,name=required_external_tools_request,json=requiredExternalToolsRequest,proto3,oneof"`
}

type FrameworkServiceMessage_RequiredExternalToolsResponse

type FrameworkServiceMessage_RequiredExternalToolsResponse struct {
	RequiredExternalToolsResponse *FrameworkServiceRequiredExternalToolsResponse `protobuf:"bytes,7,opt,name=required_external_tools_response,json=requiredExternalToolsResponse,proto3,oneof"`
}

type FrameworkServiceMessage_RequirementsRequest

type FrameworkServiceMessage_RequirementsRequest struct {
	RequirementsRequest *FrameworkServiceRequirementsRequest `protobuf:"bytes,8,opt,name=requirements_request,json=requirementsRequest,proto3,oneof"`
}

type FrameworkServiceMessage_RequirementsResponse

type FrameworkServiceMessage_RequirementsResponse struct {
	RequirementsResponse *FrameworkServiceRequirementsResponse `protobuf:"bytes,9,opt,name=requirements_response,json=requirementsResponse,proto3,oneof"`
}

type FrameworkServiceMessage_RestoreRequest

type FrameworkServiceMessage_RestoreRequest struct {
	RestoreRequest *FrameworkServiceRestoreRequest `protobuf:"bytes,10,opt,name=restore_request,json=restoreRequest,proto3,oneof"`
}

type FrameworkServiceMessage_RestoreResponse

type FrameworkServiceMessage_RestoreResponse struct {
	RestoreResponse *FrameworkServiceRestoreResponse `protobuf:"bytes,11,opt,name=restore_response,json=restoreResponse,proto3,oneof"`
}

type FrameworkServicePackageRequest

type FrameworkServicePackageRequest struct {
	ServiceConfig  *ServiceConfig  `protobuf:"bytes,1,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"`
	ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
	// contains filtered or unexported fields
}

Package request and response

func (*FrameworkServicePackageRequest) Descriptor deprecated

func (*FrameworkServicePackageRequest) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkServicePackageRequest.ProtoReflect.Descriptor instead.

func (*FrameworkServicePackageRequest) GetServiceConfig

func (x *FrameworkServicePackageRequest) GetServiceConfig() *ServiceConfig

func (*FrameworkServicePackageRequest) GetServiceContext

func (x *FrameworkServicePackageRequest) GetServiceContext() *ServiceContext

func (*FrameworkServicePackageRequest) ProtoMessage

func (*FrameworkServicePackageRequest) ProtoMessage()

func (*FrameworkServicePackageRequest) ProtoReflect

func (*FrameworkServicePackageRequest) Reset

func (x *FrameworkServicePackageRequest) Reset()

func (*FrameworkServicePackageRequest) String

type FrameworkServicePackageResponse

type FrameworkServicePackageResponse struct {
	PackageResult *ServicePackageResult `protobuf:"bytes,1,opt,name=package_result,json=packageResult,proto3" json:"package_result,omitempty"`
	// contains filtered or unexported fields
}

func (*FrameworkServicePackageResponse) Descriptor deprecated

func (*FrameworkServicePackageResponse) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkServicePackageResponse.ProtoReflect.Descriptor instead.

func (*FrameworkServicePackageResponse) GetPackageResult

func (*FrameworkServicePackageResponse) ProtoMessage

func (*FrameworkServicePackageResponse) ProtoMessage()

func (*FrameworkServicePackageResponse) ProtoReflect

func (*FrameworkServicePackageResponse) Reset

func (*FrameworkServicePackageResponse) String

type FrameworkServiceProgressMessage

type FrameworkServiceProgressMessage struct {
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Message   string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Timestamp int64  `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Unix timestamp in milliseconds
	// contains filtered or unexported fields
}

Progress message for framework service operations

func (*FrameworkServiceProgressMessage) Descriptor deprecated

func (*FrameworkServiceProgressMessage) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkServiceProgressMessage.ProtoReflect.Descriptor instead.

func (*FrameworkServiceProgressMessage) GetMessage

func (x *FrameworkServiceProgressMessage) GetMessage() string

func (*FrameworkServiceProgressMessage) GetRequestId

func (x *FrameworkServiceProgressMessage) GetRequestId() string

func (*FrameworkServiceProgressMessage) GetTimestamp

func (x *FrameworkServiceProgressMessage) GetTimestamp() int64

func (*FrameworkServiceProgressMessage) ProtoMessage

func (*FrameworkServiceProgressMessage) ProtoMessage()

func (*FrameworkServiceProgressMessage) ProtoReflect

func (*FrameworkServiceProgressMessage) Reset

func (*FrameworkServiceProgressMessage) String

type FrameworkServiceProvider

type FrameworkServiceProvider interface {
	Initialize(ctx context.Context, serviceConfig *ServiceConfig) error
	RequiredExternalTools(ctx context.Context, serviceConfig *ServiceConfig) ([]*ExternalTool, error)
	Requirements() (*FrameworkRequirements, error)
	Restore(
		ctx context.Context,
		serviceConfig *ServiceConfig,
		serviceContext *ServiceContext,
		progress grpcbroker.ProgressFunc,
	) (*ServiceRestoreResult, error)
	Build(
		ctx context.Context,
		serviceConfig *ServiceConfig,
		serviceContext *ServiceContext,
		progress grpcbroker.ProgressFunc,
	) (*ServiceBuildResult, error)
	Package(
		ctx context.Context,
		serviceConfig *ServiceConfig,
		serviceContext *ServiceContext,
		progress grpcbroker.ProgressFunc,
	) (*ServicePackageResult, error)
}

FrameworkServiceProvider defines the interface for framework service logic.

type FrameworkServiceRegistration

type FrameworkServiceRegistration struct {
	Language string
	Factory  func() FrameworkServiceProvider
}

FrameworkServiceRegistration describes a framework service provider to register with azd core.

type FrameworkServiceRequiredExternalToolsRequest

type FrameworkServiceRequiredExternalToolsRequest struct {
	ServiceConfig *ServiceConfig `protobuf:"bytes,1,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"`
	// contains filtered or unexported fields
}

Required external tools request and response

func (*FrameworkServiceRequiredExternalToolsRequest) Descriptor deprecated

Deprecated: Use FrameworkServiceRequiredExternalToolsRequest.ProtoReflect.Descriptor instead.

func (*FrameworkServiceRequiredExternalToolsRequest) GetServiceConfig

func (*FrameworkServiceRequiredExternalToolsRequest) ProtoMessage

func (*FrameworkServiceRequiredExternalToolsRequest) ProtoReflect

func (*FrameworkServiceRequiredExternalToolsRequest) Reset

func (*FrameworkServiceRequiredExternalToolsRequest) String

type FrameworkServiceRequiredExternalToolsResponse

type FrameworkServiceRequiredExternalToolsResponse struct {
	Tools []*ExternalTool `protobuf:"bytes,1,rep,name=tools,proto3" json:"tools,omitempty"`
	// contains filtered or unexported fields
}

func (*FrameworkServiceRequiredExternalToolsResponse) Descriptor deprecated

Deprecated: Use FrameworkServiceRequiredExternalToolsResponse.ProtoReflect.Descriptor instead.

func (*FrameworkServiceRequiredExternalToolsResponse) GetTools

func (*FrameworkServiceRequiredExternalToolsResponse) ProtoMessage

func (*FrameworkServiceRequiredExternalToolsResponse) ProtoReflect

func (*FrameworkServiceRequiredExternalToolsResponse) Reset

func (*FrameworkServiceRequiredExternalToolsResponse) String

type FrameworkServiceRequirementsRequest

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

Requirements request and response

func (*FrameworkServiceRequirementsRequest) Descriptor deprecated

func (*FrameworkServiceRequirementsRequest) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkServiceRequirementsRequest.ProtoReflect.Descriptor instead.

func (*FrameworkServiceRequirementsRequest) ProtoMessage

func (*FrameworkServiceRequirementsRequest) ProtoMessage()

func (*FrameworkServiceRequirementsRequest) ProtoReflect

func (*FrameworkServiceRequirementsRequest) Reset

func (*FrameworkServiceRequirementsRequest) String

type FrameworkServiceRequirementsResponse

type FrameworkServiceRequirementsResponse struct {
	Requirements *FrameworkRequirements `protobuf:"bytes,1,opt,name=requirements,proto3" json:"requirements,omitempty"`
	// contains filtered or unexported fields
}

func (*FrameworkServiceRequirementsResponse) Descriptor deprecated

func (*FrameworkServiceRequirementsResponse) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkServiceRequirementsResponse.ProtoReflect.Descriptor instead.

func (*FrameworkServiceRequirementsResponse) GetRequirements

func (*FrameworkServiceRequirementsResponse) ProtoMessage

func (*FrameworkServiceRequirementsResponse) ProtoMessage()

func (*FrameworkServiceRequirementsResponse) ProtoReflect

func (*FrameworkServiceRequirementsResponse) Reset

func (*FrameworkServiceRequirementsResponse) String

type FrameworkServiceRestoreRequest

type FrameworkServiceRestoreRequest struct {
	ServiceConfig  *ServiceConfig  `protobuf:"bytes,1,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"`
	ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
	// contains filtered or unexported fields
}

Restore request and response

func (*FrameworkServiceRestoreRequest) Descriptor deprecated

func (*FrameworkServiceRestoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkServiceRestoreRequest.ProtoReflect.Descriptor instead.

func (*FrameworkServiceRestoreRequest) GetServiceConfig

func (x *FrameworkServiceRestoreRequest) GetServiceConfig() *ServiceConfig

func (*FrameworkServiceRestoreRequest) GetServiceContext

func (x *FrameworkServiceRestoreRequest) GetServiceContext() *ServiceContext

func (*FrameworkServiceRestoreRequest) ProtoMessage

func (*FrameworkServiceRestoreRequest) ProtoMessage()

func (*FrameworkServiceRestoreRequest) ProtoReflect

func (*FrameworkServiceRestoreRequest) Reset

func (x *FrameworkServiceRestoreRequest) Reset()

func (*FrameworkServiceRestoreRequest) String

type FrameworkServiceRestoreResponse

type FrameworkServiceRestoreResponse struct {
	RestoreResult *ServiceRestoreResult `protobuf:"bytes,1,opt,name=restore_result,json=restoreResult,proto3" json:"restore_result,omitempty"`
	// contains filtered or unexported fields
}

func (*FrameworkServiceRestoreResponse) Descriptor deprecated

func (*FrameworkServiceRestoreResponse) Descriptor() ([]byte, []int)

Deprecated: Use FrameworkServiceRestoreResponse.ProtoReflect.Descriptor instead.

func (*FrameworkServiceRestoreResponse) GetRestoreResult

func (*FrameworkServiceRestoreResponse) ProtoMessage

func (*FrameworkServiceRestoreResponse) ProtoMessage()

func (*FrameworkServiceRestoreResponse) ProtoReflect

func (*FrameworkServiceRestoreResponse) Reset

func (*FrameworkServiceRestoreResponse) String

type FrameworkServiceServer

type FrameworkServiceServer interface {
	// Bidirectional stream for framework service requests and responses
	Stream(grpc.BidiStreamingServer[FrameworkServiceMessage, FrameworkServiceMessage]) error
	// contains filtered or unexported methods
}

FrameworkServiceServer is the server API for FrameworkService service. All implementations must embed UnimplementedFrameworkServiceServer for forward compatibility.

type FrameworkService_StreamClient

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type FrameworkService_StreamServer

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type GetConfigRequest

type GetConfigRequest struct {
	Path    string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	EnvName string `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"` // Optional: Name of the environment. If empty, uses default.
	// contains filtered or unexported fields
}

Request message for Get

func (*GetConfigRequest) Descriptor deprecated

func (*GetConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetConfigRequest.ProtoReflect.Descriptor instead.

func (*GetConfigRequest) GetEnvName

func (x *GetConfigRequest) GetEnvName() string

func (*GetConfigRequest) GetPath

func (x *GetConfigRequest) GetPath() string

func (*GetConfigRequest) ProtoMessage

func (*GetConfigRequest) ProtoMessage()

func (*GetConfigRequest) ProtoReflect

func (x *GetConfigRequest) ProtoReflect() protoreflect.Message

func (*GetConfigRequest) Reset

func (x *GetConfigRequest) Reset()

func (*GetConfigRequest) String

func (x *GetConfigRequest) String() string

type GetConfigResponse

type GetConfigResponse struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Found bool   `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

Response message for Get

func (*GetConfigResponse) Descriptor deprecated

func (*GetConfigResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetConfigResponse.ProtoReflect.Descriptor instead.

func (*GetConfigResponse) GetFound

func (x *GetConfigResponse) GetFound() bool

func (*GetConfigResponse) GetValue

func (x *GetConfigResponse) GetValue() []byte

func (*GetConfigResponse) ProtoMessage

func (*GetConfigResponse) ProtoMessage()

func (*GetConfigResponse) ProtoReflect

func (x *GetConfigResponse) ProtoReflect() protoreflect.Message

func (*GetConfigResponse) Reset

func (x *GetConfigResponse) Reset()

func (*GetConfigResponse) String

func (x *GetConfigResponse) String() string

type GetConfigSectionRequest

type GetConfigSectionRequest struct {
	Path    string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	EnvName string `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"` // Optional: Name of the environment. If empty, uses default.
	// contains filtered or unexported fields
}

Request message for GetSection

func (*GetConfigSectionRequest) Descriptor deprecated

func (*GetConfigSectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetConfigSectionRequest.ProtoReflect.Descriptor instead.

func (*GetConfigSectionRequest) GetEnvName

func (x *GetConfigSectionRequest) GetEnvName() string

func (*GetConfigSectionRequest) GetPath

func (x *GetConfigSectionRequest) GetPath() string

func (*GetConfigSectionRequest) ProtoMessage

func (*GetConfigSectionRequest) ProtoMessage()

func (*GetConfigSectionRequest) ProtoReflect

func (x *GetConfigSectionRequest) ProtoReflect() protoreflect.Message

func (*GetConfigSectionRequest) Reset

func (x *GetConfigSectionRequest) Reset()

func (*GetConfigSectionRequest) String

func (x *GetConfigSectionRequest) String() string

type GetConfigSectionResponse

type GetConfigSectionResponse struct {
	Section []byte `protobuf:"bytes,1,opt,name=section,proto3" json:"section,omitempty"`
	Found   bool   `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

Response message for GetSection

func (*GetConfigSectionResponse) Descriptor deprecated

func (*GetConfigSectionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetConfigSectionResponse.ProtoReflect.Descriptor instead.

func (*GetConfigSectionResponse) GetFound

func (x *GetConfigSectionResponse) GetFound() bool

func (*GetConfigSectionResponse) GetSection

func (x *GetConfigSectionResponse) GetSection() []byte

func (*GetConfigSectionResponse) ProtoMessage

func (*GetConfigSectionResponse) ProtoMessage()

func (*GetConfigSectionResponse) ProtoReflect

func (x *GetConfigSectionResponse) ProtoReflect() protoreflect.Message

func (*GetConfigSectionResponse) Reset

func (x *GetConfigSectionResponse) Reset()

func (*GetConfigSectionResponse) String

func (x *GetConfigSectionResponse) String() string

type GetConfigStringRequest

type GetConfigStringRequest struct {
	Path    string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	EnvName string `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"` // Optional: Name of the environment. If empty, uses default.
	// contains filtered or unexported fields
}

Request message for GetString

func (*GetConfigStringRequest) Descriptor deprecated

func (*GetConfigStringRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetConfigStringRequest.ProtoReflect.Descriptor instead.

func (*GetConfigStringRequest) GetEnvName

func (x *GetConfigStringRequest) GetEnvName() string

func (*GetConfigStringRequest) GetPath

func (x *GetConfigStringRequest) GetPath() string

func (*GetConfigStringRequest) ProtoMessage

func (*GetConfigStringRequest) ProtoMessage()

func (*GetConfigStringRequest) ProtoReflect

func (x *GetConfigStringRequest) ProtoReflect() protoreflect.Message

func (*GetConfigStringRequest) Reset

func (x *GetConfigStringRequest) Reset()

func (*GetConfigStringRequest) String

func (x *GetConfigStringRequest) String() string

type GetConfigStringResponse

type GetConfigStringResponse struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Found bool   `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

Response message for GetString

func (*GetConfigStringResponse) Descriptor deprecated

func (*GetConfigStringResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetConfigStringResponse.ProtoReflect.Descriptor instead.

func (*GetConfigStringResponse) GetFound

func (x *GetConfigStringResponse) GetFound() bool

func (*GetConfigStringResponse) GetValue

func (x *GetConfigStringResponse) GetValue() string

func (*GetConfigStringResponse) ProtoMessage

func (*GetConfigStringResponse) ProtoMessage()

func (*GetConfigStringResponse) ProtoReflect

func (x *GetConfigStringResponse) ProtoReflect() protoreflect.Message

func (*GetConfigStringResponse) Reset

func (x *GetConfigStringResponse) Reset()

func (*GetConfigStringResponse) String

func (x *GetConfigStringResponse) String() string

type GetCopilotFileChangesRequest

type GetCopilotFileChangesRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Session to get file changes for.
	// contains filtered or unexported fields
}

GetCopilotFileChangesRequest requests cached file changes for a session.

func (*GetCopilotFileChangesRequest) Descriptor deprecated

func (*GetCopilotFileChangesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCopilotFileChangesRequest.ProtoReflect.Descriptor instead.

func (*GetCopilotFileChangesRequest) GetSessionId

func (x *GetCopilotFileChangesRequest) GetSessionId() string

func (*GetCopilotFileChangesRequest) ProtoMessage

func (*GetCopilotFileChangesRequest) ProtoMessage()

func (*GetCopilotFileChangesRequest) ProtoReflect

func (*GetCopilotFileChangesRequest) Reset

func (x *GetCopilotFileChangesRequest) Reset()

func (*GetCopilotFileChangesRequest) String

type GetCopilotFileChangesResponse

type GetCopilotFileChangesResponse struct {
	FileChanges []*CopilotFileChange `protobuf:"bytes,1,rep,name=file_changes,json=fileChanges,proto3" json:"file_changes,omitempty"` // Files changed during the session.
	// contains filtered or unexported fields
}

GetCopilotFileChangesResponse contains file changes tracked during the session.

func (*GetCopilotFileChangesResponse) Descriptor deprecated

func (*GetCopilotFileChangesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCopilotFileChangesResponse.ProtoReflect.Descriptor instead.

func (*GetCopilotFileChangesResponse) GetFileChanges

func (x *GetCopilotFileChangesResponse) GetFileChanges() []*CopilotFileChange

func (*GetCopilotFileChangesResponse) ProtoMessage

func (*GetCopilotFileChangesResponse) ProtoMessage()

func (*GetCopilotFileChangesResponse) ProtoReflect

func (*GetCopilotFileChangesResponse) Reset

func (x *GetCopilotFileChangesResponse) Reset()

func (*GetCopilotFileChangesResponse) String

type GetCopilotMessagesRequest

type GetCopilotMessagesRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Session to get messages for.
	// contains filtered or unexported fields
}

GetCopilotMessagesRequest requests the session event log.

func (*GetCopilotMessagesRequest) Descriptor deprecated

func (*GetCopilotMessagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCopilotMessagesRequest.ProtoReflect.Descriptor instead.

func (*GetCopilotMessagesRequest) GetSessionId

func (x *GetCopilotMessagesRequest) GetSessionId() string

func (*GetCopilotMessagesRequest) ProtoMessage

func (*GetCopilotMessagesRequest) ProtoMessage()

func (*GetCopilotMessagesRequest) ProtoReflect

func (*GetCopilotMessagesRequest) Reset

func (x *GetCopilotMessagesRequest) Reset()

func (*GetCopilotMessagesRequest) String

func (x *GetCopilotMessagesRequest) String() string

type GetCopilotMessagesResponse

type GetCopilotMessagesResponse struct {
	Events []*CopilotSessionEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` // Session events in chronological order.
	// contains filtered or unexported fields
}

GetCopilotMessagesResponse contains the session event log.

func (*GetCopilotMessagesResponse) Descriptor deprecated

func (*GetCopilotMessagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCopilotMessagesResponse.ProtoReflect.Descriptor instead.

func (*GetCopilotMessagesResponse) GetEvents

func (*GetCopilotMessagesResponse) ProtoMessage

func (*GetCopilotMessagesResponse) ProtoMessage()

func (*GetCopilotMessagesResponse) ProtoReflect

func (*GetCopilotMessagesResponse) Reset

func (x *GetCopilotMessagesResponse) Reset()

func (*GetCopilotMessagesResponse) String

func (x *GetCopilotMessagesResponse) String() string

type GetCopilotUsageMetricsRequest

type GetCopilotUsageMetricsRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Session to get metrics for.
	// contains filtered or unexported fields
}

GetCopilotUsageMetricsRequest requests cached usage metrics for a session.

func (*GetCopilotUsageMetricsRequest) Descriptor deprecated

func (*GetCopilotUsageMetricsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetCopilotUsageMetricsRequest.ProtoReflect.Descriptor instead.

func (*GetCopilotUsageMetricsRequest) GetSessionId

func (x *GetCopilotUsageMetricsRequest) GetSessionId() string

func (*GetCopilotUsageMetricsRequest) ProtoMessage

func (*GetCopilotUsageMetricsRequest) ProtoMessage()

func (*GetCopilotUsageMetricsRequest) ProtoReflect

func (*GetCopilotUsageMetricsRequest) Reset

func (x *GetCopilotUsageMetricsRequest) Reset()

func (*GetCopilotUsageMetricsRequest) String

type GetCopilotUsageMetricsResponse

type GetCopilotUsageMetricsResponse struct {
	Usage *CopilotUsageMetrics `protobuf:"bytes,1,opt,name=usage,proto3" json:"usage,omitempty"` // Cumulative usage metrics for the session.
	// contains filtered or unexported fields
}

GetCopilotUsageMetricsResponse contains cumulative usage metrics.

func (*GetCopilotUsageMetricsResponse) Descriptor deprecated

func (*GetCopilotUsageMetricsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetCopilotUsageMetricsResponse.ProtoReflect.Descriptor instead.

func (*GetCopilotUsageMetricsResponse) GetUsage

func (*GetCopilotUsageMetricsResponse) ProtoMessage

func (*GetCopilotUsageMetricsResponse) ProtoMessage()

func (*GetCopilotUsageMetricsResponse) ProtoReflect

func (*GetCopilotUsageMetricsResponse) Reset

func (x *GetCopilotUsageMetricsResponse) Reset()

func (*GetCopilotUsageMetricsResponse) String

type GetDeploymentContextResponse

type GetDeploymentContextResponse struct {
	AzureContext *AzureContext `protobuf:"bytes,1,opt,name=AzureContext,proto3" json:"AzureContext,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeploymentContextResponse) Descriptor deprecated

func (*GetDeploymentContextResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetDeploymentContextResponse.ProtoReflect.Descriptor instead.

func (*GetDeploymentContextResponse) GetAzureContext

func (x *GetDeploymentContextResponse) GetAzureContext() *AzureContext

func (*GetDeploymentContextResponse) ProtoMessage

func (*GetDeploymentContextResponse) ProtoMessage()

func (*GetDeploymentContextResponse) ProtoReflect

func (*GetDeploymentContextResponse) Reset

func (x *GetDeploymentContextResponse) Reset()

func (*GetDeploymentContextResponse) String

type GetDeploymentResponse

type GetDeploymentResponse struct {
	Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDeploymentResponse) Descriptor deprecated

func (*GetDeploymentResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetDeploymentResponse.ProtoReflect.Descriptor instead.

func (*GetDeploymentResponse) GetDeployment

func (x *GetDeploymentResponse) GetDeployment() *Deployment

func (*GetDeploymentResponse) ProtoMessage

func (*GetDeploymentResponse) ProtoMessage()

func (*GetDeploymentResponse) ProtoReflect

func (x *GetDeploymentResponse) ProtoReflect() protoreflect.Message

func (*GetDeploymentResponse) Reset

func (x *GetDeploymentResponse) Reset()

func (*GetDeploymentResponse) String

func (x *GetDeploymentResponse) String() string

type GetEnvRequest

type GetEnvRequest struct {
	EnvName string `protobuf:"bytes,1,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"` // Optional: Name of the environment. If empty, uses default.
	Key     string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`                        // Key to retrieve.
	// contains filtered or unexported fields
}

Request to retrieve a specific key-value pair.

func (*GetEnvRequest) Descriptor deprecated

func (*GetEnvRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetEnvRequest.ProtoReflect.Descriptor instead.

func (*GetEnvRequest) GetEnvName

func (x *GetEnvRequest) GetEnvName() string

func (*GetEnvRequest) GetKey

func (x *GetEnvRequest) GetKey() string

func (*GetEnvRequest) ProtoMessage

func (*GetEnvRequest) ProtoMessage()

func (*GetEnvRequest) ProtoReflect

func (x *GetEnvRequest) ProtoReflect() protoreflect.Message

func (*GetEnvRequest) Reset

func (x *GetEnvRequest) Reset()

func (*GetEnvRequest) String

func (x *GetEnvRequest) String() string

type GetEnvironmentRequest

type GetEnvironmentRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Name of the environment.
	// contains filtered or unexported fields
}

Request to retrieve an environment by name.

func (*GetEnvironmentRequest) Descriptor deprecated

func (*GetEnvironmentRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetEnvironmentRequest.ProtoReflect.Descriptor instead.

func (*GetEnvironmentRequest) GetName

func (x *GetEnvironmentRequest) GetName() string

func (*GetEnvironmentRequest) ProtoMessage

func (*GetEnvironmentRequest) ProtoMessage()

func (*GetEnvironmentRequest) ProtoReflect

func (x *GetEnvironmentRequest) ProtoReflect() protoreflect.Message

func (*GetEnvironmentRequest) Reset

func (x *GetEnvironmentRequest) Reset()

func (*GetEnvironmentRequest) String

func (x *GetEnvironmentRequest) String() string

type GetProjectConfigSectionRequest

type GetProjectConfigSectionRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Request message for GetConfigSection

func (*GetProjectConfigSectionRequest) Descriptor deprecated

func (*GetProjectConfigSectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProjectConfigSectionRequest.ProtoReflect.Descriptor instead.

func (*GetProjectConfigSectionRequest) GetPath

func (*GetProjectConfigSectionRequest) ProtoMessage

func (*GetProjectConfigSectionRequest) ProtoMessage()

func (*GetProjectConfigSectionRequest) ProtoReflect

func (*GetProjectConfigSectionRequest) Reset

func (x *GetProjectConfigSectionRequest) Reset()

func (*GetProjectConfigSectionRequest) String

type GetProjectConfigSectionResponse

type GetProjectConfigSectionResponse struct {
	Section *structpb.Struct `protobuf:"bytes,1,opt,name=section,proto3" json:"section,omitempty"`
	Found   bool             `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

Response message for GetConfigSection

func (*GetProjectConfigSectionResponse) Descriptor deprecated

func (*GetProjectConfigSectionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetProjectConfigSectionResponse.ProtoReflect.Descriptor instead.

func (*GetProjectConfigSectionResponse) GetFound

func (x *GetProjectConfigSectionResponse) GetFound() bool

func (*GetProjectConfigSectionResponse) GetSection

func (*GetProjectConfigSectionResponse) ProtoMessage

func (*GetProjectConfigSectionResponse) ProtoMessage()

func (*GetProjectConfigSectionResponse) ProtoReflect

func (*GetProjectConfigSectionResponse) Reset

func (*GetProjectConfigSectionResponse) String

type GetProjectConfigValueRequest

type GetProjectConfigValueRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Request message for GetConfigValue

func (*GetProjectConfigValueRequest) Descriptor deprecated

func (*GetProjectConfigValueRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetProjectConfigValueRequest.ProtoReflect.Descriptor instead.

func (*GetProjectConfigValueRequest) GetPath

func (x *GetProjectConfigValueRequest) GetPath() string

func (*GetProjectConfigValueRequest) ProtoMessage

func (*GetProjectConfigValueRequest) ProtoMessage()

func (*GetProjectConfigValueRequest) ProtoReflect

func (*GetProjectConfigValueRequest) Reset

func (x *GetProjectConfigValueRequest) Reset()

func (*GetProjectConfigValueRequest) String

type GetProjectConfigValueResponse

type GetProjectConfigValueResponse struct {
	Value *structpb.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Found bool            `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

Response message for GetConfigValue

func (*GetProjectConfigValueResponse) Descriptor deprecated

func (*GetProjectConfigValueResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetProjectConfigValueResponse.ProtoReflect.Descriptor instead.

func (*GetProjectConfigValueResponse) GetFound

func (x *GetProjectConfigValueResponse) GetFound() bool

func (*GetProjectConfigValueResponse) GetValue

func (*GetProjectConfigValueResponse) ProtoMessage

func (*GetProjectConfigValueResponse) ProtoMessage()

func (*GetProjectConfigValueResponse) ProtoReflect

func (*GetProjectConfigValueResponse) Reset

func (x *GetProjectConfigValueResponse) Reset()

func (*GetProjectConfigValueResponse) String

type GetProjectResponse

type GetProjectResponse struct {
	Project *ProjectConfig `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

GetProjectResponse message definition

func (*GetProjectResponse) Descriptor deprecated

func (*GetProjectResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetProjectResponse.ProtoReflect.Descriptor instead.

func (*GetProjectResponse) GetProject

func (x *GetProjectResponse) GetProject() *ProjectConfig

func (*GetProjectResponse) ProtoMessage

func (*GetProjectResponse) ProtoMessage()

func (*GetProjectResponse) ProtoReflect

func (x *GetProjectResponse) ProtoReflect() protoreflect.Message

func (*GetProjectResponse) Reset

func (x *GetProjectResponse) Reset()

func (*GetProjectResponse) String

func (x *GetProjectResponse) String() string

type GetResolvedServicesResponse

type GetResolvedServicesResponse struct {

	// Map of service name to service configuration
	Services map[string]*ServiceConfig `` /* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

GetResolvedServicesResponse message definition

func (*GetResolvedServicesResponse) Descriptor deprecated

func (*GetResolvedServicesResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResolvedServicesResponse.ProtoReflect.Descriptor instead.

func (*GetResolvedServicesResponse) GetServices

func (x *GetResolvedServicesResponse) GetServices() map[string]*ServiceConfig

func (*GetResolvedServicesResponse) ProtoMessage

func (*GetResolvedServicesResponse) ProtoMessage()

func (*GetResolvedServicesResponse) ProtoReflect

func (*GetResolvedServicesResponse) Reset

func (x *GetResolvedServicesResponse) Reset()

func (*GetResolvedServicesResponse) String

func (x *GetResolvedServicesResponse) String() string

type GetResourceRequest

type GetResourceRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

GetResourceRequest is a request to get a specific composability resource.

func (*GetResourceRequest) Descriptor deprecated

func (*GetResourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetResourceRequest.ProtoReflect.Descriptor instead.

func (*GetResourceRequest) GetName

func (x *GetResourceRequest) GetName() string

func (*GetResourceRequest) ProtoMessage

func (*GetResourceRequest) ProtoMessage()

func (*GetResourceRequest) ProtoReflect

func (x *GetResourceRequest) ProtoReflect() protoreflect.Message

func (*GetResourceRequest) Reset

func (x *GetResourceRequest) Reset()

func (*GetResourceRequest) String

func (x *GetResourceRequest) String() string

type GetResourceResponse

type GetResourceResponse struct {
	Resource *ComposedResource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

GetResourceResponse is the response of GetResource operation.

func (*GetResourceResponse) Descriptor deprecated

func (*GetResourceResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResourceResponse.ProtoReflect.Descriptor instead.

func (*GetResourceResponse) GetResource

func (x *GetResourceResponse) GetResource() *ComposedResource

func (*GetResourceResponse) ProtoMessage

func (*GetResourceResponse) ProtoMessage()

func (*GetResourceResponse) ProtoReflect

func (x *GetResourceResponse) ProtoReflect() protoreflect.Message

func (*GetResourceResponse) Reset

func (x *GetResourceResponse) Reset()

func (*GetResourceResponse) String

func (x *GetResourceResponse) String() string

type GetResourceTypeRequest

type GetResourceTypeRequest struct {
	TypeName string `protobuf:"bytes,1,opt,name=type_name,json=typeName,proto3" json:"type_name,omitempty"`
	// contains filtered or unexported fields
}

GetResourceTypeRequest is a request to get a specific composability resource type.

func (*GetResourceTypeRequest) Descriptor deprecated

func (*GetResourceTypeRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetResourceTypeRequest.ProtoReflect.Descriptor instead.

func (*GetResourceTypeRequest) GetTypeName

func (x *GetResourceTypeRequest) GetTypeName() string

func (*GetResourceTypeRequest) ProtoMessage

func (*GetResourceTypeRequest) ProtoMessage()

func (*GetResourceTypeRequest) ProtoReflect

func (x *GetResourceTypeRequest) ProtoReflect() protoreflect.Message

func (*GetResourceTypeRequest) Reset

func (x *GetResourceTypeRequest) Reset()

func (*GetResourceTypeRequest) String

func (x *GetResourceTypeRequest) String() string

type GetResourceTypeResponse

type GetResourceTypeResponse struct {
	ResourceType *ComposedResourceType `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	// contains filtered or unexported fields
}

GetResourceTypeResponse is the response of GetResourceType operation.

func (*GetResourceTypeResponse) Descriptor deprecated

func (*GetResourceTypeResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResourceTypeResponse.ProtoReflect.Descriptor instead.

func (*GetResourceTypeResponse) GetResourceType

func (x *GetResourceTypeResponse) GetResourceType() *ComposedResourceType

func (*GetResourceTypeResponse) ProtoMessage

func (*GetResourceTypeResponse) ProtoMessage()

func (*GetResourceTypeResponse) ProtoReflect

func (x *GetResourceTypeResponse) ProtoReflect() protoreflect.Message

func (*GetResourceTypeResponse) Reset

func (x *GetResourceTypeResponse) Reset()

func (*GetResourceTypeResponse) String

func (x *GetResourceTypeResponse) String() string

type GetServiceConfigSectionRequest

type GetServiceConfigSectionRequest struct {
	ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	Path        string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Request message for GetServiceConfigSection

func (*GetServiceConfigSectionRequest) Descriptor deprecated

func (*GetServiceConfigSectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetServiceConfigSectionRequest.ProtoReflect.Descriptor instead.

func (*GetServiceConfigSectionRequest) GetPath

func (*GetServiceConfigSectionRequest) GetServiceName

func (x *GetServiceConfigSectionRequest) GetServiceName() string

func (*GetServiceConfigSectionRequest) ProtoMessage

func (*GetServiceConfigSectionRequest) ProtoMessage()

func (*GetServiceConfigSectionRequest) ProtoReflect

func (*GetServiceConfigSectionRequest) Reset

func (x *GetServiceConfigSectionRequest) Reset()

func (*GetServiceConfigSectionRequest) String

type GetServiceConfigSectionResponse

type GetServiceConfigSectionResponse struct {
	Section *structpb.Struct `protobuf:"bytes,1,opt,name=section,proto3" json:"section,omitempty"`
	Found   bool             `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

Response message for GetServiceConfigSection

func (*GetServiceConfigSectionResponse) Descriptor deprecated

func (*GetServiceConfigSectionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetServiceConfigSectionResponse.ProtoReflect.Descriptor instead.

func (*GetServiceConfigSectionResponse) GetFound

func (x *GetServiceConfigSectionResponse) GetFound() bool

func (*GetServiceConfigSectionResponse) GetSection

func (*GetServiceConfigSectionResponse) ProtoMessage

func (*GetServiceConfigSectionResponse) ProtoMessage()

func (*GetServiceConfigSectionResponse) ProtoReflect

func (*GetServiceConfigSectionResponse) Reset

func (*GetServiceConfigSectionResponse) String

type GetServiceConfigValueRequest

type GetServiceConfigValueRequest struct {
	ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	Path        string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Request message for GetServiceConfigValue

func (*GetServiceConfigValueRequest) Descriptor deprecated

func (*GetServiceConfigValueRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetServiceConfigValueRequest.ProtoReflect.Descriptor instead.

func (*GetServiceConfigValueRequest) GetPath

func (x *GetServiceConfigValueRequest) GetPath() string

func (*GetServiceConfigValueRequest) GetServiceName

func (x *GetServiceConfigValueRequest) GetServiceName() string

func (*GetServiceConfigValueRequest) ProtoMessage

func (*GetServiceConfigValueRequest) ProtoMessage()

func (*GetServiceConfigValueRequest) ProtoReflect

func (*GetServiceConfigValueRequest) Reset

func (x *GetServiceConfigValueRequest) Reset()

func (*GetServiceConfigValueRequest) String

type GetServiceConfigValueResponse

type GetServiceConfigValueResponse struct {
	Value *structpb.Value `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Found bool            `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

Response message for GetServiceConfigValue

func (*GetServiceConfigValueResponse) Descriptor deprecated

func (*GetServiceConfigValueResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetServiceConfigValueResponse.ProtoReflect.Descriptor instead.

func (*GetServiceConfigValueResponse) GetFound

func (x *GetServiceConfigValueResponse) GetFound() bool

func (*GetServiceConfigValueResponse) GetValue

func (*GetServiceConfigValueResponse) ProtoMessage

func (*GetServiceConfigValueResponse) ProtoMessage()

func (*GetServiceConfigValueResponse) ProtoReflect

func (*GetServiceConfigValueResponse) Reset

func (x *GetServiceConfigValueResponse) Reset()

func (*GetServiceConfigValueResponse) String

type GetServiceTargetResourceRequest

type GetServiceTargetResourceRequest struct {

	// The name of the service to resolve the target resource for
	ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// contains filtered or unexported fields
}

Request message for GetServiceTargetResource

func (*GetServiceTargetResourceRequest) Descriptor deprecated

func (*GetServiceTargetResourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetServiceTargetResourceRequest.ProtoReflect.Descriptor instead.

func (*GetServiceTargetResourceRequest) GetServiceName

func (x *GetServiceTargetResourceRequest) GetServiceName() string

func (*GetServiceTargetResourceRequest) ProtoMessage

func (*GetServiceTargetResourceRequest) ProtoMessage()

func (*GetServiceTargetResourceRequest) ProtoReflect

func (*GetServiceTargetResourceRequest) Reset

func (*GetServiceTargetResourceRequest) String

type GetServiceTargetResourceResponse

type GetServiceTargetResourceResponse struct {

	// The resolved target resource including subscription, resource group, resource name, and resource type
	TargetResource *TargetResource `protobuf:"bytes,1,opt,name=target_resource,json=targetResource,proto3" json:"target_resource,omitempty"`
	// contains filtered or unexported fields
}

Response message for GetServiceTargetResource

func (*GetServiceTargetResourceResponse) Descriptor deprecated

func (*GetServiceTargetResourceResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetServiceTargetResourceResponse.ProtoReflect.Descriptor instead.

func (*GetServiceTargetResourceResponse) GetTargetResource

func (x *GetServiceTargetResourceResponse) GetTargetResource() *TargetResource

func (*GetServiceTargetResourceResponse) ProtoMessage

func (*GetServiceTargetResourceResponse) ProtoMessage()

func (*GetServiceTargetResourceResponse) ProtoReflect

func (*GetServiceTargetResourceResponse) Reset

func (*GetServiceTargetResourceResponse) String

type GetTargetResourceRequest

type GetTargetResourceRequest struct {
	SubscriptionId string         `protobuf:"bytes,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
	ServiceConfig  *ServiceConfig `protobuf:"bytes,2,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"`
	// Optional: The default target resource computed by azd core.
	// Extensions can use this as a fallback or ignore it completely.
	DefaultTargetResource *TargetResource `` /* 126-byte string literal not displayed */
	// Optional: Error message from default target resource resolution.
	// If set, default_target_resource will be nil and this contains the error.
	DefaultError string `protobuf:"bytes,4,opt,name=default_error,json=defaultError,proto3" json:"default_error,omitempty"`
	// contains filtered or unexported fields
}

GetTargetResource request and response

func (*GetTargetResourceRequest) Descriptor deprecated

func (*GetTargetResourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetTargetResourceRequest.ProtoReflect.Descriptor instead.

func (*GetTargetResourceRequest) GetDefaultError

func (x *GetTargetResourceRequest) GetDefaultError() string

func (*GetTargetResourceRequest) GetDefaultTargetResource

func (x *GetTargetResourceRequest) GetDefaultTargetResource() *TargetResource

func (*GetTargetResourceRequest) GetServiceConfig

func (x *GetTargetResourceRequest) GetServiceConfig() *ServiceConfig

func (*GetTargetResourceRequest) GetSubscriptionId

func (x *GetTargetResourceRequest) GetSubscriptionId() string

func (*GetTargetResourceRequest) ProtoMessage

func (*GetTargetResourceRequest) ProtoMessage()

func (*GetTargetResourceRequest) ProtoReflect

func (x *GetTargetResourceRequest) ProtoReflect() protoreflect.Message

func (*GetTargetResourceRequest) Reset

func (x *GetTargetResourceRequest) Reset()

func (*GetTargetResourceRequest) String

func (x *GetTargetResourceRequest) String() string

type GetTargetResourceResponse

type GetTargetResourceResponse struct {
	TargetResource *TargetResource `protobuf:"bytes,1,opt,name=target_resource,json=targetResource,proto3" json:"target_resource,omitempty"`
	// contains filtered or unexported fields
}

func (*GetTargetResourceResponse) Descriptor deprecated

func (*GetTargetResourceResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetTargetResourceResponse.ProtoReflect.Descriptor instead.

func (*GetTargetResourceResponse) GetTargetResource

func (x *GetTargetResourceResponse) GetTargetResource() *TargetResource

func (*GetTargetResourceResponse) ProtoMessage

func (*GetTargetResourceResponse) ProtoMessage()

func (*GetTargetResourceResponse) ProtoReflect

func (*GetTargetResourceResponse) Reset

func (x *GetTargetResourceResponse) Reset()

func (*GetTargetResourceResponse) String

func (x *GetTargetResourceResponse) String() string

type GetUserConfigRequest

type GetUserConfigRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Request message for Get

func (*GetUserConfigRequest) Descriptor deprecated

func (*GetUserConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserConfigRequest.ProtoReflect.Descriptor instead.

func (*GetUserConfigRequest) GetPath

func (x *GetUserConfigRequest) GetPath() string

func (*GetUserConfigRequest) ProtoMessage

func (*GetUserConfigRequest) ProtoMessage()

func (*GetUserConfigRequest) ProtoReflect

func (x *GetUserConfigRequest) ProtoReflect() protoreflect.Message

func (*GetUserConfigRequest) Reset

func (x *GetUserConfigRequest) Reset()

func (*GetUserConfigRequest) String

func (x *GetUserConfigRequest) String() string

type GetUserConfigResponse

type GetUserConfigResponse struct {
	Value []byte `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Found bool   `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

Response message for Get

func (*GetUserConfigResponse) Descriptor deprecated

func (*GetUserConfigResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserConfigResponse.ProtoReflect.Descriptor instead.

func (*GetUserConfigResponse) GetFound

func (x *GetUserConfigResponse) GetFound() bool

func (*GetUserConfigResponse) GetValue

func (x *GetUserConfigResponse) GetValue() []byte

func (*GetUserConfigResponse) ProtoMessage

func (*GetUserConfigResponse) ProtoMessage()

func (*GetUserConfigResponse) ProtoReflect

func (x *GetUserConfigResponse) ProtoReflect() protoreflect.Message

func (*GetUserConfigResponse) Reset

func (x *GetUserConfigResponse) Reset()

func (*GetUserConfigResponse) String

func (x *GetUserConfigResponse) String() string

type GetUserConfigSectionRequest

type GetUserConfigSectionRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Request message for GetSection

func (*GetUserConfigSectionRequest) Descriptor deprecated

func (*GetUserConfigSectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserConfigSectionRequest.ProtoReflect.Descriptor instead.

func (*GetUserConfigSectionRequest) GetPath

func (x *GetUserConfigSectionRequest) GetPath() string

func (*GetUserConfigSectionRequest) ProtoMessage

func (*GetUserConfigSectionRequest) ProtoMessage()

func (*GetUserConfigSectionRequest) ProtoReflect

func (*GetUserConfigSectionRequest) Reset

func (x *GetUserConfigSectionRequest) Reset()

func (*GetUserConfigSectionRequest) String

func (x *GetUserConfigSectionRequest) String() string

type GetUserConfigSectionResponse

type GetUserConfigSectionResponse struct {
	Section []byte `protobuf:"bytes,1,opt,name=section,proto3" json:"section,omitempty"`
	Found   bool   `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

Response message for GetSection

func (*GetUserConfigSectionResponse) Descriptor deprecated

func (*GetUserConfigSectionResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserConfigSectionResponse.ProtoReflect.Descriptor instead.

func (*GetUserConfigSectionResponse) GetFound

func (x *GetUserConfigSectionResponse) GetFound() bool

func (*GetUserConfigSectionResponse) GetSection

func (x *GetUserConfigSectionResponse) GetSection() []byte

func (*GetUserConfigSectionResponse) ProtoMessage

func (*GetUserConfigSectionResponse) ProtoMessage()

func (*GetUserConfigSectionResponse) ProtoReflect

func (*GetUserConfigSectionResponse) Reset

func (x *GetUserConfigSectionResponse) Reset()

func (*GetUserConfigSectionResponse) String

type GetUserConfigStringRequest

type GetUserConfigStringRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Request message for GetString

func (*GetUserConfigStringRequest) Descriptor deprecated

func (*GetUserConfigStringRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserConfigStringRequest.ProtoReflect.Descriptor instead.

func (*GetUserConfigStringRequest) GetPath

func (x *GetUserConfigStringRequest) GetPath() string

func (*GetUserConfigStringRequest) ProtoMessage

func (*GetUserConfigStringRequest) ProtoMessage()

func (*GetUserConfigStringRequest) ProtoReflect

func (*GetUserConfigStringRequest) Reset

func (x *GetUserConfigStringRequest) Reset()

func (*GetUserConfigStringRequest) String

func (x *GetUserConfigStringRequest) String() string

type GetUserConfigStringResponse

type GetUserConfigStringResponse struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Found bool   `protobuf:"varint,2,opt,name=found,proto3" json:"found,omitempty"`
	// contains filtered or unexported fields
}

Response message for GetString

func (*GetUserConfigStringResponse) Descriptor deprecated

func (*GetUserConfigStringResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserConfigStringResponse.ProtoReflect.Descriptor instead.

func (*GetUserConfigStringResponse) GetFound

func (x *GetUserConfigStringResponse) GetFound() bool

func (*GetUserConfigStringResponse) GetValue

func (x *GetUserConfigStringResponse) GetValue() string

func (*GetUserConfigStringResponse) ProtoMessage

func (*GetUserConfigStringResponse) ProtoMessage()

func (*GetUserConfigStringResponse) ProtoReflect

func (*GetUserConfigStringResponse) Reset

func (x *GetUserConfigStringResponse) Reset()

func (*GetUserConfigStringResponse) String

func (x *GetUserConfigStringResponse) String() string

type HTTPDoer

type HTTPDoer interface {
	Do(ctx context.Context, method, url string, body io.Reader) (*http.Response, error)
}

HTTPDoer abstracts the HTTP call so that ResilientClient or any *http.Client can power pagination.

type InfraOptions

type InfraOptions struct {
	Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	Path     string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Module   string `protobuf:"bytes,3,opt,name=module,proto3" json:"module,omitempty"`
	// contains filtered or unexported fields
}

InfraOptions message definition

func (*InfraOptions) Descriptor deprecated

func (*InfraOptions) Descriptor() ([]byte, []int)

Deprecated: Use InfraOptions.ProtoReflect.Descriptor instead.

func (*InfraOptions) GetModule

func (x *InfraOptions) GetModule() string

func (*InfraOptions) GetPath

func (x *InfraOptions) GetPath() string

func (*InfraOptions) GetProvider

func (x *InfraOptions) GetProvider() string

func (*InfraOptions) ProtoMessage

func (*InfraOptions) ProtoMessage()

func (*InfraOptions) ProtoReflect

func (x *InfraOptions) ProtoReflect() protoreflect.Message

func (*InfraOptions) Reset

func (x *InfraOptions) Reset()

func (*InfraOptions) String

func (x *InfraOptions) String() string

type InitializeCopilotRequest

type InitializeCopilotRequest struct {
	Model           string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`                                            // Model to configure (empty = use existing/default).
	ReasoningEffort string `protobuf:"bytes,2,opt,name=reasoning_effort,json=reasoningEffort,proto3" json:"reasoning_effort,omitempty"` // Reasoning effort level (low, medium, high).
	// contains filtered or unexported fields
}

InitializeCopilotRequest configures and starts the Copilot client.

func (*InitializeCopilotRequest) Descriptor deprecated

func (*InitializeCopilotRequest) Descriptor() ([]byte, []int)

Deprecated: Use InitializeCopilotRequest.ProtoReflect.Descriptor instead.

func (*InitializeCopilotRequest) GetModel

func (x *InitializeCopilotRequest) GetModel() string

func (*InitializeCopilotRequest) GetReasoningEffort

func (x *InitializeCopilotRequest) GetReasoningEffort() string

func (*InitializeCopilotRequest) ProtoMessage

func (*InitializeCopilotRequest) ProtoMessage()

func (*InitializeCopilotRequest) ProtoReflect

func (x *InitializeCopilotRequest) ProtoReflect() protoreflect.Message

func (*InitializeCopilotRequest) Reset

func (x *InitializeCopilotRequest) Reset()

func (*InitializeCopilotRequest) String

func (x *InitializeCopilotRequest) String() string

type InitializeCopilotResponse

type InitializeCopilotResponse struct {
	Model           string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`                                            // Resolved model name.
	ReasoningEffort string `protobuf:"bytes,2,opt,name=reasoning_effort,json=reasoningEffort,proto3" json:"reasoning_effort,omitempty"` // Resolved reasoning effort level.
	IsFirstRun      bool   `protobuf:"varint,3,opt,name=is_first_run,json=isFirstRun,proto3" json:"is_first_run,omitempty"`             // True if this was the first configuration.
	// contains filtered or unexported fields
}

InitializeCopilotResponse returns the resolved configuration.

func (*InitializeCopilotResponse) Descriptor deprecated

func (*InitializeCopilotResponse) Descriptor() ([]byte, []int)

Deprecated: Use InitializeCopilotResponse.ProtoReflect.Descriptor instead.

func (*InitializeCopilotResponse) GetIsFirstRun

func (x *InitializeCopilotResponse) GetIsFirstRun() bool

func (*InitializeCopilotResponse) GetModel

func (x *InitializeCopilotResponse) GetModel() string

func (*InitializeCopilotResponse) GetReasoningEffort

func (x *InitializeCopilotResponse) GetReasoningEffort() string

func (*InitializeCopilotResponse) ProtoMessage

func (*InitializeCopilotResponse) ProtoMessage()

func (*InitializeCopilotResponse) ProtoReflect

func (*InitializeCopilotResponse) Reset

func (x *InitializeCopilotResponse) Reset()

func (*InitializeCopilotResponse) String

func (x *InitializeCopilotResponse) String() string

type InvokeProjectHandler

type InvokeProjectHandler struct {

	// Name of the event being invoked.
	EventName string `protobuf:"bytes,1,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"`
	// Current project configuration.
	Project *ProjectConfig `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// contains filtered or unexported fields
}

Server invokes the project event handler

func (*InvokeProjectHandler) Descriptor deprecated

func (*InvokeProjectHandler) Descriptor() ([]byte, []int)

Deprecated: Use InvokeProjectHandler.ProtoReflect.Descriptor instead.

func (*InvokeProjectHandler) GetEventName

func (x *InvokeProjectHandler) GetEventName() string

func (*InvokeProjectHandler) GetProject

func (x *InvokeProjectHandler) GetProject() *ProjectConfig

func (*InvokeProjectHandler) ProtoMessage

func (*InvokeProjectHandler) ProtoMessage()

func (*InvokeProjectHandler) ProtoReflect

func (x *InvokeProjectHandler) ProtoReflect() protoreflect.Message

func (*InvokeProjectHandler) Reset

func (x *InvokeProjectHandler) Reset()

func (*InvokeProjectHandler) String

func (x *InvokeProjectHandler) String() string

type InvokeServiceHandler

type InvokeServiceHandler struct {

	// Name of the event being invoked.
	EventName string `protobuf:"bytes,1,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"`
	// Current project configuration.
	Project *ProjectConfig `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"`
	// Specific service configuration.
	Service *ServiceConfig `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"`
	// Service context with artifacts from all lifecycle phases.
	ServiceContext *ServiceContext `protobuf:"bytes,4,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
	// contains filtered or unexported fields
}

Server invokes the service event handler

func (*InvokeServiceHandler) Descriptor deprecated

func (*InvokeServiceHandler) Descriptor() ([]byte, []int)

Deprecated: Use InvokeServiceHandler.ProtoReflect.Descriptor instead.

func (*InvokeServiceHandler) GetEventName

func (x *InvokeServiceHandler) GetEventName() string

func (*InvokeServiceHandler) GetProject

func (x *InvokeServiceHandler) GetProject() *ProjectConfig

func (*InvokeServiceHandler) GetService

func (x *InvokeServiceHandler) GetService() *ServiceConfig

func (*InvokeServiceHandler) GetServiceContext

func (x *InvokeServiceHandler) GetServiceContext() *ServiceContext

func (*InvokeServiceHandler) ProtoMessage

func (*InvokeServiceHandler) ProtoMessage()

func (*InvokeServiceHandler) ProtoReflect

func (x *InvokeServiceHandler) ProtoReflect() protoreflect.Message

func (*InvokeServiceHandler) Reset

func (x *InvokeServiceHandler) Reset()

func (*InvokeServiceHandler) String

func (x *InvokeServiceHandler) String() string

type KeyValue

type KeyValue struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`     // Key name.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Value associated with the key.
	// contains filtered or unexported fields
}

Key-value pair definition.

func (*KeyValue) Descriptor deprecated

func (*KeyValue) Descriptor() ([]byte, []int)

Deprecated: Use KeyValue.ProtoReflect.Descriptor instead.

func (*KeyValue) GetKey

func (x *KeyValue) GetKey() string

func (*KeyValue) GetValue

func (x *KeyValue) GetValue() string

func (*KeyValue) ProtoMessage

func (*KeyValue) ProtoMessage()

func (*KeyValue) ProtoReflect

func (x *KeyValue) ProtoReflect() protoreflect.Message

func (*KeyValue) Reset

func (x *KeyValue) Reset()

func (*KeyValue) String

func (x *KeyValue) String() string

type KeyValueListResponse

type KeyValueListResponse struct {
	KeyValues []*KeyValue `protobuf:"bytes,1,rep,name=key_values,json=keyValues,proto3" json:"key_values,omitempty"` // List of key-value pairs.
	// contains filtered or unexported fields
}

Response containing a list of key-value pairs.

func (*KeyValueListResponse) Descriptor deprecated

func (*KeyValueListResponse) Descriptor() ([]byte, []int)

Deprecated: Use KeyValueListResponse.ProtoReflect.Descriptor instead.

func (*KeyValueListResponse) GetKeyValues

func (x *KeyValueListResponse) GetKeyValues() []*KeyValue

func (*KeyValueListResponse) ProtoMessage

func (*KeyValueListResponse) ProtoMessage()

func (*KeyValueListResponse) ProtoReflect

func (x *KeyValueListResponse) ProtoReflect() protoreflect.Message

func (*KeyValueListResponse) Reset

func (x *KeyValueListResponse) Reset()

func (*KeyValueListResponse) String

func (x *KeyValueListResponse) String() string

type KeyValueResponse

type KeyValueResponse struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`     // Key name.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Value associated with the key.
	// contains filtered or unexported fields
}

Response containing a single key-value pair.

func (*KeyValueResponse) Descriptor deprecated

func (*KeyValueResponse) Descriptor() ([]byte, []int)

Deprecated: Use KeyValueResponse.ProtoReflect.Descriptor instead.

func (*KeyValueResponse) GetKey

func (x *KeyValueResponse) GetKey() string

func (*KeyValueResponse) GetValue

func (x *KeyValueResponse) GetValue() string

func (*KeyValueResponse) ProtoMessage

func (*KeyValueResponse) ProtoMessage()

func (*KeyValueResponse) ProtoReflect

func (x *KeyValueResponse) ProtoReflect() protoreflect.Message

func (*KeyValueResponse) Reset

func (x *KeyValueResponse) Reset()

func (*KeyValueResponse) String

func (x *KeyValueResponse) String() string

type ListCopilotSessionsRequest

type ListCopilotSessionsRequest struct {
	WorkingDirectory string `protobuf:"bytes,1,opt,name=working_directory,json=workingDirectory,proto3" json:"working_directory,omitempty"` // Directory to list sessions for (empty = cwd).
	// contains filtered or unexported fields
}

ListCopilotSessionsRequest requests available sessions for a directory.

func (*ListCopilotSessionsRequest) Descriptor deprecated

func (*ListCopilotSessionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListCopilotSessionsRequest.ProtoReflect.Descriptor instead.

func (*ListCopilotSessionsRequest) GetWorkingDirectory

func (x *ListCopilotSessionsRequest) GetWorkingDirectory() string

func (*ListCopilotSessionsRequest) ProtoMessage

func (*ListCopilotSessionsRequest) ProtoMessage()

func (*ListCopilotSessionsRequest) ProtoReflect

func (*ListCopilotSessionsRequest) Reset

func (x *ListCopilotSessionsRequest) Reset()

func (*ListCopilotSessionsRequest) String

func (x *ListCopilotSessionsRequest) String() string

type ListCopilotSessionsResponse

type ListCopilotSessionsResponse struct {
	Sessions []*CopilotSessionMetadata `protobuf:"bytes,1,rep,name=sessions,proto3" json:"sessions,omitempty"` // Available sessions.
	// contains filtered or unexported fields
}

ListCopilotSessionsResponse contains available sessions.

func (*ListCopilotSessionsResponse) Descriptor deprecated

func (*ListCopilotSessionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListCopilotSessionsResponse.ProtoReflect.Descriptor instead.

func (*ListCopilotSessionsResponse) GetSessions

func (*ListCopilotSessionsResponse) ProtoMessage

func (*ListCopilotSessionsResponse) ProtoMessage()

func (*ListCopilotSessionsResponse) ProtoReflect

func (*ListCopilotSessionsResponse) Reset

func (x *ListCopilotSessionsResponse) Reset()

func (*ListCopilotSessionsResponse) String

func (x *ListCopilotSessionsResponse) String() string

type ListLocationsWithQuotaRequest

type ListLocationsWithQuotaRequest struct {

	// Azure context with scope.subscription_id required.
	AzureContext *AzureContext `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	// Required quota requirements that each returned location must satisfy.
	Requirements []*QuotaRequirement `protobuf:"bytes,2,rep,name=requirements,proto3" json:"requirements,omitempty"`
	// Optional allow-list. Empty means all AI Services-supported locations.
	AllowedLocations []string `protobuf:"bytes,3,rep,name=allowed_locations,json=allowedLocations,proto3" json:"allowed_locations,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLocationsWithQuotaRequest) Descriptor deprecated

func (*ListLocationsWithQuotaRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListLocationsWithQuotaRequest.ProtoReflect.Descriptor instead.

func (*ListLocationsWithQuotaRequest) GetAllowedLocations

func (x *ListLocationsWithQuotaRequest) GetAllowedLocations() []string

func (*ListLocationsWithQuotaRequest) GetAzureContext

func (x *ListLocationsWithQuotaRequest) GetAzureContext() *AzureContext

func (*ListLocationsWithQuotaRequest) GetRequirements

func (x *ListLocationsWithQuotaRequest) GetRequirements() []*QuotaRequirement

func (*ListLocationsWithQuotaRequest) ProtoMessage

func (*ListLocationsWithQuotaRequest) ProtoMessage()

func (*ListLocationsWithQuotaRequest) ProtoReflect

func (*ListLocationsWithQuotaRequest) Reset

func (x *ListLocationsWithQuotaRequest) Reset()

func (*ListLocationsWithQuotaRequest) String

type ListLocationsWithQuotaResponse

type ListLocationsWithQuotaResponse struct {

	// Locations that satisfy all quota requirements.
	Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLocationsWithQuotaResponse) Descriptor deprecated

func (*ListLocationsWithQuotaResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListLocationsWithQuotaResponse.ProtoReflect.Descriptor instead.

func (*ListLocationsWithQuotaResponse) GetLocations

func (x *ListLocationsWithQuotaResponse) GetLocations() []*Location

func (*ListLocationsWithQuotaResponse) ProtoMessage

func (*ListLocationsWithQuotaResponse) ProtoMessage()

func (*ListLocationsWithQuotaResponse) ProtoReflect

func (*ListLocationsWithQuotaResponse) Reset

func (x *ListLocationsWithQuotaResponse) Reset()

func (*ListLocationsWithQuotaResponse) String

type ListModelLocationsWithQuotaRequest

type ListModelLocationsWithQuotaRequest struct {

	// Azure context with scope.subscription_id required.
	AzureContext *AzureContext `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	// Required model name to evaluate across locations.
	ModelName string `protobuf:"bytes,2,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
	// Optional allow-list. Empty means all locations where the model is available.
	AllowedLocations []string `protobuf:"bytes,3,rep,name=allowed_locations,json=allowedLocations,proto3" json:"allowed_locations,omitempty"`
	// Optional min remaining quota threshold.
	Quota *QuotaCheckOptions `protobuf:"bytes,4,opt,name=quota,proto3" json:"quota,omitempty"`
	// contains filtered or unexported fields
}

func (*ListModelLocationsWithQuotaRequest) Descriptor deprecated

func (*ListModelLocationsWithQuotaRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListModelLocationsWithQuotaRequest.ProtoReflect.Descriptor instead.

func (*ListModelLocationsWithQuotaRequest) GetAllowedLocations

func (x *ListModelLocationsWithQuotaRequest) GetAllowedLocations() []string

func (*ListModelLocationsWithQuotaRequest) GetAzureContext

func (x *ListModelLocationsWithQuotaRequest) GetAzureContext() *AzureContext

func (*ListModelLocationsWithQuotaRequest) GetModelName

func (x *ListModelLocationsWithQuotaRequest) GetModelName() string

func (*ListModelLocationsWithQuotaRequest) GetQuota

func (*ListModelLocationsWithQuotaRequest) ProtoMessage

func (*ListModelLocationsWithQuotaRequest) ProtoMessage()

func (*ListModelLocationsWithQuotaRequest) ProtoReflect

func (*ListModelLocationsWithQuotaRequest) Reset

func (*ListModelLocationsWithQuotaRequest) String

type ListModelLocationsWithQuotaResponse

type ListModelLocationsWithQuotaResponse struct {

	// Locations where the model has sufficient remaining quota.
	Locations []*ModelLocationQuota `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	// contains filtered or unexported fields
}

func (*ListModelLocationsWithQuotaResponse) Descriptor deprecated

func (*ListModelLocationsWithQuotaResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListModelLocationsWithQuotaResponse.ProtoReflect.Descriptor instead.

func (*ListModelLocationsWithQuotaResponse) GetLocations

func (*ListModelLocationsWithQuotaResponse) ProtoMessage

func (*ListModelLocationsWithQuotaResponse) ProtoMessage()

func (*ListModelLocationsWithQuotaResponse) ProtoReflect

func (*ListModelLocationsWithQuotaResponse) Reset

func (*ListModelLocationsWithQuotaResponse) String

type ListModelsRequest

type ListModelsRequest struct {

	// Azure context with scope.subscription_id required.
	AzureContext *AzureContext `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	// Optional model filter criteria. Empty means no filtering.
	Filter *AiModelFilterOptions `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// contains filtered or unexported fields
}

func (*ListModelsRequest) Descriptor deprecated

func (*ListModelsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListModelsRequest.ProtoReflect.Descriptor instead.

func (*ListModelsRequest) GetAzureContext

func (x *ListModelsRequest) GetAzureContext() *AzureContext

func (*ListModelsRequest) GetFilter

func (x *ListModelsRequest) GetFilter() *AiModelFilterOptions

func (*ListModelsRequest) ProtoMessage

func (*ListModelsRequest) ProtoMessage()

func (*ListModelsRequest) ProtoReflect

func (x *ListModelsRequest) ProtoReflect() protoreflect.Message

func (*ListModelsRequest) Reset

func (x *ListModelsRequest) Reset()

func (*ListModelsRequest) String

func (x *ListModelsRequest) String() string

type ListModelsResponse

type ListModelsResponse struct {

	// Catalog models after applying optional filters.
	Models []*AiModel `protobuf:"bytes,1,rep,name=models,proto3" json:"models,omitempty"`
	// contains filtered or unexported fields
}

func (*ListModelsResponse) Descriptor deprecated

func (*ListModelsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListModelsResponse.ProtoReflect.Descriptor instead.

func (*ListModelsResponse) GetModels

func (x *ListModelsResponse) GetModels() []*AiModel

func (*ListModelsResponse) ProtoMessage

func (*ListModelsResponse) ProtoMessage()

func (*ListModelsResponse) ProtoReflect

func (x *ListModelsResponse) ProtoReflect() protoreflect.Message

func (*ListModelsResponse) Reset

func (x *ListModelsResponse) Reset()

func (*ListModelsResponse) String

func (x *ListModelsResponse) String() string

type ListResourceTypesResponse

type ListResourceTypesResponse struct {
	ResourceTypes []*ComposedResourceType `protobuf:"bytes,1,rep,name=resource_types,json=resourceTypes,proto3" json:"resource_types,omitempty"`
	// contains filtered or unexported fields
}

ListResourceTypesResponse is the response of ListResourceTypes operation.

func (*ListResourceTypesResponse) Descriptor deprecated

func (*ListResourceTypesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResourceTypesResponse.ProtoReflect.Descriptor instead.

func (*ListResourceTypesResponse) GetResourceTypes

func (x *ListResourceTypesResponse) GetResourceTypes() []*ComposedResourceType

func (*ListResourceTypesResponse) ProtoMessage

func (*ListResourceTypesResponse) ProtoMessage()

func (*ListResourceTypesResponse) ProtoReflect

func (*ListResourceTypesResponse) Reset

func (x *ListResourceTypesResponse) Reset()

func (*ListResourceTypesResponse) String

func (x *ListResourceTypesResponse) String() string

type ListResourcesResponse

type ListResourcesResponse struct {
	Resources []*ComposedResource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
	// contains filtered or unexported fields
}

ListResourcesResponse is the response of ListResources operation.

func (*ListResourcesResponse) Descriptor deprecated

func (*ListResourcesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListResourcesResponse.ProtoReflect.Descriptor instead.

func (*ListResourcesResponse) GetResources

func (x *ListResourcesResponse) GetResources() []*ComposedResource

func (*ListResourcesResponse) ProtoMessage

func (*ListResourcesResponse) ProtoMessage()

func (*ListResourcesResponse) ProtoReflect

func (x *ListResourcesResponse) ProtoReflect() protoreflect.Message

func (*ListResourcesResponse) Reset

func (x *ListResourcesResponse) Reset()

func (*ListResourcesResponse) String

func (x *ListResourcesResponse) String() string

type ListSubscriptionsRequest

type ListSubscriptionsRequest struct {

	// Optional: filter subscriptions by tenant ID.
	TenantId *string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3,oneof" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSubscriptionsRequest) Descriptor deprecated

func (*ListSubscriptionsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListSubscriptionsRequest.ProtoReflect.Descriptor instead.

func (*ListSubscriptionsRequest) GetTenantId

func (x *ListSubscriptionsRequest) GetTenantId() string

func (*ListSubscriptionsRequest) ProtoMessage

func (*ListSubscriptionsRequest) ProtoMessage()

func (*ListSubscriptionsRequest) ProtoReflect

func (x *ListSubscriptionsRequest) ProtoReflect() protoreflect.Message

func (*ListSubscriptionsRequest) Reset

func (x *ListSubscriptionsRequest) Reset()

func (*ListSubscriptionsRequest) String

func (x *ListSubscriptionsRequest) String() string

type ListSubscriptionsResponse

type ListSubscriptionsResponse struct {
	Subscriptions []*Subscription `protobuf:"bytes,1,rep,name=subscriptions,proto3" json:"subscriptions,omitempty"`
	// contains filtered or unexported fields
}

func (*ListSubscriptionsResponse) Descriptor deprecated

func (*ListSubscriptionsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListSubscriptionsResponse.ProtoReflect.Descriptor instead.

func (*ListSubscriptionsResponse) GetSubscriptions

func (x *ListSubscriptionsResponse) GetSubscriptions() []*Subscription

func (*ListSubscriptionsResponse) ProtoMessage

func (*ListSubscriptionsResponse) ProtoMessage()

func (*ListSubscriptionsResponse) ProtoReflect

func (*ListSubscriptionsResponse) Reset

func (x *ListSubscriptionsResponse) Reset()

func (*ListSubscriptionsResponse) String

func (x *ListSubscriptionsResponse) String() string

type ListUsagesRequest

type ListUsagesRequest struct {

	// Azure context with scope.subscription_id required.
	AzureContext *AzureContext `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	// Required location for usage query (no fallback from azure_context.scope.location).
	Location string `protobuf:"bytes,2,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsagesRequest) Descriptor deprecated

func (*ListUsagesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListUsagesRequest.ProtoReflect.Descriptor instead.

func (*ListUsagesRequest) GetAzureContext

func (x *ListUsagesRequest) GetAzureContext() *AzureContext

func (*ListUsagesRequest) GetLocation

func (x *ListUsagesRequest) GetLocation() string

func (*ListUsagesRequest) ProtoMessage

func (*ListUsagesRequest) ProtoMessage()

func (*ListUsagesRequest) ProtoReflect

func (x *ListUsagesRequest) ProtoReflect() protoreflect.Message

func (*ListUsagesRequest) Reset

func (x *ListUsagesRequest) Reset()

func (*ListUsagesRequest) String

func (x *ListUsagesRequest) String() string

type ListUsagesResponse

type ListUsagesResponse struct {

	// Quota usage entries for the requested location.
	Usages []*AiModelUsage `protobuf:"bytes,1,rep,name=usages,proto3" json:"usages,omitempty"`
	// contains filtered or unexported fields
}

func (*ListUsagesResponse) Descriptor deprecated

func (*ListUsagesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListUsagesResponse.ProtoReflect.Descriptor instead.

func (*ListUsagesResponse) GetUsages

func (x *ListUsagesResponse) GetUsages() []*AiModelUsage

func (*ListUsagesResponse) ProtoMessage

func (*ListUsagesResponse) ProtoMessage()

func (*ListUsagesResponse) ProtoReflect

func (x *ListUsagesResponse) ProtoReflect() protoreflect.Message

func (*ListUsagesResponse) Reset

func (x *ListUsagesResponse) Reset()

func (*ListUsagesResponse) String

func (x *ListUsagesResponse) String() string

type LocalError

type LocalError struct {
	// Message is the human-readable error message
	Message string
	// Code is an extension-defined machine-readable error code (lowercase snake_case, e.g. "missing_subscription_id").
	// It appears in telemetry as the last segment of ext.<category>.<code>.
	Code string
	// Category classifies the local error (for example: user, validation, dependency)
	Category LocalErrorCategory
	// Suggestion contains optional user-facing remediation guidance.
	Suggestion string
}

LocalError represents non-service extension errors, such as validation/config failures.

func (*LocalError) Error

func (e *LocalError) Error() string

Error implements the error interface.

type LocalErrorCategory

type LocalErrorCategory string

LocalErrorCategory is the canonical category type for extension local errors. Keep values aligned with telemetry ResultCode families in internal/cmd/errors.go.

const (
	LocalErrorCategoryValidation    LocalErrorCategory = "validation"
	LocalErrorCategoryAuth          LocalErrorCategory = "auth"
	LocalErrorCategoryDependency    LocalErrorCategory = "dependency"
	LocalErrorCategoryCompatibility LocalErrorCategory = "compatibility"
	LocalErrorCategoryUser          LocalErrorCategory = "user"
	LocalErrorCategoryInternal      LocalErrorCategory = "internal"
	LocalErrorCategoryLocal         LocalErrorCategory = "local"
)

func NormalizeLocalErrorCategory

func NormalizeLocalErrorCategory(category LocalErrorCategory) LocalErrorCategory

NormalizeLocalErrorCategory validates a typed category value, returning the canonical constant. Unknown values are collapsed to LocalErrorCategoryLocal.

func ParseLocalErrorCategory

func ParseLocalErrorCategory(category string) LocalErrorCategory

ParseLocalErrorCategory parses a raw category string (e.g. from proto deserialization) into its canonical LocalErrorCategory constant. Unknown values map to LocalErrorCategoryLocal.

type LocalErrorDetail

type LocalErrorDetail struct {
	Code     string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`         // Extension-defined error code (e.g., "invalid_config")
	Category string `protobuf:"bytes,2,opt,name=category,proto3" json:"category,omitempty"` // Error category (e.g., "user", "validation", "dependency", "internal")
	// contains filtered or unexported fields
}

LocalErrorDetail contains structured error information for local/validation failures. Used when ErrorOrigin is ERROR_ORIGIN_LOCAL.

func (*LocalErrorDetail) Descriptor deprecated

func (*LocalErrorDetail) Descriptor() ([]byte, []int)

Deprecated: Use LocalErrorDetail.ProtoReflect.Descriptor instead.

func (*LocalErrorDetail) GetCategory

func (x *LocalErrorDetail) GetCategory() string

func (*LocalErrorDetail) GetCode

func (x *LocalErrorDetail) GetCode() string

func (*LocalErrorDetail) ProtoMessage

func (*LocalErrorDetail) ProtoMessage()

func (*LocalErrorDetail) ProtoReflect

func (x *LocalErrorDetail) ProtoReflect() protoreflect.Message

func (*LocalErrorDetail) Reset

func (x *LocalErrorDetail) Reset()

func (*LocalErrorDetail) String

func (x *LocalErrorDetail) String() string

type Location

type Location struct {
	Name                string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	DisplayName         string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	RegionalDisplayName string `protobuf:"bytes,3,opt,name=regional_display_name,json=regionalDisplayName,proto3" json:"regional_display_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Location) Descriptor deprecated

func (*Location) Descriptor() ([]byte, []int)

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetDisplayName

func (x *Location) GetDisplayName() string

func (*Location) GetName

func (x *Location) GetName() string

func (*Location) GetRegionalDisplayName

func (x *Location) GetRegionalDisplayName() string

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

func (x *Location) ProtoReflect() protoreflect.Message

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type LocationKind

type LocationKind int32

Location kinds - matching the existing Go LocationKind enum

const (
	LocationKind_LOCATION_KIND_UNSPECIFIED LocationKind = 0 // Default/unknown location
	LocationKind_LOCATION_KIND_LOCAL       LocationKind = 1 // Local file system path
	LocationKind_LOCATION_KIND_REMOTE      LocationKind = 2 // Remote URL/URI
)

func (LocationKind) Descriptor

func (LocationKind) Enum

func (x LocationKind) Enum() *LocationKind

func (LocationKind) EnumDescriptor deprecated

func (LocationKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use LocationKind.Descriptor instead.

func (LocationKind) Number

func (LocationKind) String

func (x LocationKind) String() string

func (LocationKind) Type

type LookupTenantRequest

type LookupTenantRequest struct {

	// The subscription ID to lookup the tenant for.
	SubscriptionId string `protobuf:"bytes,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupTenantRequest) Descriptor deprecated

func (*LookupTenantRequest) Descriptor() ([]byte, []int)

Deprecated: Use LookupTenantRequest.ProtoReflect.Descriptor instead.

func (*LookupTenantRequest) GetSubscriptionId

func (x *LookupTenantRequest) GetSubscriptionId() string

func (*LookupTenantRequest) ProtoMessage

func (*LookupTenantRequest) ProtoMessage()

func (*LookupTenantRequest) ProtoReflect

func (x *LookupTenantRequest) ProtoReflect() protoreflect.Message

func (*LookupTenantRequest) Reset

func (x *LookupTenantRequest) Reset()

func (*LookupTenantRequest) String

func (x *LookupTenantRequest) String() string

type LookupTenantResponse

type LookupTenantResponse struct {

	// The tenant ID required to access the subscription.
	TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LookupTenantResponse) Descriptor deprecated

func (*LookupTenantResponse) Descriptor() ([]byte, []int)

Deprecated: Use LookupTenantResponse.ProtoReflect.Descriptor instead.

func (*LookupTenantResponse) GetTenantId

func (x *LookupTenantResponse) GetTenantId() string

func (*LookupTenantResponse) ProtoMessage

func (*LookupTenantResponse) ProtoMessage()

func (*LookupTenantResponse) ProtoReflect

func (x *LookupTenantResponse) ProtoReflect() protoreflect.Message

func (*LookupTenantResponse) Reset

func (x *LookupTenantResponse) Reset()

func (*LookupTenantResponse) String

func (x *LookupTenantResponse) String() string

type MCPSecurityPolicy

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

MCPSecurityPolicy validates URLs and file paths for MCP tool calls.

func DefaultMCPSecurityPolicy

func DefaultMCPSecurityPolicy() *MCPSecurityPolicy

DefaultMCPSecurityPolicy returns a policy with metadata endpoints blocked, private networks blocked, HTTPS required, and common sensitive headers redacted.

func NewMCPSecurityPolicy

func NewMCPSecurityPolicy() *MCPSecurityPolicy

NewMCPSecurityPolicy creates an empty security policy.

func (*MCPSecurityPolicy) BlockMetadataEndpoints

func (p *MCPSecurityPolicy) BlockMetadataEndpoints() *MCPSecurityPolicy

BlockMetadataEndpoints blocks cloud metadata service endpoints (169.254.169.254, fd00:ec2::254, metadata.google.internal, etc.)

func (*MCPSecurityPolicy) BlockPrivateNetworks

func (p *MCPSecurityPolicy) BlockPrivateNetworks() *MCPSecurityPolicy

BlockPrivateNetworks blocks RFC 1918 private networks, loopback, link-local, CGNAT (RFC 6598), deprecated IPv6 transition mechanisms (6to4, Teredo, NAT64), and IPv4-translated IPv6 addresses (RFC 2765).

func (*MCPSecurityPolicy) CheckPath

func (p *MCPSecurityPolicy) CheckPath(path string) error

CheckPath validates a file path against the security policy. Resolves symlinks and checks for directory traversal.

Security note (TOCTOU): There is an inherent time-of-check to time-of-use gap between the symlink resolution performed here and the caller's subsequent file operation. An adversary with write access to the filesystem could create or modify a symlink between the check and the use. This is a fundamental limitation of path-based validation on POSIX systems.

Mitigations callers should consider:

  • Use O_NOFOLLOW when opening files after validation (prevents symlink following at the final component).
  • Use file-descriptor-based approaches (openat2 with RESOLVE_BENEATH on Linux 5.6+) where possible.
  • Avoid writing to directories that untrusted users can modify.
  • Consider validating the opened fd's path post-open via /proc/self/fd/N or fstat.

func (*MCPSecurityPolicy) CheckURL

func (p *MCPSecurityPolicy) CheckURL(rawURL string) error

CheckURL validates a URL against the security policy. Returns an error describing the violation, or nil if allowed.

func (*MCPSecurityPolicy) IsHeaderBlocked

func (p *MCPSecurityPolicy) IsHeaderBlocked(header string) bool

IsHeaderBlocked checks if a header name is in the redacted set. Returns true if the header should be blocked.

func (*MCPSecurityPolicy) OnBlocked

func (p *MCPSecurityPolicy) OnBlocked(fn func(action, detail string)) *MCPSecurityPolicy

OnBlocked registers a callback that is invoked whenever a URL or path is blocked by the security policy. This enables security audit logging without coupling the policy to a specific logging framework.

The callback receives an action tag ("url_blocked", "path_blocked") and a human-readable detail string. It must be safe for concurrent invocation.

func (*MCPSecurityPolicy) RedactHeaders

func (p *MCPSecurityPolicy) RedactHeaders(headers ...string) *MCPSecurityPolicy

RedactHeaders marks headers that should be blocked/redacted in requests.

func (*MCPSecurityPolicy) RequireHTTPS

func (p *MCPSecurityPolicy) RequireHTTPS() *MCPSecurityPolicy

RequireHTTPS requires HTTPS for all URLs except localhost/127.0.0.1.

func (*MCPSecurityPolicy) ValidatePathsWithinBase

func (p *MCPSecurityPolicy) ValidatePathsWithinBase(basePaths ...string) *MCPSecurityPolicy

ValidatePathsWithinBase restricts file paths to be within the given base directories.

type MCPServerBuilder

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

MCPServerBuilder provides a fluent API for building MCP servers with middleware.

func NewMCPServerBuilder

func NewMCPServerBuilder(name, version string) *MCPServerBuilder

NewMCPServerBuilder creates a new builder for an MCP server.

func (*MCPServerBuilder) AddResources

func (b *MCPServerBuilder) AddResources(resources ...server.ServerResource) *MCPServerBuilder

AddResources registers static resources with the server.

func (*MCPServerBuilder) AddTool

func (b *MCPServerBuilder) AddTool(
	name string,
	handler MCPToolHandler,
	opts MCPToolOptions,
	params ...mcp.ToolOption,
) *MCPServerBuilder

AddTool registers a tool with the server. The handler receives parsed ToolArgs (not raw mcp.CallToolRequest). Rate limiting is automatically applied. For URL/path security validation, use MCPServerBuilder.SecurityPolicy within the handler. params defines the tool's input parameters as mcp.ToolOption items.

func (*MCPServerBuilder) Build

func (b *MCPServerBuilder) Build() *server.MCPServer

Build creates the configured MCP server ready to serve.

func (*MCPServerBuilder) SecurityPolicy

func (b *MCPServerBuilder) SecurityPolicy() *MCPSecurityPolicy

SecurityPolicy returns the configured security policy, or nil if none was set. Tool handlers should use this to validate URLs and file paths:

if policy := builder.SecurityPolicy(); policy != nil {
    if err := policy.CheckURL(url); err != nil {
        return MCPErrorResult("blocked: %v", err), nil
    }
}

func (*MCPServerBuilder) WithInstructions

func (b *MCPServerBuilder) WithInstructions(instructions string) *MCPServerBuilder

WithInstructions sets system instructions that guide AI clients on how to use the server's tools.

func (*MCPServerBuilder) WithPromptCapabilities

func (b *MCPServerBuilder) WithPromptCapabilities(listChanged bool) *MCPServerBuilder

WithPromptCapabilities enables prompt support on the server. listChanged controls whether the server notifies clients when the prompt list changes.

func (*MCPServerBuilder) WithRateLimit

func (b *MCPServerBuilder) WithRateLimit(burst int, refillRate float64) *MCPServerBuilder

WithRateLimit configures a token bucket rate limiter. burst is the maximum number of concurrent requests, refillRate is tokens per second.

func (*MCPServerBuilder) WithResourceCapabilities

func (b *MCPServerBuilder) WithResourceCapabilities(subscribe, listChanged bool) *MCPServerBuilder

WithResourceCapabilities enables resource support on the server. subscribe controls whether clients can subscribe to resource changes. listChanged controls whether the server notifies clients when the resource list changes.

func (*MCPServerBuilder) WithSecurityPolicy

func (b *MCPServerBuilder) WithSecurityPolicy(policy *MCPSecurityPolicy) *MCPServerBuilder

WithSecurityPolicy attaches a security policy for URL/path validation. The policy is available to tool handlers via MCPServerBuilder.SecurityPolicy. Tool handlers should call CheckURL/CheckPath on it for relevant parameters, since the builder cannot automatically determine which arguments are URLs or paths.

func (*MCPServerBuilder) WithServerOption

func (b *MCPServerBuilder) WithServerOption(opt server.ServerOption) *MCPServerBuilder

WithServerOption adds a raw mcp-go server option for capabilities not directly exposed by the builder.

type MCPToolHandler

type MCPToolHandler func(ctx context.Context, args ToolArgs) (*mcp.CallToolResult, error)

MCPToolHandler is the handler function signature for MCP tools. It receives parsed ToolArgs and the server's security policy (may be nil).

type MCPToolOptions

type MCPToolOptions struct {
	Description string
	Title       string // TitleAnnotation
	ReadOnly    bool   // ReadOnlyHint annotation
	Idempotent  bool   // IdempotentHint annotation
	Destructive bool   // DestructiveHint annotation
}

MCPToolOptions configures an MCP tool registration.

type ModelLocationQuota

type ModelLocationQuota struct {

	// Location where model quota was evaluated.
	Location          *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	MaxRemainingQuota float64   `protobuf:"fixed64,2,opt,name=max_remaining_quota,json=maxRemainingQuota,proto3" json:"max_remaining_quota,omitempty"` // max remaining quota across model SKUs
	// contains filtered or unexported fields
}

func (*ModelLocationQuota) Descriptor deprecated

func (*ModelLocationQuota) Descriptor() ([]byte, []int)

Deprecated: Use ModelLocationQuota.ProtoReflect.Descriptor instead.

func (*ModelLocationQuota) GetLocation

func (x *ModelLocationQuota) GetLocation() *Location

func (*ModelLocationQuota) GetMaxRemainingQuota

func (x *ModelLocationQuota) GetMaxRemainingQuota() float64

func (*ModelLocationQuota) ProtoMessage

func (*ModelLocationQuota) ProtoMessage()

func (*ModelLocationQuota) ProtoReflect

func (x *ModelLocationQuota) ProtoReflect() protoreflect.Message

func (*ModelLocationQuota) Reset

func (x *ModelLocationQuota) Reset()

func (*ModelLocationQuota) String

func (x *ModelLocationQuota) String() string

type MultiSelectChoice

type MultiSelectChoice struct {
	Value    string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Label    string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Selected bool   `protobuf:"varint,3,opt,name=selected,proto3" json:"selected,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiSelectChoice) Descriptor deprecated

func (*MultiSelectChoice) Descriptor() ([]byte, []int)

Deprecated: Use MultiSelectChoice.ProtoReflect.Descriptor instead.

func (*MultiSelectChoice) GetLabel

func (x *MultiSelectChoice) GetLabel() string

func (*MultiSelectChoice) GetSelected

func (x *MultiSelectChoice) GetSelected() bool

func (*MultiSelectChoice) GetValue

func (x *MultiSelectChoice) GetValue() string

func (*MultiSelectChoice) ProtoMessage

func (*MultiSelectChoice) ProtoMessage()

func (*MultiSelectChoice) ProtoReflect

func (x *MultiSelectChoice) ProtoReflect() protoreflect.Message

func (*MultiSelectChoice) Reset

func (x *MultiSelectChoice) Reset()

func (*MultiSelectChoice) String

func (x *MultiSelectChoice) String() string

type MultiSelectOptions

type MultiSelectOptions struct {
	Message         string               `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	Choices         []*MultiSelectChoice `protobuf:"bytes,2,rep,name=choices,proto3" json:"choices,omitempty"`
	HelpMessage     string               `protobuf:"bytes,3,opt,name=help_message,json=helpMessage,proto3" json:"help_message,omitempty"`
	Hint            string               `protobuf:"bytes,4,opt,name=hint,proto3" json:"hint,omitempty"`
	DisplayCount    int32                `protobuf:"varint,5,opt,name=display_count,json=displayCount,proto3" json:"display_count,omitempty"`
	DisplayNumbers  *bool                `protobuf:"varint,6,opt,name=display_numbers,json=displayNumbers,proto3,oneof" json:"display_numbers,omitempty"`
	EnableFiltering *bool                `protobuf:"varint,7,opt,name=enable_filtering,json=enableFiltering,proto3,oneof" json:"enable_filtering,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiSelectOptions) Descriptor deprecated

func (*MultiSelectOptions) Descriptor() ([]byte, []int)

Deprecated: Use MultiSelectOptions.ProtoReflect.Descriptor instead.

func (*MultiSelectOptions) GetChoices

func (x *MultiSelectOptions) GetChoices() []*MultiSelectChoice

func (*MultiSelectOptions) GetDisplayCount

func (x *MultiSelectOptions) GetDisplayCount() int32

func (*MultiSelectOptions) GetDisplayNumbers

func (x *MultiSelectOptions) GetDisplayNumbers() bool

func (*MultiSelectOptions) GetEnableFiltering

func (x *MultiSelectOptions) GetEnableFiltering() bool

func (*MultiSelectOptions) GetHelpMessage

func (x *MultiSelectOptions) GetHelpMessage() string

func (*MultiSelectOptions) GetHint

func (x *MultiSelectOptions) GetHint() string

func (*MultiSelectOptions) GetMessage

func (x *MultiSelectOptions) GetMessage() string

func (*MultiSelectOptions) ProtoMessage

func (*MultiSelectOptions) ProtoMessage()

func (*MultiSelectOptions) ProtoReflect

func (x *MultiSelectOptions) ProtoReflect() protoreflect.Message

func (*MultiSelectOptions) Reset

func (x *MultiSelectOptions) Reset()

func (*MultiSelectOptions) String

func (x *MultiSelectOptions) String() string

type MultiSelectRequest

type MultiSelectRequest struct {
	Options *MultiSelectOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiSelectRequest) Descriptor deprecated

func (*MultiSelectRequest) Descriptor() ([]byte, []int)

Deprecated: Use MultiSelectRequest.ProtoReflect.Descriptor instead.

func (*MultiSelectRequest) GetOptions

func (x *MultiSelectRequest) GetOptions() *MultiSelectOptions

func (*MultiSelectRequest) ProtoMessage

func (*MultiSelectRequest) ProtoMessage()

func (*MultiSelectRequest) ProtoReflect

func (x *MultiSelectRequest) ProtoReflect() protoreflect.Message

func (*MultiSelectRequest) Reset

func (x *MultiSelectRequest) Reset()

func (*MultiSelectRequest) String

func (x *MultiSelectRequest) String() string

type MultiSelectResponse

type MultiSelectResponse struct {
	Values []*MultiSelectChoice `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*MultiSelectResponse) Descriptor deprecated

func (*MultiSelectResponse) Descriptor() ([]byte, []int)

Deprecated: Use MultiSelectResponse.ProtoReflect.Descriptor instead.

func (*MultiSelectResponse) GetValues

func (x *MultiSelectResponse) GetValues() []*MultiSelectChoice

func (*MultiSelectResponse) ProtoMessage

func (*MultiSelectResponse) ProtoMessage()

func (*MultiSelectResponse) ProtoReflect

func (x *MultiSelectResponse) ProtoReflect() protoreflect.Message

func (*MultiSelectResponse) Reset

func (x *MultiSelectResponse) Reset()

func (*MultiSelectResponse) String

func (x *MultiSelectResponse) String() string

type PageResponse

type PageResponse[T any] struct {
	// Value contains the items for this page.
	Value []T `json:"value"`

	// NextLink is the URL to the next page, or empty if this is the last page.
	NextLink string `json:"nextLink,omitempty"`
}

PageResponse is a single page returned by Pager.NextPage.

type Pager

type Pager[T any] struct {
	// contains filtered or unexported fields
}

Pager provides a generic, lazy iterator over paginated Azure REST API responses that use the standard { value, nextLink } pattern.

Usage:

pager := azdext.NewPager[MyItem](client, firstURL, nil)
for pager.More() {
    page, err := pager.NextPage(ctx)
    if err != nil { ... }
    for _, item := range page.Value {
        // process item
    }
}

func NewPager

func NewPager[T any](client HTTPDoer, firstURL string, opts *PagerOptions) *Pager[T]

NewPager creates a Pager that iterates over a paginated endpoint.

client may be a *ResilientClient or any type satisfying HTTPDoer. firstURL is the initial page URL.

func NewPagerFromHTTPClient

func NewPagerFromHTTPClient[T any](client *http.Client, firstURL string, opts *PagerOptions) *Pager[T]

NewPagerFromHTTPClient creates a Pager backed by a standard *http.Client.

func (*Pager[T]) Collect

func (p *Pager[T]) Collect(ctx context.Context) ([]T, error)

Collect is a convenience method that fetches all remaining pages and returns all items in a single slice.

To prevent unbounded memory growth from runaway pagination, Collect enforces [PagerOptions.MaxPages] (defaults to [defaultMaxPages] when unset) and [PagerOptions.MaxItems]. When either limit is reached, iteration stops and the items collected so far are returned.

If NextPage returns both page data and an error (e.g. rejected nextLink), the page data is included in the returned slice before returning the error.

func (*Pager[T]) More

func (p *Pager[T]) More() bool

More reports whether there are more pages to fetch.

func (*Pager[T]) NextPage

func (p *Pager[T]) NextPage(ctx context.Context) (*PageResponse[T], error)

NextPage fetches the next page of results. Returns an error if the request fails, the response is not 2xx, or the body cannot be decoded.

Response bodies are bounded to [maxPageResponseSize] to prevent excessive memory consumption. nextLink URLs are validated to prevent SSRF attacks (must stay on the same host with HTTPS).

After the last page is consumed, [More] returns false.

func (*Pager[T]) Truncated

func (p *Pager[T]) Truncated() bool

Truncated reports whether the last [Collect] call stopped early due to MaxPages or MaxItems limits. This allows callers to detect truncation without a breaking API change (Collect still returns ([]T, nil) on successful truncation).

type PagerOptions

type PagerOptions struct {
	// Method overrides the HTTP method used for page requests. Defaults to GET.
	Method string

	// MaxPages limits the maximum number of pages that [Pager.Collect] will
	// fetch. When set to a positive value, Collect stops after fetching that
	// many pages. A value of 0 means unlimited (no cap) for manual NextPage
	// iteration; Collect applies [defaultMaxPages] when this is 0.
	MaxPages int

	// MaxItems limits the maximum total items that [Pager.Collect] will
	// accumulate. When the collected items reach this count, Collect stops
	// and returns the items gathered so far (truncated to MaxItems).
	// A value of 0 means unlimited (no cap).
	MaxItems int
}

PagerOptions configures a Pager.

type PaginationError

type PaginationError struct {
	StatusCode int
	URL        string
	// Body is a truncated, sanitized excerpt of the error response body for
	// diagnostics. It is capped at [maxPaginationErrorBodyLen] bytes and
	// stripped of control characters to prevent log forging.
	Body string
}

PaginationError is returned when a page request receives a non-2xx response.

func (*PaginationError) Error

func (e *PaginationError) Error() string

type ParseGitHubUrlRequest

type ParseGitHubUrlRequest struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

ParseGitHubUrlRequest message definition

func (*ParseGitHubUrlRequest) Descriptor deprecated

func (*ParseGitHubUrlRequest) Descriptor() ([]byte, []int)

Deprecated: Use ParseGitHubUrlRequest.ProtoReflect.Descriptor instead.

func (*ParseGitHubUrlRequest) GetUrl

func (x *ParseGitHubUrlRequest) GetUrl() string

func (*ParseGitHubUrlRequest) ProtoMessage

func (*ParseGitHubUrlRequest) ProtoMessage()

func (*ParseGitHubUrlRequest) ProtoReflect

func (x *ParseGitHubUrlRequest) ProtoReflect() protoreflect.Message

func (*ParseGitHubUrlRequest) Reset

func (x *ParseGitHubUrlRequest) Reset()

func (*ParseGitHubUrlRequest) String

func (x *ParseGitHubUrlRequest) String() string

type ParseGitHubUrlResponse

type ParseGitHubUrlResponse struct {
	Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"`
	RepoSlug string `protobuf:"bytes,2,opt,name=repo_slug,json=repoSlug,proto3" json:"repo_slug,omitempty"`
	Branch   string `protobuf:"bytes,3,opt,name=branch,proto3" json:"branch,omitempty"`
	FilePath string `protobuf:"bytes,4,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
	// contains filtered or unexported fields
}

ParseGitHubUrlResponse message definition

func (*ParseGitHubUrlResponse) Descriptor deprecated

func (*ParseGitHubUrlResponse) Descriptor() ([]byte, []int)

Deprecated: Use ParseGitHubUrlResponse.ProtoReflect.Descriptor instead.

func (*ParseGitHubUrlResponse) GetBranch

func (x *ParseGitHubUrlResponse) GetBranch() string

func (*ParseGitHubUrlResponse) GetFilePath

func (x *ParseGitHubUrlResponse) GetFilePath() string

func (*ParseGitHubUrlResponse) GetHostname

func (x *ParseGitHubUrlResponse) GetHostname() string

func (*ParseGitHubUrlResponse) GetRepoSlug

func (x *ParseGitHubUrlResponse) GetRepoSlug() string

func (*ParseGitHubUrlResponse) ProtoMessage

func (*ParseGitHubUrlResponse) ProtoMessage()

func (*ParseGitHubUrlResponse) ProtoReflect

func (x *ParseGitHubUrlResponse) ProtoReflect() protoreflect.Message

func (*ParseGitHubUrlResponse) Reset

func (x *ParseGitHubUrlResponse) Reset()

func (*ParseGitHubUrlResponse) String

func (x *ParseGitHubUrlResponse) String() string

type ProgressReporter

type ProgressReporter = grpcbroker.ProgressFunc

ProgressReporter is an alias for the broker's ProgressFunc

type ProjectConfig

type ProjectConfig struct {
	Name                 string                    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ResourceGroupName    string                    `protobuf:"bytes,2,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"`
	Path                 string                    `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	Metadata             *ProjectMetadata          `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	Services             map[string]*ServiceConfig `` /* 143-byte string literal not displayed */
	Infra                *InfraOptions             `protobuf:"bytes,6,opt,name=infra,proto3" json:"infra,omitempty"`
	AdditionalProperties *structpb.Struct          `protobuf:"bytes,7,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
	// contains filtered or unexported fields
}

ProjectConfig message definition

func (*ProjectConfig) Descriptor deprecated

func (*ProjectConfig) Descriptor() ([]byte, []int)

Deprecated: Use ProjectConfig.ProtoReflect.Descriptor instead.

func (*ProjectConfig) GetAdditionalProperties

func (x *ProjectConfig) GetAdditionalProperties() *structpb.Struct

func (*ProjectConfig) GetInfra

func (x *ProjectConfig) GetInfra() *InfraOptions

func (*ProjectConfig) GetMetadata

func (x *ProjectConfig) GetMetadata() *ProjectMetadata

func (*ProjectConfig) GetName

func (x *ProjectConfig) GetName() string

func (*ProjectConfig) GetPath

func (x *ProjectConfig) GetPath() string

func (*ProjectConfig) GetResourceGroupName

func (x *ProjectConfig) GetResourceGroupName() string

func (*ProjectConfig) GetServices

func (x *ProjectConfig) GetServices() map[string]*ServiceConfig

func (*ProjectConfig) ProtoMessage

func (*ProjectConfig) ProtoMessage()

func (*ProjectConfig) ProtoReflect

func (x *ProjectConfig) ProtoReflect() protoreflect.Message

func (*ProjectConfig) Reset

func (x *ProjectConfig) Reset()

func (*ProjectConfig) String

func (x *ProjectConfig) String() string

type ProjectEventArgs

type ProjectEventArgs struct {
	Project *ProjectConfig
}

type ProjectEventHandler

type ProjectEventHandler func(ctx context.Context, args *ProjectEventArgs) error

type ProjectEventRegistration

type ProjectEventRegistration struct {
	EventName string
	Handler   ProjectEventHandler
}

ProjectEventRegistration describes a project-level event handler to register.

type ProjectHandlerStatus

type ProjectHandlerStatus struct {

	// Name of the event this status update is for.
	EventName string `protobuf:"bytes,1,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"`
	// Status such as "running", "completed", "failed", etc.
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// Optional message providing further details.
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

Client sends status updates for project events

func (*ProjectHandlerStatus) Descriptor deprecated

func (*ProjectHandlerStatus) Descriptor() ([]byte, []int)

Deprecated: Use ProjectHandlerStatus.ProtoReflect.Descriptor instead.

func (*ProjectHandlerStatus) GetEventName

func (x *ProjectHandlerStatus) GetEventName() string

func (*ProjectHandlerStatus) GetMessage

func (x *ProjectHandlerStatus) GetMessage() string

func (*ProjectHandlerStatus) GetStatus

func (x *ProjectHandlerStatus) GetStatus() string

func (*ProjectHandlerStatus) ProtoMessage

func (*ProjectHandlerStatus) ProtoMessage()

func (*ProjectHandlerStatus) ProtoReflect

func (x *ProjectHandlerStatus) ProtoReflect() protoreflect.Message

func (*ProjectHandlerStatus) Reset

func (x *ProjectHandlerStatus) Reset()

func (*ProjectHandlerStatus) String

func (x *ProjectHandlerStatus) String() string

type ProjectMetadata

type ProjectMetadata struct {
	Template string `protobuf:"bytes,1,opt,name=template,proto3" json:"template,omitempty"`
	// contains filtered or unexported fields
}

ProjectMetadata message definition

func (*ProjectMetadata) Descriptor deprecated

func (*ProjectMetadata) Descriptor() ([]byte, []int)

Deprecated: Use ProjectMetadata.ProtoReflect.Descriptor instead.

func (*ProjectMetadata) GetTemplate

func (x *ProjectMetadata) GetTemplate() string

func (*ProjectMetadata) ProtoMessage

func (*ProjectMetadata) ProtoMessage()

func (*ProjectMetadata) ProtoReflect

func (x *ProjectMetadata) ProtoReflect() protoreflect.Message

func (*ProjectMetadata) Reset

func (x *ProjectMetadata) Reset()

func (*ProjectMetadata) String

func (x *ProjectMetadata) String() string

type ProjectServiceClient

type ProjectServiceClient interface {
	// Gets the current project.
	Get(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GetProjectResponse, error)
	// GetServiceTargetResource resolves the target Azure resource for a service.
	// This uses azd's standard resource discovery logic which:
	// - Looks up resources by azd-service-name tag
	// - Falls back to explicit resourceName from configuration
	// - Resolves the resource group name from configuration or environment
	// The returned TargetResource includes subscription, resource group, resource name, and resource type.
	GetServiceTargetResource(ctx context.Context, in *GetServiceTargetResourceRequest, opts ...grpc.CallOption) (*GetServiceTargetResourceResponse, error)
	// AddService adds a new service to the project.
	AddService(ctx context.Context, in *AddServiceRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	// GetResolvedServices gets the resolved list of services after processing any importers (e.g., Aspire projects).
	// This returns the actual services that will be deployed, including those generated by importers.
	GetResolvedServices(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*GetResolvedServicesResponse, error)
	// ParseGitHubUrl parses a GitHub URL and extracts repository information.
	ParseGitHubUrl(ctx context.Context, in *ParseGitHubUrlRequest, opts ...grpc.CallOption) (*ParseGitHubUrlResponse, error)
	// Gets a configuration section by path.
	GetConfigSection(ctx context.Context, in *GetProjectConfigSectionRequest, opts ...grpc.CallOption) (*GetProjectConfigSectionResponse, error)
	// Gets a configuration value by path.
	GetConfigValue(ctx context.Context, in *GetProjectConfigValueRequest, opts ...grpc.CallOption) (*GetProjectConfigValueResponse, error)
	// Sets a configuration section by path.
	SetConfigSection(ctx context.Context, in *SetProjectConfigSectionRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	// Sets a configuration value by path.
	SetConfigValue(ctx context.Context, in *SetProjectConfigValueRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	// Removes configuration by path.
	UnsetConfig(ctx context.Context, in *UnsetProjectConfigRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	// Gets a service configuration section by path.
	GetServiceConfigSection(ctx context.Context, in *GetServiceConfigSectionRequest, opts ...grpc.CallOption) (*GetServiceConfigSectionResponse, error)
	// Gets a service configuration value by path.
	GetServiceConfigValue(ctx context.Context, in *GetServiceConfigValueRequest, opts ...grpc.CallOption) (*GetServiceConfigValueResponse, error)
	// Sets a service configuration section by path.
	SetServiceConfigSection(ctx context.Context, in *SetServiceConfigSectionRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	// Sets a service configuration value by path.
	SetServiceConfigValue(ctx context.Context, in *SetServiceConfigValueRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	// Removes service configuration by path.
	UnsetServiceConfig(ctx context.Context, in *UnsetServiceConfigRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
}

ProjectServiceClient is the client API for ProjectService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

ProjectService defines methods for managing projects and their configurations.

type ProjectServiceServer

type ProjectServiceServer interface {
	// Gets the current project.
	Get(context.Context, *EmptyRequest) (*GetProjectResponse, error)
	// GetServiceTargetResource resolves the target Azure resource for a service.
	// This uses azd's standard resource discovery logic which:
	// - Looks up resources by azd-service-name tag
	// - Falls back to explicit resourceName from configuration
	// - Resolves the resource group name from configuration or environment
	// The returned TargetResource includes subscription, resource group, resource name, and resource type.
	GetServiceTargetResource(context.Context, *GetServiceTargetResourceRequest) (*GetServiceTargetResourceResponse, error)
	// AddService adds a new service to the project.
	AddService(context.Context, *AddServiceRequest) (*EmptyResponse, error)
	// GetResolvedServices gets the resolved list of services after processing any importers (e.g., Aspire projects).
	// This returns the actual services that will be deployed, including those generated by importers.
	GetResolvedServices(context.Context, *EmptyRequest) (*GetResolvedServicesResponse, error)
	// ParseGitHubUrl parses a GitHub URL and extracts repository information.
	ParseGitHubUrl(context.Context, *ParseGitHubUrlRequest) (*ParseGitHubUrlResponse, error)
	// Gets a configuration section by path.
	GetConfigSection(context.Context, *GetProjectConfigSectionRequest) (*GetProjectConfigSectionResponse, error)
	// Gets a configuration value by path.
	GetConfigValue(context.Context, *GetProjectConfigValueRequest) (*GetProjectConfigValueResponse, error)
	// Sets a configuration section by path.
	SetConfigSection(context.Context, *SetProjectConfigSectionRequest) (*EmptyResponse, error)
	// Sets a configuration value by path.
	SetConfigValue(context.Context, *SetProjectConfigValueRequest) (*EmptyResponse, error)
	// Removes configuration by path.
	UnsetConfig(context.Context, *UnsetProjectConfigRequest) (*EmptyResponse, error)
	// Gets a service configuration section by path.
	GetServiceConfigSection(context.Context, *GetServiceConfigSectionRequest) (*GetServiceConfigSectionResponse, error)
	// Gets a service configuration value by path.
	GetServiceConfigValue(context.Context, *GetServiceConfigValueRequest) (*GetServiceConfigValueResponse, error)
	// Sets a service configuration section by path.
	SetServiceConfigSection(context.Context, *SetServiceConfigSectionRequest) (*EmptyResponse, error)
	// Sets a service configuration value by path.
	SetServiceConfigValue(context.Context, *SetServiceConfigValueRequest) (*EmptyResponse, error)
	// Removes service configuration by path.
	UnsetServiceConfig(context.Context, *UnsetServiceConfigRequest) (*EmptyResponse, error)
	// contains filtered or unexported methods
}

ProjectServiceServer is the server API for ProjectService service. All implementations must embed UnimplementedProjectServiceServer for forward compatibility.

ProjectService defines methods for managing projects and their configurations.

type PromptAiDeploymentRequest

type PromptAiDeploymentRequest struct {

	// Azure context with scope.subscription_id required.
	AzureContext *AzureContext `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	// Required model name to resolve deployment options for.
	ModelName string `protobuf:"bytes,2,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
	// Optional deployment filters (locations/versions/SKUs/capacity).
	Options *AiModelDeploymentOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// Optional quota filter. Requires options.locations with exactly one location.
	Quota *QuotaCheckOptions `protobuf:"bytes,4,opt,name=quota,proto3" json:"quota,omitempty"`
	// Skip version prompt and use the default version when available.
	UseDefaultVersion bool `protobuf:"varint,5,opt,name=use_default_version,json=useDefaultVersion,proto3" json:"use_default_version,omitempty"`
	// Skip capacity prompt and use resolved/default capacity.
	UseDefaultCapacity bool `protobuf:"varint,6,opt,name=use_default_capacity,json=useDefaultCapacity,proto3" json:"use_default_capacity,omitempty"`
	// Include fine-tune SKUs (usage names ending with "-finetune").
	IncludeFinetuneSkus bool `protobuf:"varint,7,opt,name=include_finetune_skus,json=includeFinetuneSkus,proto3" json:"include_finetune_skus,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptAiDeploymentRequest) Descriptor deprecated

func (*PromptAiDeploymentRequest) Descriptor() ([]byte, []int)

Deprecated: Use PromptAiDeploymentRequest.ProtoReflect.Descriptor instead.

func (*PromptAiDeploymentRequest) GetAzureContext

func (x *PromptAiDeploymentRequest) GetAzureContext() *AzureContext

func (*PromptAiDeploymentRequest) GetIncludeFinetuneSkus

func (x *PromptAiDeploymentRequest) GetIncludeFinetuneSkus() bool

func (*PromptAiDeploymentRequest) GetModelName

func (x *PromptAiDeploymentRequest) GetModelName() string

func (*PromptAiDeploymentRequest) GetOptions

func (*PromptAiDeploymentRequest) GetQuota

func (*PromptAiDeploymentRequest) GetUseDefaultCapacity

func (x *PromptAiDeploymentRequest) GetUseDefaultCapacity() bool

func (*PromptAiDeploymentRequest) GetUseDefaultVersion

func (x *PromptAiDeploymentRequest) GetUseDefaultVersion() bool

func (*PromptAiDeploymentRequest) ProtoMessage

func (*PromptAiDeploymentRequest) ProtoMessage()

func (*PromptAiDeploymentRequest) ProtoReflect

func (*PromptAiDeploymentRequest) Reset

func (x *PromptAiDeploymentRequest) Reset()

func (*PromptAiDeploymentRequest) String

func (x *PromptAiDeploymentRequest) String() string

type PromptAiDeploymentResponse

type PromptAiDeploymentResponse struct {

	// Selected deployment configuration.
	Deployment *AiModelDeployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptAiDeploymentResponse) Descriptor deprecated

func (*PromptAiDeploymentResponse) Descriptor() ([]byte, []int)

Deprecated: Use PromptAiDeploymentResponse.ProtoReflect.Descriptor instead.

func (*PromptAiDeploymentResponse) GetDeployment

func (x *PromptAiDeploymentResponse) GetDeployment() *AiModelDeployment

func (*PromptAiDeploymentResponse) ProtoMessage

func (*PromptAiDeploymentResponse) ProtoMessage()

func (*PromptAiDeploymentResponse) ProtoReflect

func (*PromptAiDeploymentResponse) Reset

func (x *PromptAiDeploymentResponse) Reset()

func (*PromptAiDeploymentResponse) String

func (x *PromptAiDeploymentResponse) String() string

type PromptAiLocationWithQuotaRequest

type PromptAiLocationWithQuotaRequest struct {

	// Azure context with scope.subscription_id required.
	AzureContext *AzureContext `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	// Required quota requirements that each returned location must satisfy.
	Requirements []*QuotaRequirement `protobuf:"bytes,2,rep,name=requirements,proto3" json:"requirements,omitempty"`
	// Optional allow-list for candidate locations.
	AllowedLocations []string `protobuf:"bytes,3,rep,name=allowed_locations,json=allowedLocations,proto3" json:"allowed_locations,omitempty"`
	// Optional select prompt customization (for example, message override).
	SelectOptions *SelectOptions `protobuf:"bytes,4,opt,name=select_options,json=selectOptions,proto3" json:"select_options,omitempty"`
	// Optional default location name to pre-select in the list.
	DefaultValue string `protobuf:"bytes,5,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptAiLocationWithQuotaRequest) Descriptor deprecated

func (*PromptAiLocationWithQuotaRequest) Descriptor() ([]byte, []int)

Deprecated: Use PromptAiLocationWithQuotaRequest.ProtoReflect.Descriptor instead.

func (*PromptAiLocationWithQuotaRequest) GetAllowedLocations

func (x *PromptAiLocationWithQuotaRequest) GetAllowedLocations() []string

func (*PromptAiLocationWithQuotaRequest) GetAzureContext

func (x *PromptAiLocationWithQuotaRequest) GetAzureContext() *AzureContext

func (*PromptAiLocationWithQuotaRequest) GetDefaultValue

func (x *PromptAiLocationWithQuotaRequest) GetDefaultValue() string

func (*PromptAiLocationWithQuotaRequest) GetRequirements

func (x *PromptAiLocationWithQuotaRequest) GetRequirements() []*QuotaRequirement

func (*PromptAiLocationWithQuotaRequest) GetSelectOptions

func (x *PromptAiLocationWithQuotaRequest) GetSelectOptions() *SelectOptions

func (*PromptAiLocationWithQuotaRequest) ProtoMessage

func (*PromptAiLocationWithQuotaRequest) ProtoMessage()

func (*PromptAiLocationWithQuotaRequest) ProtoReflect

func (*PromptAiLocationWithQuotaRequest) Reset

func (*PromptAiLocationWithQuotaRequest) String

type PromptAiLocationWithQuotaResponse

type PromptAiLocationWithQuotaResponse struct {

	// Selected location.
	Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptAiLocationWithQuotaResponse) Descriptor deprecated

func (*PromptAiLocationWithQuotaResponse) Descriptor() ([]byte, []int)

Deprecated: Use PromptAiLocationWithQuotaResponse.ProtoReflect.Descriptor instead.

func (*PromptAiLocationWithQuotaResponse) GetLocation

func (x *PromptAiLocationWithQuotaResponse) GetLocation() *Location

func (*PromptAiLocationWithQuotaResponse) ProtoMessage

func (*PromptAiLocationWithQuotaResponse) ProtoMessage()

func (*PromptAiLocationWithQuotaResponse) ProtoReflect

func (*PromptAiLocationWithQuotaResponse) Reset

func (*PromptAiLocationWithQuotaResponse) String

type PromptAiModelLocationWithQuotaRequest

type PromptAiModelLocationWithQuotaRequest struct {

	// Azure context with scope.subscription_id required.
	AzureContext *AzureContext `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	// Required model name to evaluate across locations.
	ModelName string `protobuf:"bytes,2,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
	// Optional allow-list for candidate locations.
	AllowedLocations []string `protobuf:"bytes,3,rep,name=allowed_locations,json=allowedLocations,proto3" json:"allowed_locations,omitempty"`
	// Optional min remaining quota threshold.
	Quota *QuotaCheckOptions `protobuf:"bytes,4,opt,name=quota,proto3" json:"quota,omitempty"`
	// Optional select prompt customization (for example, message override).
	SelectOptions *SelectOptions `protobuf:"bytes,5,opt,name=select_options,json=selectOptions,proto3" json:"select_options,omitempty"`
	// Optional default location name to pre-select in the list.
	DefaultValue string `protobuf:"bytes,6,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptAiModelLocationWithQuotaRequest) Descriptor deprecated

func (*PromptAiModelLocationWithQuotaRequest) Descriptor() ([]byte, []int)

Deprecated: Use PromptAiModelLocationWithQuotaRequest.ProtoReflect.Descriptor instead.

func (*PromptAiModelLocationWithQuotaRequest) GetAllowedLocations

func (x *PromptAiModelLocationWithQuotaRequest) GetAllowedLocations() []string

func (*PromptAiModelLocationWithQuotaRequest) GetAzureContext

func (*PromptAiModelLocationWithQuotaRequest) GetDefaultValue

func (x *PromptAiModelLocationWithQuotaRequest) GetDefaultValue() string

func (*PromptAiModelLocationWithQuotaRequest) GetModelName

func (*PromptAiModelLocationWithQuotaRequest) GetQuota

func (*PromptAiModelLocationWithQuotaRequest) GetSelectOptions

func (*PromptAiModelLocationWithQuotaRequest) ProtoMessage

func (*PromptAiModelLocationWithQuotaRequest) ProtoMessage()

func (*PromptAiModelLocationWithQuotaRequest) ProtoReflect

func (*PromptAiModelLocationWithQuotaRequest) Reset

func (*PromptAiModelLocationWithQuotaRequest) String

type PromptAiModelLocationWithQuotaResponse

type PromptAiModelLocationWithQuotaResponse struct {

	// Selected location.
	Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// Maximum remaining quota at the selected location across model SKUs.
	MaxRemainingQuota float64 `protobuf:"fixed64,2,opt,name=max_remaining_quota,json=maxRemainingQuota,proto3" json:"max_remaining_quota,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptAiModelLocationWithQuotaResponse) Descriptor deprecated

func (*PromptAiModelLocationWithQuotaResponse) Descriptor() ([]byte, []int)

Deprecated: Use PromptAiModelLocationWithQuotaResponse.ProtoReflect.Descriptor instead.

func (*PromptAiModelLocationWithQuotaResponse) GetLocation

func (*PromptAiModelLocationWithQuotaResponse) GetMaxRemainingQuota

func (x *PromptAiModelLocationWithQuotaResponse) GetMaxRemainingQuota() float64

func (*PromptAiModelLocationWithQuotaResponse) ProtoMessage

func (*PromptAiModelLocationWithQuotaResponse) ProtoReflect

func (*PromptAiModelLocationWithQuotaResponse) Reset

func (*PromptAiModelLocationWithQuotaResponse) String

type PromptAiModelRequest

type PromptAiModelRequest struct {

	// Azure context with scope.subscription_id required.
	AzureContext *AzureContext `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	// Optional model filter criteria.
	Filter *AiModelFilterOptions `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
	// Optional select prompt customization (for example, message override).
	SelectOptions *SelectOptions `protobuf:"bytes,3,opt,name=select_options,json=selectOptions,proto3" json:"select_options,omitempty"`
	// Optional quota filter.
	// Quota is evaluated using effective locations from filter.locations.
	// With multiple locations, a model is kept if any location has sufficient quota.
	Quota *QuotaCheckOptions `protobuf:"bytes,4,opt,name=quota,proto3" json:"quota,omitempty"`
	// Optional default model name to pre-select in the list.
	DefaultValue string `protobuf:"bytes,5,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptAiModelRequest) Descriptor deprecated

func (*PromptAiModelRequest) Descriptor() ([]byte, []int)

Deprecated: Use PromptAiModelRequest.ProtoReflect.Descriptor instead.

func (*PromptAiModelRequest) GetAzureContext

func (x *PromptAiModelRequest) GetAzureContext() *AzureContext

func (*PromptAiModelRequest) GetDefaultValue

func (x *PromptAiModelRequest) GetDefaultValue() string

func (*PromptAiModelRequest) GetFilter

func (*PromptAiModelRequest) GetQuota

func (x *PromptAiModelRequest) GetQuota() *QuotaCheckOptions

func (*PromptAiModelRequest) GetSelectOptions

func (x *PromptAiModelRequest) GetSelectOptions() *SelectOptions

func (*PromptAiModelRequest) ProtoMessage

func (*PromptAiModelRequest) ProtoMessage()

func (*PromptAiModelRequest) ProtoReflect

func (x *PromptAiModelRequest) ProtoReflect() protoreflect.Message

func (*PromptAiModelRequest) Reset

func (x *PromptAiModelRequest) Reset()

func (*PromptAiModelRequest) String

func (x *PromptAiModelRequest) String() string

type PromptAiModelResponse

type PromptAiModelResponse struct {

	// Selected model from the filtered catalog.
	Model *AiModel `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptAiModelResponse) Descriptor deprecated

func (*PromptAiModelResponse) Descriptor() ([]byte, []int)

Deprecated: Use PromptAiModelResponse.ProtoReflect.Descriptor instead.

func (*PromptAiModelResponse) GetModel

func (x *PromptAiModelResponse) GetModel() *AiModel

func (*PromptAiModelResponse) ProtoMessage

func (*PromptAiModelResponse) ProtoMessage()

func (*PromptAiModelResponse) ProtoReflect

func (x *PromptAiModelResponse) ProtoReflect() protoreflect.Message

func (*PromptAiModelResponse) Reset

func (x *PromptAiModelResponse) Reset()

func (*PromptAiModelResponse) String

func (x *PromptAiModelResponse) String() string

type PromptLocationRequest

type PromptLocationRequest struct {
	AzureContext *AzureContext `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptLocationRequest) Descriptor deprecated

func (*PromptLocationRequest) Descriptor() ([]byte, []int)

Deprecated: Use PromptLocationRequest.ProtoReflect.Descriptor instead.

func (*PromptLocationRequest) GetAzureContext

func (x *PromptLocationRequest) GetAzureContext() *AzureContext

func (*PromptLocationRequest) ProtoMessage

func (*PromptLocationRequest) ProtoMessage()

func (*PromptLocationRequest) ProtoReflect

func (x *PromptLocationRequest) ProtoReflect() protoreflect.Message

func (*PromptLocationRequest) Reset

func (x *PromptLocationRequest) Reset()

func (*PromptLocationRequest) String

func (x *PromptLocationRequest) String() string

type PromptLocationResponse

type PromptLocationResponse struct {
	Location *Location `protobuf:"bytes,1,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptLocationResponse) Descriptor deprecated

func (*PromptLocationResponse) Descriptor() ([]byte, []int)

Deprecated: Use PromptLocationResponse.ProtoReflect.Descriptor instead.

func (*PromptLocationResponse) GetLocation

func (x *PromptLocationResponse) GetLocation() *Location

func (*PromptLocationResponse) ProtoMessage

func (*PromptLocationResponse) ProtoMessage()

func (*PromptLocationResponse) ProtoReflect

func (x *PromptLocationResponse) ProtoReflect() protoreflect.Message

func (*PromptLocationResponse) Reset

func (x *PromptLocationResponse) Reset()

func (*PromptLocationResponse) String

func (x *PromptLocationResponse) String() string

type PromptOptions

type PromptOptions struct {
	Message           string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	HelpMessage       string `protobuf:"bytes,2,opt,name=help_message,json=helpMessage,proto3" json:"help_message,omitempty"`
	Hint              string `protobuf:"bytes,3,opt,name=hint,proto3" json:"hint,omitempty"`
	Placeholder       string `protobuf:"bytes,4,opt,name=placeholder,proto3" json:"placeholder,omitempty"`
	ValidationMessage string `protobuf:"bytes,5,opt,name=validation_message,json=validationMessage,proto3" json:"validation_message,omitempty"`
	RequiredMessage   string `protobuf:"bytes,6,opt,name=required_message,json=requiredMessage,proto3" json:"required_message,omitempty"`
	Required          bool   `protobuf:"varint,7,opt,name=required,proto3" json:"required,omitempty"`
	DefaultValue      string `protobuf:"bytes,8,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	ClearOnCompletion bool   `protobuf:"varint,9,opt,name=clear_on_completion,json=clearOnCompletion,proto3" json:"clear_on_completion,omitempty"`
	IgnoreHintKeys    bool   `protobuf:"varint,10,opt,name=ignore_hint_keys,json=ignoreHintKeys,proto3" json:"ignore_hint_keys,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptOptions) Descriptor deprecated

func (*PromptOptions) Descriptor() ([]byte, []int)

Deprecated: Use PromptOptions.ProtoReflect.Descriptor instead.

func (*PromptOptions) GetClearOnCompletion

func (x *PromptOptions) GetClearOnCompletion() bool

func (*PromptOptions) GetDefaultValue

func (x *PromptOptions) GetDefaultValue() string

func (*PromptOptions) GetHelpMessage

func (x *PromptOptions) GetHelpMessage() string

func (*PromptOptions) GetHint

func (x *PromptOptions) GetHint() string

func (*PromptOptions) GetIgnoreHintKeys

func (x *PromptOptions) GetIgnoreHintKeys() bool

func (*PromptOptions) GetMessage

func (x *PromptOptions) GetMessage() string

func (*PromptOptions) GetPlaceholder

func (x *PromptOptions) GetPlaceholder() string

func (*PromptOptions) GetRequired

func (x *PromptOptions) GetRequired() bool

func (*PromptOptions) GetRequiredMessage

func (x *PromptOptions) GetRequiredMessage() string

func (*PromptOptions) GetValidationMessage

func (x *PromptOptions) GetValidationMessage() string

func (*PromptOptions) ProtoMessage

func (*PromptOptions) ProtoMessage()

func (*PromptOptions) ProtoReflect

func (x *PromptOptions) ProtoReflect() protoreflect.Message

func (*PromptOptions) Reset

func (x *PromptOptions) Reset()

func (*PromptOptions) String

func (x *PromptOptions) String() string

type PromptRequest

type PromptRequest struct {
	Options *PromptOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptRequest) Descriptor deprecated

func (*PromptRequest) Descriptor() ([]byte, []int)

Deprecated: Use PromptRequest.ProtoReflect.Descriptor instead.

func (*PromptRequest) GetOptions

func (x *PromptRequest) GetOptions() *PromptOptions

func (*PromptRequest) ProtoMessage

func (*PromptRequest) ProtoMessage()

func (*PromptRequest) ProtoReflect

func (x *PromptRequest) ProtoReflect() protoreflect.Message

func (*PromptRequest) Reset

func (x *PromptRequest) Reset()

func (*PromptRequest) String

func (x *PromptRequest) String() string

type PromptResourceGroupOptions

type PromptResourceGroupOptions struct {
	SelectOptions *PromptResourceSelectOptions `protobuf:"bytes,1,opt,name=select_options,json=selectOptions,proto3" json:"select_options,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptResourceGroupOptions) Descriptor deprecated

func (*PromptResourceGroupOptions) Descriptor() ([]byte, []int)

Deprecated: Use PromptResourceGroupOptions.ProtoReflect.Descriptor instead.

func (*PromptResourceGroupOptions) GetSelectOptions

func (*PromptResourceGroupOptions) ProtoMessage

func (*PromptResourceGroupOptions) ProtoMessage()

func (*PromptResourceGroupOptions) ProtoReflect

func (*PromptResourceGroupOptions) Reset

func (x *PromptResourceGroupOptions) Reset()

func (*PromptResourceGroupOptions) String

func (x *PromptResourceGroupOptions) String() string

type PromptResourceGroupRequest

type PromptResourceGroupRequest struct {
	AzureContext *AzureContext               `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	Options      *PromptResourceGroupOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptResourceGroupRequest) Descriptor deprecated

func (*PromptResourceGroupRequest) Descriptor() ([]byte, []int)

Deprecated: Use PromptResourceGroupRequest.ProtoReflect.Descriptor instead.

func (*PromptResourceGroupRequest) GetAzureContext

func (x *PromptResourceGroupRequest) GetAzureContext() *AzureContext

func (*PromptResourceGroupRequest) GetOptions

func (*PromptResourceGroupRequest) ProtoMessage

func (*PromptResourceGroupRequest) ProtoMessage()

func (*PromptResourceGroupRequest) ProtoReflect

func (*PromptResourceGroupRequest) Reset

func (x *PromptResourceGroupRequest) Reset()

func (*PromptResourceGroupRequest) String

func (x *PromptResourceGroupRequest) String() string

type PromptResourceGroupResourceRequest

type PromptResourceGroupResourceRequest struct {
	AzureContext *AzureContext          `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	Options      *PromptResourceOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptResourceGroupResourceRequest) Descriptor deprecated

func (*PromptResourceGroupResourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use PromptResourceGroupResourceRequest.ProtoReflect.Descriptor instead.

func (*PromptResourceGroupResourceRequest) GetAzureContext

func (x *PromptResourceGroupResourceRequest) GetAzureContext() *AzureContext

func (*PromptResourceGroupResourceRequest) GetOptions

func (*PromptResourceGroupResourceRequest) ProtoMessage

func (*PromptResourceGroupResourceRequest) ProtoMessage()

func (*PromptResourceGroupResourceRequest) ProtoReflect

func (*PromptResourceGroupResourceRequest) Reset

func (*PromptResourceGroupResourceRequest) String

type PromptResourceGroupResourceResponse

type PromptResourceGroupResourceResponse struct {
	Resource *ResourceExtended `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptResourceGroupResourceResponse) Descriptor deprecated

func (*PromptResourceGroupResourceResponse) Descriptor() ([]byte, []int)

Deprecated: Use PromptResourceGroupResourceResponse.ProtoReflect.Descriptor instead.

func (*PromptResourceGroupResourceResponse) GetResource

func (*PromptResourceGroupResourceResponse) ProtoMessage

func (*PromptResourceGroupResourceResponse) ProtoMessage()

func (*PromptResourceGroupResourceResponse) ProtoReflect

func (*PromptResourceGroupResourceResponse) Reset

func (*PromptResourceGroupResourceResponse) String

type PromptResourceGroupResponse

type PromptResourceGroupResponse struct {
	ResourceGroup *ResourceGroup `protobuf:"bytes,1,opt,name=resource_group,json=resourceGroup,proto3" json:"resource_group,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptResourceGroupResponse) Descriptor deprecated

func (*PromptResourceGroupResponse) Descriptor() ([]byte, []int)

Deprecated: Use PromptResourceGroupResponse.ProtoReflect.Descriptor instead.

func (*PromptResourceGroupResponse) GetResourceGroup

func (x *PromptResourceGroupResponse) GetResourceGroup() *ResourceGroup

func (*PromptResourceGroupResponse) ProtoMessage

func (*PromptResourceGroupResponse) ProtoMessage()

func (*PromptResourceGroupResponse) ProtoReflect

func (*PromptResourceGroupResponse) Reset

func (x *PromptResourceGroupResponse) Reset()

func (*PromptResourceGroupResponse) String

func (x *PromptResourceGroupResponse) String() string

type PromptResourceOptions

type PromptResourceOptions struct {
	ResourceType            string                       `protobuf:"bytes,1,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	Kinds                   []string                     `protobuf:"bytes,2,rep,name=kinds,proto3" json:"kinds,omitempty"`
	ResourceTypeDisplayName string                       `` /* 134-byte string literal not displayed */
	SelectOptions           *PromptResourceSelectOptions `protobuf:"bytes,4,opt,name=select_options,json=selectOptions,proto3" json:"select_options,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptResourceOptions) Descriptor deprecated

func (*PromptResourceOptions) Descriptor() ([]byte, []int)

Deprecated: Use PromptResourceOptions.ProtoReflect.Descriptor instead.

func (*PromptResourceOptions) GetKinds

func (x *PromptResourceOptions) GetKinds() []string

func (*PromptResourceOptions) GetResourceType

func (x *PromptResourceOptions) GetResourceType() string

func (*PromptResourceOptions) GetResourceTypeDisplayName

func (x *PromptResourceOptions) GetResourceTypeDisplayName() string

func (*PromptResourceOptions) GetSelectOptions

func (x *PromptResourceOptions) GetSelectOptions() *PromptResourceSelectOptions

func (*PromptResourceOptions) ProtoMessage

func (*PromptResourceOptions) ProtoMessage()

func (*PromptResourceOptions) ProtoReflect

func (x *PromptResourceOptions) ProtoReflect() protoreflect.Message

func (*PromptResourceOptions) Reset

func (x *PromptResourceOptions) Reset()

func (*PromptResourceOptions) String

func (x *PromptResourceOptions) String() string

type PromptResourceSelectOptions

type PromptResourceSelectOptions struct {
	ForceNewResource   *bool  `protobuf:"varint,1,opt,name=force_new_resource,json=forceNewResource,proto3,oneof" json:"force_new_resource,omitempty"`
	AllowNewResource   *bool  `protobuf:"varint,2,opt,name=allow_new_resource,json=allowNewResource,proto3,oneof" json:"allow_new_resource,omitempty"`
	NewResourceMessage string `protobuf:"bytes,3,opt,name=new_resource_message,json=newResourceMessage,proto3" json:"new_resource_message,omitempty"`
	CreatingMessage    string `protobuf:"bytes,4,opt,name=creating_message,json=creatingMessage,proto3" json:"creating_message,omitempty"`
	Message            string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	HelpMessage        string `protobuf:"bytes,6,opt,name=help_message,json=helpMessage,proto3" json:"help_message,omitempty"`
	LoadingMessage     string `protobuf:"bytes,7,opt,name=loading_message,json=loadingMessage,proto3" json:"loading_message,omitempty"`
	DisplayNumbers     *bool  `protobuf:"varint,8,opt,name=display_numbers,json=displayNumbers,proto3,oneof" json:"display_numbers,omitempty"`
	DisplayCount       int32  `protobuf:"varint,9,opt,name=display_count,json=displayCount,proto3" json:"display_count,omitempty"`
	Hint               string `protobuf:"bytes,10,opt,name=hint,proto3" json:"hint,omitempty"`
	EnableFiltering    *bool  `protobuf:"varint,11,opt,name=enable_filtering,json=enableFiltering,proto3,oneof" json:"enable_filtering,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptResourceSelectOptions) Descriptor deprecated

func (*PromptResourceSelectOptions) Descriptor() ([]byte, []int)

Deprecated: Use PromptResourceSelectOptions.ProtoReflect.Descriptor instead.

func (*PromptResourceSelectOptions) GetAllowNewResource

func (x *PromptResourceSelectOptions) GetAllowNewResource() bool

func (*PromptResourceSelectOptions) GetCreatingMessage

func (x *PromptResourceSelectOptions) GetCreatingMessage() string

func (*PromptResourceSelectOptions) GetDisplayCount

func (x *PromptResourceSelectOptions) GetDisplayCount() int32

func (*PromptResourceSelectOptions) GetDisplayNumbers

func (x *PromptResourceSelectOptions) GetDisplayNumbers() bool

func (*PromptResourceSelectOptions) GetEnableFiltering

func (x *PromptResourceSelectOptions) GetEnableFiltering() bool

func (*PromptResourceSelectOptions) GetForceNewResource

func (x *PromptResourceSelectOptions) GetForceNewResource() bool

func (*PromptResourceSelectOptions) GetHelpMessage

func (x *PromptResourceSelectOptions) GetHelpMessage() string

func (*PromptResourceSelectOptions) GetHint

func (x *PromptResourceSelectOptions) GetHint() string

func (*PromptResourceSelectOptions) GetLoadingMessage

func (x *PromptResourceSelectOptions) GetLoadingMessage() string

func (*PromptResourceSelectOptions) GetMessage

func (x *PromptResourceSelectOptions) GetMessage() string

func (*PromptResourceSelectOptions) GetNewResourceMessage

func (x *PromptResourceSelectOptions) GetNewResourceMessage() string

func (*PromptResourceSelectOptions) ProtoMessage

func (*PromptResourceSelectOptions) ProtoMessage()

func (*PromptResourceSelectOptions) ProtoReflect

func (*PromptResourceSelectOptions) Reset

func (x *PromptResourceSelectOptions) Reset()

func (*PromptResourceSelectOptions) String

func (x *PromptResourceSelectOptions) String() string

type PromptResponse

type PromptResponse struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptResponse) Descriptor deprecated

func (*PromptResponse) Descriptor() ([]byte, []int)

Deprecated: Use PromptResponse.ProtoReflect.Descriptor instead.

func (*PromptResponse) GetValue

func (x *PromptResponse) GetValue() string

func (*PromptResponse) ProtoMessage

func (*PromptResponse) ProtoMessage()

func (*PromptResponse) ProtoReflect

func (x *PromptResponse) ProtoReflect() protoreflect.Message

func (*PromptResponse) Reset

func (x *PromptResponse) Reset()

func (*PromptResponse) String

func (x *PromptResponse) String() string

type PromptServiceClient

type PromptServiceClient interface {
	// PromptSubscription prompts the user to select a subscription.
	PromptSubscription(ctx context.Context, in *PromptSubscriptionRequest, opts ...grpc.CallOption) (*PromptSubscriptionResponse, error)
	// PromptLocation prompts the user to select a location.
	PromptLocation(ctx context.Context, in *PromptLocationRequest, opts ...grpc.CallOption) (*PromptLocationResponse, error)
	// PromptResourceGroup prompts the user to select a resource group.
	PromptResourceGroup(ctx context.Context, in *PromptResourceGroupRequest, opts ...grpc.CallOption) (*PromptResourceGroupResponse, error)
	// Confirm prompts the user to confirm an action.
	Confirm(ctx context.Context, in *ConfirmRequest, opts ...grpc.CallOption) (*ConfirmResponse, error)
	// Prompt prompts the user for text input.
	Prompt(ctx context.Context, in *PromptRequest, opts ...grpc.CallOption) (*PromptResponse, error)
	// Select prompts the user to select an option from a list.
	Select(ctx context.Context, in *SelectRequest, opts ...grpc.CallOption) (*SelectResponse, error)
	// MultiSelect prompts the user to select multiple options from a list.
	MultiSelect(ctx context.Context, in *MultiSelectRequest, opts ...grpc.CallOption) (*MultiSelectResponse, error)
	// PromptSubscriptionResource prompts the user to select a resource from a subscription.
	PromptSubscriptionResource(ctx context.Context, in *PromptSubscriptionResourceRequest, opts ...grpc.CallOption) (*PromptSubscriptionResourceResponse, error)
	// PromptResourceGroupResource prompts the user to select a resource from a resource group.
	PromptResourceGroupResource(ctx context.Context, in *PromptResourceGroupResourceRequest, opts ...grpc.CallOption) (*PromptResourceGroupResourceResponse, error)
	// PromptAiModel prompts the user to select an AI model scoped by effective location.
	// Effective location only affects which models are eligible for selection;
	// the returned model keeps canonical metadata (including full locations).
	// Effective location is defined by filter.locations.
	// If filter.locations is empty, models are considered across subscription locations.
	// If quota is set:
	//   - one location in filter.locations: quota is evaluated at that location.
	//   - multiple locations in filter.locations: quota is evaluated for each location and
	//     models are kept when quota is sufficient in at least one location.
	//   - empty filter.locations: quota is evaluated across model-declared locations.
	PromptAiModel(ctx context.Context, in *PromptAiModelRequest, opts ...grpc.CallOption) (*PromptAiModelResponse, error)
	// PromptAiDeployment prompts for version, SKU, and capacity sequentially.
	// This is the primary interactive primitive for model deployment selection.
	// Effective location is defined by options.locations.
	// If options.locations is empty, model catalog is considered across subscription locations.
	// Quota requires exactly one effective location (via options.locations).
	PromptAiDeployment(ctx context.Context, in *PromptAiDeploymentRequest, opts ...grpc.CallOption) (*PromptAiDeploymentResponse, error)
	// PromptAiLocationWithQuota prompts for a location filtered by quota requirements.
	PromptAiLocationWithQuota(ctx context.Context, in *PromptAiLocationWithQuotaRequest, opts ...grpc.CallOption) (*PromptAiLocationWithQuotaResponse, error)
	// PromptAiModelLocationWithQuota prompts for a model location and displays remaining quota.
	PromptAiModelLocationWithQuota(ctx context.Context, in *PromptAiModelLocationWithQuotaRequest, opts ...grpc.CallOption) (*PromptAiModelLocationWithQuotaResponse, error)
}

PromptServiceClient is the client API for PromptService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PromptServiceServer

type PromptServiceServer interface {
	// PromptSubscription prompts the user to select a subscription.
	PromptSubscription(context.Context, *PromptSubscriptionRequest) (*PromptSubscriptionResponse, error)
	// PromptLocation prompts the user to select a location.
	PromptLocation(context.Context, *PromptLocationRequest) (*PromptLocationResponse, error)
	// PromptResourceGroup prompts the user to select a resource group.
	PromptResourceGroup(context.Context, *PromptResourceGroupRequest) (*PromptResourceGroupResponse, error)
	// Confirm prompts the user to confirm an action.
	Confirm(context.Context, *ConfirmRequest) (*ConfirmResponse, error)
	// Prompt prompts the user for text input.
	Prompt(context.Context, *PromptRequest) (*PromptResponse, error)
	// Select prompts the user to select an option from a list.
	Select(context.Context, *SelectRequest) (*SelectResponse, error)
	// MultiSelect prompts the user to select multiple options from a list.
	MultiSelect(context.Context, *MultiSelectRequest) (*MultiSelectResponse, error)
	// PromptSubscriptionResource prompts the user to select a resource from a subscription.
	PromptSubscriptionResource(context.Context, *PromptSubscriptionResourceRequest) (*PromptSubscriptionResourceResponse, error)
	// PromptResourceGroupResource prompts the user to select a resource from a resource group.
	PromptResourceGroupResource(context.Context, *PromptResourceGroupResourceRequest) (*PromptResourceGroupResourceResponse, error)
	// PromptAiModel prompts the user to select an AI model scoped by effective location.
	// Effective location only affects which models are eligible for selection;
	// the returned model keeps canonical metadata (including full locations).
	// Effective location is defined by filter.locations.
	// If filter.locations is empty, models are considered across subscription locations.
	// If quota is set:
	//   - one location in filter.locations: quota is evaluated at that location.
	//   - multiple locations in filter.locations: quota is evaluated for each location and
	//     models are kept when quota is sufficient in at least one location.
	//   - empty filter.locations: quota is evaluated across model-declared locations.
	PromptAiModel(context.Context, *PromptAiModelRequest) (*PromptAiModelResponse, error)
	// PromptAiDeployment prompts for version, SKU, and capacity sequentially.
	// This is the primary interactive primitive for model deployment selection.
	// Effective location is defined by options.locations.
	// If options.locations is empty, model catalog is considered across subscription locations.
	// Quota requires exactly one effective location (via options.locations).
	PromptAiDeployment(context.Context, *PromptAiDeploymentRequest) (*PromptAiDeploymentResponse, error)
	// PromptAiLocationWithQuota prompts for a location filtered by quota requirements.
	PromptAiLocationWithQuota(context.Context, *PromptAiLocationWithQuotaRequest) (*PromptAiLocationWithQuotaResponse, error)
	// PromptAiModelLocationWithQuota prompts for a model location and displays remaining quota.
	PromptAiModelLocationWithQuota(context.Context, *PromptAiModelLocationWithQuotaRequest) (*PromptAiModelLocationWithQuotaResponse, error)
	// contains filtered or unexported methods
}

PromptServiceServer is the server API for PromptService service. All implementations must embed UnimplementedPromptServiceServer for forward compatibility.

type PromptSubscriptionRequest

type PromptSubscriptionRequest struct {
	Message     string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
	HelpMessage string `protobuf:"bytes,2,opt,name=HelpMessage,proto3" json:"HelpMessage,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptSubscriptionRequest) Descriptor deprecated

func (*PromptSubscriptionRequest) Descriptor() ([]byte, []int)

Deprecated: Use PromptSubscriptionRequest.ProtoReflect.Descriptor instead.

func (*PromptSubscriptionRequest) GetHelpMessage

func (x *PromptSubscriptionRequest) GetHelpMessage() string

func (*PromptSubscriptionRequest) GetMessage

func (x *PromptSubscriptionRequest) GetMessage() string

func (*PromptSubscriptionRequest) ProtoMessage

func (*PromptSubscriptionRequest) ProtoMessage()

func (*PromptSubscriptionRequest) ProtoReflect

func (*PromptSubscriptionRequest) Reset

func (x *PromptSubscriptionRequest) Reset()

func (*PromptSubscriptionRequest) String

func (x *PromptSubscriptionRequest) String() string

type PromptSubscriptionResourceRequest

type PromptSubscriptionResourceRequest struct {
	AzureContext *AzureContext          `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	Options      *PromptResourceOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptSubscriptionResourceRequest) Descriptor deprecated

func (*PromptSubscriptionResourceRequest) Descriptor() ([]byte, []int)

Deprecated: Use PromptSubscriptionResourceRequest.ProtoReflect.Descriptor instead.

func (*PromptSubscriptionResourceRequest) GetAzureContext

func (x *PromptSubscriptionResourceRequest) GetAzureContext() *AzureContext

func (*PromptSubscriptionResourceRequest) GetOptions

func (*PromptSubscriptionResourceRequest) ProtoMessage

func (*PromptSubscriptionResourceRequest) ProtoMessage()

func (*PromptSubscriptionResourceRequest) ProtoReflect

func (*PromptSubscriptionResourceRequest) Reset

func (*PromptSubscriptionResourceRequest) String

type PromptSubscriptionResourceResponse

type PromptSubscriptionResourceResponse struct {
	Resource *ResourceExtended `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptSubscriptionResourceResponse) Descriptor deprecated

func (*PromptSubscriptionResourceResponse) Descriptor() ([]byte, []int)

Deprecated: Use PromptSubscriptionResourceResponse.ProtoReflect.Descriptor instead.

func (*PromptSubscriptionResourceResponse) GetResource

func (*PromptSubscriptionResourceResponse) ProtoMessage

func (*PromptSubscriptionResourceResponse) ProtoMessage()

func (*PromptSubscriptionResourceResponse) ProtoReflect

func (*PromptSubscriptionResourceResponse) Reset

func (*PromptSubscriptionResourceResponse) String

type PromptSubscriptionResponse

type PromptSubscriptionResponse struct {
	Subscription *Subscription `protobuf:"bytes,1,opt,name=subscription,proto3" json:"subscription,omitempty"`
	// contains filtered or unexported fields
}

func (*PromptSubscriptionResponse) Descriptor deprecated

func (*PromptSubscriptionResponse) Descriptor() ([]byte, []int)

Deprecated: Use PromptSubscriptionResponse.ProtoReflect.Descriptor instead.

func (*PromptSubscriptionResponse) GetSubscription

func (x *PromptSubscriptionResponse) GetSubscription() *Subscription

func (*PromptSubscriptionResponse) ProtoMessage

func (*PromptSubscriptionResponse) ProtoMessage()

func (*PromptSubscriptionResponse) ProtoReflect

func (*PromptSubscriptionResponse) Reset

func (x *PromptSubscriptionResponse) Reset()

func (*PromptSubscriptionResponse) String

func (x *PromptSubscriptionResponse) String() string

type Provider

type Provider interface {
	Initialize(ctx context.Context, serviceConfig *ServiceConfig) error
}

Provider is a generic interface that both ServiceTargetProvider and FrameworkServiceProvider implement

type ProviderFactory

type ProviderFactory[T any] func() T

ProviderFactory describes a function that creates a provider instance

type PublishOptions

type PublishOptions struct {

	// Image specifies the target image in the form '[registry/]repository[:tag]'
	Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

PublishOptions holds options for publish operations

func (*PublishOptions) Descriptor deprecated

func (*PublishOptions) Descriptor() ([]byte, []int)

Deprecated: Use PublishOptions.ProtoReflect.Descriptor instead.

func (*PublishOptions) GetImage

func (x *PublishOptions) GetImage() string

func (*PublishOptions) ProtoMessage

func (*PublishOptions) ProtoMessage()

func (*PublishOptions) ProtoReflect

func (x *PublishOptions) ProtoReflect() protoreflect.Message

func (*PublishOptions) Reset

func (x *PublishOptions) Reset()

func (*PublishOptions) String

func (x *PublishOptions) String() string

type QuotaCheckOptions

type QuotaCheckOptions struct {
	MinRemainingCapacity float64 `protobuf:"fixed64,1,opt,name=min_remaining_capacity,json=minRemainingCapacity,proto3" json:"min_remaining_capacity,omitempty"` // 0 means any remaining > 0
	// contains filtered or unexported fields
}

QuotaCheckOptions enables quota-aware filtering. Fetches usage data and excludes models/SKUs without sufficient remaining capacity.

func (*QuotaCheckOptions) Descriptor deprecated

func (*QuotaCheckOptions) Descriptor() ([]byte, []int)

Deprecated: Use QuotaCheckOptions.ProtoReflect.Descriptor instead.

func (*QuotaCheckOptions) GetMinRemainingCapacity

func (x *QuotaCheckOptions) GetMinRemainingCapacity() float64

func (*QuotaCheckOptions) ProtoMessage

func (*QuotaCheckOptions) ProtoMessage()

func (*QuotaCheckOptions) ProtoReflect

func (x *QuotaCheckOptions) ProtoReflect() protoreflect.Message

func (*QuotaCheckOptions) Reset

func (x *QuotaCheckOptions) Reset()

func (*QuotaCheckOptions) String

func (x *QuotaCheckOptions) String() string

type QuotaRequirement

type QuotaRequirement struct {
	UsageName   string  `protobuf:"bytes,1,opt,name=usage_name,json=usageName,proto3" json:"usage_name,omitempty"`
	MinCapacity float64 `protobuf:"fixed64,2,opt,name=min_capacity,json=minCapacity,proto3" json:"min_capacity,omitempty"` // 0 defaults to 1
	// contains filtered or unexported fields
}

QuotaRequirement: check usage_name has at least min_capacity remaining.

func (*QuotaRequirement) Descriptor deprecated

func (*QuotaRequirement) Descriptor() ([]byte, []int)

Deprecated: Use QuotaRequirement.ProtoReflect.Descriptor instead.

func (*QuotaRequirement) GetMinCapacity

func (x *QuotaRequirement) GetMinCapacity() float64

func (*QuotaRequirement) GetUsageName

func (x *QuotaRequirement) GetUsageName() string

func (*QuotaRequirement) ProtoMessage

func (*QuotaRequirement) ProtoMessage()

func (*QuotaRequirement) ProtoReflect

func (x *QuotaRequirement) ProtoReflect() protoreflect.Message

func (*QuotaRequirement) Reset

func (x *QuotaRequirement) Reset()

func (*QuotaRequirement) String

func (x *QuotaRequirement) String() string

type ReadyRequest

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

func (*ReadyRequest) Descriptor deprecated

func (*ReadyRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReadyRequest.ProtoReflect.Descriptor instead.

func (*ReadyRequest) ProtoMessage

func (*ReadyRequest) ProtoMessage()

func (*ReadyRequest) ProtoReflect

func (x *ReadyRequest) ProtoReflect() protoreflect.Message

func (*ReadyRequest) Reset

func (x *ReadyRequest) Reset()

func (*ReadyRequest) String

func (x *ReadyRequest) String() string

type ReadyResponse

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

func (*ReadyResponse) Descriptor deprecated

func (*ReadyResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReadyResponse.ProtoReflect.Descriptor instead.

func (*ReadyResponse) ProtoMessage

func (*ReadyResponse) ProtoMessage()

func (*ReadyResponse) ProtoReflect

func (x *ReadyResponse) ProtoReflect() protoreflect.Message

func (*ReadyResponse) Reset

func (x *ReadyResponse) Reset()

func (*ReadyResponse) String

func (x *ReadyResponse) String() string

type RegisterFrameworkServiceRequest

type RegisterFrameworkServiceRequest struct {
	Language string `protobuf:"bytes,1,opt,name=language,proto3" json:"language,omitempty"` // unique identifier for the language/framework (e.g., "rust", "go", "php")
	// contains filtered or unexported fields
}

Request to register a framework service provider

func (*RegisterFrameworkServiceRequest) Descriptor deprecated

func (*RegisterFrameworkServiceRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterFrameworkServiceRequest.ProtoReflect.Descriptor instead.

func (*RegisterFrameworkServiceRequest) GetLanguage

func (x *RegisterFrameworkServiceRequest) GetLanguage() string

func (*RegisterFrameworkServiceRequest) ProtoMessage

func (*RegisterFrameworkServiceRequest) ProtoMessage()

func (*RegisterFrameworkServiceRequest) ProtoReflect

func (*RegisterFrameworkServiceRequest) Reset

func (*RegisterFrameworkServiceRequest) String

type RegisterFrameworkServiceResponse

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

func (*RegisterFrameworkServiceResponse) Descriptor deprecated

func (*RegisterFrameworkServiceResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterFrameworkServiceResponse.ProtoReflect.Descriptor instead.

func (*RegisterFrameworkServiceResponse) ProtoMessage

func (*RegisterFrameworkServiceResponse) ProtoMessage()

func (*RegisterFrameworkServiceResponse) ProtoReflect

func (*RegisterFrameworkServiceResponse) Reset

func (*RegisterFrameworkServiceResponse) String

type RegisterServiceTargetRequest

type RegisterServiceTargetRequest struct {
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // unique identifier for the provider
	// contains filtered or unexported fields
}

func (*RegisterServiceTargetRequest) Descriptor deprecated

func (*RegisterServiceTargetRequest) Descriptor() ([]byte, []int)

Deprecated: Use RegisterServiceTargetRequest.ProtoReflect.Descriptor instead.

func (*RegisterServiceTargetRequest) GetHost

func (x *RegisterServiceTargetRequest) GetHost() string

func (*RegisterServiceTargetRequest) ProtoMessage

func (*RegisterServiceTargetRequest) ProtoMessage()

func (*RegisterServiceTargetRequest) ProtoReflect

func (*RegisterServiceTargetRequest) Reset

func (x *RegisterServiceTargetRequest) Reset()

func (*RegisterServiceTargetRequest) String

type RegisterServiceTargetResponse

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

func (*RegisterServiceTargetResponse) Descriptor deprecated

func (*RegisterServiceTargetResponse) Descriptor() ([]byte, []int)

Deprecated: Use RegisterServiceTargetResponse.ProtoReflect.Descriptor instead.

func (*RegisterServiceTargetResponse) ProtoMessage

func (*RegisterServiceTargetResponse) ProtoMessage()

func (*RegisterServiceTargetResponse) ProtoReflect

func (*RegisterServiceTargetResponse) Reset

func (x *RegisterServiceTargetResponse) Reset()

func (*RegisterServiceTargetResponse) String

type ReportErrorRequest

type ReportErrorRequest struct {
	Error *ExtensionError `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportErrorRequest) Descriptor deprecated

func (*ReportErrorRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReportErrorRequest.ProtoReflect.Descriptor instead.

func (*ReportErrorRequest) GetError

func (x *ReportErrorRequest) GetError() *ExtensionError

func (*ReportErrorRequest) ProtoMessage

func (*ReportErrorRequest) ProtoMessage()

func (*ReportErrorRequest) ProtoReflect

func (x *ReportErrorRequest) ProtoReflect() protoreflect.Message

func (*ReportErrorRequest) Reset

func (x *ReportErrorRequest) Reset()

func (*ReportErrorRequest) String

func (x *ReportErrorRequest) String() string

type ReportErrorResponse

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

func (*ReportErrorResponse) Descriptor deprecated

func (*ReportErrorResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReportErrorResponse.ProtoReflect.Descriptor instead.

func (*ReportErrorResponse) ProtoMessage

func (*ReportErrorResponse) ProtoMessage()

func (*ReportErrorResponse) ProtoReflect

func (x *ReportErrorResponse) ProtoReflect() protoreflect.Message

func (*ReportErrorResponse) Reset

func (x *ReportErrorResponse) Reset()

func (*ReportErrorResponse) String

func (x *ReportErrorResponse) String() string

type RequiredVersions

type RequiredVersions struct {
	Azd string `protobuf:"bytes,1,opt,name=azd,proto3" json:"azd,omitempty"`
	// contains filtered or unexported fields
}

RequiredVersions message definition

func (*RequiredVersions) Descriptor deprecated

func (*RequiredVersions) Descriptor() ([]byte, []int)

Deprecated: Use RequiredVersions.ProtoReflect.Descriptor instead.

func (*RequiredVersions) GetAzd

func (x *RequiredVersions) GetAzd() string

func (*RequiredVersions) ProtoMessage

func (*RequiredVersions) ProtoMessage()

func (*RequiredVersions) ProtoReflect

func (x *RequiredVersions) ProtoReflect() protoreflect.Message

func (*RequiredVersions) Reset

func (x *RequiredVersions) Reset()

func (*RequiredVersions) String

func (x *RequiredVersions) String() string

type ResilientClient

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

ResilientClient is an HTTP client with built-in retry, exponential backoff, timeout, and optional bearer-token injection. It is designed for extension authors who need to call Azure REST APIs directly. For full Azure SDK HTTP pipeline behavior (telemetry, logging, and policy-chain extensibility), prefer runtime.NewPipeline with TokenProvider.

Usage:

rc := azdext.NewResilientClient(tokenProvider, nil)
resp, err := rc.Do(ctx, http.MethodGet, "https://management.azure.com/...", nil)

func NewResilientClient

func NewResilientClient(tokenProvider azcore.TokenCredential, opts *ResilientClientOptions) *ResilientClient

NewResilientClient creates a ResilientClient.

tokenProvider may be nil if the caller handles Authorization headers manually. When non-nil, the client automatically injects a Bearer token using scopes resolved from the request URL via the ScopeDetector.

func (*ResilientClient) Do

func (rc *ResilientClient) Do(ctx context.Context, method, url string, body io.Reader) (*http.Response, error)

Do executes an HTTP request with retry logic and optional bearer-token injection.

body may be nil for requests without a body (GET, DELETE). When body is non-nil and retries are enabled (MaxRetries > 0), the body must implement io.ReadSeeker so it can be re-read on each attempt. If a retry is needed and the body does not implement io.ReadSeeker, Do returns an error.

type ResilientClientOptions

type ResilientClientOptions struct {
	// MaxRetries is the maximum number of retry attempts for transient failures.
	// A value of 0 disables retries.
	// A negative value uses the default (3).
	MaxRetries int

	// InitialDelay is the base delay before the first retry. Subsequent retries
	// use exponential backoff (delay * 2^attempt) capped at MaxDelay.
	// Defaults to 500ms.
	InitialDelay time.Duration

	// MaxDelay caps the computed backoff delay. Defaults to 30s.
	MaxDelay time.Duration

	// Timeout is the per-request timeout.
	// A value of zero or less uses the default of 30s.
	Timeout time.Duration

	// UserAgent overrides the default User-Agent header.
	// When empty, defaults to "azdext-resilient-client/<Version>".
	UserAgent string

	// Transport overrides the default HTTP transport. Useful for testing.
	Transport http.RoundTripper

	// ScopeDetector overrides the default scope detector used for automatic
	// scope resolution. When nil, a default detector is created.
	ScopeDetector *ScopeDetector
}

ResilientClientOptions configures a ResilientClient.

type ResolveModelDeploymentsRequest

type ResolveModelDeploymentsRequest struct {

	// Azure context with scope.subscription_id required.
	AzureContext *AzureContext `protobuf:"bytes,1,opt,name=azure_context,json=azureContext,proto3" json:"azure_context,omitempty"`
	// Target model name to resolve deployment candidates for.
	ModelName string `protobuf:"bytes,2,opt,name=model_name,json=modelName,proto3" json:"model_name,omitempty"`
	// Optional deployment filters (locations/versions/SKUs/capacity).
	Options *AiModelDeploymentOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"`
	// Optional quota filter. Requires options.locations with exactly one location.
	Quota *QuotaCheckOptions `protobuf:"bytes,4,opt,name=quota,proto3" json:"quota,omitempty"`
	// Include fine-tune SKUs (usage names ending with "-finetune").
	// Defaults to false (fine-tune SKUs are excluded).
	IncludeFinetuneSkus bool `protobuf:"varint,5,opt,name=include_finetune_skus,json=includeFinetuneSkus,proto3" json:"include_finetune_skus,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveModelDeploymentsRequest) Descriptor deprecated

func (*ResolveModelDeploymentsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ResolveModelDeploymentsRequest.ProtoReflect.Descriptor instead.

func (*ResolveModelDeploymentsRequest) GetAzureContext

func (x *ResolveModelDeploymentsRequest) GetAzureContext() *AzureContext

func (*ResolveModelDeploymentsRequest) GetIncludeFinetuneSkus

func (x *ResolveModelDeploymentsRequest) GetIncludeFinetuneSkus() bool

func (*ResolveModelDeploymentsRequest) GetModelName

func (x *ResolveModelDeploymentsRequest) GetModelName() string

func (*ResolveModelDeploymentsRequest) GetOptions

func (*ResolveModelDeploymentsRequest) GetQuota

func (*ResolveModelDeploymentsRequest) ProtoMessage

func (*ResolveModelDeploymentsRequest) ProtoMessage()

func (*ResolveModelDeploymentsRequest) ProtoReflect

func (*ResolveModelDeploymentsRequest) Reset

func (x *ResolveModelDeploymentsRequest) Reset()

func (*ResolveModelDeploymentsRequest) String

type ResolveModelDeploymentsResponse

type ResolveModelDeploymentsResponse struct {

	// All valid deployment candidates for the requested model and options.
	Deployments []*AiModelDeployment `protobuf:"bytes,1,rep,name=deployments,proto3" json:"deployments,omitempty"`
	// contains filtered or unexported fields
}

func (*ResolveModelDeploymentsResponse) Descriptor deprecated

func (*ResolveModelDeploymentsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ResolveModelDeploymentsResponse.ProtoReflect.Descriptor instead.

func (*ResolveModelDeploymentsResponse) GetDeployments

func (x *ResolveModelDeploymentsResponse) GetDeployments() []*AiModelDeployment

func (*ResolveModelDeploymentsResponse) ProtoMessage

func (*ResolveModelDeploymentsResponse) ProtoMessage()

func (*ResolveModelDeploymentsResponse) ProtoReflect

func (*ResolveModelDeploymentsResponse) Reset

func (*ResolveModelDeploymentsResponse) String

type Resource

type Resource struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Type     string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*Resource) Descriptor deprecated

func (*Resource) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetId

func (x *Resource) GetId() string

func (*Resource) GetLocation

func (x *Resource) GetLocation() string

func (*Resource) GetName

func (x *Resource) GetName() string

func (*Resource) GetType

func (x *Resource) GetType() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect

func (x *Resource) ProtoReflect() protoreflect.Message

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

type ResourceExtended

type ResourceExtended struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Type     string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
	Kind     string `protobuf:"bytes,5,opt,name=kind,proto3" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceExtended) Descriptor deprecated

func (*ResourceExtended) Descriptor() ([]byte, []int)

Deprecated: Use ResourceExtended.ProtoReflect.Descriptor instead.

func (*ResourceExtended) GetId

func (x *ResourceExtended) GetId() string

func (*ResourceExtended) GetKind

func (x *ResourceExtended) GetKind() string

func (*ResourceExtended) GetLocation

func (x *ResourceExtended) GetLocation() string

func (*ResourceExtended) GetName

func (x *ResourceExtended) GetName() string

func (*ResourceExtended) GetType

func (x *ResourceExtended) GetType() string

func (*ResourceExtended) ProtoMessage

func (*ResourceExtended) ProtoMessage()

func (*ResourceExtended) ProtoReflect

func (x *ResourceExtended) ProtoReflect() protoreflect.Message

func (*ResourceExtended) Reset

func (x *ResourceExtended) Reset()

func (*ResourceExtended) String

func (x *ResourceExtended) String() string

type ResourceGroup

type ResourceGroup struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name     string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*ResourceGroup) Descriptor deprecated

func (*ResourceGroup) Descriptor() ([]byte, []int)

Deprecated: Use ResourceGroup.ProtoReflect.Descriptor instead.

func (*ResourceGroup) GetId

func (x *ResourceGroup) GetId() string

func (*ResourceGroup) GetLocation

func (x *ResourceGroup) GetLocation() string

func (*ResourceGroup) GetName

func (x *ResourceGroup) GetName() string

func (*ResourceGroup) ProtoMessage

func (*ResourceGroup) ProtoMessage()

func (*ResourceGroup) ProtoReflect

func (x *ResourceGroup) ProtoReflect() protoreflect.Message

func (*ResourceGroup) Reset

func (x *ResourceGroup) Reset()

func (*ResourceGroup) String

func (x *ResourceGroup) String() string

type RetryableHTTPError

type RetryableHTTPError struct {
	StatusCode int
	Status     string
}

RetryableHTTPError represents a retryable HTTP failure.

func (*RetryableHTTPError) Error

func (e *RetryableHTTPError) Error() string

type RunOption

type RunOption func(*runConfig)

RunOption configures the behavior of Run.

func WithPreExecute

func WithPreExecute(fn func(ctx context.Context, cmd *cobra.Command) error) RunOption

WithPreExecute registers a hook that runs after context creation but before command execution. If the hook returns a non-nil error, Run prints it and exits. This is useful for extensions that need special setup such as dual-mode host detection or working-directory changes.

type RunWorkflowRequest

type RunWorkflowRequest struct {
	Workflow *Workflow `protobuf:"bytes,1,opt,name=workflow,proto3" json:"workflow,omitempty"`
	// contains filtered or unexported fields
}

RunWorkflowRequest is a request to run a workflow.

func (*RunWorkflowRequest) Descriptor deprecated

func (*RunWorkflowRequest) Descriptor() ([]byte, []int)

Deprecated: Use RunWorkflowRequest.ProtoReflect.Descriptor instead.

func (*RunWorkflowRequest) GetWorkflow

func (x *RunWorkflowRequest) GetWorkflow() *Workflow

func (*RunWorkflowRequest) ProtoMessage

func (*RunWorkflowRequest) ProtoMessage()

func (*RunWorkflowRequest) ProtoReflect

func (x *RunWorkflowRequest) ProtoReflect() protoreflect.Message

func (*RunWorkflowRequest) Reset

func (x *RunWorkflowRequest) Reset()

func (*RunWorkflowRequest) String

func (x *RunWorkflowRequest) String() string

type ScopeDetector

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

ScopeDetector maps Azure resource endpoint URLs to the OAuth 2.0 scopes required for token acquisition. Extensions use this to automatically determine the correct scope for a given API call without hard-coding values.

Usage:

sd := azdext.NewScopeDetector(nil)
scopes, err := sd.ScopesForURL("https://management.azure.com/subscriptions/...")
// scopes = []string{"https://management.azure.com/.default"}

func NewScopeDetector

func NewScopeDetector(opts *ScopeDetectorOptions) *ScopeDetector

NewScopeDetector creates a ScopeDetector with the built-in Azure endpoint mappings. Additional custom rules can be supplied via opts. Custom rules take precedence over defaults, allowing callers to override built-in mappings (e.g. Service Bus vs Event Hubs on .servicebus.windows.net).

func (*ScopeDetector) ScopesForURL

func (sd *ScopeDetector) ScopesForURL(rawURL string) ([]string, error)

ScopesForURL returns the OAuth 2.0 scopes required to access the given URL. Returns an error if the URL is malformed or no matching scope is found.

type ScopeDetectorError

type ScopeDetectorError struct {
	URL    string
	Reason string
}

ScopeDetectorError is returned when ScopeDetector.ScopesForURL cannot resolve a scope for the given URL.

func (*ScopeDetectorError) Error

func (e *ScopeDetectorError) Error() string

type ScopeDetectorOptions

type ScopeDetectorOptions struct {
	// CustomRules appends additional host → scope mappings.
	// Each entry maps a host suffix (e.g. ".openai.azure.com") to a scope
	// (e.g. "https://cognitiveservices.azure.com/.default").
	// Suffixes should start with a dot for subdomain matching; entries
	// without a leading dot are treated as exact host matches to prevent
	// unintended partial-host matching (e.g. "azure.com" matching "fakeazure.com").
	// Empty keys are ignored.
	CustomRules map[string]string
}

ScopeDetectorOptions allows adding custom endpoint-to-scope mappings.

type SelectChoice

type SelectChoice struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectChoice) Descriptor deprecated

func (*SelectChoice) Descriptor() ([]byte, []int)

Deprecated: Use SelectChoice.ProtoReflect.Descriptor instead.

func (*SelectChoice) GetLabel

func (x *SelectChoice) GetLabel() string

func (*SelectChoice) GetValue

func (x *SelectChoice) GetValue() string

func (*SelectChoice) ProtoMessage

func (*SelectChoice) ProtoMessage()

func (*SelectChoice) ProtoReflect

func (x *SelectChoice) ProtoReflect() protoreflect.Message

func (*SelectChoice) Reset

func (x *SelectChoice) Reset()

func (*SelectChoice) String

func (x *SelectChoice) String() string

type SelectEnvironmentRequest

type SelectEnvironmentRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Name of the environment.
	// contains filtered or unexported fields
}

func (*SelectEnvironmentRequest) Descriptor deprecated

func (*SelectEnvironmentRequest) Descriptor() ([]byte, []int)

Deprecated: Use SelectEnvironmentRequest.ProtoReflect.Descriptor instead.

func (*SelectEnvironmentRequest) GetName

func (x *SelectEnvironmentRequest) GetName() string

func (*SelectEnvironmentRequest) ProtoMessage

func (*SelectEnvironmentRequest) ProtoMessage()

func (*SelectEnvironmentRequest) ProtoReflect

func (x *SelectEnvironmentRequest) ProtoReflect() protoreflect.Message

func (*SelectEnvironmentRequest) Reset

func (x *SelectEnvironmentRequest) Reset()

func (*SelectEnvironmentRequest) String

func (x *SelectEnvironmentRequest) String() string

type SelectOptions

type SelectOptions struct {
	SelectedIndex   *int32          `protobuf:"varint,1,opt,name=selected_index,json=selectedIndex,proto3,oneof" json:"selected_index,omitempty"`
	Message         string          `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Choices         []*SelectChoice `protobuf:"bytes,3,rep,name=choices,proto3" json:"choices,omitempty"`
	HelpMessage     string          `protobuf:"bytes,4,opt,name=help_message,json=helpMessage,proto3" json:"help_message,omitempty"`
	Hint            string          `protobuf:"bytes,5,opt,name=hint,proto3" json:"hint,omitempty"`
	DisplayCount    int32           `protobuf:"varint,6,opt,name=display_count,json=displayCount,proto3" json:"display_count,omitempty"`
	DisplayNumbers  *bool           `protobuf:"varint,7,opt,name=display_numbers,json=displayNumbers,proto3,oneof" json:"display_numbers,omitempty"`
	EnableFiltering *bool           `protobuf:"varint,8,opt,name=enable_filtering,json=enableFiltering,proto3,oneof" json:"enable_filtering,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectOptions) Descriptor deprecated

func (*SelectOptions) Descriptor() ([]byte, []int)

Deprecated: Use SelectOptions.ProtoReflect.Descriptor instead.

func (*SelectOptions) GetChoices

func (x *SelectOptions) GetChoices() []*SelectChoice

func (*SelectOptions) GetDisplayCount

func (x *SelectOptions) GetDisplayCount() int32

func (*SelectOptions) GetDisplayNumbers

func (x *SelectOptions) GetDisplayNumbers() bool

func (*SelectOptions) GetEnableFiltering

func (x *SelectOptions) GetEnableFiltering() bool

func (*SelectOptions) GetHelpMessage

func (x *SelectOptions) GetHelpMessage() string

func (*SelectOptions) GetHint

func (x *SelectOptions) GetHint() string

func (*SelectOptions) GetMessage

func (x *SelectOptions) GetMessage() string

func (*SelectOptions) GetSelectedIndex

func (x *SelectOptions) GetSelectedIndex() int32

func (*SelectOptions) ProtoMessage

func (*SelectOptions) ProtoMessage()

func (*SelectOptions) ProtoReflect

func (x *SelectOptions) ProtoReflect() protoreflect.Message

func (*SelectOptions) Reset

func (x *SelectOptions) Reset()

func (*SelectOptions) String

func (x *SelectOptions) String() string

type SelectRequest

type SelectRequest struct {
	Options *SelectOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectRequest) Descriptor deprecated

func (*SelectRequest) Descriptor() ([]byte, []int)

Deprecated: Use SelectRequest.ProtoReflect.Descriptor instead.

func (*SelectRequest) GetOptions

func (x *SelectRequest) GetOptions() *SelectOptions

func (*SelectRequest) ProtoMessage

func (*SelectRequest) ProtoMessage()

func (*SelectRequest) ProtoReflect

func (x *SelectRequest) ProtoReflect() protoreflect.Message

func (*SelectRequest) Reset

func (x *SelectRequest) Reset()

func (*SelectRequest) String

func (x *SelectRequest) String() string

type SelectResponse

type SelectResponse struct {
	Value *int32 `protobuf:"varint,1,opt,name=value,proto3,oneof" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*SelectResponse) Descriptor deprecated

func (*SelectResponse) Descriptor() ([]byte, []int)

Deprecated: Use SelectResponse.ProtoReflect.Descriptor instead.

func (*SelectResponse) GetValue

func (x *SelectResponse) GetValue() int32

func (*SelectResponse) ProtoMessage

func (*SelectResponse) ProtoMessage()

func (*SelectResponse) ProtoReflect

func (x *SelectResponse) ProtoReflect() protoreflect.Message

func (*SelectResponse) Reset

func (x *SelectResponse) Reset()

func (*SelectResponse) String

func (x *SelectResponse) String() string

type SendCopilotMessageRequest

type SendCopilotMessageRequest struct {
	Prompt          string `protobuf:"bytes,1,opt,name=prompt,proto3" json:"prompt,omitempty"`                                          // The prompt/message to send.
	SessionId       string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`                   // Optional: session to reuse or resume.
	Model           string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`                                            // Optional: model override (first call or resume).
	ReasoningEffort string `protobuf:"bytes,4,opt,name=reasoning_effort,json=reasoningEffort,proto3" json:"reasoning_effort,omitempty"` // Optional: reasoning effort (low, medium, high).
	SystemMessage   string `protobuf:"bytes,5,opt,name=system_message,json=systemMessage,proto3" json:"system_message,omitempty"`       // Optional: custom system message appended to default.
	Mode            string `protobuf:"bytes,6,opt,name=mode,proto3" json:"mode,omitempty"`                                              // Optional: agent mode (autopilot, interactive, plan).
	Debug           bool   `protobuf:"varint,7,opt,name=debug,proto3" json:"debug,omitempty"`                                           // Optional: enable debug logging.
	Headless        bool   `protobuf:"varint,8,opt,name=headless,proto3" json:"headless,omitempty"`                                     // Set to true for headless mode (suppresses console output).
	// contains filtered or unexported fields
}

SendCopilotMessageRequest sends a prompt to the agent. On the first call, include session configuration fields. If session_id is provided, the existing session is resumed. If omitted, a new session is created with the provided configuration.

func (*SendCopilotMessageRequest) Descriptor deprecated

func (*SendCopilotMessageRequest) Descriptor() ([]byte, []int)

Deprecated: Use SendCopilotMessageRequest.ProtoReflect.Descriptor instead.

func (*SendCopilotMessageRequest) GetDebug

func (x *SendCopilotMessageRequest) GetDebug() bool

func (*SendCopilotMessageRequest) GetHeadless

func (x *SendCopilotMessageRequest) GetHeadless() bool

func (*SendCopilotMessageRequest) GetMode

func (x *SendCopilotMessageRequest) GetMode() string

func (*SendCopilotMessageRequest) GetModel

func (x *SendCopilotMessageRequest) GetModel() string

func (*SendCopilotMessageRequest) GetPrompt

func (x *SendCopilotMessageRequest) GetPrompt() string

func (*SendCopilotMessageRequest) GetReasoningEffort

func (x *SendCopilotMessageRequest) GetReasoningEffort() string

func (*SendCopilotMessageRequest) GetSessionId

func (x *SendCopilotMessageRequest) GetSessionId() string

func (*SendCopilotMessageRequest) GetSystemMessage

func (x *SendCopilotMessageRequest) GetSystemMessage() string

func (*SendCopilotMessageRequest) ProtoMessage

func (*SendCopilotMessageRequest) ProtoMessage()

func (*SendCopilotMessageRequest) ProtoReflect

func (*SendCopilotMessageRequest) Reset

func (x *SendCopilotMessageRequest) Reset()

func (*SendCopilotMessageRequest) String

func (x *SendCopilotMessageRequest) String() string

type SendCopilotMessageResponse

type SendCopilotMessageResponse struct {
	SessionId   string               `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`       // Session ID — use in subsequent calls to reuse.
	Usage       *CopilotUsageMetrics `protobuf:"bytes,2,opt,name=usage,proto3" json:"usage,omitempty"`                                // Usage metrics for this message turn.
	FileChanges []*CopilotFileChange `protobuf:"bytes,3,rep,name=file_changes,json=fileChanges,proto3" json:"file_changes,omitempty"` // Files changed during this message turn.
	// contains filtered or unexported fields
}

SendCopilotMessageResponse contains the result of the message.

func (*SendCopilotMessageResponse) Descriptor deprecated

func (*SendCopilotMessageResponse) Descriptor() ([]byte, []int)

Deprecated: Use SendCopilotMessageResponse.ProtoReflect.Descriptor instead.

func (*SendCopilotMessageResponse) GetFileChanges

func (x *SendCopilotMessageResponse) GetFileChanges() []*CopilotFileChange

func (*SendCopilotMessageResponse) GetSessionId

func (x *SendCopilotMessageResponse) GetSessionId() string

func (*SendCopilotMessageResponse) GetUsage

func (*SendCopilotMessageResponse) ProtoMessage

func (*SendCopilotMessageResponse) ProtoMessage()

func (*SendCopilotMessageResponse) ProtoReflect

func (*SendCopilotMessageResponse) Reset

func (x *SendCopilotMessageResponse) Reset()

func (*SendCopilotMessageResponse) String

func (x *SendCopilotMessageResponse) String() string

type ServiceBuildResult

type ServiceBuildResult struct {
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceBuildResult) Descriptor deprecated

func (*ServiceBuildResult) Descriptor() ([]byte, []int)

Deprecated: Use ServiceBuildResult.ProtoReflect.Descriptor instead.

func (*ServiceBuildResult) GetArtifacts

func (x *ServiceBuildResult) GetArtifacts() []*Artifact

func (*ServiceBuildResult) ProtoMessage

func (*ServiceBuildResult) ProtoMessage()

func (*ServiceBuildResult) ProtoReflect

func (x *ServiceBuildResult) ProtoReflect() protoreflect.Message

func (*ServiceBuildResult) Reset

func (x *ServiceBuildResult) Reset()

func (*ServiceBuildResult) String

func (x *ServiceBuildResult) String() string

type ServiceConfig

type ServiceConfig struct {
	Name                 string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ResourceGroupName    string                `protobuf:"bytes,2,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"`
	ResourceName         string                `protobuf:"bytes,3,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	ApiVersion           string                `protobuf:"bytes,4,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
	RelativePath         string                `protobuf:"bytes,5,opt,name=relative_path,json=relativePath,proto3" json:"relative_path,omitempty"`
	Host                 string                `protobuf:"bytes,6,opt,name=host,proto3" json:"host,omitempty"`
	Language             string                `protobuf:"bytes,7,opt,name=language,proto3" json:"language,omitempty"`
	OutputPath           string                `protobuf:"bytes,8,opt,name=output_path,json=outputPath,proto3" json:"output_path,omitempty"`
	Image                string                `protobuf:"bytes,9,opt,name=image,proto3" json:"image,omitempty"`
	Docker               *DockerProjectOptions `protobuf:"bytes,10,opt,name=docker,proto3" json:"docker,omitempty"`
	Config               *structpb.Struct      `protobuf:"bytes,11,opt,name=config,proto3" json:"config,omitempty"`
	AdditionalProperties *structpb.Struct      `protobuf:"bytes,12,opt,name=additional_properties,json=additionalProperties,proto3" json:"additional_properties,omitempty"`
	// contains filtered or unexported fields
}

ServiceConfig message definition

func (*ServiceConfig) Descriptor deprecated

func (*ServiceConfig) Descriptor() ([]byte, []int)

Deprecated: Use ServiceConfig.ProtoReflect.Descriptor instead.

func (*ServiceConfig) GetAdditionalProperties

func (x *ServiceConfig) GetAdditionalProperties() *structpb.Struct

func (*ServiceConfig) GetApiVersion

func (x *ServiceConfig) GetApiVersion() string

func (*ServiceConfig) GetConfig

func (x *ServiceConfig) GetConfig() *structpb.Struct

func (*ServiceConfig) GetDocker

func (x *ServiceConfig) GetDocker() *DockerProjectOptions

func (*ServiceConfig) GetHost

func (x *ServiceConfig) GetHost() string

func (*ServiceConfig) GetImage

func (x *ServiceConfig) GetImage() string

func (*ServiceConfig) GetLanguage

func (x *ServiceConfig) GetLanguage() string

func (*ServiceConfig) GetName

func (x *ServiceConfig) GetName() string

func (*ServiceConfig) GetOutputPath

func (x *ServiceConfig) GetOutputPath() string

func (*ServiceConfig) GetRelativePath

func (x *ServiceConfig) GetRelativePath() string

func (*ServiceConfig) GetResourceGroupName

func (x *ServiceConfig) GetResourceGroupName() string

func (*ServiceConfig) GetResourceName

func (x *ServiceConfig) GetResourceName() string

func (*ServiceConfig) ProtoMessage

func (*ServiceConfig) ProtoMessage()

func (*ServiceConfig) ProtoReflect

func (x *ServiceConfig) ProtoReflect() protoreflect.Message

func (*ServiceConfig) Reset

func (x *ServiceConfig) Reset()

func (*ServiceConfig) String

func (x *ServiceConfig) String() string

type ServiceContext

type ServiceContext struct {
	Restore []*Artifact `protobuf:"bytes,1,rep,name=restore,proto3" json:"restore,omitempty"`
	Build   []*Artifact `protobuf:"bytes,2,rep,name=build,proto3" json:"build,omitempty"`
	Package []*Artifact `protobuf:"bytes,3,rep,name=package,proto3" json:"package,omitempty"`
	Publish []*Artifact `protobuf:"bytes,4,rep,name=publish,proto3" json:"publish,omitempty"`
	Deploy  []*Artifact `protobuf:"bytes,5,rep,name=deploy,proto3" json:"deploy,omitempty"`
	// contains filtered or unexported fields
}

ServiceContext defines the shared pipeline state across all phases of the service lifecycle

func (*ServiceContext) Descriptor deprecated

func (*ServiceContext) Descriptor() ([]byte, []int)

Deprecated: Use ServiceContext.ProtoReflect.Descriptor instead.

func (*ServiceContext) GetBuild

func (x *ServiceContext) GetBuild() []*Artifact

func (*ServiceContext) GetDeploy

func (x *ServiceContext) GetDeploy() []*Artifact

func (*ServiceContext) GetPackage

func (x *ServiceContext) GetPackage() []*Artifact

func (*ServiceContext) GetPublish

func (x *ServiceContext) GetPublish() []*Artifact

func (*ServiceContext) GetRestore

func (x *ServiceContext) GetRestore() []*Artifact

func (*ServiceContext) ProtoMessage

func (*ServiceContext) ProtoMessage()

func (*ServiceContext) ProtoReflect

func (x *ServiceContext) ProtoReflect() protoreflect.Message

func (*ServiceContext) Reset

func (x *ServiceContext) Reset()

func (*ServiceContext) String

func (x *ServiceContext) String() string

type ServiceDeployResult

type ServiceDeployResult struct {
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// contains filtered or unexported fields
}

ServiceDeployResult represents the result of a deployment operation

func (*ServiceDeployResult) Descriptor deprecated

func (*ServiceDeployResult) Descriptor() ([]byte, []int)

Deprecated: Use ServiceDeployResult.ProtoReflect.Descriptor instead.

func (*ServiceDeployResult) GetArtifacts

func (x *ServiceDeployResult) GetArtifacts() []*Artifact

func (*ServiceDeployResult) ProtoMessage

func (*ServiceDeployResult) ProtoMessage()

func (*ServiceDeployResult) ProtoReflect

func (x *ServiceDeployResult) ProtoReflect() protoreflect.Message

func (*ServiceDeployResult) Reset

func (x *ServiceDeployResult) Reset()

func (*ServiceDeployResult) String

func (x *ServiceDeployResult) String() string

type ServiceError

type ServiceError struct {
	// Message is the human-readable error message
	Message string
	// ErrorCode is the error code from the service (e.g., "Conflict", "NotFound")
	ErrorCode string
	// StatusCode is the HTTP status code (e.g., 409, 404, 500)
	StatusCode int
	// ServiceName is the service host/name for telemetry (e.g., "ai.azure.com")
	ServiceName string
	// Suggestion contains optional user-facing remediation guidance.
	Suggestion string
}

ServiceError represents an HTTP/gRPC service error from an extension. It preserves structured error information for telemetry and error handling.

func (*ServiceError) Error

func (e *ServiceError) Error() string

Error implements the error interface.

type ServiceErrorDetail

type ServiceErrorDetail struct {
	ErrorCode   string `protobuf:"bytes,1,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`       // Error code from the service (e.g., "Conflict", "NotFound", "RateLimitExceeded")
	StatusCode  int32  `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`   // HTTP status code (e.g., 409, 404, 500)
	ServiceName string `protobuf:"bytes,3,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // Service host/name for telemetry (e.g., "ai.azure.com", "management.azure.com")
	// contains filtered or unexported fields
}

ServiceErrorDetail contains structured error information from an HTTP/gRPC service. Used when ErrorOrigin is ERROR_ORIGIN_SERVICE.

func (*ServiceErrorDetail) Descriptor deprecated

func (*ServiceErrorDetail) Descriptor() ([]byte, []int)

Deprecated: Use ServiceErrorDetail.ProtoReflect.Descriptor instead.

func (*ServiceErrorDetail) GetErrorCode

func (x *ServiceErrorDetail) GetErrorCode() string

func (*ServiceErrorDetail) GetServiceName

func (x *ServiceErrorDetail) GetServiceName() string

func (*ServiceErrorDetail) GetStatusCode

func (x *ServiceErrorDetail) GetStatusCode() int32

func (*ServiceErrorDetail) ProtoMessage

func (*ServiceErrorDetail) ProtoMessage()

func (*ServiceErrorDetail) ProtoReflect

func (x *ServiceErrorDetail) ProtoReflect() protoreflect.Message

func (*ServiceErrorDetail) Reset

func (x *ServiceErrorDetail) Reset()

func (*ServiceErrorDetail) String

func (x *ServiceErrorDetail) String() string

type ServiceEventArgs

type ServiceEventArgs struct {
	Project        *ProjectConfig
	Service        *ServiceConfig
	ServiceContext *ServiceContext
}

type ServiceEventHandler

type ServiceEventHandler func(ctx context.Context, args *ServiceEventArgs) error

type ServiceEventOptions

type ServiceEventOptions struct {
	Host     string
	Language string
}

type ServiceEventRegistration

type ServiceEventRegistration struct {
	EventName string
	Handler   ServiceEventHandler
	Options   *ServiceEventOptions
}

ServiceEventRegistration describes a service-level event handler to register.

type ServiceHandlerStatus

type ServiceHandlerStatus struct {

	// Name of the event this status update is for.
	EventName string `protobuf:"bytes,1,opt,name=event_name,json=eventName,proto3" json:"event_name,omitempty"`
	// Name of the service related to the update.
	ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// Status such as "running", "completed", "failed", etc.
	Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	// Optional message providing further details.
	Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

Client sends status updates for service events

func (*ServiceHandlerStatus) Descriptor deprecated

func (*ServiceHandlerStatus) Descriptor() ([]byte, []int)

Deprecated: Use ServiceHandlerStatus.ProtoReflect.Descriptor instead.

func (*ServiceHandlerStatus) GetEventName

func (x *ServiceHandlerStatus) GetEventName() string

func (*ServiceHandlerStatus) GetMessage

func (x *ServiceHandlerStatus) GetMessage() string

func (*ServiceHandlerStatus) GetServiceName

func (x *ServiceHandlerStatus) GetServiceName() string

func (*ServiceHandlerStatus) GetStatus

func (x *ServiceHandlerStatus) GetStatus() string

func (*ServiceHandlerStatus) ProtoMessage

func (*ServiceHandlerStatus) ProtoMessage()

func (*ServiceHandlerStatus) ProtoReflect

func (x *ServiceHandlerStatus) ProtoReflect() protoreflect.Message

func (*ServiceHandlerStatus) Reset

func (x *ServiceHandlerStatus) Reset()

func (*ServiceHandlerStatus) String

func (x *ServiceHandlerStatus) String() string

type ServicePackageResult

type ServicePackageResult struct {
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// contains filtered or unexported fields
}

ServicePackageResult represents the package result for deployment

func (*ServicePackageResult) Descriptor deprecated

func (*ServicePackageResult) Descriptor() ([]byte, []int)

Deprecated: Use ServicePackageResult.ProtoReflect.Descriptor instead.

func (*ServicePackageResult) GetArtifacts

func (x *ServicePackageResult) GetArtifacts() []*Artifact

func (*ServicePackageResult) ProtoMessage

func (*ServicePackageResult) ProtoMessage()

func (*ServicePackageResult) ProtoReflect

func (x *ServicePackageResult) ProtoReflect() protoreflect.Message

func (*ServicePackageResult) Reset

func (x *ServicePackageResult) Reset()

func (*ServicePackageResult) String

func (x *ServicePackageResult) String() string

type ServicePublishResult

type ServicePublishResult struct {
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// contains filtered or unexported fields
}

ServicePublishResult represents the result of a publish operation

func (*ServicePublishResult) Descriptor deprecated

func (*ServicePublishResult) Descriptor() ([]byte, []int)

Deprecated: Use ServicePublishResult.ProtoReflect.Descriptor instead.

func (*ServicePublishResult) GetArtifacts

func (x *ServicePublishResult) GetArtifacts() []*Artifact

func (*ServicePublishResult) ProtoMessage

func (*ServicePublishResult) ProtoMessage()

func (*ServicePublishResult) ProtoReflect

func (x *ServicePublishResult) ProtoReflect() protoreflect.Message

func (*ServicePublishResult) Reset

func (x *ServicePublishResult) Reset()

func (*ServicePublishResult) String

func (x *ServicePublishResult) String() string

type ServiceRestoreResult

type ServiceRestoreResult struct {
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// contains filtered or unexported fields
}

Service restore result

func (*ServiceRestoreResult) Descriptor deprecated

func (*ServiceRestoreResult) Descriptor() ([]byte, []int)

Deprecated: Use ServiceRestoreResult.ProtoReflect.Descriptor instead.

func (*ServiceRestoreResult) GetArtifacts

func (x *ServiceRestoreResult) GetArtifacts() []*Artifact

func (*ServiceRestoreResult) ProtoMessage

func (*ServiceRestoreResult) ProtoMessage()

func (*ServiceRestoreResult) ProtoReflect

func (x *ServiceRestoreResult) ProtoReflect() protoreflect.Message

func (*ServiceRestoreResult) Reset

func (x *ServiceRestoreResult) Reset()

func (*ServiceRestoreResult) String

func (x *ServiceRestoreResult) String() string

type ServiceTargetDeployRequest

type ServiceTargetDeployRequest struct {
	ServiceConfig  *ServiceConfig  `protobuf:"bytes,1,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"`
	ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
	TargetResource *TargetResource `protobuf:"bytes,3,opt,name=target_resource,json=targetResource,proto3" json:"target_resource,omitempty"`
	// contains filtered or unexported fields
}

Deploy request and response

func (*ServiceTargetDeployRequest) Descriptor deprecated

func (*ServiceTargetDeployRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetDeployRequest.ProtoReflect.Descriptor instead.

func (*ServiceTargetDeployRequest) GetServiceConfig

func (x *ServiceTargetDeployRequest) GetServiceConfig() *ServiceConfig

func (*ServiceTargetDeployRequest) GetServiceContext

func (x *ServiceTargetDeployRequest) GetServiceContext() *ServiceContext

func (*ServiceTargetDeployRequest) GetTargetResource

func (x *ServiceTargetDeployRequest) GetTargetResource() *TargetResource

func (*ServiceTargetDeployRequest) ProtoMessage

func (*ServiceTargetDeployRequest) ProtoMessage()

func (*ServiceTargetDeployRequest) ProtoReflect

func (*ServiceTargetDeployRequest) Reset

func (x *ServiceTargetDeployRequest) Reset()

func (*ServiceTargetDeployRequest) String

func (x *ServiceTargetDeployRequest) String() string

type ServiceTargetDeployResponse

type ServiceTargetDeployResponse struct {
	Result *ServiceDeployResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceTargetDeployResponse) Descriptor deprecated

func (*ServiceTargetDeployResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetDeployResponse.ProtoReflect.Descriptor instead.

func (*ServiceTargetDeployResponse) GetResult

func (*ServiceTargetDeployResponse) ProtoMessage

func (*ServiceTargetDeployResponse) ProtoMessage()

func (*ServiceTargetDeployResponse) ProtoReflect

func (*ServiceTargetDeployResponse) Reset

func (x *ServiceTargetDeployResponse) Reset()

func (*ServiceTargetDeployResponse) String

func (x *ServiceTargetDeployResponse) String() string

type ServiceTargetEndpointsRequest

type ServiceTargetEndpointsRequest struct {
	ServiceConfig  *ServiceConfig  `protobuf:"bytes,1,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"`
	TargetResource *TargetResource `protobuf:"bytes,2,opt,name=target_resource,json=targetResource,proto3" json:"target_resource,omitempty"`
	// contains filtered or unexported fields
}

ServiceTargetEndpointsRequest represents a request to resolve endpoints for a service target

func (*ServiceTargetEndpointsRequest) Descriptor deprecated

func (*ServiceTargetEndpointsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetEndpointsRequest.ProtoReflect.Descriptor instead.

func (*ServiceTargetEndpointsRequest) GetServiceConfig

func (x *ServiceTargetEndpointsRequest) GetServiceConfig() *ServiceConfig

func (*ServiceTargetEndpointsRequest) GetTargetResource

func (x *ServiceTargetEndpointsRequest) GetTargetResource() *TargetResource

func (*ServiceTargetEndpointsRequest) ProtoMessage

func (*ServiceTargetEndpointsRequest) ProtoMessage()

func (*ServiceTargetEndpointsRequest) ProtoReflect

func (*ServiceTargetEndpointsRequest) Reset

func (x *ServiceTargetEndpointsRequest) Reset()

func (*ServiceTargetEndpointsRequest) String

type ServiceTargetEndpointsResponse

type ServiceTargetEndpointsResponse struct {
	Endpoints []string `protobuf:"bytes,1,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceTargetEndpointsResponse) Descriptor deprecated

func (*ServiceTargetEndpointsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetEndpointsResponse.ProtoReflect.Descriptor instead.

func (*ServiceTargetEndpointsResponse) GetEndpoints

func (x *ServiceTargetEndpointsResponse) GetEndpoints() []string

func (*ServiceTargetEndpointsResponse) ProtoMessage

func (*ServiceTargetEndpointsResponse) ProtoMessage()

func (*ServiceTargetEndpointsResponse) ProtoReflect

func (*ServiceTargetEndpointsResponse) Reset

func (x *ServiceTargetEndpointsResponse) Reset()

func (*ServiceTargetEndpointsResponse) String

type ServiceTargetEnvelope

type ServiceTargetEnvelope struct{}

ServiceTargetEnvelope provides message operations for ServiceTargetMessage It implements the grpcbroker.MessageOperations interface

func NewServiceTargetEnvelope

func NewServiceTargetEnvelope() *ServiceTargetEnvelope

NewServiceTargetEnvelope creates a new ServiceTargetMessageOps instance

func (*ServiceTargetEnvelope) CreateProgressMessage

func (ops *ServiceTargetEnvelope) CreateProgressMessage(requestId string, message string) *ServiceTargetMessage

CreateProgressMessage creates a new progress message envelope with the given text. This is used by server-side handlers to send progress updates back to clients.

func (*ServiceTargetEnvelope) GetError

func (ops *ServiceTargetEnvelope) GetError(msg *ServiceTargetMessage) error

GetError returns the error from the message as a Go error type. It returns a typed error based on the ErrorOrigin that preserves structured information for telemetry.

func (*ServiceTargetEnvelope) GetInnerMessage

func (ops *ServiceTargetEnvelope) GetInnerMessage(msg *ServiceTargetMessage) any

GetInnerMessage returns the inner message from the oneof field

func (*ServiceTargetEnvelope) GetProgressMessage

func (ops *ServiceTargetEnvelope) GetProgressMessage(msg *ServiceTargetMessage) string

GetProgressMessage extracts the progress message text from a progress message. Returns empty string if the message is not a progress message.

func (*ServiceTargetEnvelope) GetRequestId

func (ops *ServiceTargetEnvelope) GetRequestId(ctx context.Context, msg *ServiceTargetMessage) string

GetRequestId returns the request ID from the message

func (*ServiceTargetEnvelope) IsProgressMessage

func (ops *ServiceTargetEnvelope) IsProgressMessage(msg *ServiceTargetMessage) bool

IsProgressMessage returns true if the message contains a progress message

func (*ServiceTargetEnvelope) SetError

func (ops *ServiceTargetEnvelope) SetError(msg *ServiceTargetMessage, err error)

SetError sets an error on the message. It detects the error type and populates the appropriate source details.

func (*ServiceTargetEnvelope) SetRequestId

func (ops *ServiceTargetEnvelope) SetRequestId(ctx context.Context, msg *ServiceTargetMessage, id string)

SetRequestId sets the request ID on the message

type ServiceTargetFactory

type ServiceTargetFactory ProviderFactory[ServiceTargetProvider]

ProviderFactory describes a function that creates an instance of a service target provider

type ServiceTargetInitializeRequest

type ServiceTargetInitializeRequest struct {
	ServiceConfig *ServiceConfig `protobuf:"bytes,1,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceTargetInitializeRequest) Descriptor deprecated

func (*ServiceTargetInitializeRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetInitializeRequest.ProtoReflect.Descriptor instead.

func (*ServiceTargetInitializeRequest) GetServiceConfig

func (x *ServiceTargetInitializeRequest) GetServiceConfig() *ServiceConfig

func (*ServiceTargetInitializeRequest) ProtoMessage

func (*ServiceTargetInitializeRequest) ProtoMessage()

func (*ServiceTargetInitializeRequest) ProtoReflect

func (*ServiceTargetInitializeRequest) Reset

func (x *ServiceTargetInitializeRequest) Reset()

func (*ServiceTargetInitializeRequest) String

type ServiceTargetInitializeResponse

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

func (*ServiceTargetInitializeResponse) Descriptor deprecated

func (*ServiceTargetInitializeResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetInitializeResponse.ProtoReflect.Descriptor instead.

func (*ServiceTargetInitializeResponse) ProtoMessage

func (*ServiceTargetInitializeResponse) ProtoMessage()

func (*ServiceTargetInitializeResponse) ProtoReflect

func (*ServiceTargetInitializeResponse) Reset

func (*ServiceTargetInitializeResponse) String

type ServiceTargetInputParameter

type ServiceTargetInputParameter struct {
	Type         string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	DefaultValue string `protobuf:"bytes,2,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	Value        string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

InputParameter

func (*ServiceTargetInputParameter) Descriptor deprecated

func (*ServiceTargetInputParameter) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetInputParameter.ProtoReflect.Descriptor instead.

func (*ServiceTargetInputParameter) GetDefaultValue

func (x *ServiceTargetInputParameter) GetDefaultValue() string

func (*ServiceTargetInputParameter) GetType

func (x *ServiceTargetInputParameter) GetType() string

func (*ServiceTargetInputParameter) GetValue

func (x *ServiceTargetInputParameter) GetValue() string

func (*ServiceTargetInputParameter) ProtoMessage

func (*ServiceTargetInputParameter) ProtoMessage()

func (*ServiceTargetInputParameter) ProtoReflect

func (*ServiceTargetInputParameter) Reset

func (x *ServiceTargetInputParameter) Reset()

func (*ServiceTargetInputParameter) String

func (x *ServiceTargetInputParameter) String() string

type ServiceTargetManager

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

ServiceTargetManager handles registration and provisioning request forwarding for a provider.

func NewServiceTargetManager

func NewServiceTargetManager(extensionId string, client *AzdClient, brokerLogger *log.Logger) *ServiceTargetManager

NewServiceTargetManager creates a new ServiceTargetManager for an AzdClient.

func (*ServiceTargetManager) Close

func (m *ServiceTargetManager) Close() error

Close terminates the underlying gRPC stream if it's been initialized. This method is thread-safe for concurrent access.

func (*ServiceTargetManager) Ready

func (m *ServiceTargetManager) Ready(ctx context.Context) error

Ready blocks until the message broker starts receiving messages or the context is cancelled. This ensures the stream is initialized and then waits for the broker to be ready. Returns nil when ready, or context error if the context is cancelled before ready.

func (*ServiceTargetManager) Receive

func (m *ServiceTargetManager) Receive(ctx context.Context) error

Receive starts the broker's message dispatcher and blocks until the stream completes. This method ensures the stream is initialized then runs the broker.

func (*ServiceTargetManager) Register

func (m *ServiceTargetManager) Register(ctx context.Context, factory ServiceTargetFactory, hostType string) error

Register registers the provider with the server, waits for the response, then starts background handling of provisioning requests.

type ServiceTargetMessage

type ServiceTargetMessage struct {
	RequestId string          `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Error     *ExtensionError `protobuf:"bytes,99,opt,name=error,proto3" json:"error,omitempty"`
	// Types that are valid to be assigned to MessageType:
	//
	//	*ServiceTargetMessage_RegisterServiceTargetRequest
	//	*ServiceTargetMessage_RegisterServiceTargetResponse
	//	*ServiceTargetMessage_InitializeRequest
	//	*ServiceTargetMessage_InitializeResponse
	//	*ServiceTargetMessage_GetTargetResourceRequest
	//	*ServiceTargetMessage_GetTargetResourceResponse
	//	*ServiceTargetMessage_DeployRequest
	//	*ServiceTargetMessage_DeployResponse
	//	*ServiceTargetMessage_ProgressMessage
	//	*ServiceTargetMessage_PackageRequest
	//	*ServiceTargetMessage_PackageResponse
	//	*ServiceTargetMessage_PublishRequest
	//	*ServiceTargetMessage_PublishResponse
	//	*ServiceTargetMessage_EndpointsRequest
	//	*ServiceTargetMessage_EndpointsResponse
	MessageType isServiceTargetMessage_MessageType `protobuf_oneof:"message_type"`
	// contains filtered or unexported fields
}

Envelope for all possible service target messages (requests and responses)

func (*ServiceTargetMessage) Descriptor deprecated

func (*ServiceTargetMessage) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetMessage.ProtoReflect.Descriptor instead.

func (*ServiceTargetMessage) GetDeployRequest

func (x *ServiceTargetMessage) GetDeployRequest() *ServiceTargetDeployRequest

func (*ServiceTargetMessage) GetDeployResponse

func (x *ServiceTargetMessage) GetDeployResponse() *ServiceTargetDeployResponse

func (*ServiceTargetMessage) GetEndpointsRequest

func (x *ServiceTargetMessage) GetEndpointsRequest() *ServiceTargetEndpointsRequest

func (*ServiceTargetMessage) GetEndpointsResponse

func (x *ServiceTargetMessage) GetEndpointsResponse() *ServiceTargetEndpointsResponse

func (*ServiceTargetMessage) GetError

func (x *ServiceTargetMessage) GetError() *ExtensionError

func (*ServiceTargetMessage) GetGetTargetResourceRequest

func (x *ServiceTargetMessage) GetGetTargetResourceRequest() *GetTargetResourceRequest

func (*ServiceTargetMessage) GetGetTargetResourceResponse

func (x *ServiceTargetMessage) GetGetTargetResourceResponse() *GetTargetResourceResponse

func (*ServiceTargetMessage) GetInitializeRequest

func (x *ServiceTargetMessage) GetInitializeRequest() *ServiceTargetInitializeRequest

func (*ServiceTargetMessage) GetInitializeResponse

func (x *ServiceTargetMessage) GetInitializeResponse() *ServiceTargetInitializeResponse

func (*ServiceTargetMessage) GetMessageType

func (x *ServiceTargetMessage) GetMessageType() isServiceTargetMessage_MessageType

func (*ServiceTargetMessage) GetPackageRequest

func (x *ServiceTargetMessage) GetPackageRequest() *ServiceTargetPackageRequest

func (*ServiceTargetMessage) GetPackageResponse

func (x *ServiceTargetMessage) GetPackageResponse() *ServiceTargetPackageResponse

func (*ServiceTargetMessage) GetProgressMessage

func (x *ServiceTargetMessage) GetProgressMessage() *ServiceTargetProgressMessage

func (*ServiceTargetMessage) GetPublishRequest

func (x *ServiceTargetMessage) GetPublishRequest() *ServiceTargetPublishRequest

func (*ServiceTargetMessage) GetPublishResponse

func (x *ServiceTargetMessage) GetPublishResponse() *ServiceTargetPublishResponse

func (*ServiceTargetMessage) GetRegisterServiceTargetRequest

func (x *ServiceTargetMessage) GetRegisterServiceTargetRequest() *RegisterServiceTargetRequest

func (*ServiceTargetMessage) GetRegisterServiceTargetResponse

func (x *ServiceTargetMessage) GetRegisterServiceTargetResponse() *RegisterServiceTargetResponse

func (*ServiceTargetMessage) GetRequestId

func (x *ServiceTargetMessage) GetRequestId() string

func (*ServiceTargetMessage) ProtoMessage

func (*ServiceTargetMessage) ProtoMessage()

func (*ServiceTargetMessage) ProtoReflect

func (x *ServiceTargetMessage) ProtoReflect() protoreflect.Message

func (*ServiceTargetMessage) Reset

func (x *ServiceTargetMessage) Reset()

func (*ServiceTargetMessage) String

func (x *ServiceTargetMessage) String() string

type ServiceTargetMessage_DeployRequest

type ServiceTargetMessage_DeployRequest struct {
	DeployRequest *ServiceTargetDeployRequest `protobuf:"bytes,12,opt,name=deploy_request,json=deployRequest,proto3,oneof"`
}

type ServiceTargetMessage_DeployResponse

type ServiceTargetMessage_DeployResponse struct {
	DeployResponse *ServiceTargetDeployResponse `protobuf:"bytes,13,opt,name=deploy_response,json=deployResponse,proto3,oneof"`
}

type ServiceTargetMessage_EndpointsRequest

type ServiceTargetMessage_EndpointsRequest struct {
	EndpointsRequest *ServiceTargetEndpointsRequest `protobuf:"bytes,19,opt,name=endpoints_request,json=endpointsRequest,proto3,oneof"`
}

type ServiceTargetMessage_EndpointsResponse

type ServiceTargetMessage_EndpointsResponse struct {
	EndpointsResponse *ServiceTargetEndpointsResponse `protobuf:"bytes,20,opt,name=endpoints_response,json=endpointsResponse,proto3,oneof"`
}

type ServiceTargetMessage_GetTargetResourceRequest

type ServiceTargetMessage_GetTargetResourceRequest struct {
	GetTargetResourceRequest *GetTargetResourceRequest `protobuf:"bytes,10,opt,name=get_target_resource_request,json=getTargetResourceRequest,proto3,oneof"`
}

type ServiceTargetMessage_GetTargetResourceResponse

type ServiceTargetMessage_GetTargetResourceResponse struct {
	GetTargetResourceResponse *GetTargetResourceResponse `protobuf:"bytes,11,opt,name=get_target_resource_response,json=getTargetResourceResponse,proto3,oneof"`
}

type ServiceTargetMessage_InitializeRequest

type ServiceTargetMessage_InitializeRequest struct {
	InitializeRequest *ServiceTargetInitializeRequest `protobuf:"bytes,6,opt,name=initialize_request,json=initializeRequest,proto3,oneof"`
}

type ServiceTargetMessage_InitializeResponse

type ServiceTargetMessage_InitializeResponse struct {
	InitializeResponse *ServiceTargetInitializeResponse `protobuf:"bytes,7,opt,name=initialize_response,json=initializeResponse,proto3,oneof"`
}

type ServiceTargetMessage_PackageRequest

type ServiceTargetMessage_PackageRequest struct {
	PackageRequest *ServiceTargetPackageRequest `protobuf:"bytes,15,opt,name=package_request,json=packageRequest,proto3,oneof"`
}

type ServiceTargetMessage_PackageResponse

type ServiceTargetMessage_PackageResponse struct {
	PackageResponse *ServiceTargetPackageResponse `protobuf:"bytes,16,opt,name=package_response,json=packageResponse,proto3,oneof"`
}

type ServiceTargetMessage_ProgressMessage

type ServiceTargetMessage_ProgressMessage struct {
	ProgressMessage *ServiceTargetProgressMessage `protobuf:"bytes,14,opt,name=progress_message,json=progressMessage,proto3,oneof"`
}

type ServiceTargetMessage_PublishRequest

type ServiceTargetMessage_PublishRequest struct {
	PublishRequest *ServiceTargetPublishRequest `protobuf:"bytes,17,opt,name=publish_request,json=publishRequest,proto3,oneof"`
}

type ServiceTargetMessage_PublishResponse

type ServiceTargetMessage_PublishResponse struct {
	PublishResponse *ServiceTargetPublishResponse `protobuf:"bytes,18,opt,name=publish_response,json=publishResponse,proto3,oneof"`
}

type ServiceTargetMessage_RegisterServiceTargetRequest

type ServiceTargetMessage_RegisterServiceTargetRequest struct {
	RegisterServiceTargetRequest *RegisterServiceTargetRequest `protobuf:"bytes,2,opt,name=register_service_target_request,json=registerServiceTargetRequest,proto3,oneof"`
}

type ServiceTargetMessage_RegisterServiceTargetResponse

type ServiceTargetMessage_RegisterServiceTargetResponse struct {
	RegisterServiceTargetResponse *RegisterServiceTargetResponse `protobuf:"bytes,3,opt,name=register_service_target_response,json=registerServiceTargetResponse,proto3,oneof"`
}

type ServiceTargetOptions

type ServiceTargetOptions struct {
	Provider              string            `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	Path                  string            `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Module                string            `protobuf:"bytes,3,opt,name=module,proto3" json:"module,omitempty"`
	DeploymentStacks      map[string]string `` /* 183-byte string literal not displayed */
	IgnoreDeploymentState bool              `` /* 127-byte string literal not displayed */
	Config                *structpb.Struct  `protobuf:"bytes,6,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

Core options and result wrappers

func (*ServiceTargetOptions) Descriptor deprecated

func (*ServiceTargetOptions) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetOptions.ProtoReflect.Descriptor instead.

func (*ServiceTargetOptions) GetConfig

func (x *ServiceTargetOptions) GetConfig() *structpb.Struct

func (*ServiceTargetOptions) GetDeploymentStacks

func (x *ServiceTargetOptions) GetDeploymentStacks() map[string]string

func (*ServiceTargetOptions) GetIgnoreDeploymentState

func (x *ServiceTargetOptions) GetIgnoreDeploymentState() bool

func (*ServiceTargetOptions) GetModule

func (x *ServiceTargetOptions) GetModule() string

func (*ServiceTargetOptions) GetPath

func (x *ServiceTargetOptions) GetPath() string

func (*ServiceTargetOptions) GetProvider

func (x *ServiceTargetOptions) GetProvider() string

func (*ServiceTargetOptions) ProtoMessage

func (*ServiceTargetOptions) ProtoMessage()

func (*ServiceTargetOptions) ProtoReflect

func (x *ServiceTargetOptions) ProtoReflect() protoreflect.Message

func (*ServiceTargetOptions) Reset

func (x *ServiceTargetOptions) Reset()

func (*ServiceTargetOptions) String

func (x *ServiceTargetOptions) String() string

type ServiceTargetOutputParameter

type ServiceTargetOutputParameter struct {
	Type  string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

OutputParameter

func (*ServiceTargetOutputParameter) Descriptor deprecated

func (*ServiceTargetOutputParameter) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetOutputParameter.ProtoReflect.Descriptor instead.

func (*ServiceTargetOutputParameter) GetType

func (x *ServiceTargetOutputParameter) GetType() string

func (*ServiceTargetOutputParameter) GetValue

func (x *ServiceTargetOutputParameter) GetValue() string

func (*ServiceTargetOutputParameter) ProtoMessage

func (*ServiceTargetOutputParameter) ProtoMessage()

func (*ServiceTargetOutputParameter) ProtoReflect

func (*ServiceTargetOutputParameter) Reset

func (x *ServiceTargetOutputParameter) Reset()

func (*ServiceTargetOutputParameter) String

type ServiceTargetPackageRequest

type ServiceTargetPackageRequest struct {
	ServiceConfig  *ServiceConfig  `protobuf:"bytes,1,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"`
	ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
	// contains filtered or unexported fields
}

ServiceTargetPackageRequest represents a request to package a service

func (*ServiceTargetPackageRequest) Descriptor deprecated

func (*ServiceTargetPackageRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetPackageRequest.ProtoReflect.Descriptor instead.

func (*ServiceTargetPackageRequest) GetServiceConfig

func (x *ServiceTargetPackageRequest) GetServiceConfig() *ServiceConfig

func (*ServiceTargetPackageRequest) GetServiceContext

func (x *ServiceTargetPackageRequest) GetServiceContext() *ServiceContext

func (*ServiceTargetPackageRequest) ProtoMessage

func (*ServiceTargetPackageRequest) ProtoMessage()

func (*ServiceTargetPackageRequest) ProtoReflect

func (*ServiceTargetPackageRequest) Reset

func (x *ServiceTargetPackageRequest) Reset()

func (*ServiceTargetPackageRequest) String

func (x *ServiceTargetPackageRequest) String() string

type ServiceTargetPackageResponse

type ServiceTargetPackageResponse struct {
	Result *ServicePackageResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceTargetPackageResponse) Descriptor deprecated

func (*ServiceTargetPackageResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetPackageResponse.ProtoReflect.Descriptor instead.

func (*ServiceTargetPackageResponse) GetResult

func (*ServiceTargetPackageResponse) ProtoMessage

func (*ServiceTargetPackageResponse) ProtoMessage()

func (*ServiceTargetPackageResponse) ProtoReflect

func (*ServiceTargetPackageResponse) Reset

func (x *ServiceTargetPackageResponse) Reset()

func (*ServiceTargetPackageResponse) String

type ServiceTargetProgressMessage

type ServiceTargetProgressMessage struct {
	RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	Message   string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Timestamp int64  `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Unix timestamp in milliseconds
	// contains filtered or unexported fields
}

ServiceTargetProgressMessage represents a progress update from an extension

func (*ServiceTargetProgressMessage) Descriptor deprecated

func (*ServiceTargetProgressMessage) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetProgressMessage.ProtoReflect.Descriptor instead.

func (*ServiceTargetProgressMessage) GetMessage

func (x *ServiceTargetProgressMessage) GetMessage() string

func (*ServiceTargetProgressMessage) GetRequestId

func (x *ServiceTargetProgressMessage) GetRequestId() string

func (*ServiceTargetProgressMessage) GetTimestamp

func (x *ServiceTargetProgressMessage) GetTimestamp() int64

func (*ServiceTargetProgressMessage) ProtoMessage

func (*ServiceTargetProgressMessage) ProtoMessage()

func (*ServiceTargetProgressMessage) ProtoReflect

func (*ServiceTargetProgressMessage) Reset

func (x *ServiceTargetProgressMessage) Reset()

func (*ServiceTargetProgressMessage) String

type ServiceTargetProvider

type ServiceTargetProvider interface {
	Initialize(ctx context.Context, serviceConfig *ServiceConfig) error
	Endpoints(
		ctx context.Context,
		serviceConfig *ServiceConfig,
		targetResource *TargetResource,
	) ([]string, error)
	GetTargetResource(
		ctx context.Context,
		subscriptionId string,
		serviceConfig *ServiceConfig,
		defaultResolver func() (*TargetResource, error),
	) (*TargetResource, error)
	Package(
		ctx context.Context,
		serviceConfig *ServiceConfig,
		serviceContext *ServiceContext,
		progress ProgressReporter,
	) (*ServicePackageResult, error)
	Publish(
		ctx context.Context,
		serviceConfig *ServiceConfig,
		serviceContext *ServiceContext,
		targetResource *TargetResource,
		publishOptions *PublishOptions,
		progress ProgressReporter,
	) (*ServicePublishResult, error)
	Deploy(
		ctx context.Context,
		serviceConfig *ServiceConfig,
		serviceContext *ServiceContext,
		targetResource *TargetResource,
		progress ProgressReporter,
	) (*ServiceDeployResult, error)
}

ServiceTargetProvider defines the interface for service target logic.

type ServiceTargetPublishRequest

type ServiceTargetPublishRequest struct {
	ServiceConfig  *ServiceConfig  `protobuf:"bytes,1,opt,name=service_config,json=serviceConfig,proto3" json:"service_config,omitempty"`
	ServiceContext *ServiceContext `protobuf:"bytes,2,opt,name=service_context,json=serviceContext,proto3" json:"service_context,omitempty"`
	TargetResource *TargetResource `protobuf:"bytes,3,opt,name=target_resource,json=targetResource,proto3" json:"target_resource,omitempty"`
	PublishOptions *PublishOptions `protobuf:"bytes,4,opt,name=publish_options,json=publishOptions,proto3" json:"publish_options,omitempty"`
	// contains filtered or unexported fields
}

ServiceTargetPublishRequest represents a request to publish a service package

func (*ServiceTargetPublishRequest) Descriptor deprecated

func (*ServiceTargetPublishRequest) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetPublishRequest.ProtoReflect.Descriptor instead.

func (*ServiceTargetPublishRequest) GetPublishOptions

func (x *ServiceTargetPublishRequest) GetPublishOptions() *PublishOptions

func (*ServiceTargetPublishRequest) GetServiceConfig

func (x *ServiceTargetPublishRequest) GetServiceConfig() *ServiceConfig

func (*ServiceTargetPublishRequest) GetServiceContext

func (x *ServiceTargetPublishRequest) GetServiceContext() *ServiceContext

func (*ServiceTargetPublishRequest) GetTargetResource

func (x *ServiceTargetPublishRequest) GetTargetResource() *TargetResource

func (*ServiceTargetPublishRequest) ProtoMessage

func (*ServiceTargetPublishRequest) ProtoMessage()

func (*ServiceTargetPublishRequest) ProtoReflect

func (*ServiceTargetPublishRequest) Reset

func (x *ServiceTargetPublishRequest) Reset()

func (*ServiceTargetPublishRequest) String

func (x *ServiceTargetPublishRequest) String() string

type ServiceTargetPublishResponse

type ServiceTargetPublishResponse struct {
	Result *ServicePublishResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceTargetPublishResponse) Descriptor deprecated

func (*ServiceTargetPublishResponse) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetPublishResponse.ProtoReflect.Descriptor instead.

func (*ServiceTargetPublishResponse) GetResult

func (*ServiceTargetPublishResponse) ProtoMessage

func (*ServiceTargetPublishResponse) ProtoMessage()

func (*ServiceTargetPublishResponse) ProtoReflect

func (*ServiceTargetPublishResponse) Reset

func (x *ServiceTargetPublishResponse) Reset()

func (*ServiceTargetPublishResponse) String

type ServiceTargetRegistration

type ServiceTargetRegistration struct {
	Host    string
	Factory func() ServiceTargetProvider
}

ServiceTargetRegistration describes a service target provider to register with azd core.

type ServiceTargetResource

type ServiceTargetResource struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

Resource

func (*ServiceTargetResource) Descriptor deprecated

func (*ServiceTargetResource) Descriptor() ([]byte, []int)

Deprecated: Use ServiceTargetResource.ProtoReflect.Descriptor instead.

func (*ServiceTargetResource) GetId

func (x *ServiceTargetResource) GetId() string

func (*ServiceTargetResource) ProtoMessage

func (*ServiceTargetResource) ProtoMessage()

func (*ServiceTargetResource) ProtoReflect

func (x *ServiceTargetResource) ProtoReflect() protoreflect.Message

func (*ServiceTargetResource) Reset

func (x *ServiceTargetResource) Reset()

func (*ServiceTargetResource) String

func (x *ServiceTargetResource) String() string

type ServiceTargetServiceClient

type ServiceTargetServiceClient interface {
	// Bidirectional stream for service target requests and responses
	Stream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[ServiceTargetMessage, ServiceTargetMessage], error)
}

ServiceTargetServiceClient is the client API for ServiceTargetService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ServiceTargetServiceServer

type ServiceTargetServiceServer interface {
	// Bidirectional stream for service target requests and responses
	Stream(grpc.BidiStreamingServer[ServiceTargetMessage, ServiceTargetMessage]) error
	// contains filtered or unexported methods
}

ServiceTargetServiceServer is the server API for ServiceTargetService service. All implementations must embed UnimplementedServiceTargetServiceServer for forward compatibility.

type ServiceTargetService_StreamClient

type ServiceTargetService_StreamClient = grpc.BidiStreamingClient[ServiceTargetMessage, ServiceTargetMessage]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type ServiceTargetService_StreamServer

type ServiceTargetService_StreamServer = grpc.BidiStreamingServer[ServiceTargetMessage, ServiceTargetMessage]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type SetConfigRequest

type SetConfigRequest struct {
	Path    string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Value   []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	EnvName string `protobuf:"bytes,3,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"` // Optional: Name of the environment. If empty, uses default.
	// contains filtered or unexported fields
}

Request message for Set

func (*SetConfigRequest) Descriptor deprecated

func (*SetConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetConfigRequest.ProtoReflect.Descriptor instead.

func (*SetConfigRequest) GetEnvName

func (x *SetConfigRequest) GetEnvName() string

func (*SetConfigRequest) GetPath

func (x *SetConfigRequest) GetPath() string

func (*SetConfigRequest) GetValue

func (x *SetConfigRequest) GetValue() []byte

func (*SetConfigRequest) ProtoMessage

func (*SetConfigRequest) ProtoMessage()

func (*SetConfigRequest) ProtoReflect

func (x *SetConfigRequest) ProtoReflect() protoreflect.Message

func (*SetConfigRequest) Reset

func (x *SetConfigRequest) Reset()

func (*SetConfigRequest) String

func (x *SetConfigRequest) String() string

type SetEnvRequest

type SetEnvRequest struct {
	EnvName string `protobuf:"bytes,1,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"` // Optional: Name of the environment. If empty, uses default.
	Key     string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`                        // Key to set.
	Value   string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`                    // Value to set for the key.
	// contains filtered or unexported fields
}

Request to set a key-value pair.

func (*SetEnvRequest) Descriptor deprecated

func (*SetEnvRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetEnvRequest.ProtoReflect.Descriptor instead.

func (*SetEnvRequest) GetEnvName

func (x *SetEnvRequest) GetEnvName() string

func (*SetEnvRequest) GetKey

func (x *SetEnvRequest) GetKey() string

func (*SetEnvRequest) GetValue

func (x *SetEnvRequest) GetValue() string

func (*SetEnvRequest) ProtoMessage

func (*SetEnvRequest) ProtoMessage()

func (*SetEnvRequest) ProtoReflect

func (x *SetEnvRequest) ProtoReflect() protoreflect.Message

func (*SetEnvRequest) Reset

func (x *SetEnvRequest) Reset()

func (*SetEnvRequest) String

func (x *SetEnvRequest) String() string

type SetProjectConfigSectionRequest

type SetProjectConfigSectionRequest struct {
	Path    string           `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Section *structpb.Struct `protobuf:"bytes,2,opt,name=section,proto3" json:"section,omitempty"`
	// contains filtered or unexported fields
}

Request message for SetConfigSection

func (*SetProjectConfigSectionRequest) Descriptor deprecated

func (*SetProjectConfigSectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetProjectConfigSectionRequest.ProtoReflect.Descriptor instead.

func (*SetProjectConfigSectionRequest) GetPath

func (*SetProjectConfigSectionRequest) GetSection

func (*SetProjectConfigSectionRequest) ProtoMessage

func (*SetProjectConfigSectionRequest) ProtoMessage()

func (*SetProjectConfigSectionRequest) ProtoReflect

func (*SetProjectConfigSectionRequest) Reset

func (x *SetProjectConfigSectionRequest) Reset()

func (*SetProjectConfigSectionRequest) String

type SetProjectConfigValueRequest

type SetProjectConfigValueRequest struct {
	Path  string          `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Value *structpb.Value `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Request message for SetConfigValue

func (*SetProjectConfigValueRequest) Descriptor deprecated

func (*SetProjectConfigValueRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetProjectConfigValueRequest.ProtoReflect.Descriptor instead.

func (*SetProjectConfigValueRequest) GetPath

func (x *SetProjectConfigValueRequest) GetPath() string

func (*SetProjectConfigValueRequest) GetValue

func (*SetProjectConfigValueRequest) ProtoMessage

func (*SetProjectConfigValueRequest) ProtoMessage()

func (*SetProjectConfigValueRequest) ProtoReflect

func (*SetProjectConfigValueRequest) Reset

func (x *SetProjectConfigValueRequest) Reset()

func (*SetProjectConfigValueRequest) String

type SetServiceConfigSectionRequest

type SetServiceConfigSectionRequest struct {
	ServiceName string           `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	Path        string           `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Section     *structpb.Struct `protobuf:"bytes,3,opt,name=section,proto3" json:"section,omitempty"`
	// contains filtered or unexported fields
}

Request message for SetServiceConfigSection

func (*SetServiceConfigSectionRequest) Descriptor deprecated

func (*SetServiceConfigSectionRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetServiceConfigSectionRequest.ProtoReflect.Descriptor instead.

func (*SetServiceConfigSectionRequest) GetPath

func (*SetServiceConfigSectionRequest) GetSection

func (*SetServiceConfigSectionRequest) GetServiceName

func (x *SetServiceConfigSectionRequest) GetServiceName() string

func (*SetServiceConfigSectionRequest) ProtoMessage

func (*SetServiceConfigSectionRequest) ProtoMessage()

func (*SetServiceConfigSectionRequest) ProtoReflect

func (*SetServiceConfigSectionRequest) Reset

func (x *SetServiceConfigSectionRequest) Reset()

func (*SetServiceConfigSectionRequest) String

type SetServiceConfigValueRequest

type SetServiceConfigValueRequest struct {
	ServiceName string          `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	Path        string          `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Value       *structpb.Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Request message for SetServiceConfigValue

func (*SetServiceConfigValueRequest) Descriptor deprecated

func (*SetServiceConfigValueRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetServiceConfigValueRequest.ProtoReflect.Descriptor instead.

func (*SetServiceConfigValueRequest) GetPath

func (x *SetServiceConfigValueRequest) GetPath() string

func (*SetServiceConfigValueRequest) GetServiceName

func (x *SetServiceConfigValueRequest) GetServiceName() string

func (*SetServiceConfigValueRequest) GetValue

func (*SetServiceConfigValueRequest) ProtoMessage

func (*SetServiceConfigValueRequest) ProtoMessage()

func (*SetServiceConfigValueRequest) ProtoReflect

func (*SetServiceConfigValueRequest) Reset

func (x *SetServiceConfigValueRequest) Reset()

func (*SetServiceConfigValueRequest) String

type SetUserConfigRequest

type SetUserConfigRequest struct {
	Path  string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

Request message for Set

func (*SetUserConfigRequest) Descriptor deprecated

func (*SetUserConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use SetUserConfigRequest.ProtoReflect.Descriptor instead.

func (*SetUserConfigRequest) GetPath

func (x *SetUserConfigRequest) GetPath() string

func (*SetUserConfigRequest) GetValue

func (x *SetUserConfigRequest) GetValue() []byte

func (*SetUserConfigRequest) ProtoMessage

func (*SetUserConfigRequest) ProtoMessage()

func (*SetUserConfigRequest) ProtoReflect

func (x *SetUserConfigRequest) ProtoReflect() protoreflect.Message

func (*SetUserConfigRequest) Reset

func (x *SetUserConfigRequest) Reset()

func (*SetUserConfigRequest) String

func (x *SetUserConfigRequest) String() string

type StopCopilotSessionRequest

type StopCopilotSessionRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"` // Session to stop.
	// contains filtered or unexported fields
}

StopCopilotSessionRequest stops a session and releases resources.

func (*StopCopilotSessionRequest) Descriptor deprecated

func (*StopCopilotSessionRequest) Descriptor() ([]byte, []int)

Deprecated: Use StopCopilotSessionRequest.ProtoReflect.Descriptor instead.

func (*StopCopilotSessionRequest) GetSessionId

func (x *StopCopilotSessionRequest) GetSessionId() string

func (*StopCopilotSessionRequest) ProtoMessage

func (*StopCopilotSessionRequest) ProtoMessage()

func (*StopCopilotSessionRequest) ProtoReflect

func (*StopCopilotSessionRequest) Reset

func (x *StopCopilotSessionRequest) Reset()

func (*StopCopilotSessionRequest) String

func (x *StopCopilotSessionRequest) String() string

type SubscribeProjectEvent

type SubscribeProjectEvent struct {

	// List of event names to subscribe to.
	EventNames []string `protobuf:"bytes,1,rep,name=event_names,json=eventNames,proto3" json:"event_names,omitempty"`
	// contains filtered or unexported fields
}

Client subscribes to project-related events

func (*SubscribeProjectEvent) Descriptor deprecated

func (*SubscribeProjectEvent) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeProjectEvent.ProtoReflect.Descriptor instead.

func (*SubscribeProjectEvent) GetEventNames

func (x *SubscribeProjectEvent) GetEventNames() []string

func (*SubscribeProjectEvent) ProtoMessage

func (*SubscribeProjectEvent) ProtoMessage()

func (*SubscribeProjectEvent) ProtoReflect

func (x *SubscribeProjectEvent) ProtoReflect() protoreflect.Message

func (*SubscribeProjectEvent) Reset

func (x *SubscribeProjectEvent) Reset()

func (*SubscribeProjectEvent) String

func (x *SubscribeProjectEvent) String() string

type SubscribeServiceEvent

type SubscribeServiceEvent struct {

	// List of event names to subscribe to.
	EventNames []string `protobuf:"bytes,1,rep,name=event_names,json=eventNames,proto3" json:"event_names,omitempty"`
	Language   string   `protobuf:"bytes,2,opt,name=language,proto3" json:"language,omitempty"`
	Host       string   `protobuf:"bytes,3,opt,name=host,proto3" json:"host,omitempty"`
	// contains filtered or unexported fields
}

Client subscribes to service-related events

func (*SubscribeServiceEvent) Descriptor deprecated

func (*SubscribeServiceEvent) Descriptor() ([]byte, []int)

Deprecated: Use SubscribeServiceEvent.ProtoReflect.Descriptor instead.

func (*SubscribeServiceEvent) GetEventNames

func (x *SubscribeServiceEvent) GetEventNames() []string

func (*SubscribeServiceEvent) GetHost

func (x *SubscribeServiceEvent) GetHost() string

func (*SubscribeServiceEvent) GetLanguage

func (x *SubscribeServiceEvent) GetLanguage() string

func (*SubscribeServiceEvent) ProtoMessage

func (*SubscribeServiceEvent) ProtoMessage()

func (*SubscribeServiceEvent) ProtoReflect

func (x *SubscribeServiceEvent) ProtoReflect() protoreflect.Message

func (*SubscribeServiceEvent) Reset

func (x *SubscribeServiceEvent) Reset()

func (*SubscribeServiceEvent) String

func (x *SubscribeServiceEvent) String() string

type Subscription

type Subscription struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name         string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	TenantId     string `protobuf:"bytes,3,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"`
	UserTenantId string `protobuf:"bytes,4,opt,name=user_tenant_id,json=userTenantId,proto3" json:"user_tenant_id,omitempty"`
	IsDefault    bool   `protobuf:"varint,5,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"`
	// contains filtered or unexported fields
}

Message representing a Subscription

func (*Subscription) Descriptor deprecated

func (*Subscription) Descriptor() ([]byte, []int)

Deprecated: Use Subscription.ProtoReflect.Descriptor instead.

func (*Subscription) GetId

func (x *Subscription) GetId() string

func (*Subscription) GetIsDefault

func (x *Subscription) GetIsDefault() bool

func (*Subscription) GetName

func (x *Subscription) GetName() string

func (*Subscription) GetTenantId

func (x *Subscription) GetTenantId() string

func (*Subscription) GetUserTenantId

func (x *Subscription) GetUserTenantId() string

func (*Subscription) ProtoMessage

func (*Subscription) ProtoMessage()

func (*Subscription) ProtoReflect

func (x *Subscription) ProtoReflect() protoreflect.Message

func (*Subscription) Reset

func (x *Subscription) Reset()

func (*Subscription) String

func (x *Subscription) String() string

type TargetResource

type TargetResource struct {
	SubscriptionId    string            `protobuf:"bytes,1,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"`
	ResourceGroupName string            `protobuf:"bytes,2,opt,name=resource_group_name,json=resourceGroupName,proto3" json:"resource_group_name,omitempty"`
	ResourceName      string            `protobuf:"bytes,3,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"`
	ResourceType      string            `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"`
	Metadata          map[string]string `` /* 143-byte string literal not displayed */
	// contains filtered or unexported fields
}

TargetResource represents the resolved target resource

func (*TargetResource) Descriptor deprecated

func (*TargetResource) Descriptor() ([]byte, []int)

Deprecated: Use TargetResource.ProtoReflect.Descriptor instead.

func (*TargetResource) GetMetadata

func (x *TargetResource) GetMetadata() map[string]string

func (*TargetResource) GetResourceGroupName

func (x *TargetResource) GetResourceGroupName() string

func (*TargetResource) GetResourceName

func (x *TargetResource) GetResourceName() string

func (*TargetResource) GetResourceType

func (x *TargetResource) GetResourceType() string

func (*TargetResource) GetSubscriptionId

func (x *TargetResource) GetSubscriptionId() string

func (*TargetResource) ProtoMessage

func (*TargetResource) ProtoMessage()

func (*TargetResource) ProtoReflect

func (x *TargetResource) ProtoReflect() protoreflect.Message

func (*TargetResource) Reset

func (x *TargetResource) Reset()

func (*TargetResource) String

func (x *TargetResource) String() string

type TokenProvider

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

TokenProvider implements azcore.TokenCredential so that extensions can obtain Azure tokens without manual credential construction.

It uses the AZD deployment context (tenant/subscription) retrieved via gRPC and delegates to azidentity.AzureDeveloperCLICredential for the actual token acquisition flow.

Use TokenProvider when extensions need azd-aligned tenant selection and a ready-to-use azcore.TokenCredential for Azure SDK clients. If tenant resolution and credential selection are managed by the extension already, constructing azidentity.AzureDeveloperCLICredential directly is sufficient.

Usage:

ctx := context.Background()
tp, err := azdext.NewTokenProvider(ctx, client, nil)
// use tp as azcore.TokenCredential with any Azure SDK client

func NewTokenProvider

func NewTokenProvider(ctx context.Context, client *AzdClient, opts *TokenProviderOptions) (*TokenProvider, error)

NewTokenProvider creates a TokenProvider for the given AZD client.

If opts is nil, the provider discovers the current tenant from the AZD deployment context and constructs an azidentity.AzureDeveloperCLICredential.

func (*TokenProvider) GetToken

GetToken satisfies azcore.TokenCredential.

func (*TokenProvider) TenantID

func (tp *TokenProvider) TenantID() string

TenantID returns the Azure tenant ID that was resolved or configured for this provider.

type TokenProviderOptions

type TokenProviderOptions struct {
	// TenantID overrides the tenant obtained from the AZD deployment context.
	// When empty, the provider queries the AZD gRPC server for the current tenant.
	TenantID string

	// Credential overrides the default credential chain.
	// When nil, [azidentity.AzureDeveloperCLICredential] is used.
	Credential azcore.TokenCredential
}

TokenProviderOptions configures a TokenProvider.

type ToolArgs

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

ToolArgs wraps parsed MCP tool arguments for typed access.

func ParseToolArgs

func ParseToolArgs(request mcp.CallToolRequest) ToolArgs

ParseToolArgs extracts the arguments map from an MCP CallToolRequest.

func (ToolArgs) Has

func (a ToolArgs) Has(key string) bool

Has returns true if the key exists in the arguments.

func (ToolArgs) OptionalBool

func (a ToolArgs) OptionalBool(key string, defaultValue bool) bool

OptionalBool returns a bool argument or the default if missing.

func (ToolArgs) OptionalFloat

func (a ToolArgs) OptionalFloat(key string, defaultValue float64) float64

OptionalFloat returns a float64 argument or the default if missing.

func (ToolArgs) OptionalInt

func (a ToolArgs) OptionalInt(key string, defaultValue int) int

OptionalInt returns an int argument or the default if missing.

func (ToolArgs) OptionalString

func (a ToolArgs) OptionalString(key, defaultValue string) string

OptionalString returns a string argument or the default if missing.

func (ToolArgs) Raw

func (a ToolArgs) Raw() map[string]any

Raw returns the underlying argument map.

func (ToolArgs) RequireInt

func (a ToolArgs) RequireInt(key string) (int, error)

RequireInt returns an int argument or an error if missing/wrong type. Note: JSON numbers come as float64, so convert appropriately.

func (ToolArgs) RequireString

func (a ToolArgs) RequireString(key string) (string, error)

RequireString returns a string argument or an error if missing/wrong type.

type UnimplementedAccountServiceServer

type UnimplementedAccountServiceServer struct{}

UnimplementedAccountServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAccountServiceServer) ListSubscriptions

func (UnimplementedAccountServiceServer) LookupTenant

type UnimplementedAiModelServiceServer

type UnimplementedAiModelServiceServer struct{}

UnimplementedAiModelServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAiModelServiceServer) ListModels

func (UnimplementedAiModelServiceServer) ListUsages

type UnimplementedComposeServiceServer

type UnimplementedComposeServiceServer struct{}

UnimplementedComposeServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedComposeServiceServer) AddResource

func (UnimplementedComposeServiceServer) GetResource

func (UnimplementedComposeServiceServer) GetResourceType

func (UnimplementedComposeServiceServer) ListResourceTypes

func (UnimplementedComposeServiceServer) ListResources

type UnimplementedContainerServiceServer

type UnimplementedContainerServiceServer struct{}

UnimplementedContainerServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedContainerServiceServer) Build

func (UnimplementedContainerServiceServer) Package

func (UnimplementedContainerServiceServer) Publish

type UnimplementedCopilotServiceServer

type UnimplementedCopilotServiceServer struct{}

UnimplementedCopilotServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedCopilotServiceServer) StopSession

type UnimplementedDeploymentServiceServer

type UnimplementedDeploymentServiceServer struct{}

UnimplementedDeploymentServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedDeploymentServiceServer) GetDeployment

func (UnimplementedDeploymentServiceServer) GetDeploymentContext

type UnimplementedEnvironmentServiceServer

type UnimplementedEnvironmentServiceServer struct{}

UnimplementedEnvironmentServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedEnvironmentServiceServer) Get

func (UnimplementedEnvironmentServiceServer) GetConfig

func (UnimplementedEnvironmentServiceServer) GetConfigSection

func (UnimplementedEnvironmentServiceServer) GetConfigString

func (UnimplementedEnvironmentServiceServer) GetCurrent

func (UnimplementedEnvironmentServiceServer) GetValue

func (UnimplementedEnvironmentServiceServer) GetValues

func (UnimplementedEnvironmentServiceServer) List

func (UnimplementedEnvironmentServiceServer) Select

func (UnimplementedEnvironmentServiceServer) SetConfig

func (UnimplementedEnvironmentServiceServer) SetValue

func (UnimplementedEnvironmentServiceServer) UnsetConfig

type UnimplementedEventServiceServer

type UnimplementedEventServiceServer struct{}

UnimplementedEventServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedEventServiceServer) EventStream

type UnimplementedExtensionServiceServer

type UnimplementedExtensionServiceServer struct{}

UnimplementedExtensionServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedExtensionServiceServer) Ready

func (UnimplementedExtensionServiceServer) ReportError

type UnimplementedFrameworkServiceServer

type UnimplementedFrameworkServiceServer struct{}

UnimplementedFrameworkServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnimplementedProjectServiceServer

type UnimplementedProjectServiceServer struct{}

UnimplementedProjectServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedProjectServiceServer) AddService

func (UnimplementedProjectServiceServer) Get

func (UnimplementedProjectServiceServer) GetResolvedServices

func (UnimplementedProjectServiceServer) ParseGitHubUrl

func (UnimplementedProjectServiceServer) SetConfigSection

func (UnimplementedProjectServiceServer) SetConfigValue

func (UnimplementedProjectServiceServer) SetServiceConfigSection

func (UnimplementedProjectServiceServer) SetServiceConfigValue

func (UnimplementedProjectServiceServer) UnsetConfig

func (UnimplementedProjectServiceServer) UnsetServiceConfig

type UnimplementedPromptServiceServer

type UnimplementedPromptServiceServer struct{}

UnimplementedPromptServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedPromptServiceServer) Confirm

func (UnimplementedPromptServiceServer) MultiSelect

func (UnimplementedPromptServiceServer) Prompt

func (UnimplementedPromptServiceServer) PromptAiDeployment

func (UnimplementedPromptServiceServer) PromptAiModel

func (UnimplementedPromptServiceServer) PromptLocation

func (UnimplementedPromptServiceServer) PromptSubscription

func (UnimplementedPromptServiceServer) Select

type UnimplementedServiceTargetServiceServer

type UnimplementedServiceTargetServiceServer struct{}

UnimplementedServiceTargetServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnimplementedUserConfigServiceServer

type UnimplementedUserConfigServiceServer struct{}

UnimplementedUserConfigServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedUserConfigServiceServer) Get

func (UnimplementedUserConfigServiceServer) Set

func (UnimplementedUserConfigServiceServer) Unset

type UnimplementedWorkflowServiceServer

type UnimplementedWorkflowServiceServer struct{}

UnimplementedWorkflowServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedWorkflowServiceServer) Run

type UnsafeAccountServiceServer

type UnsafeAccountServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAccountServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServiceServer will result in compilation errors.

type UnsafeAiModelServiceServer

type UnsafeAiModelServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAiModelServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AiModelServiceServer will result in compilation errors.

type UnsafeComposeServiceServer

type UnsafeComposeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeComposeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ComposeServiceServer will result in compilation errors.

type UnsafeContainerServiceServer

type UnsafeContainerServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeContainerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ContainerServiceServer will result in compilation errors.

type UnsafeCopilotServiceServer

type UnsafeCopilotServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeCopilotServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CopilotServiceServer will result in compilation errors.

type UnsafeDeploymentServiceServer

type UnsafeDeploymentServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDeploymentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DeploymentServiceServer will result in compilation errors.

type UnsafeEnvironmentServiceServer

type UnsafeEnvironmentServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEnvironmentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EnvironmentServiceServer will result in compilation errors.

type UnsafeEventServiceServer

type UnsafeEventServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeEventServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EventServiceServer will result in compilation errors.

type UnsafeExtensionServiceServer

type UnsafeExtensionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeExtensionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExtensionServiceServer will result in compilation errors.

type UnsafeFrameworkServiceServer

type UnsafeFrameworkServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeFrameworkServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FrameworkServiceServer will result in compilation errors.

type UnsafeProjectServiceServer

type UnsafeProjectServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeProjectServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProjectServiceServer will result in compilation errors.

type UnsafePromptServiceServer

type UnsafePromptServiceServer interface {
	// contains filtered or unexported methods
}

UnsafePromptServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PromptServiceServer will result in compilation errors.

type UnsafeServiceTargetServiceServer

type UnsafeServiceTargetServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeServiceTargetServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceTargetServiceServer will result in compilation errors.

type UnsafeUserConfigServiceServer

type UnsafeUserConfigServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserConfigServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserConfigServiceServer will result in compilation errors.

type UnsafeWorkflowServiceServer

type UnsafeWorkflowServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeWorkflowServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WorkflowServiceServer will result in compilation errors.

type UnsetConfigRequest

type UnsetConfigRequest struct {
	Path    string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	EnvName string `protobuf:"bytes,2,opt,name=env_name,json=envName,proto3" json:"env_name,omitempty"` // Optional: Name of the environment. If empty, uses default.
	// contains filtered or unexported fields
}

Request message for Unset

func (*UnsetConfigRequest) Descriptor deprecated

func (*UnsetConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnsetConfigRequest.ProtoReflect.Descriptor instead.

func (*UnsetConfigRequest) GetEnvName

func (x *UnsetConfigRequest) GetEnvName() string

func (*UnsetConfigRequest) GetPath

func (x *UnsetConfigRequest) GetPath() string

func (*UnsetConfigRequest) ProtoMessage

func (*UnsetConfigRequest) ProtoMessage()

func (*UnsetConfigRequest) ProtoReflect

func (x *UnsetConfigRequest) ProtoReflect() protoreflect.Message

func (*UnsetConfigRequest) Reset

func (x *UnsetConfigRequest) Reset()

func (*UnsetConfigRequest) String

func (x *UnsetConfigRequest) String() string

type UnsetProjectConfigRequest

type UnsetProjectConfigRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Request message for UnsetConfig

func (*UnsetProjectConfigRequest) Descriptor deprecated

func (*UnsetProjectConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnsetProjectConfigRequest.ProtoReflect.Descriptor instead.

func (*UnsetProjectConfigRequest) GetPath

func (x *UnsetProjectConfigRequest) GetPath() string

func (*UnsetProjectConfigRequest) ProtoMessage

func (*UnsetProjectConfigRequest) ProtoMessage()

func (*UnsetProjectConfigRequest) ProtoReflect

func (*UnsetProjectConfigRequest) Reset

func (x *UnsetProjectConfigRequest) Reset()

func (*UnsetProjectConfigRequest) String

func (x *UnsetProjectConfigRequest) String() string

type UnsetServiceConfigRequest

type UnsetServiceConfigRequest struct {
	ServiceName string `protobuf:"bytes,1,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	Path        string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Request message for UnsetServiceConfig

func (*UnsetServiceConfigRequest) Descriptor deprecated

func (*UnsetServiceConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnsetServiceConfigRequest.ProtoReflect.Descriptor instead.

func (*UnsetServiceConfigRequest) GetPath

func (x *UnsetServiceConfigRequest) GetPath() string

func (*UnsetServiceConfigRequest) GetServiceName

func (x *UnsetServiceConfigRequest) GetServiceName() string

func (*UnsetServiceConfigRequest) ProtoMessage

func (*UnsetServiceConfigRequest) ProtoMessage()

func (*UnsetServiceConfigRequest) ProtoReflect

func (*UnsetServiceConfigRequest) Reset

func (x *UnsetServiceConfigRequest) Reset()

func (*UnsetServiceConfigRequest) String

func (x *UnsetServiceConfigRequest) String() string

type UnsetUserConfigRequest

type UnsetUserConfigRequest struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

Request message for Unset

func (*UnsetUserConfigRequest) Descriptor deprecated

func (*UnsetUserConfigRequest) Descriptor() ([]byte, []int)

Deprecated: Use UnsetUserConfigRequest.ProtoReflect.Descriptor instead.

func (*UnsetUserConfigRequest) GetPath

func (x *UnsetUserConfigRequest) GetPath() string

func (*UnsetUserConfigRequest) ProtoMessage

func (*UnsetUserConfigRequest) ProtoMessage()

func (*UnsetUserConfigRequest) ProtoReflect

func (x *UnsetUserConfigRequest) ProtoReflect() protoreflect.Message

func (*UnsetUserConfigRequest) Reset

func (x *UnsetUserConfigRequest) Reset()

func (*UnsetUserConfigRequest) String

func (x *UnsetUserConfigRequest) String() string

type UserConfigServiceClient

type UserConfigServiceClient interface {
	// Get retrieves a value by path
	Get(ctx context.Context, in *GetUserConfigRequest, opts ...grpc.CallOption) (*GetUserConfigResponse, error)
	// GetString retrieves a value by path and returns it as a string
	GetString(ctx context.Context, in *GetUserConfigStringRequest, opts ...grpc.CallOption) (*GetUserConfigStringResponse, error)
	// GetSection retrieves a section by path
	GetSection(ctx context.Context, in *GetUserConfigSectionRequest, opts ...grpc.CallOption) (*GetUserConfigSectionResponse, error)
	// Set sets a value at a given path
	Set(ctx context.Context, in *SetUserConfigRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
	// Unset removes a value at a given path
	Unset(ctx context.Context, in *UnsetUserConfigRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
}

UserConfigServiceClient is the client API for UserConfigService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type UserConfigServiceServer

type UserConfigServiceServer interface {
	// Get retrieves a value by path
	Get(context.Context, *GetUserConfigRequest) (*GetUserConfigResponse, error)
	// GetString retrieves a value by path and returns it as a string
	GetString(context.Context, *GetUserConfigStringRequest) (*GetUserConfigStringResponse, error)
	// GetSection retrieves a section by path
	GetSection(context.Context, *GetUserConfigSectionRequest) (*GetUserConfigSectionResponse, error)
	// Set sets a value at a given path
	Set(context.Context, *SetUserConfigRequest) (*EmptyResponse, error)
	// Unset removes a value at a given path
	Unset(context.Context, *UnsetUserConfigRequest) (*EmptyResponse, error)
	// contains filtered or unexported methods
}

UserConfigServiceServer is the server API for UserConfigService service. All implementations must embed UnimplementedUserConfigServiceServer for forward compatibility.

type Workflow

type Workflow struct {
	Name  string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Steps []*WorkflowStep `protobuf:"bytes,2,rep,name=steps,proto3" json:"steps,omitempty"`
	// contains filtered or unexported fields
}

Workflow is a collection of steps to be executed in order.

func (*Workflow) Descriptor deprecated

func (*Workflow) Descriptor() ([]byte, []int)

Deprecated: Use Workflow.ProtoReflect.Descriptor instead.

func (*Workflow) GetName

func (x *Workflow) GetName() string

func (*Workflow) GetSteps

func (x *Workflow) GetSteps() []*WorkflowStep

func (*Workflow) ProtoMessage

func (*Workflow) ProtoMessage()

func (*Workflow) ProtoReflect

func (x *Workflow) ProtoReflect() protoreflect.Message

func (*Workflow) Reset

func (x *Workflow) Reset()

func (*Workflow) String

func (x *Workflow) String() string

type WorkflowCommand

type WorkflowCommand struct {
	Args []string `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

WorkflowCommand is a command to be executed in a workflow step.

func (*WorkflowCommand) Descriptor deprecated

func (*WorkflowCommand) Descriptor() ([]byte, []int)

Deprecated: Use WorkflowCommand.ProtoReflect.Descriptor instead.

func (*WorkflowCommand) GetArgs

func (x *WorkflowCommand) GetArgs() []string

func (*WorkflowCommand) ProtoMessage

func (*WorkflowCommand) ProtoMessage()

func (*WorkflowCommand) ProtoReflect

func (x *WorkflowCommand) ProtoReflect() protoreflect.Message

func (*WorkflowCommand) Reset

func (x *WorkflowCommand) Reset()

func (*WorkflowCommand) String

func (x *WorkflowCommand) String() string

type WorkflowServiceClient

type WorkflowServiceClient interface {
	// ListResources retrieves all configured composability resources in the current project.
	Run(ctx context.Context, in *RunWorkflowRequest, opts ...grpc.CallOption) (*EmptyResponse, error)
}

WorkflowServiceClient is the client API for WorkflowService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type WorkflowServiceServer

type WorkflowServiceServer interface {
	// ListResources retrieves all configured composability resources in the current project.
	Run(context.Context, *RunWorkflowRequest) (*EmptyResponse, error)
	// contains filtered or unexported methods
}

WorkflowServiceServer is the server API for WorkflowService service. All implementations must embed UnimplementedWorkflowServiceServer for forward compatibility.

type WorkflowStep

type WorkflowStep struct {
	Command *WorkflowCommand `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	// contains filtered or unexported fields
}

WorkflowStep is a single step in a workflow.

func (*WorkflowStep) Descriptor deprecated

func (*WorkflowStep) Descriptor() ([]byte, []int)

Deprecated: Use WorkflowStep.ProtoReflect.Descriptor instead.

func (*WorkflowStep) GetCommand

func (x *WorkflowStep) GetCommand() *WorkflowCommand

func (*WorkflowStep) ProtoMessage

func (*WorkflowStep) ProtoMessage()

func (*WorkflowStep) ProtoReflect

func (x *WorkflowStep) ProtoReflect() protoreflect.Message

func (*WorkflowStep) Reset

func (x *WorkflowStep) Reset()

func (*WorkflowStep) String

func (x *WorkflowStep) String() string

Jump to

Keyboard shortcuts

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