Documentation ¶
Index ¶
- Variables
- func ExtractRawDefFromParent(parentDef map[string]interface{}) map[string]interface{}
- func RegisterKind(registry *registry.KindRegistry)
- type AssetToCopy
- type Definition
- type DefinitionLocks
- type WebserverHandler
- func (h *WebserverHandler) Build(ctx context.Context, buildOpts builddef.BuildOpts) (llb.State, *image.Image, error)
- func (h *WebserverHandler) DebugConfig(buildOpts builddef.BuildOpts) (interface{}, error)
- func (h *WebserverHandler) UpdateLocks(ctx context.Context, pkgSolvers pkgsolver.PackageSolversMap, ...) (builddef.Locks, error)
- func (h *WebserverHandler) WithSolver(solver statesolver.StateSolver)
- type WebserverType
Constants ¶
This section is empty.
Variables ¶
View Source
string }{ ConfigFiles: "config-files", }ConfigFiles
Functions ¶
func ExtractRawDefFromParent ¶
func RegisterKind ¶
func RegisterKind(registry *registry.KindRegistry)
Types ¶
type AssetToCopy ¶
type Definition ¶
type Definition struct { Type WebserverType `mapstructure:"type"` Version string `mapstructure:"version"` Alpine bool `mapstructure:"alpine"` SystemPackages *builddef.VersionMap `mapstructure:"system_packages"` ConfigFiles builddef.PathsMap `mapstructure:"config_files"` Healthcheck *builddef.HealthcheckConfig `mapstructure:"healthcheck"` Assets []AssetToCopy `mapstructure:"assets"` Locks DefinitionLocks `mapstructure:"-"` }
func DefaultDefinition ¶
func DefaultDefinition() Definition
func (Definition) Copy ¶
func (def Definition) Copy() Definition
func (Definition) IsValid ¶
func (def Definition) IsValid() error
func (Definition) Merge ¶
func (base Definition) Merge(overriding Definition) Definition
type DefinitionLocks ¶
type DefinitionLocks struct { BaseImage string `mapstructure:"base_image"` OSRelease builddef.OSRelease `mapstructure:"osrelease"` SystemPackages map[string]string `mapstructure:"system_packages"` }
func (DefinitionLocks) RawLocks ¶
func (l DefinitionLocks) RawLocks() map[string]interface{}
type WebserverHandler ¶
type WebserverHandler struct {
// contains filtered or unexported fields
}
func (*WebserverHandler) DebugConfig ¶
func (h *WebserverHandler) DebugConfig( buildOpts builddef.BuildOpts, ) (interface{}, error)
func (*WebserverHandler) UpdateLocks ¶
func (h *WebserverHandler) UpdateLocks( ctx context.Context, pkgSolvers pkgsolver.PackageSolversMap, opts builddef.UpdateLocksOpts, ) (builddef.Locks, error)
func (*WebserverHandler) WithSolver ¶
func (h *WebserverHandler) WithSolver(solver statesolver.StateSolver)
type WebserverType ¶
type WebserverType string
func (WebserverType) BaseImage ¶
func (t WebserverType) BaseImage(version string, alpine bool) string
func (WebserverType) ConfigDir ¶
func (t WebserverType) ConfigDir() string
func (WebserverType) IsEmpty ¶
func (t WebserverType) IsEmpty() bool
func (WebserverType) IsValid ¶
func (t WebserverType) IsValid() bool
Click to show internal directories.
Click to hide internal directories.