action

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 27 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotAllowed = errors.New("not allowed")

Functions

This section is empty.

Types

type GenerateDockerfile

type GenerateDockerfile struct {
	BaseImage   string
	IndexDir    string
	ExtraLabels map[string]string
	Writer      io.Writer
}

func (GenerateDockerfile) Run

func (i GenerateDockerfile) Run() error

type Init

type Init struct {
	Package           string
	DefaultChannel    string
	DescriptionReader io.Reader
	IconReader        io.Reader
}

func (Init) Run

func (i Init) Run() (*declcfg.Package, error)

type ListBundles

type ListBundles struct {
	IndexReference string
	PackageName    string
	Registry       image.Registry
}

func (*ListBundles) Run

type ListBundlesResult

type ListBundlesResult struct {
	Bundles []model.Bundle
}

func (*ListBundlesResult) WriteColumns

func (r *ListBundlesResult) WriteColumns(w io.Writer) error

type ListChannels

type ListChannels struct {
	IndexReference string
	PackageName    string
	Registry       image.Registry
}

func (*ListChannels) Run

type ListChannelsResult

type ListChannelsResult struct {
	Channels []model.Channel
}

func (*ListChannelsResult) WriteColumns

func (r *ListChannelsResult) WriteColumns(w io.Writer) error

type ListPackages

type ListPackages struct {
	IndexReference string
	Registry       image.Registry
}

func (*ListPackages) Run

type ListPackagesResult

type ListPackagesResult struct {
	Packages []model.Package
}

func (*ListPackagesResult) WriteColumns

func (r *ListPackagesResult) WriteColumns(w io.Writer) error

type Migrate

type Migrate struct {
	CatalogRef string
	OutputDir  string

	WriteFunc declcfg.WriteFunc
	FileExt   string
	Registry  image.Registry
}

func (Migrate) Run

func (m Migrate) Run(ctx context.Context) error

type RefType

type RefType uint
const (
	RefBundleImage RefType = 1 << iota
	RefSqliteImage
	RefSqliteFile
	RefDCImage
	RefDCDir
	RefBundleDir

	RefAll = 0
)

func (RefType) Allowed

func (r RefType) Allowed(refType RefType) bool

type Render

type Render struct {
	Refs             []string
	Registry         image.Registry
	AllowedRefMask   RefType
	Migrate          bool
	ImageRefTemplate *template.Template
	// contains filtered or unexported fields
}

func (Render) Run

Jump to

Keyboard shortcuts

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