mirror of
https://github.com/j3ssie/osmedeus.git
synced 2026-09-02 14:28:52 +02:00
- Implement cloud provider infrastructure (DigitalOcean, AWS, GCP, Linode, Azure) with Pulumi integration for distributed scanning - Add nmap and tmux utility functions for port scanning results processing and long-running background session management - Introduce webhook-triggered run execution with unique UUID and authentication key support for external integrations
43 lines
1.1 KiB
Go
43 lines
1.1 KiB
Go
package public
|
|
|
|
import (
|
|
"embed"
|
|
"io/fs"
|
|
)
|
|
|
|
//go:embed favicon.ico
|
|
//go:embed presets/*
|
|
//go:embed all:examples/osmedeus-base.example
|
|
//go:embed all:ui
|
|
var EmbedFS embed.FS
|
|
|
|
// GetFavicon returns the favicon.ico file contents
|
|
func GetFavicon() ([]byte, error) {
|
|
return EmbedFS.ReadFile("favicon.ico")
|
|
}
|
|
|
|
// GetPresetsFS returns a sub-filesystem for presets directory
|
|
func GetPresetsFS() (fs.FS, error) {
|
|
return fs.Sub(EmbedFS, "presets")
|
|
}
|
|
|
|
// GetUIFS returns a sub-filesystem for UI files
|
|
func GetUIFS() (fs.FS, error) {
|
|
return fs.Sub(EmbedFS, "ui")
|
|
}
|
|
|
|
// GetRegistryMetadata returns the embedded binary registry JSON
|
|
func GetRegistryMetadata() ([]byte, error) {
|
|
return EmbedFS.ReadFile("presets/registry-metadata-direct-fetch.json")
|
|
}
|
|
|
|
// GetFlakeNix returns the embedded flake.nix content
|
|
func GetFlakeNix() ([]byte, error) {
|
|
return EmbedFS.ReadFile("presets/flake.nix")
|
|
}
|
|
|
|
// GetCloudConfigExample returns the embedded cloud-settings.example.yaml content
|
|
func GetCloudConfigExample() ([]byte, error) {
|
|
return EmbedFS.ReadFile("presets/cloud-settings.example.yaml")
|
|
}
|