flag

package
v0.11.13 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessCommonFlags

func ProcessCommonFlags(command *cobra.Command) (bool, error)

func SetBundleFlags

func SetBundleFlags(command *cobra.Command)

func SetBundleTransferFlags added in v0.9.11

func SetBundleTransferFlags(command *cobra.Command, hideTempPathConfig bool, hideTransferConfig bool)

func SetCheckVersionFlags

func SetCheckVersionFlags(command *cobra.Command)

func SetChecksumFlags added in v0.9.10

func SetChecksumFlags(command *cobra.Command)

func SetCommonFlags

func SetCommonFlags(command *cobra.Command, hideResource bool)

func SetCommonFlagsWithoutResource added in v0.10.8

func SetCommonFlagsWithoutResource(command *cobra.Command)

func SetDecryptionFlags added in v0.8.3

func SetDecryptionFlags(command *cobra.Command)

func SetDifferentialTransferFlags

func SetDifferentialTransferFlags(command *cobra.Command, hideDiff bool)

func SetDryRunFlags

func SetDryRunFlags(command *cobra.Command)

func SetEncryptionFlags added in v0.8.2

func SetEncryptionFlags(command *cobra.Command)

func SetForceFlags

func SetForceFlags(command *cobra.Command, hideForce bool)

func SetHiddenFileFlags added in v0.9.12

func SetHiddenFileFlags(command *cobra.Command)

func SetInitFlags added in v0.9.0

func SetInitFlags(command *cobra.Command)

func SetListFlags

func SetListFlags(command *cobra.Command, hideHumanReadable bool, hideAccess bool)

func SetMetadataByIDFlags added in v0.10.24

func SetMetadataByIDFlags(command *cobra.Command)

func SetNoCreateFlags added in v0.9.12

func SetNoCreateFlags(command *cobra.Command)

func SetNoRootFlags added in v0.7.12

func SetNoRootFlags(command *cobra.Command)

func SetOutputFormatFlags added in v0.11.0

func SetOutputFormatFlags(command *cobra.Command, hideLegacy bool)

func SetParallelTransferFlags

func SetParallelTransferFlags(command *cobra.Command, hideParallelConfig bool, hideSingleThread bool)

func SetParentsFlags

func SetParentsFlags(command *cobra.Command)

func SetPostTransferFlagValues added in v0.8.5

func SetPostTransferFlagValues(command *cobra.Command)

func SetProcessFilterFlags

func SetProcessFilterFlags(command *cobra.Command)

func SetProgressFlags

func SetProgressFlags(command *cobra.Command)

func SetRecursiveFlags

func SetRecursiveFlags(command *cobra.Command, hideRecursive bool)

func SetRetryFlags

func SetRetryFlags(command *cobra.Command)

func SetSFTPIDFlags

func SetSFTPIDFlags(command *cobra.Command)

func SetSyncFlags added in v0.7.12

func SetSyncFlags(command *cobra.Command, hideBulkUpload bool)

func SetTargetObjectFlags added in v0.9.3

func SetTargetObjectFlags(command *cobra.Command)

func SetTicketAccessFlags added in v0.7.12

func SetTicketAccessFlags(command *cobra.Command)

func SetTicketFlags

func SetTicketFlags(command *cobra.Command)

func SetTicketUpdateFlags

func SetTicketUpdateFlags(command *cobra.Command)

func SetTransferReportFlags added in v0.9.11

func SetTransferReportFlags(command *cobra.Command)

func SetWildcardSearchFlags added in v0.10.10

func SetWildcardSearchFlags(command *cobra.Command)

Types

type BundleFlagValues

type BundleFlagValues struct {
	Extract          bool
	BulkRegistration bool
	DataType         string
}

func GetBundleFlagValues

func GetBundleFlagValues() *BundleFlagValues

type BundleTransferFlagValues added in v0.9.11

type BundleTransferFlagValues struct {
	LocalTempPath      string
	IRODSTempPath      string
	ClearOld           bool
	MinFileNumInBundle int
	MaxFileNumInBundle int
	MaxBundleFileSize  int64
	NoBulkRegistration bool
	// contains filtered or unexported fields
}

func GetBundleTransferFlagValues added in v0.9.11

func GetBundleTransferFlagValues() *BundleTransferFlagValues

type CheckVersionFlagValues

type CheckVersionFlagValues struct {
	Check bool
}

func GetCheckVersionFlagValues

func GetCheckVersionFlagValues() *CheckVersionFlagValues

