Documentation ¶
Index ¶
- Constants
- Variables
- type ApplicationType
- type Build
- type ConfigurationMetadata
- type Deprecation
- type Detect
- type Generation
- type GenerationValidator
- type Group
- type Hint
- type NativeImage
- type Project
- type Projects
- type Property
- type SpringCloudBindings
- type ValueHint
- type ValueProvider
- type WebApplicationType
- type WebApplicationTypeResolver
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 ¶
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 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
func NewGenerationValidator ¶ added in v1.8.0
func NewGenerationValidator(path string) (GenerationValidator, error)
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 (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 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 (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 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 (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
func (w WebApplicationTypeResolver) Resolve() ApplicationType
Source Files ¶
Click to show internal directories.
Click to hide internal directories.