Files
osmedeus/public/embed.go
T
j3ssie 459d5939fb feat: add cloud infrastructure and nmap/tmux function support
- 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
2026-02-16 15:23:24 +07:00

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")
}