type ChecksumFlagValues added in v0.9.10

type ChecksumFlagValues struct {
	VerifyChecksum bool
}

func GetChecksumFlagValues added in v0.9.10

func GetChecksumFlagValues() *ChecksumFlagValues

type CommonFlagValues

type CommonFlagValues struct {
	ConfigFilePath string
	ShowVersion    bool
	ShowHelp       bool
	DebugMode      bool
	Quiet          bool

	LogLevel        log.Level
	LogLevelUpdated bool
	LogFile         string
	LogTerminal     bool
	SessionID       int
	Resource        string
	ResourceUpdated bool
	Timeout         int
	TimeoutUpdated  bool
	YesAll          bool
	NoAll           bool
	// contains filtered or unexported fields
}

func GetCommonFlagValues

func GetCommonFlagValues(command *cobra.Command) *CommonFlagValues

type DecryptionFlagValues added in v0.8.3

type DecryptionFlagValues struct {
	Decryption     bool
	NoDecryption   bool
	Key            string
	PrivateKeyPath string
	TempPath       string
}

func GetDecryptionFlagValues added in v0.8.3

func GetDecryptionFlagValues(command *cobra.Command) *DecryptionFlagValues

type DifferentialTransferFlagValues

type DifferentialTransferFlagValues struct {
	DifferentialTransfer bool
	NoHash               bool
}

func GetDifferentialTransferFlagValues

func GetDifferentialTransferFlagValues() *DifferentialTransferFlagValues

type DryRunFlagValues

type DryRunFlagValues struct {
	DryRun bool
}

func GetDryRunFlagValues

func GetDryRunFlagValues() *DryRunFlagValues

type EncryptionFlagValues added in v0.8.2

type EncryptionFlagValues struct {
	Encryption   bool
	NoEncryption bool
	IgnoreMeta   bool
	Mode         encryption.EncryptionMode

	Key                  string
	PublicPrivateKeyPath string
	TempPath             string
	// contains filtered or unexported fields
}

func GetEncryptionFlagValues added in v0.8.3

func GetEncryptionFlagValues(command *cobra.Command) *EncryptionFlagValues

type ForceFlagValues

type ForceFlagValues struct {
	Force bool
}

func GetForceFlagValues

func GetForceFlagValues() *ForceFlagValues

type HiddenFileFlagValues added in v0.9.12

type HiddenFileFlagValues struct {
	Exclude bool
}

func GetHiddenFileFlagValues added in v0.9.12

func GetHiddenFileFlagValues() *HiddenFileFlagValues

type InitFlagValues added in v0.9.0

type InitFlagValues struct {
	PamTTL int
}

func GetInitFlagValues added in v0.9.0

func GetInitFlagValues() *InitFlagValues

type ListFlagValues

type ListFlagValues struct {
	Format format.ListFormat

	Access             bool
	HumanReadableSizes bool

	SortOrder format.ListSortOrder

	SortReverse bool
	// contains filtered or unexported fields
}

func GetListFlagValues

func GetListFlagValues() *ListFlagValues

type MetadataByIDFlagValues added in v0.10.24

type MetadataByIDFlagValues struct {
	ByID bool
}

func GetMetadataByIDFlagValues added in v0.10.24

func GetMetadataByIDFlagValues(command *cobra.Command) *MetadataByIDFlagValues

type NoRootFlagValues added in v0.7.12

type NoRootFlagValues struct {
	NoRoot bool
}

func GetNoRootFlagValues added in v0.7.12

func GetNoRootFlagValues() *NoRootFlagValues

type OutputFormatFlagValues added in v0.11.0

type OutputFormatFlagValues struct {
	Format format.OutputFormat
	// contains filtered or unexported fields
}

func GetOutputFormatFlagValues added in v0.11.0

func GetOutputFormatFlagValues() *OutputFormatFlagValues

type ParallelTransferFlagValues

type ParallelTransferFlagValues struct {
	SingleThread        bool
	ThreadNumber        int
	ThreadNumberPerFile int
	TCPBufferSize       int

	Icat   bool
	WebDAV bool
	// contains filtered or unexported fields
}

func GetParallelTransferFlagValues

func GetParallelTransferFlagValues() *ParallelTransferFlagValues

type ParentsFlagValues

type ParentsFlagValues struct {
	MakeParents bool
}

func GetParentsFlagValues

func GetParentsFlagValues() *ParentsFlagValues

type PostTransferFlagValues added in v0.8.5

