Versions in this module Expand all Collapse all v0 v0.2.0 Sep 20, 2017 Changes in this version + func Decrypt(source client.Source, sink client.Sink, interactive bool, force bool) error + func Encrypt(source client.Source, sink client.Sink, members []string) error + func GetMemberListIdentifiers(members []*Member) (identifiers []string) + func RemoveScope(name string) (err error) + type BufferSink struct + func NewBufferSink() *BufferSink + func (s *BufferSink) Bytes() []byte + func (s *BufferSink) Close() error + func (s *BufferSink) HitError(e error) error + func (s *BufferSink) Open() error + func (s *BufferSink) String() string + func (s *BufferSink) Write(b []byte) (n int, err error) + type BufferSource struct + func NewBufferSource(b *[]byte) *BufferSource + func (b *BufferSource) Close() error + func (b *BufferSource) CloseWithError(error) error + func (b *BufferSource) Open() error + func (b *BufferSource) Read(p []byte) (n int, err error) + type ExporterEnv struct + func NewExporterEnv(data *map[string]string) *ExporterEnv + func (f *ExporterEnv) String() string + type ExporterHuman struct + func NewExporterHuman(data *map[string]string) *ExporterHuman + func (f *ExporterHuman) String() string + type ExporterJSON struct + func NewExporterJSON(data *map[string]string) *ExporterJSON + func (f *ExporterJSON) String() string + type ExporterYAML struct + func NewExporterYAML(data *map[string]string) *ExporterYAML + func (f *ExporterYAML) String() string + type Formatter interface + String func() string + type GlobalContext struct + KeybaseUser *keybase1.User + Log logger.Logger + var G *GlobalContext + func NewGlobalContext() *GlobalContext + func (g *GlobalContext) CurrentUser() (*keybase1.User, error) + func (g *GlobalContext) Dir() string + func (g *GlobalContext) DirExists() bool + func (g *GlobalContext) Init() + func (g *GlobalContext) LogError(err error) + type ImportOptions struct + Format string + type Importer interface + Parse func(data string) (map[string]interface{}, error) + type ImporterJSON struct + Options ImportOptions + func NewImporterJSON(options ImportOptions) *ImporterJSON + func (f *ImporterJSON) Parse(data string) (map[string]interface{}, error) + type ImporterYAML struct + Options ImportOptions + func NewImporterYAML(options ImportOptions) *ImporterYAML + func (f *ImporterYAML) Parse(data string) (map[string]interface{}, error) + type Member struct + AddedBy string + DateAdded time.Time + Identifier string + KeybaseUid keybase1.UID + Type string + func NewKeybaseMember(username string, uid keybase1.UID) *Member + func NewMemberFromKeybaseUser(user *keybase1.User) *Member + type SaltpackUI struct + func (s *SaltpackUI) SaltpackPromptForDecrypt(_ context.Context, arg keybase1.SaltpackPromptForDecryptArg) (err error) + func (s *SaltpackUI) SaltpackVerifySuccess(_ context.Context, arg keybase1.SaltpackVerifySuccessArg) error + type Scope struct + Data map[string]string + Members []Member + Name string + func CreateScope(name string) (scope *Scope, err error) + func GetScope(name string) (scope *Scope, err error) + func NewScope(name string) (scope *Scope) + func (s *Scope) AddMembers(members []*Member, adder *Member) []*Member + func (s *Scope) Del(key string) + func (s *Scope) Exists() bool + func (s *Scope) Export(format string) (string, error) + func (s *Scope) Get(key string) string + func (s *Scope) Import(contents string, options ImportOptions) error + func (s *Scope) KeybaseSinkPath() string + func (s *Scope) Load() error + func (s *Scope) MemberExists(identifier string) bool + func (s *Scope) MemberPointers() (members []*Member) + func (s *Scope) Path() string + func (s *Scope) RemoveMembersByIdentifiers(members []string) []*Member + func (s *Scope) Save() error + func (s *Scope) Set(key string, value string) + func (s *Scope) ToJSON() ([]byte, error) + type StreamFilter struct + func NewStreamFilter(source client.Source, sink client.Sink) *StreamFilter + func (s *StreamFilter) ClientOpen() (snk, src keybase1.Stream, err error) + func (s *StreamFilter) Close(inerr error) error + func (s *StreamFilter) Open() error