webserver

package
v0.0.0-...-25f2897 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SharedKeys = struct {
	ConfigFiles string
}{
	ConfigFiles: "config-files",
}

Functions

func ExtractRawDefFromParent

func ExtractRawDefFromParent(parentDef map[string]interface{}) map[string]interface{}

func RegisterKind

func RegisterKind(registry *registry.KindRegistry)

Types

type AssetToCopy

type AssetToCopy struct {
	From string `mapstructure:"from"`
	To   string `mapstructure:"to"`
}

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 NewKind

func NewKind(genericDef *builddef.BuildDef) (Definition, error)

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) Build

func (h *WebserverHandler) Build(
	ctx context.Context,
	buildOpts builddef.BuildOpts,
) (llb.State, *image.Image, error)

func (*WebserverHandler) DebugConfig

func (h *WebserverHandler) DebugConfig(
	buildOpts builddef.BuildOpts,
) (interface{}, error)

func (*WebserverHandler) UpdateLocks

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

Jump to

Keyboard shortcuts

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