Documentation
¶
Index ¶
- func ABFSCmdToCli(cmd ABFSCmd) cli.Command
- func IsCacheLocked(cacheLockPath string) (bool, error)
- func MountPoint(path string) (string, error)
- func Printf(format string, a ...any)
- func SetEmbedded[T Provider](o any, newObj func() (T, error)) error
- type ABFSClientProvider
- type ABFSCmd
- type CachemanProvider
- type CliExec
- type CmdSpec
- type ConfigProvider
- type InstanceResolver
- type MountClientProvider
- type Provider
- type StoreProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ABFSCmdToCli ¶
func IsCacheLocked ¶
func MountPoint ¶
MountPoint finds the mount point for a given path by traversing upwards and comparing device IDs.
Types ¶
type ABFSClientProvider ¶
type ABFSClientProvider struct {
ABFSClient *client.ABFSClient
// contains filtered or unexported fields
}
func (*ABFSClientProvider) Close ¶
func (p *ABFSClientProvider) Close() error
type CachemanProvider ¶
type CachemanProvider struct {
Cacheman *cachemanclient.Client
// contains filtered or unexported fields
}
func (*CachemanProvider) Close ¶
func (p *CachemanProvider) Close() error
type CliExec ¶
type CliExec struct {
// contains filtered or unexported fields
}
func (CliExec) RegisterFlags ¶
func (CliExec) Spec ¶
func (c CliExec) Spec() cli.CommandSpec
func (CliExec) Subcommands ¶
type CmdSpec ¶
type CmdSpec struct {
// Name is the name of the command.
// It should be the leaf name of the entire command. E.g `run` for the full
// command `sail run`.
Name string
// Usage is the command's usage string.
// E.g "[flags] <path>"
Usage string
// Desc is the description of the command.
// The first line is used as an abbreviated description.
Desc string
// RawArgs indicates that flags should not be parsed, and they should be deferred
// to the command.
RawArgs bool
// Hidden indicates that this command should not show up in it's parent's
// subcommand help.
Hidden bool
// Aliases contains a list of alternative names that can be used for a particular command.
Aliases []string
// Extra fields:
ProviderInjects []any
Daemon bool
Subcommands []ABFSCmd
}
type ConfigProvider ¶
func (*ConfigProvider) Close ¶
func (p *ConfigProvider) Close() error
type InstanceResolver ¶
type MountClientProvider ¶
type MountClientProvider struct {
// contains filtered or unexported fields
}
func (*MountClientProvider) Client ¶
func (p *MountClientProvider) Client(mountPoint string) (*binding.Client, error)
func (*MountClientProvider) Close ¶
func (p *MountClientProvider) Close() error
type StoreProvider ¶
func (*StoreProvider) Close ¶
func (p *StoreProvider) Close() error
Click to show internal directories.
Click to hide internal directories.