github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/cluster/provide.go (about)

     1  /*
     2   * Copyright (c) 2024-present unTill Software Development Group B.V.
     3   * @author Denis Gribanov
     4   */
     5  
     6  package cluster
     7  
     8  import (
     9  	"github.com/voedger/voedger/pkg/appdef"
    10  	"github.com/voedger/voedger/pkg/istructs"
    11  	"github.com/voedger/voedger/pkg/istructsmem"
    12  	"github.com/voedger/voedger/pkg/parser"
    13  	coreutils "github.com/voedger/voedger/pkg/utils"
    14  )
    15  
    16  func Provide(cfg *istructsmem.AppConfigType, asp istructs.IAppStructsProvider, timeFunc coreutils.TimeFunc) parser.PackageFS {
    17  	cfg.Resources.Add(istructsmem.NewCommandFunction(appdef.NewQName(ClusterPackage, "DeployApp"), provideExecDeployApp(asp, timeFunc)))
    18  	return parser.PackageFS{
    19  		Path: ClusterPackageFQN,
    20  		FS:   schemaFS,
    21  	}
    22  }