Documentation
¶
Index ¶
- func CLIRun[OT BaseOptionsEr, VT baseVarsEr](cliIn io.Reader, cliOut io.Writer, cliErr io.Writer, opts OT, args []string, ...) error
- func CheckDssPath(dssPath string) (dssType, root, npath string, err error)
- func CheckDssSpec(dssSpec string) (dssType, root string, err error)
- func CheckDssUrlMapping(dum string) (dssType, addr, localPath, root string, isTls bool, err error)
- func CheckResol(resol string) error
- func CheckTimeStamp(value string) (int64, error)
- func CheckUiACL(sacl []string) ([]cabridss.ACLEntry, error)
- func ConfigDir(opts BaseOptions) (string, error)
- func ConfigShutdown(cr *joule.CLIRunner[ConfigOptions]) error
- func ConfigStartup(cr *joule.CLIRunner[ConfigOptions]) error
- func DSSAuditShutdown(cr *joule.CLIRunner[DSSAuditOptions]) error
- func DSSAuditStartup(cr *joule.CLIRunner[DSSAuditOptions]) error
- func DSSCleanShutdown(cr *joule.CLIRunner[DSSCleanOptions]) error
- func DSSCleanStartup(cr *joule.CLIRunner[DSSCleanOptions]) error
- func DSSConfigShutdown(cr *joule.CLIRunner[DSSConfigOptions]) error
- func DSSConfigStartup(cr *joule.CLIRunner[DSSConfigOptions]) error
- func DSSGetPutShutdown(cr *joule.CLIRunner[DSSGetPutOptions]) error
- func DSSGetPutStartup(cr *joule.CLIRunner[DSSGetPutOptions]) error
- func DSSLsHistoShutdown(cr *joule.CLIRunner[DSSLsHistoOptions]) error
- func DSSLsHistoStartup(cr *joule.CLIRunner[DSSLsHistoOptions]) error
- func DSSMkShutdown(cr *joule.CLIRunner[DSSMkOptions]) error
- func DSSMkStartup(cr *joule.CLIRunner[DSSMkOptions]) error
- func DSSMknsShutdown(cr *joule.CLIRunner[DSSMknsOptions]) error
- func DSSMknsStartup(cr *joule.CLIRunner[DSSMknsOptions]) error
- func DSSReindexShutdown(cr *joule.CLIRunner[DSSReindexOptions]) error
- func DSSReindexStartup(cr *joule.CLIRunner[DSSReindexOptions]) error
- func DSSRmHistoShutdown(cr *joule.CLIRunner[DSSRmHistoOptions]) error
- func DSSRmHistoStartup(cr *joule.CLIRunner[DSSRmHistoOptions]) error
- func DSSScanShutdown(cr *joule.CLIRunner[DSSScanOptions]) error
- func DSSScanStartup(cr *joule.CLIRunner[DSSScanOptions]) error
- func DSSUnlockShutdown(cr *joule.CLIRunner[DSSUnlockOptions]) error
- func DSSUnlockStartup(cr *joule.CLIRunner[DSSUnlockOptions]) error
- func GetBaseConfig(opts BaseOptions, index int, root, localPath, mp string) (cabridss.DssBaseConfig, error)
- func GetObsConfig(opts BaseOptions, index int, root, mp string) (cabridss.ObsConfig, error)
- func GetOlfConfig(opts BaseOptions, index int, root, mp string) (cabridss.OlfConfig, error)
- func GetS3Config(opts BaseOptions, index int) cabridss.ObsConfig
- func GetSmfConfig(opts BaseOptions, index int, root, mp string) (cabridss.ObsConfig, error)
- func GetWebConfig(opts BaseOptions, index int, isTls bool, addr, root string, ure UiRunEnv) (cabridss.WebDssConfig, error)
- func GetWfsConfig(opts BaseOptions, index int, isTls bool, addr, root string, ure UiRunEnv) (cabridss.WfsDssConfig, error)
- func HPassword(uow joule.UnitOfWork, opts BaseOptions) (string, error)
- func LsnsShutdown(cr *joule.CLIRunner[LsnsOptions]) error
- func LsnsStartup(cr *joule.CLIRunner[LsnsOptions]) error
- func MasterPassword(uow joule.UnitOfWork, opts BaseOptions, askNumber int) (string, error)
- func MutualExcludeFlags(names []string, flags ...bool) (string, error)
- func NewHDss[OT BaseOptionsEr, VT baseVarsEr](ctx context.Context, setCfgFunc func(bc *cabridss.DssBaseConfig), ...) (cabridss.HDss, error)
- func NewServerErr(where string, err error) error
- func NewWfsDss[OT BaseOptionsEr, VT baseVarsEr](ctx context.Context, setCfgFunc func(bc *cabridss.DssBaseConfig), ...) (cabridss.Dss, error)
- func NewXobsDss(opts BaseOptions, setCfgFunc func(bc *cabridss.DssBaseConfig), index int, ...) (cabridss.HDss, error)
- func NewXolfDss(opts BaseOptions, setCfgFunc func(bc *cabridss.DssBaseConfig), index int, ...) (cabridss.HDss, error)
- func S3ToolsShutdown(cr *joule.CLIRunner[S3ToolsOptions]) error
- func S3ToolsStartup(cr *joule.CLIRunner[S3ToolsOptions]) error
- func SampleShutdown(cr *joule.CLIRunner[SampleOptions]) error
- func SampleStartup(cr *joule.CLIRunner[SampleOptions]) error
- func SchedServerConfigurator(e *echo.Echo, root string, configs map[string]interface{}) error
- func Schedule(sc *ScheduleConfig) (time.Duration, error)
- func ScheduleShutdown(cr *joule.CLIRunner[ScheduleOptions]) error
- func ScheduleStartup(cr *joule.CLIRunner[ScheduleOptions]) error
- func SyncShutdown(cr *joule.CLIRunner[SyncOptions]) error
- func SyncStartup(cr *joule.CLIRunner[SyncOptions]) error
- func WebApiShutdown(cr *joule.CLIRunner[WebApiOptions]) error
- func WebApiStartup(cr *joule.CLIRunner[WebApiOptions]) error
- type BaseOptions
- type BaseOptionsEr
- type CabriScheduleSpec
- type ConfigOptions
- type ConfigVars
- type DSSAuditOptions
- type DSSAuditVars
- type DSSCleanOptions
- type DSSCleanVars
- type DSSConfigOptions
- type DSSConfigVars
- type DSSGetPutOptions
- type DSSGetPutVars
- type DSSLsHistoOptions
- type DSSLsHistoVars
- type DSSMkOptions
- type DSSMkVars
- type DSSMknsOptions
- type DSSMknsVars
- type DSSReindexOptions
- type DSSReindexVars
- type DSSRmHistoOptions
- type DSSRmHistoVars
- type DSSScanOptions
- type DSSScanVars
- type DSSUnlockOptions
- type DSSUnlockVars
- type LsnsOptions
- type LsnsVars
- type NewHDssArgs
- type S3ToolsOptions
- type S3ToolsVars
- type SCabriSyncSpec
- type SGitSpec
- type SScheduleBase
- type SScheduledAction
- type SampleOptions
- type SampleVars
- type ScheduleConfig
- type ScheduleOptions
- type ScheduleRunStatus
- type ScheduleVars
- type SyncOptions
- type SyncVars
- type UiRunEnv
- type WebApiOptions
- type WebApiVars
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDssPath ¶
func CheckDssSpec ¶
func CheckDssUrlMapping ¶
func CheckResol ¶
func CheckTimeStamp ¶
func ConfigDir ¶
func ConfigDir(opts BaseOptions) (string, error)
func ConfigShutdown ¶
func ConfigShutdown(cr *joule.CLIRunner[ConfigOptions]) error
func ConfigStartup ¶
func ConfigStartup(cr *joule.CLIRunner[ConfigOptions]) error
func DSSAuditShutdown ¶
func DSSAuditShutdown(cr *joule.CLIRunner[DSSAuditOptions]) error
func DSSAuditStartup ¶
func DSSAuditStartup(cr *joule.CLIRunner[DSSAuditOptions]) error
func DSSCleanShutdown ¶
func DSSCleanShutdown(cr *joule.CLIRunner[DSSCleanOptions]) error
func DSSCleanStartup ¶
func DSSCleanStartup(cr *joule.CLIRunner[DSSCleanOptions]) error
func DSSConfigShutdown ¶
func DSSConfigShutdown(cr *joule.CLIRunner[DSSConfigOptions]) error
func DSSConfigStartup ¶
func DSSConfigStartup(cr *joule.CLIRunner[DSSConfigOptions]) error
func DSSGetPutShutdown ¶
func DSSGetPutShutdown(cr *joule.CLIRunner[DSSGetPutOptions]) error
func DSSGetPutStartup ¶
func DSSGetPutStartup(cr *joule.CLIRunner[DSSGetPutOptions]) error
func DSSLsHistoShutdown ¶
func DSSLsHistoShutdown(cr *joule.CLIRunner[DSSLsHistoOptions]) error
func DSSLsHistoStartup ¶
func DSSLsHistoStartup(cr *joule.CLIRunner[DSSLsHistoOptions]) error
func DSSMkShutdown ¶
func DSSMkShutdown(cr *joule.CLIRunner[DSSMkOptions]) error
func DSSMkStartup ¶
func DSSMkStartup(cr *joule.CLIRunner[DSSMkOptions]) error
func DSSMknsShutdown ¶
func DSSMknsShutdown(cr *joule.CLIRunner[DSSMknsOptions]) error
func DSSMknsStartup ¶
func DSSMknsStartup(cr *joule.CLIRunner[DSSMknsOptions]) error
func DSSReindexShutdown ¶
func DSSReindexShutdown(cr *joule.CLIRunner[DSSReindexOptions]) error
func DSSReindexStartup ¶
func DSSReindexStartup(cr *joule.CLIRunner[DSSReindexOptions]) error
func DSSRmHistoShutdown ¶
func DSSRmHistoShutdown(cr *joule.CLIRunner[DSSRmHistoOptions]) error
func DSSRmHistoStartup ¶
func DSSRmHistoStartup(cr *joule.CLIRunner[DSSRmHistoOptions]) error
func DSSScanShutdown ¶
func DSSScanShutdown(cr *joule.CLIRunner[DSSScanOptions]) error
func DSSScanStartup ¶
func DSSScanStartup(cr *joule.CLIRunner[DSSScanOptions]) error
func DSSUnlockShutdown ¶
func DSSUnlockShutdown(cr *joule.CLIRunner[DSSUnlockOptions]) error
func DSSUnlockStartup ¶
func DSSUnlockStartup(cr *joule.CLIRunner[DSSUnlockOptions]) error
func GetBaseConfig ¶
func GetBaseConfig(opts BaseOptions, index int, root, localPath, mp string) (cabridss.DssBaseConfig, error)
func GetObsConfig ¶
func GetOlfConfig ¶
func GetS3Config ¶
func GetS3Config(opts BaseOptions, index int) cabridss.ObsConfig
func GetSmfConfig ¶
func GetWebConfig ¶
func GetWebConfig(opts BaseOptions, index int, isTls bool, addr, root string, ure UiRunEnv) (cabridss.WebDssConfig, error)
func GetWfsConfig ¶
func GetWfsConfig(opts BaseOptions, index int, isTls bool, addr, root string, ure UiRunEnv) (cabridss.WfsDssConfig, error)
func HPassword ¶
func HPassword(uow joule.UnitOfWork, opts BaseOptions) (string, error)
func LsnsShutdown ¶
func LsnsShutdown(cr *joule.CLIRunner[LsnsOptions]) error
func LsnsStartup ¶
func LsnsStartup(cr *joule.CLIRunner[LsnsOptions]) error
func MasterPassword ¶
func MasterPassword(uow joule.UnitOfWork, opts BaseOptions, askNumber int) (string, error)
func NewHDss ¶
func NewHDss[OT BaseOptionsEr, VT baseVarsEr]( ctx context.Context, setCfgFunc func(bc *cabridss.DssBaseConfig), nhArgs NewHDssArgs, ) (cabridss.HDss, error)
func NewServerErr ¶
func NewWfsDss ¶
func NewWfsDss[OT BaseOptionsEr, VT baseVarsEr]( ctx context.Context, setCfgFunc func(bc *cabridss.DssBaseConfig), nhArgs NewHDssArgs, ) (cabridss.Dss, error)
func NewXobsDss ¶
func NewXolfDss ¶
func NewXolfDss(opts BaseOptions, setCfgFunc func(bc *cabridss.DssBaseConfig), index int, lasttime int64, root, mp string, aclusers []string) (cabridss.HDss, error)
func S3ToolsShutdown ¶
func S3ToolsShutdown(cr *joule.CLIRunner[S3ToolsOptions]) error
func S3ToolsStartup ¶
func S3ToolsStartup(cr *joule.CLIRunner[S3ToolsOptions]) error
func SampleShutdown ¶
func SampleShutdown(cr *joule.CLIRunner[SampleOptions]) error
func SampleStartup ¶
func SampleStartup(cr *joule.CLIRunner[SampleOptions]) error
func SchedServerConfigurator ¶
func ScheduleShutdown ¶
func ScheduleShutdown(cr *joule.CLIRunner[ScheduleOptions]) error
func ScheduleStartup ¶
func ScheduleStartup(cr *joule.CLIRunner[ScheduleOptions]) error
func SyncShutdown ¶
func SyncShutdown(cr *joule.CLIRunner[SyncOptions]) error
func SyncStartup ¶
func SyncStartup(cr *joule.CLIRunner[SyncOptions]) error
func WebApiShutdown ¶
func WebApiShutdown(cr *joule.CLIRunner[WebApiOptions]) error
func WebApiStartup ¶
func WebApiStartup(cr *joule.CLIRunner[WebApiOptions]) error
Types ¶
type BaseOptions ¶
type BaseOptions struct { ConfigDir string Users []string ACL []string Password bool PassFile string Serial bool MaxThread int // set the maximum OS thread number RedLimit int // set the reducer I/O limit defaults to 8 IndexImplems []string ObsRegions []string ObsEndpoints []string ObsContainers []string ObsAccessKeys []string ObsSecretKeys []string TlsCert string // certificate file on https server or untrusted CA on https client TlsNoCheck bool // no check of certificate by https client HUser string // https client basic auth user HPassword bool // https client basic auth password HPFile string // https client basic auth password // Left entities located here in case of sync CLI for convenience LeftUsers []string LeftACL []string }
type BaseOptionsEr ¶
type BaseOptionsEr interface {
// contains filtered or unexported methods
}
type CabriScheduleSpec ¶
type CabriScheduleSpec map[string]struct { Period int `yaml:"period"` // periodicity of action, if <= 0 no periodic action ContinueOnError bool `yaml:"continueOnError"` ExitOnError bool `yaml:"exitOnError"` Actions []SScheduledAction `yaml:"actions"` }
type ConfigOptions ¶
type ConfigVars ¶
type ConfigVars struct {
// contains filtered or unexported fields
}
type DSSAuditOptions ¶
type DSSAuditOptions struct {
BaseOptions
}
type DSSAuditVars ¶
type DSSAuditVars struct {
// contains filtered or unexported fields
}
type DSSCleanOptions ¶
type DSSCleanOptions struct {
BaseOptions
}
type DSSCleanVars ¶
type DSSCleanVars struct {
// contains filtered or unexported fields
}
type DSSConfigOptions ¶
type DSSConfigOptions struct { BaseOptions Raw bool }
type DSSConfigVars ¶
type DSSConfigVars struct {
// contains filtered or unexported fields
}
type DSSGetPutOptions ¶
type DSSGetPutOptions struct {
BaseOptions
}
type DSSGetPutVars ¶
type DSSGetPutVars struct {
// contains filtered or unexported fields
}
type DSSLsHistoOptions ¶
type DSSLsHistoOptions struct { BaseOptions Recursive bool Sorted bool Resolution string }
type DSSLsHistoVars ¶
type DSSLsHistoVars struct {
// contains filtered or unexported fields
}
type DSSMkOptions ¶
type DSSMkOptions struct { BaseOptions Size string }
type DSSMknsOptions ¶
type DSSMknsOptions struct { BaseOptions Children []string }
type DSSMknsVars ¶
type DSSMknsVars struct {
// contains filtered or unexported fields
}
type DSSReindexOptions ¶
type DSSReindexOptions struct {
BaseOptions
}
type DSSReindexVars ¶
type DSSReindexVars struct {
// contains filtered or unexported fields
}
type DSSRmHistoOptions ¶
type DSSRmHistoOptions struct { BaseOptions Recursive bool DryRun bool StartTime string EndTime string }
type DSSRmHistoVars ¶
type DSSRmHistoVars struct {
// contains filtered or unexported fields
}
type DSSScanOptions ¶
type DSSScanVars ¶
type DSSScanVars struct {
// contains filtered or unexported fields
}
type DSSUnlockOptions ¶
type DSSUnlockOptions struct { BaseOptions RepairIndex bool RepairReadOnly bool LockForTest bool }
type DSSUnlockVars ¶
type DSSUnlockVars struct {
// contains filtered or unexported fields
}
type LsnsOptions ¶
type S3ToolsOptions ¶
type S3ToolsVars ¶
type S3ToolsVars struct {
// contains filtered or unexported fields
}
type SCabriSyncSpec ¶
type SCabriSyncSpec struct { SScheduleBase `yaml:"base"` LeftUsers []string `yaml:"leftUsers"` LeftACL []string `yaml:"leftACL"` RightUsers []string `yaml:"rightUsers"` RightACL []string `yaml:"rightACL"` Recursive bool `yaml:"recursive"` DryRun bool `yaml:"dryRun"` BiDir bool `yaml:"biDir"` KeepContent bool `yaml:"keepContent"` NoCh bool `yaml:"noCh"` NoACL bool `yaml:"noACL"` MapACL []string `yaml:"mapACL"` Summary bool `yaml:"summary"` Verbose bool `yaml:"verbose"` VerboseLevel int `yaml:"verboseLevel"` LeftTime string `yaml:"leftTime"` RightTime string `yaml:"rightTime"` LeftDss string `yaml:"leftDss"` RightDss string `yaml:"rightDss"` }
type SScheduleBase ¶
type SScheduledAction ¶
type SScheduledAction struct { SScheduleBase `yaml:"base"` Type string `yaml:"type"` // currently "cabriSync", "git" or "cmd" CabriSyncSpec SCabriSyncSpec `yaml:"cabriSyncSpec"` GitSpec SGitSpec `yaml:"gitSpec"` CmdLine string `yaml:"cmdLine"` }
func (SScheduledAction) String ¶
func (ssa SScheduledAction) String() string
type SampleOptions ¶
type SampleOptions struct { BaseOptions FlagSample bool }
type SampleVars ¶
type SampleVars struct {
// contains filtered or unexported fields
}
type ScheduleConfig ¶
type ScheduleConfig struct { Spec CabriScheduleSpec // contains filtered or unexported fields }
type ScheduleOptions ¶
type ScheduleOptions struct { BaseOptions HasLog bool SpecFile string HasHttp bool Address string }
type ScheduleRunStatus ¶
type ScheduleVars ¶
type ScheduleVars struct {
// contains filtered or unexported fields
}
type SyncOptions ¶
type UiRunEnv ¶
type UiRunEnv struct { Encrypted bool MasterPassword string ConfigDir string UserConfig cabridss.UserConfig UiUsers []string UiACL []cabridss.ACLEntry DefaultSyncUser string // only used for synchro: OS uid for fsy DSS, empty otherwise BasicAuthUser string BasicAuthPassword string }
func GetUiRunEnv ¶
type WebApiOptions ¶
type WebApiVars ¶
type WebApiVars struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.