fs

package
v0.0.0-...-5f4467c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2017 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Overview

ThreatSpec package github.com/pki-io/core/fs as fs

ThreatSpec package github.com/pki-io/core/fs as fs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) (bool, error)

func ReadFile

func ReadFile(path string) (string, error)

Types

type Api

type Api struct {
	api.Api
}

func NewAPI

func NewAPI(path string) (*Api, error)

func (*Api) Authenticate

func (api *Api) Authenticate(id, key string) error

func (*Api) Connect

func (api *Api) Connect(path string) error

func (*Api) DeletePrivate

func (api *Api) DeletePrivate(id, name string) error

func (*Api) GetPrivate

func (api *Api) GetPrivate(dstId string, name string) (string, error)

func (*Api) GetPublic

func (api *Api) GetPublic(dstId string, name string) (string, error)

func (*Api) IncomingSize

func (api *Api) IncomingSize(id, queue string) (int, error)

func (*Api) OutgoingSize

func (api *Api) OutgoingSize(id, queue string) (int, error)

func (*Api) Pop

func (api *Api) Pop(srcId, name, queue string) (string, error)

func (*Api) PopIncoming

func (api *Api) PopIncoming(srcId, queue string) (string, error)

func (*Api) PopOutgoing

func (api *Api) PopOutgoing(srcId, queue string) (string, error)

func (*Api) Push

func (api *Api) Push(dstId, name, queue, content string) error

func (*Api) PushIncoming

func (api *Api) PushIncoming(dstId, queue, content string) error

func (*Api) PushOutgoing

func (api *Api) PushOutgoing(dstId, queue, content string) error

func (*Api) SendPrivate

func (api *Api) SendPrivate(dstId string, name string, content string) error

func (*Api) SendPublic

func (api *Api) SendPublic(dstId string, name string, content string) error

func (*Api) Size

func (api *Api) Size(id, name, queue string) (int, error)

type Home

type Home struct {
	Path string
}

func NewHome

func NewHome(path string) (*Home, error)

func (*Home) Delete

func (home *Home) Delete(name string) error

func (*Home) Exists

func (home *Home) Exists(name string) (bool, error)

func (*Home) FullPath

func (home *Home) FullPath(name string) string

func (*Home) Read

func (home *Home) Read(name string) (string, error)

func (*Home) Write

func (home *Home) Write(name, content string) error

type Local

type Local struct {
	Path string
}

func NewLocal

func NewLocal(path string) (*Local, error)

func (*Local) ChangeToDirectory

func (local *Local) ChangeToDirectory(dir string) error

func (*Local) CreateDirectory

func (local *Local) CreateDirectory(dir string) error

func (*Local) Delete

func (local *Local) Delete(name string) error

func (*Local) Exists

func (local *Local) Exists(name string) (bool, error)

func (*Local) FullPath

func (local *Local) FullPath(name string) string

func (*Local) Read

func (local *Local) Read(name string) (string, error)

func (*Local) Write

func (local *Local) Write(name, content string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL