cliflags

package
v1.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultRunWaitSeconds = 600
View Source
const InputUsageMsg = `` /* 440-byte string literal not displayed */

Variables

This section is empty.

Functions

func DealFlags

func DealFlags(settings *DealFlagSettings) *pflag.FlagSet

func ListFlags added in v1.1.0

func ListFlags(options *ListOptions) *pflag.FlagSet

func NetworkingFlags

func NetworkingFlags(settings *NetworkingFlagSettings) *pflag.FlagSet

func NewDownloadFlags

func NewDownloadFlags(settings *DownloaderSettings) *pflag.FlagSet

func NewRunTimeSettingsFlags

func NewRunTimeSettingsFlags(settings *RunTimeSettings) *pflag.FlagSet

func NewRunTimeSettingsFlagsWithDownload added in v1.1.0

func NewRunTimeSettingsFlagsWithDownload(settings *RunTimeSettingsWithDownload) *pflag.FlagSet

func OutputFormatFlags

func OutputFormatFlags(format *output.OutputOptions) *pflag.FlagSet

func OutputNonTabularFormatFlags added in v1.1.0

func OutputNonTabularFormatFlags(format *output.NonTabularOutputOptions) *pflag.FlagSet

func ResourceUsageFlags

func ResourceUsageFlags(settings *ResourceUsageSettings) *pflag.FlagSet

func SpecFlags

func SpecFlags(settings *SpecFlagSettings) *pflag.FlagSet

Types

type DealFlagSettings

type DealFlagSettings struct {
	TargetingMode model.TargetingMode
	Concurrency   int // Number of concurrent jobs to run
}

func NewDefaultDealFlagSettings

func NewDefaultDealFlagSettings() *DealFlagSettings

type DownloaderSettings

type DownloaderSettings struct {
	Timeout    time.Duration
	OutputDir  string
	SingleFile string
	Raw        bool
}

func NewDefaultDownloaderSettings

func NewDefaultDownloaderSettings() *DownloaderSettings

type ListOptions added in v1.1.0

type ListOptions struct {
	Limit         uint32
	NextToken     string
	OrderBy       string
	OrderByFields []string
	Reverse       bool
}

type NetworkingFlagSettings

type NetworkingFlagSettings struct {
	Network model.Network
	Domains []string
}

func NewDefaultNetworkingFlagSettings

func NewDefaultNetworkingFlagSettings() *NetworkingFlagSettings

type ResourceUsageSettings

type ResourceUsageSettings struct {
	CPU    string
	Memory string
	Disk   string
	GPU    string
}

func NewDefaultResourceUsageSettings

func NewDefaultResourceUsageSettings() *ResourceUsageSettings

type RunTimeSettings

type RunTimeSettings struct {
	WaitForJobToFinish    bool // Wait for the job to finish before returning
	WaitForJobTimeoutSecs int  // Timeout for waiting for the job to finish
	PrintJobIDOnly        bool // Only print the Job ID as output
	PrintNodeDetails      bool
	Follow                bool // Follow along with the output of the job
	DryRun                bool // iff true do not submit the job, but instead print out what will be submitted.
}

func DefaultRunTimeSettings added in v1.1.0

func DefaultRunTimeSettings() *RunTimeSettings

type RunTimeSettingsWithDownload added in v1.1.0

type RunTimeSettingsWithDownload struct {
	RunTimeSettings
	AutoDownloadResults bool // Automatically download the results after finishing
	IPFSGetTimeOut      int  // Timeout for IPFS in seconds
}

func DefaultRunTimeSettingsWithDownload added in v1.1.0

func DefaultRunTimeSettingsWithDownload() *RunTimeSettingsWithDownload

type SpecFlagSettings

type SpecFlagSettings struct {
	Publisher     opts.PublisherOpt // Publisher - publisher.Publisher
	Inputs        opts.StorageOpt   // Array of inputs
	OutputVolumes []string          // Array of output volumes in 'name:mount point' form
	EnvVar        []string          // Array of environment variables
	Timeout       int64             // Job execution timeout in seconds
	Labels        []string          // Labels for the job on the Bacalhau network (for searching)
	Selector      string            // Selector (label query) to filter nodes on which this job can be executed
	DoNotTrack    bool
}

func NewSpecFlagDefaultSettings

func NewSpecFlagDefaultSettings() *SpecFlagSettings

Jump to

Keyboard shortcuts

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