type PostTransferFlagValues struct {
	DeleteOnSuccess bool
}

func GetPostTransferFlagValues added in v0.8.5

func GetPostTransferFlagValues() *PostTransferFlagValues

type ProcessFilterFlagValues

type ProcessFilterFlagValues struct {
	GroupBy ProcessGroupBy

	Zone    string
	Address string
	// contains filtered or unexported fields
}

func GetProcessFilterFlagValues

func GetProcessFilterFlagValues() *ProcessFilterFlagValues

type ProcessGroupBy

type ProcessGroupBy string
const (
	ProcessGroupByNone    ProcessGroupBy = ""
	ProcessGroupByUser    ProcessGroupBy = "user"
	ProcessGroupByProgram ProcessGroupBy = "program"
)

type ProgressFlagValues

type ProgressFlagValues struct {
	ShowProgress bool
	ShowFullPath bool
}

func GetProgressFlagValues

func GetProgressFlagValues() *ProgressFlagValues

type RecursiveFlagValues

type RecursiveFlagValues struct {
	Recursive bool
}

func GetRecursiveFlagValues

func GetRecursiveFlagValues() *RecursiveFlagValues

type RetryFlagValues

type RetryFlagValues struct {
	RetryNumber          int
	RetryIntervalSeconds int
	RetryChild           bool
}

func GetRetryFlagValues

func GetRetryFlagValues() *RetryFlagValues

type SFTPIDFlagValues

type SFTPIDFlagValues struct {
	IdentityFilePath string
}

func GetSFTPIDFlagValues

func GetSFTPIDFlagValues() *SFTPIDFlagValues

type SyncFlagValues added in v0.7.12

type SyncFlagValues struct {
	Delete     bool
	BulkUpload bool
	Age        int
	Sync       bool
}

func GetSyncFlagValues added in v0.7.12

func GetSyncFlagValues() *SyncFlagValues

type TargetObjectFlagValues added in v0.9.3

type TargetObjectFlagValues struct {
	Path     bool
	Resource bool
	User     bool
}

func GetTargetObjectFlagValues added in v0.9.3

func GetTargetObjectFlagValues(command *cobra.Command) *TargetObjectFlagValues

type TicketAccessFlagValues added in v0.7.12

type TicketAccessFlagValues struct {
	Name string
}

func GetTicketAccessFlagValues added in v0.7.12

func GetTicketAccessFlagValues() *TicketAccessFlagValues

type TicketFlagValues

type TicketFlagValues struct {
	Name string

	Type irodsclient_types.TicketType
	// contains filtered or unexported fields
}

func GetTicketFlagValues

func GetTicketFlagValues() *TicketFlagValues

type TicketUpdateFlagValues

type TicketUpdateFlagValues struct {
	UseLimit int64

	UseLimitUpdated bool
	WriteFileLimit  int64

	WriteFileLimitUpdated bool
	WriteByteLimit        int64

	WriteByteLimitUpdated bool

	ExpirationTime        time.Time
	ExpirationTimeUpdated bool

	AddAllowedUsers     []string
	RemoveAllwedUsers   []string
	AddAllowedGroups    []string
	RemoveAllowedGroups []string
	AddAllowedHosts     []string
	RemoveAllowedHosts  []string
	// contains filtered or unexported fields
}

func GetTicketUpdateFlagValues

func GetTicketUpdateFlagValues(command *cobra.Command) *TicketUpdateFlagValues

type TouchFlagValues added in v0.11.0

type TouchFlagValues struct {
	NoCreate                 bool
	ReplicaNumber            int
	ReplicaNumberUpdated     bool
	ReferencePath            string
	SecondsSinceEpoch        int
	SecondsSinceEpochUpdated bool
}

func GetTouchFlagValues added in v0.11.0

func GetTouchFlagValues(command *cobra.Command) *TouchFlagValues

type TransferReportFlagValues added in v0.9.11

type TransferReportFlagValues struct {
	ReportPath     string
	Report         bool
	ReportToStdout bool
}

func GetTransferReportFlagValues added in v0.9.11

func GetTransferReportFlagValues(command *cobra.Command) *TransferReportFlagValues

type WildcardSearchFlagValues added in v0.10.10

type WildcardSearchFlagValues struct {
	WildcardSearch bool
}

func GetWildcardSearchFlagValues added in v0.10.10

func GetWildcardSearchFlagValues() *WildcardSearchFlagValues

Jump to

Keyboard shortcuts

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