Documentation
¶
Index ¶
- Constants
- type BasicBuilder
- type BasicConfig
- type BuildStrategy
- type Builder
- type BuilderConfig
- type BuilderMap
- type Catalog
- type CatalogBuilderMap
- type CatalogConfig
- type CatalogDestination
- type Component
- type ComponentDestination
- type CompositeConfig
- type ContainerConfig
- type CustomBuilder
- type CustomConfig
- type RawBuilder
- type RawConfig
- type SemverBuilder
- type SemverConfig
- type Template
- type TemplateDefinition
Constants ¶
View Source
const ( BasicBuilderSchema = "olm.builder.basic" SemverBuilderSchema = "olm.builder.semver" RawBuilderSchema = "olm.builder.raw" CustomBuilderSchema = "olm.builder.custom" )
View Source
const ( CompositeSchema = "olm.composite" CatalogSchema = "olm.composite.catalogs" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicBuilder ¶
type BasicBuilder struct {
// contains filtered or unexported fields
}
func NewBasicBuilder ¶
func NewBasicBuilder(builderCfg BuilderConfig) *BasicBuilder
func (*BasicBuilder) Build ¶
func (bb *BasicBuilder) Build(dir string, td TemplateDefinition) error
func (*BasicBuilder) Validate ¶
func (bb *BasicBuilder) Validate(dir string) error
type BasicConfig ¶
type BuildStrategy ¶
type BuildStrategy struct {
Name string
Template TemplateDefinition
}
type Builder ¶
type Builder interface {
Build(dir string, td TemplateDefinition) error
Validate(dir string) error
}
type BuilderConfig ¶
type BuilderConfig struct {
ContainerCfg ContainerConfig
OutputType string
CurrentDirectory string
}
type BuilderMap ¶
type Catalog ¶
type Catalog struct {
Name string
Destination CatalogDestination
Builders []string
}
type CatalogBuilderMap ¶
type CatalogBuilderMap map[string]BuilderMap
type CatalogConfig ¶
type CatalogDestination ¶
type Component ¶
type Component struct {
Name string
Destination ComponentDestination
Strategy BuildStrategy
}
type ComponentDestination ¶
type ComponentDestination struct {
Path string
}
type CompositeConfig ¶
type ContainerConfig ¶
type CustomBuilder ¶
type CustomBuilder struct {
// contains filtered or unexported fields
}
func NewCustomBuilder ¶
func NewCustomBuilder(builderCfg BuilderConfig) *CustomBuilder
func (*CustomBuilder) Build ¶
func (cb *CustomBuilder) Build(dir string, td TemplateDefinition) error
func (*CustomBuilder) Validate ¶
func (cb *CustomBuilder) Validate(dir string) error
type CustomConfig ¶
type RawBuilder ¶
type RawBuilder struct {
// contains filtered or unexported fields
}
func NewRawBuilder ¶
func NewRawBuilder(builderCfg BuilderConfig) *RawBuilder
func (*RawBuilder) Build ¶
func (rb *RawBuilder) Build(dir string, td TemplateDefinition) error
func (*RawBuilder) Validate ¶
func (rb *RawBuilder) Validate(dir string) error
type SemverBuilder ¶
type SemverBuilder struct {
// contains filtered or unexported fields
}
func NewSemverBuilder ¶
func NewSemverBuilder(builderCfg BuilderConfig) *SemverBuilder
func (*SemverBuilder) Build ¶
func (sb *SemverBuilder) Build(dir string, td TemplateDefinition) error
func (*SemverBuilder) Validate ¶
func (sb *SemverBuilder) Validate(dir string) error
type SemverConfig ¶
type Template ¶
type Template struct {
CatalogBuilders CatalogBuilderMap
}
type TemplateDefinition ¶
type TemplateDefinition struct {
Schema string
Config json.RawMessage
}
Click to show internal directories.
Click to hide internal directories.