flag

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IRODSEnvironmentFileEnvKey string = "IRODS_ENVIRONMENT_FILE"
)

Variables

This section is empty.

Functions

func ProcessCommonFlags

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

func SetBundleClearFlags

func SetBundleClearFlags(command *cobra.Command)

func SetBundleConfigFlags

func SetBundleConfigFlags(command *cobra.Command)

func SetBundleFlags

func SetBundleFlags(command *cobra.Command)

func SetBundleTempFlags

func SetBundleTempFlags(command *cobra.Command)

func SetCheckVersionFlags

func SetCheckVersionFlags(command *cobra.Command)

func SetCommonFlags

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

func SetDecryptionFlags added in v0.8.3

func SetDecryptionFlags(command *cobra.Command)

func SetDifferentialTransferFlags

func SetDifferentialTransferFlags(command *cobra.Command, addDiffFlag 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, hiddenForce bool)

func SetInitFlags added in v0.9.0

func SetInitFlags(command *cobra.Command)

func SetListFlags

func SetListFlags(command *cobra.Command)

func SetNoRootFlags added in v0.7.12

func SetNoRootFlags(command *cobra.Command)

func SetParallelTransferFlags

func SetParallelTransferFlags(command *cobra.Command, showSingleThread 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)

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)

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)

Types

type BundleClearFlagVlaues

type BundleClearFlagVlaues struct {
	Clear bool
}

func GetBundleClearFlagValues

func GetBundleClearFlagValues() *BundleClearFlagVlaues

type BundleConfigFlagValues

type BundleConfigFlagValues struct {
	MaxFileNum         int
	MaxFileSize        int64
	NoBulkRegistration bool
	// contains filtered or unexported fields
}

func GetBundleConfigFlagValues

func GetBundleConfigFlagValues() *BundleConfigFlagValues

type BundleFlagValues

type BundleFlagValues struct {
	Extract          bool
	BulkRegistration bool
	DataType         string
}

func GetBundleFlagValues

func GetBundleFlagValues() *BundleFlagValues

type BundleTempFlagValues

type BundleTempFlagValues struct {
	LocalTempPath string
	IRODSTempPath string
}

func GetBundleTempFlagValues

func GetBundleTempFlagValues() *BundleTempFlagValues

type CheckVersionFlagValues

type CheckVersionFlagValues struct {
	Check bool
}

func GetCheckVersionFlagValues

func GetCheckVersionFlagValues() *CheckVersionFlagValues

type CommonFlagValues

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

	LogLevel        log.Level
	LogLevelUpdated bool
	SessionID       int
	Resource        string
	ResourceUpdated 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
	IgnoreMeta     bool
	Key            string
	PrivateKeyPath string
	TempPath       string
}

func GetDecryptionFlagValues added in v0.8.3

func GetDecryptionFlagValues() *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
	IgnoreMeta bool
	Mode       commons.EncryptionMode

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

func GetEncryptionFlagValues added in v0.8.3

func GetEncryptionFlagValues() *EncryptionFlagValues

type ForceFlagValues

type ForceFlagValues struct {
	Force bool
}

func GetForceFlagValues

func GetForceFlagValues() *ForceFlagValues

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 commons.ListFormat

	HumanReadableSizes bool

	SortOrder commons.ListSortOrder

	SortReverse bool
	// contains filtered or unexported fields
}

func GetListFlagValues

func GetListFlagValues() *ListFlagValues

type NoRootFlagValues added in v0.7.12

type NoRootFlagValues struct {
	NoRoot bool
}

func GetNoRootFlagValues added in v0.7.12

func GetNoRootFlagValues() *NoRootFlagValues

type ParallelTransferFlagValues

type ParallelTransferFlagValues struct {
	SingleTread   bool
	ThreadNumber  int
	TCPBufferSize int

	RedirectToResource bool
	Icat               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
}

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
}

func GetSyncFlagValues added in v0.7.12

func GetSyncFlagValues() *SyncFlagValues

type TargetObjectFlagValues added in v0.9.3

type TargetObjectFlagValues struct {
	PathUpdated     bool
	Path            string
	ResourceUpdated bool
	Resource        string
	UserUpdated     bool
	User            string
}

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 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

Jump to

Keyboard shortcuts

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