 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
- func AgreeToProviderTos(ctx context.Context, provider gql.ExtensionProviderData) error
- func AgreedToProviderTos(ctx context.Context, providerName string) (bool, error)
- func Discover(ctx context.Context, provider gql.AddOnType) (addOn *gql.AddOnData, app *gql.AppData, err error)
- func GetExcludedRegions(ctx context.Context, provider gql.ExtensionProviderData) (excludedRegions []string, err error)
- func OpenDashboard(ctx context.Context, extensionName string, provider gql.AddOnType) (err error)
- func OpenOrgDashboard(ctx context.Context, orgSlug string, providerName string) (err error)
- func Status(ctx context.Context, provider gql.AddOnType) (err error)
- func WaitForProvision(ctx context.Context, name string, provider string) error
- type Extension
- type ExtensionParams
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var PlatformMap = map[string]string{
	"AdonisJS":      "node",
	"Bun":           "javascript",
	"Django":        "python-django",
	"Deno":          "node",
	".NET":          "dotnet",
	"Elixir":        "elixir",
	"Gatsby":        "node",
	"Go":            "go",
	"NodeJS":        "node",
	"NodeJS/Prisma": "node",
	"Laravel":       "php-laravel",
	"NestJS":        "node",
	"NextJS":        "javascript-nextjs",
	"Nuxt":          "javascript-vue",
	"NuxtJS":        "javascript-vue",
	"Phoenix":       "elixir",
	"Python":        "python",
	"Rails":         "ruby-rails",
	"RedwoodJS":     "javascript-react",
	"Remix":         "javascript-remix",
	"Remix/Prisma":  "javascript-remix",
	"Ruby":          "ruby",
}
    
      View Source
      
  var Platforms = []string{
	"android",
	"apple-ios",
	"apple-macos",
	"capacitor",
	"cocoa-objc",
	"cocoa-swift",
	"cordova",
	"csharp",
	"dart",
	"dart-flutter",
	"dotnet",
	"dotnet-aspnet",
	"dotnet-aspnetcore",
	"dotnet-awslambda",
	"dotnet-gcpfunctions",
	"dotnet-maui",
	"dotnet-winforms",
	"dotnet-wpf",
	"dotnet-xamarin",
	"electron",
	"elixir",
	"flutter",
	"go",
	"go-http",
	"ionic",
	"java",
	"java-android",
	"java-appengine",
	"java-log4j",
	"java-log4j2",
	"java-logback",
	"java-logging",
	"java-spring",
	"java-spring-boot",
	"javascript",
	"javascript-angular",
	"javascript-angularjs",
	"javascript-backbone",
	"javascript-capacitor",
	"javascript-cordova",
	"javascript-electron",
	"javascript-ember",
	"javascript-gatsby",
	"javascript-nextjs",
	"javascript-react",
	"javascript-remix",
	"javascript-svelte",
	"javascript-vue",
	"kotlin",
	"minidump",
	"native",
	"native-breakpad",
	"native-crashpad",
	"native-minidump",
	"native-qt",
	"node",
	"node-awslambda",
	"node-azurefunctions",
	"node-connect",
	"node-express",
	"node-gcpfunctions",
	"node-koa",
	"perl",
	"php",
	"php-laravel",
	"php-monolog",
	"php-symfony2",
	"python",
	"python-awslambda",
	"python-azurefunctions",
	"python-bottle",
	"python-celery",
	"python-django",
	"python-fastapi",
	"python-flask",
	"python-gcpfunctions",
	"python-pylons",
	"python-pyramid",
	"python-rq",
	"python-sanic",
	"python-starlette",
	"python-tornado",
	"react-native",
	"ruby",
	"ruby-rack",
	"ruby-rails",
	"rust",
	"unity",
	"unreal",
}
    Supported Sentry Platforms from https://github.com/getsentry/sentry/blob/master/src/sentry/utils/platform_categories.py If other extensions require platform detection, this list can be abstracted further
      View Source
      
  flag.Yes(), }
Common flags that should be used for all extension commands
Functions ¶
func AgreeToProviderTos ¶ added in v0.1.106
func AgreeToProviderTos(ctx context.Context, provider gql.ExtensionProviderData) error
func AgreedToProviderTos ¶ added in v0.1.76
func GetExcludedRegions ¶
func OpenDashboard ¶
func OpenOrgDashboard ¶ added in v0.1.119
Types ¶
type Extension ¶ added in v0.1.71
type Extension struct {
	Data        gql.ExtensionData
	App         *gql.AppData
	SetsSecrets bool
}
    func ProvisionExtension ¶
func ProvisionExtension(ctx context.Context, params ExtensionParams) (extension Extension, err error)
type ExtensionParams ¶ added in v0.1.71
type ExtensionParams struct {
	AppName              string
	Organization         *fly.Organization
	Provider             string
	PlanID               string
	OrganizationPlanID   string
	Options              map[string]interface{}
	ErrorCaptureCallback func(ctx context.Context, provisioningError error, params *ExtensionParams) error
	// Surely there's a nicer way to do this, but this gets `fly launch` unblocked on launching exts
	OverrideRegion string
	OverrideName   *string
}
     Click to show internal directories. 
   Click to hide internal directories.