-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fly launch
: support creating Tigris Object Storage (#3403)
* `launch`: add tigris to LaunchPlan * `launch`: remove tigris shadow bucket from plan supporting shadow buckets adds a lot of complexity that most users won't need for greenfield development * `launch`: add WebsiteDomainName to tigris plan * `launch`: provision tigris object storage
- Loading branch information
Showing
3 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package plan | ||
|
||
type ObjectStoragePlan struct { | ||
TigrisObjectStorage *TigrisObjectStoragePlan `json:"tigris_object_storage"` | ||
} | ||
|
||
func (p *ObjectStoragePlan) Provider() any { | ||
if p == nil { | ||
return nil | ||
} | ||
if p.TigrisObjectStorage != nil { | ||
return p.TigrisObjectStorage | ||
} | ||
return nil | ||
} | ||
|
||
func DefaultObjectStorage(plan *LaunchPlan) ObjectStoragePlan { | ||
return ObjectStoragePlan{ | ||
TigrisObjectStorage: &TigrisObjectStoragePlan{}, | ||
} | ||
} | ||
|
||
type TigrisObjectStoragePlan struct { | ||
Name string `json:"name"` | ||
Public bool `json:"public"` | ||
Accelerate bool `json:"accelerate"` | ||
WebsiteDomainName string `json:"website_domain_name"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters