Documentation
¶
Index ¶
- func CreateDependsMap(configsMap *ConfigMapType) (DependsMapType, AllDependenciesType, error)
- type AllDependenciesType
- type ConfigMapType
- type ContextManager
- func (context *ContextManager) CheckPrerequisites(*prerequisites.Args) error
- func (context *ContextManager) FillDefault(*prerequisites.Args) error
- func (context *ContextManager) FillDynamic(*prerequisites.Args) error
- func (context *ContextManager) GetAllAppConfigsArray(platformString *bacpack_package.PlatformString) []*config.Config
- func (context *ContextManager) GetAllConfigsArray(platformString *bacpack_package.PlatformString) []*config.Config
- func (context *ContextManager) GetAllConfigsMap() ConfigMapType
- func (context *ContextManager) GetAllImagesDockerfilePaths() ImagesPathType
- func (context *ContextManager) GetAllPackageConfigsArray(platformString *bacpack_package.PlatformString) []*config.Config
- func (context *ContextManager) GetAllPackagesStructs(platformString *bacpack_package.PlatformString) ([]bacpack_package.Package, error)
- func (context *ContextManager) GetImageDockerfilePath(imageName string) (string, error)
- func (context *ContextManager) GetPackageConfigs(packageName string) ([]config.Config, error)
- func (context *ContextManager) GetPackageWithDepsConfigs(packageName string) ([]config.Config, error)
- func (context *ContextManager) GetPackageWithDepsOnConfigs(packageName string, recursively bool) ([]config.Config, error)
- type DependsMapType
- type ImagesPathType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDependsMap ¶
func CreateDependsMap(configsMap *ConfigMapType) (DependsMapType, AllDependenciesType, error)
CreateDependsMap Creates dependency map (DependsMapType) from configsMap.
Types ¶
type AllDependenciesType ¶
type ConfigMapType ¶
type ContextManager ¶
type ContextManager struct {
ContextPath string
// ForPackage boolean value if the Context is used for Packages or Apps
ForPackage bool
// contains filtered or unexported fields
}
ContextManager Manages all operations on the given Context. After initialization the Configs from Context are loaded, so the ContextPath and ForPackage can't be changed.
func (*ContextManager) CheckPrerequisites ¶
func (context *ContextManager) CheckPrerequisites(*prerequisites.Args) error
func (*ContextManager) FillDefault ¶
func (context *ContextManager) FillDefault(*prerequisites.Args) error
func (*ContextManager) FillDynamic ¶
func (context *ContextManager) FillDynamic(*prerequisites.Args) error
func (*ContextManager) GetAllAppConfigsArray ¶
func (context *ContextManager) GetAllAppConfigsArray(platformString *bacpack_package.PlatformString) []*config.Config
GetAllAppConfigsArray Returns Config structs of all App Configs as an array. If platformString is not nil, it is added to all Apps.
func (*ContextManager) GetAllConfigsArray ¶
func (context *ContextManager) GetAllConfigsArray(platformString *bacpack_package.PlatformString) []*config.Config
GetAllConfigsArray Returns Config structs of all Package/App Configs as an array. If platformString is not nil, it is added to all Packages/Apps.
func (*ContextManager) GetAllConfigsMap ¶
func (context *ContextManager) GetAllConfigsMap() ConfigMapType
GetAllConfigsMap Returns all Package/App Configs in the Context directory as a Config map.
func (*ContextManager) GetAllImagesDockerfilePaths ¶
func (context *ContextManager) GetAllImagesDockerfilePaths() ImagesPathType
GetAllImagesDockerfilePaths Returns all Dockerfile paths located in the Context directory.
func (*ContextManager) GetAllPackageConfigsArray ¶
func (context *ContextManager) GetAllPackageConfigsArray(platformString *bacpack_package.PlatformString) []*config.Config
GetAllPackageConfigsArray Returns Config structs of all Package Configs as an array. If platformString is not nil, it is added to all Packages.
func (*ContextManager) GetAllPackagesStructs ¶
func (context *ContextManager) GetAllPackagesStructs(platformString *bacpack_package.PlatformString) ([]bacpack_package.Package, error)
GetAllPackagesStructs Returns Package structs of all Package Configs. If platformString is not nil, it is added to all Packages.
func (*ContextManager) GetImageDockerfilePath ¶
func (context *ContextManager) GetImageDockerfilePath(imageName string) (string, error)
GetImageDockerfilePath Returns Dockerfile path for the given Image locate in the given Context.
func (*ContextManager) GetPackageConfigs ¶
func (context *ContextManager) GetPackageConfigs(packageName string) ([]config.Config, error)
GetPackageConfigs Returns Configs for given Package/App.
func (*ContextManager) GetPackageWithDepsConfigs ¶
func (context *ContextManager) GetPackageWithDepsConfigs(packageName string) ([]config.Config, error)
GetPackageWithDepsConfigs Returns all Configs for given Package and all its dependencies Configs recursively.
func (*ContextManager) GetPackageWithDepsOnConfigs ¶
func (context *ContextManager) GetPackageWithDepsOnConfigs(packageName string, recursively bool) ([]config.Config, error)
GetPackageWithDepsOnConfigs Returns all Configs which depends on given Package and all its dependencies Configs without Package (packageName) itself and its dependencies. If recursively is set to true, it is done recursively.