boot

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WebMVCIndicatorClass  = "org.springframework.web.servlet.DispatcherServlet"
	WebFluxIndicatorClass = "org.springframework.web.reactive.DispatcherHandler"
	JerseyIndicatorClass  = "org.glassfish.jersey.servlet.ServletContainer"
)
View Source
const DatePattern = "2006-01-02"

Variables

View Source
var (
	MaxDate           = time.Unix(1<<63-62135596801, 999999999)
	Warningf          = color.New(color.FgYellow, color.Bold, color.Faint).SprintfFunc()
	NormalizedVersion = regexp.MustCompile(`[\d]+(?:\.[\d]+(?:\.[\d]+)?)?`)
)
View Source
var ServletIndicatorClasses = []string{
	"javax.servlet.Servlet",
	"org.springframework.web.context.ConfigurableWebApplicationContext",
}

Functions

This section is empty.

Types

type ApplicationType added in v1.9.0

type ApplicationType uint8
const (
	None ApplicationType = iota
	Reactive
	Servlet
)

type Build

type Build struct {
	Logger bard.Logger
}

func (Build) Build

func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error)

type ConfigurationMetadata added in v1.4.0

type ConfigurationMetadata struct {
	Groups     []Group    `json:"groups,omitempty"`
	Properties []Property `json:"properties,omitempty"`
	Hints      []Hint     `json:"hints,omitempty"`
}

func NewConfigurationMetadataFromJAR added in v1.4.0

func NewConfigurationMetadataFromJAR(jar string) (ConfigurationMetadata, error)

func NewConfigurationMetadataFromPath added in v1.4.0

func NewConfigurationMetadataFromPath(path string) (ConfigurationMetadata, error)

func NewDataFlowConfigurationMetadata added in v1.5.0

func NewDataFlowConfigurationMetadata(path string, metadata ConfigurationMetadata) (ConfigurationMetadata, error)

type Deprecation added in v1.4.0

type Deprecation struct {
	Level       string `json:"level"`
	Reason      string `json:"reason,omitempty"`
	Replacement string `json:"replacement,omitempty"`
}

type Detect

type Detect struct{}

func (Detect) Detect

func (Detect) Detect(context libcnb.DetectContext) (libcnb.DetectResult, error)

type Generation added in v1.8.0

type Generation struct {
	Name       *semver.Constraints `toml:"name"`
	OSS        time.Time           `toml:"oss"`
	Commercial time.Time           `toml:"commercial"`
}

func (*Generation) UnmarshalTOML added in v1.8.0

func (g *Generation) UnmarshalTOML(data interface{}) error

type GenerationValidator added in v1.8.0

type GenerationValidator struct {
	Logger   bard.Logger
	Projects []Project
}

func NewGenerationValidator added in v1.8.0

func NewGenerationValidator(path string) (GenerationValidator, error)

func (GenerationValidator) Validate added in v1.8.0

func (v GenerationValidator) Validate(slug string, version string) error

type Group added in v1.4.0

type Group struct {
	Name         string `json:"name"`
	Type         string `json:"type,omitempty"`
	Description  string `json:"description,omitempty"`
	SourceType   string `json:"sourceType,omitempty"`
	SourceMethod string `json:"sourceMethod,omitempty"`
}

type Hint added in v1.4.0

type Hint struct {
	Name      string          `json:"name"`
	Values    []ValueHint     `json:"values,omitempty"`
	Providers []ValueProvider `json:"providers,omitempty"`
}

type NativeImage added in v1.6.0

type NativeImage struct {
	ApplicationPath  string
	Arguments        []string
	Dependency       libpak.BuildpackDependency
	DependencyCache  libpak.DependencyCache
	Executor         effect.Executor
	LayerContributor libpak.LayerContributor
	Logger           bard.Logger
	Manifest         *properties.Properties
}

func NewNativeImage added in v1.6.0

func NewNativeImage(applicationPath string, arguments string, dependency libpak.BuildpackDependency,
	cache libpak.DependencyCache, manifest *properties.Properties, files []sherpa.FileEntry,
	plan *libcnb.BuildpackPlan) (NativeImage, error)

func (NativeImage) Contribute added in v1.6.0

func (n NativeImage) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (NativeImage) Name added in v1.6.0

func (NativeImage) Name() string

type Project added in v1.8.0

type Project struct {
	Name        string       `toml:"name"`
	Slug        string       `toml:"slug"`
	Status      string       `toml:"status"`
	Generations []Generation `toml:"generations"`
}

type Projects added in v1.8.0

type Projects struct {
	Projects []Project `toml:"projects"`
}

type Property added in v1.4.0

type Property struct {
	Name         string       `json:"name"`
	Type         string       `json:"type,omitempty"`
	Description  string       `json:"description,omitempty"`
	SourceType   string       `json:"sourceType,omitempty"`
	DefaultValue interface{}  `json:"defaultValue,omitempty"`
	Deprecation  *Deprecation `json:"deprecation,omitempty"`
}

type SpringCloudBindings added in v1.10.0

type SpringCloudBindings struct {
	Dependency       libpak.BuildpackDependency
	LayerContributor libpak.DependencyLayerContributor
	Logger           bard.Logger
	SpringBootLib    string
}

func NewSpringCloudBindings added in v1.10.0

func NewSpringCloudBindings(springBootLib string, dependency libpak.BuildpackDependency, cache libpak.DependencyCache,
	plan *libcnb.BuildpackPlan) SpringCloudBindings

func (SpringCloudBindings) Contribute added in v1.10.0

func (s SpringCloudBindings) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (SpringCloudBindings) Name added in v1.10.0

func (s SpringCloudBindings) Name() string

type ValueHint added in v1.4.0

type ValueHint struct {
	Value       interface{} `json:"value"`
	Description string      `json:"description,omitempty"`
}

type ValueProvider added in v1.4.0

type ValueProvider struct {
	Name       string                 `json:"name"`
	Parameters map[string]interface{} `json:"parameters"`
}

type WebApplicationType added in v1.9.0

type WebApplicationType struct {
	LayerContributor libpak.LayerContributor
	Logger           bard.Logger
	Resolver         WebApplicationTypeResolver
}

func NewWebApplicationType added in v1.9.0

func NewWebApplicationType(resolver WebApplicationTypeResolver, files []sherpa.FileEntry) WebApplicationType

func (WebApplicationType) Contribute added in v1.9.0

func (w WebApplicationType) Contribute(layer libcnb.Layer) (libcnb.Layer, error)

func (WebApplicationType) Name added in v1.9.0

func (WebApplicationType) Name() string

type WebApplicationTypeResolver added in v1.9.0

type WebApplicationTypeResolver struct {
	Classes map[string]interface{}
}

func NewWebApplicationResolver added in v1.9.0

func NewWebApplicationResolver(classes string, lib string) (WebApplicationTypeResolver, error)

func (WebApplicationTypeResolver) Resolve added in v1.9.0

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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