template

package
v0.0.0-...-7d21f5b Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const BasicSchema string = "olm.template.basic"
View Source
const SemverSchema string = "olm.semver"

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicOptions

type BasicOptions struct {
	TemplateOptions
}

func (BasicOptions) Expand

type BasicTemplate

type BasicTemplate struct {
	Template
	Entries []*declcfg.Meta `json:"entries"`
}

func FromReader

func FromReader(r io.Reader) (*BasicTemplate, error)

FromReader reads FBC from a reader and generates a BasicTemplate from it

type SemverOptions

type SemverOptions struct {
	TemplateOptions
}

func (SemverOptions) Expand

type SemverTemplate

type SemverTemplate struct {
	Template
	GenerateMajorChannels        bool                         `json:"generateMajorChannels,omitempty"`
	GenerateMinorChannels        bool                         `json:"generateMinorChannels,omitempty"`
	DefaultChannelTypePreference streamType                   `json:"defaultChannelTypePreference,omitempty"`
	Candidate                    semverTemplateChannelBundles `json:"candidate,omitempty"`
	Fast                         semverTemplateChannelBundles `json:"fast,omitempty"`
	Stable                       semverTemplateChannelBundles `json:"stable,omitempty"`
	// contains filtered or unexported fields
}

type Template

type Template struct {
	Schema string `json:"schema"`
}

type TemplateExpanderInterface

type TemplateExpanderInterface interface {
	Expand(context.Context) (*declcfg.DeclarativeConfig, error)
}

type TemplateOptions

type TemplateOptions struct {
	Input        io.Reader
	RenderBundle func(context.Context, string) (*declcfg.DeclarativeConfig, error)
}

func (TemplateOptions) Expand

Jump to

Keyboard shortcuts

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