context

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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 AllDependenciesType map[string]bool

type ConfigMapType

type ConfigMapType map[string][]config.Config

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.

type DependsMapType

type DependsMapType map[string]*map[string]bool

type ImagesPathType

type ImagesPathType map[string]string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL