MCPcopy Index your code
hub / github.com/rilldata/rill / FindProvisionedRuntimeResource

Method FindProvisionedRuntimeResource

admin/deployments.go:666–675  ·  view source on GitHub ↗
(ctx context.Context, deploymentID string)

Source from the content-addressed store, hash-verified

664}
665
666func (s *Service) FindProvisionedRuntimeResource(ctx context.Context, deploymentID string) (*database.ProvisionerResource, bool, error) {
667 pr, err := s.DB.FindProvisionerResourceByTypeAndName(ctx, deploymentID, string(provisioner.ResourceTypeRuntime), "")
668 if err != nil {
669 if errors.Is(err, database.ErrNotFound) {
670 return nil, false, nil
671 }
672 return nil, false, err
673 }
674 return pr, true, nil
675}
676
677type DeploymentAnnotations struct {
678 orgID string

Callers 2

UpdateDeploymentInnerMethod · 0.95
GetDeploymentConfigMethod · 0.80

Tested by

no test coverage detected