Documentation ¶
Overview ¶
ThreatSpec package github.com/pki-io/core/fs as fs
ThreatSpec package github.com/pki-io/core/fs as fs
Index ¶
- func Exists(path string) (bool, error)
- func ReadFile(path string) (string, error)
- type Api
- func (api *Api) Authenticate(id, key string) error
- func (api *Api) Connect(path string) error
- func (api *Api) DeletePrivate(id, name string) error
- func (api *Api) GetPrivate(dstId string, name string) (string, error)
- func (api *Api) GetPublic(dstId string, name string) (string, error)
- func (api *Api) IncomingSize(id, queue string) (int, error)
- func (api *Api) OutgoingSize(id, queue string) (int, error)
- func (api *Api) Pop(srcId, name, queue string) (string, error)
- func (api *Api) PopIncoming(srcId, queue string) (string, error)
- func (api *Api) PopOutgoing(srcId, queue string) (string, error)
- func (api *Api) Push(dstId, name, queue, content string) error
- func (api *Api) PushIncoming(dstId, queue, content string) error
- func (api *Api) PushOutgoing(dstId, queue, content string) error
- func (api *Api) SendPrivate(dstId string, name string, content string) error
- func (api *Api) SendPublic(dstId string, name string, content string) error
- func (api *Api) Size(id, name, queue string) (int, error)
- type Home
- type Local
- func (local *Local) ChangeToDirectory(dir string) error
- func (local *Local) CreateDirectory(dir string) error
- func (local *Local) Delete(name string) error
- func (local *Local) Exists(name string) (bool, error)
- func (local *Local) FullPath(name string) string
- func (local *Local) Read(name string) (string, error)
- func (local *Local) Write(name, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Api ¶
func (*Api) Authenticate ¶
func (*Api) DeletePrivate ¶
func (*Api) PushIncoming ¶
func (*Api) PushOutgoing ¶
func (*Api) SendPrivate ¶
func (*Api) SendPublic ¶
type Local ¶
type Local struct {
Path string
}
func (*Local) ChangeToDirectory ¶
func (*Local) CreateDirectory ¶
Click to show internal directories.
Click to hide internal directories.