Documentation ¶
Index ¶
- Constants
- func FetchCatalogConfig(path string, httpGetter HttpGetter) (io.ReadCloser, error)
- 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 CustomBuilder
- type CustomConfig
- type HttpGetter
- type RawBuilder
- type RawConfig
- type SemverBuilder
- type SemverConfig
- type Specs
- type Template
- type TemplateDefinition
- type TemplateOption
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 ¶
func FetchCatalogConfig ¶ added in v1.27.0
func FetchCatalogConfig(path string, httpGetter HttpGetter) (io.ReadCloser, error)
FetchCatalogConfig will fetch the catalog configuration file from the given path. The path can be a local file path OR a URL that returns the raw contents of the catalog configuration file. The filepath can be structured relative or as an absolute path
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(ctx context.Context, reg image.Registry, dir string, td TemplateDefinition) error
type BasicConfig ¶
type BuildStrategy ¶
type BuildStrategy struct { Name string Template TemplateDefinition }
type BuilderConfig ¶
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 CatalogDestination struct { // BaseImage string WorkingDir string }
type Component ¶
type Component struct { Name string Destination ComponentDestination Strategy BuildStrategy }
type ComponentDestination ¶
type ComponentDestination struct {
Path string
}
type CompositeConfig ¶
type CustomBuilder ¶
type CustomBuilder struct {
// contains filtered or unexported fields
}
func NewCustomBuilder ¶
func NewCustomBuilder(builderCfg BuilderConfig) *CustomBuilder
func (*CustomBuilder) Build ¶
func (cb *CustomBuilder) Build(ctx context.Context, reg image.Registry, dir string, td TemplateDefinition) error
type CustomConfig ¶
type HttpGetter ¶ added in v1.27.0
type RawBuilder ¶
type RawBuilder struct {
// contains filtered or unexported fields
}
func NewRawBuilder ¶
func NewRawBuilder(builderCfg BuilderConfig) *RawBuilder
func (*RawBuilder) Build ¶
func (rb *RawBuilder) Build(ctx context.Context, _ image.Registry, dir string, td TemplateDefinition) 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(ctx context.Context, reg image.Registry, dir string, td TemplateDefinition) error
type SemverConfig ¶
type Specs ¶ added in v1.30.0
type Specs struct { CatalogSpec *CatalogConfig ContributionSpec *CompositeConfig }
type Template ¶
type Template struct {
// contains filtered or unexported fields
}
func NewTemplate ¶ added in v1.27.0
func NewTemplate(opts ...TemplateOption) *Template
type TemplateDefinition ¶
type TemplateDefinition struct { Schema string Config json.RawMessage }
type TemplateOption ¶ added in v1.27.0
type TemplateOption func(t *Template)
func WithCatalogFile ¶ added in v1.27.0
func WithCatalogFile(catalogFile io.Reader) TemplateOption
func WithContributionFile ¶ added in v1.27.0
func WithContributionFile(contribFile io.Reader) TemplateOption
func WithOutputType ¶ added in v1.27.0
func WithOutputType(outputType string) TemplateOption
func WithRegistry ¶ added in v1.27.0
func WithRegistry(reg image.Registry) TemplateOption
func WithValidate ¶ added in v1.27.0
func WithValidate(validate bool) TemplateOption
Click to show internal directories.
Click to hide internal directories.