cmd

package
v0.0.0-...-9362506 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCmdService = NewCmdService()
View Source
var RegistryCache *cache.Registry
View Source
var RegistryClient = client.NewClient()

Functions

func CreateBuildCmd

func CreateBuildCmd(flags *BuildFlags, svc Service) *cobra.Command

func CreateCachePathCmd

func CreateCachePathCmd(svc Service) *cobra.Command

func CreateChildCmd

func CreateChildCmd(flags *TreeFlags, tree_cmd *cobra.Command) *cobra.Command

func CreateNextofCmd

func CreateNextofCmd(flags *NextofFlags, svc Service) *cobra.Command

func CreateOutdatedCmd

func CreateOutdatedCmd(flags *OutdatedFlags, svc Service) *cobra.Command

func CreatePlanCmd

func CreatePlanCmd(flags *PlanFlags, svc Service) *cobra.Command

func CreateRootCmd

func CreateRootCmd(flags *RootFlags) *cobra.Command

func CreateTreeCmd

func CreateTreeCmd(flags *TreeFlags, svc Service) *cobra.Command

func Execute

func Execute() error

Types

type BuildFlags

type BuildFlags struct {
	*RootFlags
	DryRun  bool
	Builder string
}

type CmdService

type CmdService struct {
	In  io.Reader
	Out io.Writer

	RegistryClient Namespace
}

func NewCmdService

func NewCmdService() *CmdService

func (*CmdService) Input

func (o *CmdService) Input() io.Reader

func (*CmdService) LoadBuildGraphFromFs

func (o *CmdService) LoadBuildGraphFromFs(ctx context.Context, bg *clade.BuildGraph, path string) error

func (*CmdService) Output

func (o *CmdService) Output() io.Writer

func (*CmdService) Registry

func (o *CmdService) Registry() Namespace

type Namespace

type Namespace interface {
	Repository(named reference.Named) (distribution.Repository, error)
}

type NextofFlags

type NextofFlags struct {
	*RootFlags
}

type OutdatedFlags

type OutdatedFlags struct {
	*RootFlags
	All bool
}

type PlanFlags

type PlanFlags struct {
	*RootFlags
}

type RootFlags

type RootFlags struct {
	LogLevel  string
	PortsPath string
}

func (*RootFlags) Evaluate

func (f *RootFlags) Evaluate() error

type Service

type Service interface {
	Input() io.Reader
	Output() io.Writer

	Registry() Namespace

	LoadBuildGraphFromFs(ctx context.Context, bg *clade.BuildGraph, path string) error
}

type TreeFlags

type TreeFlags struct {
	*RootFlags
	All   bool
	Strip int
	Depth int
	Fold  bool
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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