Documentation
¶
Overview ¶
System permissions-related code.
Index ¶
- Variables
- func GetHTTPTransport() *http.Transport
- func InitLoggers(flags *FlagStorage) error
- func MessageMountFlags(args []string) (ret []string)
- func MyUserAndGroup() (int, int)
- func NewApp() (app *cli.App)
- type ADLv1Config
- type ADLv2Config
- type AZBlobConfig
- type AzureAuthorizerConfig
- type FlagStorage
- type NodeConfig
- type PartSizeConfig
- type S3Config
- type SASTokenProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string // set by build system DefaultEndpoint string // set by build system )
View Source
var ( VersionHash string FuseOptions string )
Functions ¶
func GetHTTPTransport ¶
func InitLoggers ¶
func InitLoggers(flags *FlagStorage) error
func MessageMountFlags ¶
func MyUserAndGroup ¶
MyUserAndGroup returns the UID and GID of this process.
Types ¶
type ADLv1Config ¶
type ADLv1Config struct {
Endpoint string
Authorizer autorest.Authorizer
}
func (*ADLv1Config) Init ¶
func (config *ADLv1Config) Init()
type ADLv2Config ¶
type ADLv2Config struct {
Endpoint string
Authorizer autorest.Authorizer
}
type AZBlobConfig ¶
type AZBlobConfig struct {
Endpoint string
AccountName string
AccountKey string
SasToken SASTokenProvider
TokenRenewBuffer time.Duration
Container string
Prefix string
}
func AzureBlobConfig ¶
func AzureBlobConfig(endpoint string, location string, storageType string) (config AZBlobConfig, err error)
func (*AZBlobConfig) Init ¶
func (config *AZBlobConfig) Init()
func (*AZBlobConfig) WithAuthorization ¶
func (config *AZBlobConfig) WithAuthorization() autorest.PrepareDecorator
hijack the SharedKeyCredentials signing code from azure-storage-blob-go https://github.com/Azure/go-autorest/issues/456
type AzureAuthorizerConfig ¶
func (AzureAuthorizerConfig) Authorizer ¶
func (c AzureAuthorizerConfig) Authorizer() (autorest.Authorizer, error)
type FlagStorage ¶
type FlagStorage struct {
// File system
MountOptions []string
MountPoint string
MountPointArg string
MountPointCreated string
DirMode os.FileMode
FileMode os.FileMode
Uid uint32
Gid uint32
Setuid int
Setgid int
// Common Backend Config
UseContentType bool
Endpoint string
Backend interface{}
// Tuning
MemoryLimit uint64
EntryLimit int
GCInterval uint64
Cheap bool
ExplicitDir bool
NoDirObject bool
MaxFlushers int64
MaxParallelParts int
MaxParallelCopy int
StatCacheTTL time.Duration
HTTPTimeout time.Duration
ReadRetryInterval time.Duration
ReadRetryMultiplier float64
ReadRetryMax time.Duration
ReadRetryAttempts int
RetryInterval time.Duration
ReadAheadKB uint64
SmallReadCount uint64
SmallReadCutoffKB uint64
ReadAheadSmallKB uint64
LargeReadCutoffKB uint64
ReadAheadLargeKB uint64
ReadAheadParallelKB uint64
ReadMergeKB uint64
SinglePartMB uint64
MaxMergeCopyMB uint64
IgnoreFsync bool
FsyncOnClose bool
EnablePerms bool
EnableSpecials bool
EnableMtime bool
DisableXattr bool
UidAttr string
GidAttr string
FileModeAttr string
RdevAttr string
MtimeAttr string
SymlinkAttr string
RefreshAttr string
RefreshFilename string
FlushFilename string
CachePath string
MaxDiskCacheFD int64
CacheFileMode os.FileMode
PartSizes []PartSizeConfig
UsePatch bool
DropPatchConflicts bool
PreferPatchUploads bool
NoPreloadDir bool
NoVerifySSL bool
WinRefreshDirs bool
// Debugging
DebugMain bool
DebugFuse bool
DebugS3 bool
PProf string
Foreground bool
LogFile string
LogLevel string
LogFormat string
NoLogColor bool
DebugGrpc bool
StatsInterval time.Duration
// Cluster Mode
ClusterMode bool
ClusterGrpcReflection bool
ClusterMe *NodeConfig
ClusterPeers []*NodeConfig
TigrisPrefetch bool
TigrisListContent bool
}
func DefaultFlags ¶
func DefaultFlags() *FlagStorage
func PopulateFlags ¶
func PopulateFlags(c *cli.Context) (ret *FlagStorage)
PopulateFlags adds the flags accepted by run to the supplied flag set, returning the variables into which the flags will parse.
func (*FlagStorage) Cleanup ¶
func (flags *FlagStorage) Cleanup()
func (*FlagStorage) GetMimeType ¶
func (flags *FlagStorage) GetMimeType(fileName string) (retMime *string)
func (*FlagStorage) IsTigris ¶
func (flags *FlagStorage) IsTigris() bool
type NodeConfig ¶
type PartSizeConfig ¶
type S3Config ¶
type S3Config struct {
Profile string
AccessKey string
SecretKey string
RoleArn string
RoleExternalId string
RoleSessionName string
StsEndpoint string
SDKMaxRetries int
SDKMinRetryDelay time.Duration
SDKMaxRetryDelay time.Duration
SDKMinThrottleDelay time.Duration
SDKMaxThrottleDelay time.Duration
RequesterPays bool
Region string
RegionSet bool
ProjectId string
StorageClass string
ColdMinSize uint64
MultipartAge time.Duration
NoExpireMultipart bool
MultipartCopyThreshold uint64
NoDetect bool
UseSSE bool
UseKMS bool
KMSKeyID string
SseC string
SseCDigest string
ACL string
NoChecksum bool
ListV2 bool
EnableSpecials bool
Subdomain bool
UseIAM bool
IAMFlavor string
IAMUrl string
IAMHeader string
Credentials *credentials.Credentials
Session *session.Session
BucketOwner string
}
func (*S3Config) ToAwsConfig ¶
func (c *S3Config) ToAwsConfig(flags *FlagStorage) (*aws.Config, error)
type SASTokenProvider ¶
Click to show internal directories.
Click to hide internal directories.