Documentation
¶
Index ¶
Constants ¶
View Source
const NogMavenHome string = "/home/nog/.m2"
View Source
const QuarkusImage string = "gruffwizard/nog-quarkus:latest"
View Source
const QuickStartURL string = "https://raw.githubusercontent.com/gruffwizard/quarkus-quickstarts/nog/nog.yml"
View Source
const TheiaImage string = "gruffwizard/nog-quarkus-theia:latest"
Variables ¶
View Source
var Verbose bool
Functions ¶
func CheckValidQuickStart ¶
func IsLocalDir ¶
func SaveQuickStarts ¶
func SaveQuickStarts(list *QuickStartList) error
Types ¶
type CLI ¶
type CLI struct {
IDEMode bool
Action string
NogVersion string
NogCommit string
NogBuiltDate string
NogBuiltBy string
ActiveID string
QuickStart string
QuickStartOnly bool
SrcDir string
SrcVol string
MvnVol string
MvnDir string
}
func (*CLI) CreateVolume ¶
func (*CLI) ListImages ¶
func (*CLI) ListQuickStarts ¶
func (*CLI) ListVolumes ¶
func (*CLI) Run ¶
The heart of Nog. Creates a container with the relevent mounts, envs etc and connects to it to run the specified command
At this point there are only two images available a quarkus one which contains latest Java and Native code tools dependencies. The other is the same but with the Theia IDE added
type QuickStartConfig ¶
type QuickStartConfig struct {
GuideURL string `yaml:"guide"`
Description string `yaml:"desc"`
SideContainers []QuickStartSideContainer `yaml:"sides"`
}
type QuickStartList ¶
type QuickStartList struct {
Version string
QuickStarts map[string]QuickStartConfig `yaml:"qs"`
}
func FetchSupportedQuickStarts ¶
func FetchSupportedQuickStarts() (*QuickStartList, error)
func LoadQuickStarts ¶
func LoadQuickStarts(file string) (*QuickStartList, error)
type QuickStartSideContainer ¶
Click to show internal directories.
Click to hide internal directories.