Documentation ¶
Index ¶
- func BlockReadStdin(args []string) error
- func BootScheduler(ctx context.Context, bs Bootstrap) (*scheduler.Scheduler, error)
- func BuildConfig(root *hroot.State, profiles []string) (*config.Config, error)
- func DefaultScheduler(cpu int) *worker2.ResourceScheduler
- func GenerateRRs(ctx context.Context, e *scheduler.Scheduler, m specs.Matcher, targs []string, ...) (targetrun.Requests, error)
- func Getwd() (string, error)
- func HasStdin(args []string) bool
- func InstallTools(ctx context.Context, root *hroot.State, graph *graph.State, version string) error
- func ParseTargetAddrsAndArgs(args []string, stdin bool) (specs.Matcher, []string, error)
- func PrintHumanError(err error)
- func PrintTargetOutputContent(target *lcache.Target, output string) error
- func PrintTargetOutputPaths(target *lcache.Target, output string) error
- func Query(ctx context.Context, e *scheduler.Scheduler, m specs.Matcher, plain, gen bool) ([]specs.Target, error)
- func QueryFunctions(root *hroot.State, localCache *lcache.LocalCacheState, g *graph.State, ...) map[string]exprs.Func
- func Run(ctx context.Context, e *scheduler.Scheduler, rrs targetrun.Requests, ...) error
- func RunAllGen(ctx context.Context, e *scheduler.Scheduler, plain bool) error
- func RunGen(ctx context.Context, e *scheduler.Scheduler, plain bool, ...) error
- func RunMode(ctx context.Context, e *scheduler.Scheduler, rrs targetrun.Requests, ...) error
- type BaseBootstrap
- type BoolStr
- type BootOpts
- type Bootstrap
- type Cloud
- func (c Cloud) DeleteCloudAuthData() error
- func (c Cloud) GetAuthData() (*CloudAuthData, error)
- func (c Cloud) GetCurrentFlowDetails(ctx context.Context) (FlowDetails, error)
- func (c Cloud) StartFlow(ctx context.Context, name string, metas map[string]string) error
- func (c Cloud) StopCurrentFlow(ctx context.Context) error
- func (c Cloud) StoreCloudAuthData(data CloudAuthData) error
- type CloudAuthData
- type ErrorWithExitCode
- type FlowDetails
- type RunOpts
- type SchedulerBootstrap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockReadStdin ¶
func BootScheduler ¶
func DefaultScheduler ¶
func DefaultScheduler(cpu int) *worker2.ResourceScheduler
func GenerateRRs ¶
func InstallTools ¶
func ParseTargetAddrsAndArgs ¶
func PrintHumanError ¶
func PrintHumanError(err error)
func PrintTargetOutputPaths ¶
func QueryFunctions ¶
Types ¶
type BaseBootstrap ¶
type Bootstrap ¶
type Bootstrap struct { BaseBootstrap Finalizers *finalizers.Finalizers Observability *observability.Observability Cloud Cloud Summary *obsummary.Summary Pool *worker2.Engine Packages *packages.Registry BuildFiles *buildfiles.State Graph *graph.State PlatformProviders []platform.PlatformProvider }
type Cloud ¶
type Cloud struct { Root *hroot.State Config *config.Config Client *cloudclient.HephClient AuthClient *cloudclient.HephClient Hook *obhephcloud.Hook }
func (Cloud) DeleteCloudAuthData ¶
func (Cloud) GetAuthData ¶
func (c Cloud) GetAuthData() (*CloudAuthData, error)
func (Cloud) GetCurrentFlowDetails ¶
func (c Cloud) GetCurrentFlowDetails(ctx context.Context) (FlowDetails, error)
func (Cloud) StoreCloudAuthData ¶
func (c Cloud) StoreCloudAuthData(data CloudAuthData) error
type CloudAuthData ¶
type ErrorWithExitCode ¶
func (ErrorWithExitCode) Error ¶
func (e ErrorWithExitCode) Error() string
func (ErrorWithExitCode) Unwrap ¶
func (e ErrorWithExitCode) Unwrap() error
type FlowDetails ¶
type SchedulerBootstrap ¶
func BootWithScheduler ¶
func BootWithScheduler(ctx context.Context, opts BootOpts) (SchedulerBootstrap, error)
Click to show internal directories.
Click to hide internal directories.