base

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllPipelinesForAllProjects

func GetAllPipelinesForAllProjects(ctx context.Context, orgName string, cloudClient *cloud.Client) ([]cloud.Pipeline, error)

func GetSatelliteName

func GetSatelliteName(ctx context.Context, orgName, satelliteName string, cloudClient *cloud.Client) (string, error)

func PipelineSatelliteName

func PipelineSatelliteName(p *cloud.Pipeline) string

func ShowSatelliteLoading

func ShowSatelliteLoading(console conslogging.ConsoleLogger, satName string, out chan cloud.SatelliteStatusUpdate) error

Types

type CLI

type CLI struct {
	// contains filtered or unexported fields
}

func NewCLI

func NewCLI(console conslogging.ConsoleLogger, opts ...CLIOpt) *CLI

func (*CLI) AddDeferredFunc added in v0.7.22

func (c *CLI) AddDeferredFunc(f func())

func (*CLI) AnaMetaBKPlatform

func (c *CLI) AnaMetaBKPlatform() string

func (*CLI) AnaMetaIsRemoteBK

func (c *CLI) AnaMetaIsRemoteBK() bool

func (*CLI) AnaMetaIsSat

func (c *CLI) AnaMetaIsSat() bool

func (*CLI) AnaMetaSatCurrentVersion

func (c *CLI) AnaMetaSatCurrentVersion() string

func (*CLI) AnaMetaTarget

func (c *CLI) AnaMetaTarget() domain.Target

func (*CLI) AnaMetaUserPlatform

func (c *CLI) AnaMetaUserPlatform() string

func (*CLI) App

func (c *CLI) App() *cli.App

func (*CLI) BuiltBy

func (c *CLI) BuiltBy() string

func (*CLI) CIHost

func (c *CLI) CIHost() string

CIHost returns protocol://hostname

func (*CLI) Cfg

func (c *CLI) Cfg() *config.Config

func (*CLI) CollectBillingInfo added in v0.7.22

func (cli *CLI) CollectBillingInfo(ctx context.Context, cloudClient *cloud.Client, orgName string) error

CollectBillingInfo will collect billing plan info from billing service and make it available for other commands to use later

func (*CLI) CommandName

func (c *CLI) CommandName() string

func (*CLI) ConfigureSatellite

func (cli *CLI) ConfigureSatellite(cliCtx *cli.Context, cloudClient *cloud.Client, gitAuthor, gitConfigEmail string) (cleanupTLS func(), err error)

func (*CLI) Console

func (c *CLI) Console() conslogging.ConsoleLogger

func (*CLI) DefaultBuildkitdImage

func (c *CLI) DefaultBuildkitdImage() string

func (*CLI) DefaultInstallationName

func (c *CLI) DefaultInstallationName() string

func (*CLI) ExecuteDeferredFuncs added in v0.7.22

func (c *CLI) ExecuteDeferredFuncs()

func (*CLI) Flags

func (c *CLI) Flags() *flag.Global

func (*CLI) GetBuildkitClient

func (cli *CLI) GetBuildkitClient(cliCtx *cli.Context, cloudClient *cloud.Client) (c *client.Client, cleanupTLS func(), err error)

func (*CLI) GetSatelliteOrg

func (c *CLI) GetSatelliteOrg(ctx context.Context, cloudClient *cloud.Client) (orgName, orgID string, err error)

func (*CLI) GitSHA

func (c *CLI) GitSHA() string

func (*CLI) InitFrontend

func (cli *CLI) InitFrontend(cliCtx *cli.Context) error

func (*CLI) IsUsingSatellite

func (c *CLI) IsUsingSatellite(cliCtx *cli.Context) bool

func (*CLI) Logbus

func (c *CLI) Logbus() *logbus.Bus

func (*CLI) LogbusSetup

func (c *CLI) LogbusSetup() *setup.BusSetup

func (*CLI) OrgName added in v0.7.22

func (c *CLI) OrgName() string

func (*CLI) SetAction

func (c *CLI) SetAction(action cli.ActionFunc)

func (*CLI) SetAnaMetaBKPlatform

func (c *CLI) SetAnaMetaBKPlatform(platform string)

func (*CLI) SetAnaMetaIsRemoteBK

func (c *CLI) SetAnaMetaIsRemoteBK(isRBK bool)

func (*CLI) SetAnaMetaIsSat

func (c *CLI) SetAnaMetaIsSat(isSat bool)

func (*CLI) SetAnaMetaSatCurrentVersion

func (c *CLI) SetAnaMetaSatCurrentVersion(currentVersion string)

func (*CLI) SetAnaMetaTarget

func (c *CLI) SetAnaMetaTarget(target domain.Target)

func (*CLI) SetAnaMetaUserPlatform

func (c *CLI) SetAnaMetaUserPlatform(platform string)

func (*CLI) SetAppUsage

func (c *CLI) SetAppUsage(usage string)

func (*CLI) SetAppUsageText

func (c *CLI) SetAppUsageText(usageText string)

func (*CLI) SetAppUseShortOptionHandling

func (c *CLI) SetAppUseShortOptionHandling(use bool)

func (*CLI) SetBefore

func (c *CLI) SetBefore(before cli.BeforeFunc)

func (*CLI) SetCfg

func (c *CLI) SetCfg(cfg *config.Config)

func (*CLI) SetCommandName

func (c *CLI) SetCommandName(commandName string)

func (*CLI) SetCommands

func (c *CLI) SetCommands(commands []*cli.Command)

func (*CLI) SetConsole

func (c *CLI) SetConsole(cons conslogging.ConsoleLogger)

func (*CLI) SetFlags

func (c *CLI) SetFlags(flags []cli.Flag)

func (*CLI) SetLogbus

func (c *CLI) SetLogbus(logbus *logbus.Bus)

func (*CLI) SetLogbusSetup

func (c *CLI) SetLogbusSetup(setup *setup.BusSetup)

func (*CLI) SetVersion

func (c *CLI) SetVersion(version string)

func (*CLI) Version

func (c *CLI) Version() string

type CLIOpt

type CLIOpt func(CLI) CLI

func WithBuiltBy

func WithBuiltBy(builtby string) CLIOpt

func WithDefaultBuildkitdImage

func WithDefaultBuildkitdImage(image string) CLIOpt

func WithDefaultInstallationName

func WithDefaultInstallationName(name string) CLIOpt

func WithGitSHA

func WithGitSHA(sha string) CLIOpt

func WithVersion

func WithVersion(version string) CLIOpt

Jump to

Keyboard shortcuts

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