Documentation ¶
Index ¶
- Variables
- func Call(ctx context.Context, ps types.PlugScope, req *pluginapi.Request) (resp *pluginapi.Response, err error)
- func Init(cfg *config.Plugin) error
- func MustShutdown()
- func Register(spec types.PluginSpec, builder Builder)
- func SourceInfo(ctx context.Context, ps types.PlugScope) (info string, err error)
- type Builder
- type DelayProcessPlugin
- type MemFS
- func (m *MemFS) CreateEntry(parentPath string, attr pluginapi.EntryAttr) (*pluginapi.Entry, error)
- func (m *MemFS) FindEntry(parentPath string, name string) (*pluginapi.Entry, error)
- func (m *MemFS) GetEntry(enPath string) (*pluginapi.Entry, error)
- func (m *MemFS) ListChildren(enPath string) ([]*pluginapi.Entry, error)
- func (m *MemFS) ReadAt(filePath string, dest []byte, off int64) (int64, error)
- func (m *MemFS) RemoveEntry(parentPath string, en *pluginapi.Entry) error
- func (m *MemFS) Trunc(filePath string) error
- func (m *MemFS) UpdateEntry(parentPath string, en *pluginapi.Entry) error
- func (m *MemFS) WriteAt(filePath string, data []byte, off int64) (int64, error)
- type MemFSPlugin
- func (d *MemFSPlugin) Close(ctx context.Context) error
- func (d *MemFSPlugin) CreateEntry(ctx context.Context, attr pluginapi.EntryAttr) (*pluginapi.Entry, error)
- func (d *MemFSPlugin) FindEntry(ctx context.Context, name string) (*pluginapi.Entry, error)
- func (d *MemFSPlugin) Fsync(ctx context.Context) error
- func (d *MemFSPlugin) IsGroup(ctx context.Context) (bool, error)
- func (d *MemFSPlugin) ListChildren(ctx context.Context) ([]*pluginapi.Entry, error)
- func (d *MemFSPlugin) Name() string
- func (d *MemFSPlugin) ReadAt(ctx context.Context, dest []byte, off int64) (int64, error)
- func (d *MemFSPlugin) RemoveEntry(ctx context.Context, en *pluginapi.Entry) error
- func (d *MemFSPlugin) Trunc(ctx context.Context) error
- func (d *MemFSPlugin) Type() types.PluginType
- func (d *MemFSPlugin) UpdateEntry(ctx context.Context, en *pluginapi.Entry) error
- func (d *MemFSPlugin) Version() string
- func (d *MemFSPlugin) WriteAt(ctx context.Context, data []byte, off int64) (int64, error)
- type MirrorPlugin
- type Plugin
- type ProcessPlugin
- type SourcePlugin
- type ThreeBodyPlugin
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("PluginNotFound")
)
Functions ¶
func MustShutdown ¶
func MustShutdown()
func Register ¶
func Register(spec types.PluginSpec, builder Builder)
Types ¶
type DelayProcessPlugin ¶
type DelayProcessPlugin struct {
// contains filtered or unexported fields
}
func (*DelayProcessPlugin) Name ¶
func (d *DelayProcessPlugin) Name() string
func (*DelayProcessPlugin) Type ¶
func (d *DelayProcessPlugin) Type() types.PluginType
func (*DelayProcessPlugin) Version ¶
func (d *DelayProcessPlugin) Version() string
type MemFS ¶
type MemFS struct {
// contains filtered or unexported fields
}
func (*MemFS) CreateEntry ¶
func (*MemFS) ListChildren ¶
func (*MemFS) RemoveEntry ¶
func (*MemFS) UpdateEntry ¶
type MemFSPlugin ¶
type MemFSPlugin struct {
// contains filtered or unexported fields
}
func NewMemFSPlugin ¶
func NewMemFSPlugin() *MemFSPlugin
func (*MemFSPlugin) CreateEntry ¶
func (*MemFSPlugin) ListChildren ¶
func (*MemFSPlugin) Name ¶
func (d *MemFSPlugin) Name() string
func (*MemFSPlugin) RemoveEntry ¶
func (*MemFSPlugin) Type ¶
func (d *MemFSPlugin) Type() types.PluginType
func (*MemFSPlugin) UpdateEntry ¶
func (*MemFSPlugin) Version ¶
func (d *MemFSPlugin) Version() string
type MirrorPlugin ¶
type MirrorPlugin interface { Plugin IsGroup(ctx context.Context) (bool, error) FindEntry(ctx context.Context, name string) (*pluginapi.Entry, error) CreateEntry(ctx context.Context, attr pluginapi.EntryAttr) (*pluginapi.Entry, error) UpdateEntry(ctx context.Context, en *pluginapi.Entry) error RemoveEntry(ctx context.Context, en *pluginapi.Entry) error ListChildren(ctx context.Context) ([]*pluginapi.Entry, error) WriteAt(ctx context.Context, data []byte, off int64) (int64, error) ReadAt(ctx context.Context, dest []byte, off int64) (int64, error) Fsync(ctx context.Context) error Trunc(ctx context.Context) error Close(ctx context.Context) error }
func NewMirrorPlugin ¶
type ProcessPlugin ¶
type SourcePlugin ¶
type SourcePlugin interface { ProcessPlugin SourceInfo() (string, error) }
type ThreeBodyPlugin ¶
type ThreeBodyPlugin struct{}
func (*ThreeBodyPlugin) Name ¶
func (d *ThreeBodyPlugin) Name() string
func (*ThreeBodyPlugin) SourceInfo ¶
func (d *ThreeBodyPlugin) SourceInfo() (string, error)
func (*ThreeBodyPlugin) Type ¶
func (d *ThreeBodyPlugin) Type() types.PluginType
func (*ThreeBodyPlugin) Version ¶
func (d *ThreeBodyPlugin) Version() string
Click to show internal directories.
Click to hide internal directories.