Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GetBricksIndex = sync.OnceValue(func() *bricksindex.BricksIndex { return f.Must(bricksindex.GenerateBricksIndexFromFile(GetStaticStore().GetAssetsFolder())) }) GetModelsIndex = sync.OnceValue(func() *modelsindex.ModelsIndex { return f.Must(modelsindex.GenerateModelsIndexFromFile(GetStaticStore().GetAssetsFolder())) }) GetProvisioner = sync.OnceValue(func() *orchestrator.Provision { return f.Must(orchestrator.NewProvision( GetDockerClient(), globalConfig, )) }) GetDockerClient = sync.OnceValue(func() *dockerCommand.DockerCli { docker = f.Must(dockerCommand.NewDockerCli( dockerCommand.WithAPIClient( f.Must(dockerClient.NewClientWithOpts( dockerClient.FromEnv, dockerClient.WithAPIVersionNegotiation(), )), ), )) if err := docker.Initialize(flags.NewClientOptions()); err != nil { panic(err) } return docker }) CloseDockerClient = func() error { if docker != nil { return docker.Client().Close() } return nil } GetStaticStore = sync.OnceValue(func() *store.StaticStore { return store.NewStaticStore(globalConfig.AssetsDir().Join(globalConfig.UsedPythonImageTag).String()) }) GetBrickService = sync.OnceValue(func() *bricks.Service { return bricks.NewService( GetModelsIndex(), GetBricksIndex(), GetStaticStore(), ) }) GetAppIDProvider = sync.OnceValue(func() *app.IDProvider { return app.NewAppIDProvider(globalConfig) }) )
Functions ¶
func Init ¶
func Init(cfg config.Configuration)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.