externals

package
v2.7.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: BSD-3-Clause, BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RedditPrefix = "https://www.reddit.com"
	RedditSub    = RedditPrefix + "/r/keybaseproofs"
)
View Source
const SupportedVersion int = 1

SupportedVersion is which version of ParamProofs is supported by this client.

Variables

This section is empty.

Functions

func APIBase

func APIBase(un string) string

func AssertionParseAndOnly

func AssertionParseAndOnly(g *libkb.GlobalContext, s string) (libkb.AssertionExpression, error)

func AssertionParseAndOnlyStatic

func AssertionParseAndOnlyStatic(s string) (libkb.AssertionExpression, error)

func CheckKarma

func CheckKarma(m libkb.MetaContext, un string) (int, error)

func CheckProofPvl added in v1.0.21

func IsSocialAssertion

func IsSocialAssertion(g *libkb.GlobalContext, s string) bool

func KarmaURL

func KarmaURL(un string) string

func MakeAssertionContext

func MakeAssertionContext(g *libkb.GlobalContext) libkb.AssertionContext

func NewGlobalContextInit

func NewGlobalContextInit() *libkb.GlobalContext

func NewParamProofStoreAndInstall

func NewParamProofStoreAndInstall(g *libkb.GlobalContext) libkb.MerkleStore

NewParamProofStore creates a new source and installs it into G.

func NormalizeSocialAssertion

func NormalizeSocialAssertion(g *libkb.GlobalContext, s string) (keybase1.SocialAssertion, bool)

func NormalizeSocialAssertionStatic

func NormalizeSocialAssertionStatic(s string) (keybase1.SocialAssertion, bool)

func ParseAssertionList added in v1.0.30

func ParseAssertionList(g *libkb.GlobalContext, s string) ([]libkb.AssertionExpression, error)

func ParseAssertionsWithReaders added in v1.0.30

func ParseAssertionsWithReaders(g *libkb.GlobalContext, s string) (writers, readers []libkb.AssertionExpression, err error)

func ParseWeb

func ParseWeb(s string) (hostname string, prot string, err error)

Types

type DNSChecker

type DNSChecker struct {
	// contains filtered or unexported fields
}

func (*DNSChecker) GetTorError

func (rc *DNSChecker) GetTorError() libkb.ProofError

type DNSServiceType

type DNSServiceType struct{ libkb.BaseServiceType }

func (DNSServiceType) AllStringKeys

func (t DNSServiceType) AllStringKeys() []string

func (DNSServiceType) CheckProofText

func (t DNSServiceType) CheckProofText(text string, id keybase1.SigID, sig string) (err error)

func (DNSServiceType) DisplayName

func (t DNSServiceType) DisplayName(un string) string

func (DNSServiceType) FormatProofText

func (t DNSServiceType) FormatProofText(ctx libkb.MetaContext, ppr *libkb.PostProofRes,
	kbUsername string, sigID keybase1.SigID) (string, error)

func (DNSServiceType) GetAPIArgKey

func (t DNSServiceType) GetAPIArgKey() string

func (DNSServiceType) GetPrompt

func (t DNSServiceType) GetPrompt() string

func (DNSServiceType) GetProofType

func (t DNSServiceType) GetProofType() string

func (DNSServiceType) GetTypeName

func (t DNSServiceType) GetTypeName() string

func (DNSServiceType) LastWriterWins

func (t DNSServiceType) LastWriterWins() bool

func (DNSServiceType) MakeProofChecker

func (DNSServiceType) NormalizeRemoteName

func (t DNSServiceType) NormalizeRemoteName(_ libkb.MetaContext, s string) (string, error)

func (DNSServiceType) NormalizeUsername

func (t DNSServiceType) NormalizeUsername(s string) (string, error)

func (DNSServiceType) PostInstructions

func (t DNSServiceType) PostInstructions(un string) *libkb.Markup

func (DNSServiceType) RecheckProofPosting

func (t DNSServiceType) RecheckProofPosting(tryNumber int, status keybase1.ProofStatus, dn string) (warning *libkb.Markup, err error)

func (DNSServiceType) ToServiceJSON

func (t DNSServiceType) ToServiceJSON(un string) *jsonw.Wrapper

type FacebookChecker

type FacebookChecker struct {
	// contains filtered or unexported fields
}

func (*FacebookChecker) GetTorError

func (rc *FacebookChecker) GetTorError() libkb.ProofError

type FacebookServiceType

type FacebookServiceType struct{ libkb.BaseServiceType }

func (FacebookServiceType) AllStringKeys

func (t FacebookServiceType) AllStringKeys() []string

func (FacebookServiceType) CheckProofText

func (t FacebookServiceType) CheckProofText(text string, id keybase1.SigID, sig string) error

func (FacebookServiceType) DisplayName

func (t FacebookServiceType) DisplayName(un string) string

func (FacebookServiceType) GetPrompt

func (t FacebookServiceType) GetPrompt() string

func (FacebookServiceType) GetProofType

func (t FacebookServiceType) GetProofType() string

func (FacebookServiceType) GetTypeName

func (t FacebookServiceType) GetTypeName() string

func (FacebookServiceType) MakeProofChecker

func (FacebookServiceType) NormalizeRemoteName

func (t FacebookServiceType) NormalizeRemoteName(m libkb.MetaContext, s string) (string, error)

func (FacebookServiceType) NormalizeUsername

func (t FacebookServiceType) NormalizeUsername(s string) (string, error)

func (FacebookServiceType) PostInstructions

func (t FacebookServiceType) PostInstructions(un string) *libkb.Markup

func (FacebookServiceType) RecheckProofPosting

func (t FacebookServiceType) RecheckProofPosting(tryNumber int, status keybase1.ProofStatus, _ string) (warning *libkb.Markup, err error)

func (FacebookServiceType) ToServiceJSON

func (t FacebookServiceType) ToServiceJSON(un string) *jsonw.Wrapper

type GenericSocialProofChecker

type GenericSocialProofChecker struct {
	// contains filtered or unexported fields
}

func (*GenericSocialProofChecker) CheckStatus

func (*GenericSocialProofChecker) GetTorError

func (rc *GenericSocialProofChecker) GetTorError() libkb.ProofError

type GenericSocialProofConfig

type GenericSocialProofConfig struct {
	keybase1.ParamProofServiceConfig
	// contains filtered or unexported fields
}

Validated configuration from the server

type GenericSocialProofServiceType

type GenericSocialProofServiceType struct {
	libkb.BaseServiceType
	// contains filtered or unexported fields
}

func (GenericSocialProofServiceType) AllStringKeys

func (t GenericSocialProofServiceType) AllStringKeys() []string

func (GenericSocialProofServiceType) CheckProofText

func (t GenericSocialProofServiceType) CheckProofText(text string, id keybase1.SigID, sig string) (err error)

func (GenericSocialProofServiceType) DisplayName

func (t GenericSocialProofServiceType) DisplayName(username string) string

func (GenericSocialProofServiceType) FormatProofText

func (t GenericSocialProofServiceType) FormatProofText(m libkb.MetaContext, ppr *libkb.PostProofRes,
	kbUsername string, sigID keybase1.SigID) (string, error)

func (GenericSocialProofServiceType) GetPrompt

func (t GenericSocialProofServiceType) GetPrompt() string

func (GenericSocialProofServiceType) GetProofType

func (t GenericSocialProofServiceType) GetProofType() string

func (GenericSocialProofServiceType) GetTypeName

func (t GenericSocialProofServiceType) GetTypeName() string

func (GenericSocialProofServiceType) IsDevelOnly

func (t GenericSocialProofServiceType) IsDevelOnly() bool

func (GenericSocialProofServiceType) MakeProofChecker

func (GenericSocialProofServiceType) NormalizeRemoteName

func (t GenericSocialProofServiceType) NormalizeRemoteName(m libkb.MetaContext, s string) (ret string, err error)

func (GenericSocialProofServiceType) NormalizeUsername

func (t GenericSocialProofServiceType) NormalizeUsername(s string) (string, error)

func (GenericSocialProofServiceType) PostInstructions

func (t GenericSocialProofServiceType) PostInstructions(username string) *libkb.Markup

func (GenericSocialProofServiceType) RecheckProofPosting

func (t GenericSocialProofServiceType) RecheckProofPosting(tryNumber int, status keybase1.ProofStatus, _ string) (warning *libkb.Markup, err error)

func (GenericSocialProofServiceType) ToServiceJSON

func (t GenericSocialProofServiceType) ToServiceJSON(username string) *jsonw.Wrapper

type GithubChecker

type GithubChecker struct {
	// contains filtered or unexported fields
}

func (*GithubChecker) GetTorError

func (rc *GithubChecker) GetTorError() libkb.ProofError

type GithubServiceType

type GithubServiceType struct{ libkb.BaseServiceType }

func (GithubServiceType) AllStringKeys

func (t GithubServiceType) AllStringKeys() []string

func (GithubServiceType) CheckProofText

func (t GithubServiceType) CheckProofText(text string, id keybase1.SigID, sig string) (err error)

func (GithubServiceType) DisplayName

func (t GithubServiceType) DisplayName(un string) string

func (GithubServiceType) GetPrompt

func (t GithubServiceType) GetPrompt() string

func (GithubServiceType) GetProofType

func (t GithubServiceType) GetProofType() string

func (GithubServiceType) GetTypeName

func (t GithubServiceType) GetTypeName() string

func (GithubServiceType) MakeProofChecker

func (GithubServiceType) NormalizeRemoteName

func (t GithubServiceType) NormalizeRemoteName(m libkb.MetaContext, s string) (ret string, err error)

func (GithubServiceType) NormalizeUsername

func (t GithubServiceType) NormalizeUsername(s string) (string, error)

func (GithubServiceType) PostInstructions

func (t GithubServiceType) PostInstructions(un string) *libkb.Markup

func (GithubServiceType) RecheckProofPosting

func (t GithubServiceType) RecheckProofPosting(tryNumber int, status keybase1.ProofStatus, _ string) (warning *libkb.Markup, err error)

func (GithubServiceType) ToServiceJSON

func (t GithubServiceType) ToServiceJSON(un string) *jsonw.Wrapper

type HackerNewsChecker

type HackerNewsChecker struct {
	// contains filtered or unexported fields
}

func (*HackerNewsChecker) CheckStatus

func (*HackerNewsChecker) GetTorError

func (h *HackerNewsChecker) GetTorError() libkb.ProofError

type HackerNewsServiceType

type HackerNewsServiceType struct{ libkb.BaseServiceType }

func (HackerNewsServiceType) AllStringKeys

func (t HackerNewsServiceType) AllStringKeys() []string

func (HackerNewsServiceType) CheckProofText

func (t HackerNewsServiceType) CheckProofText(text string, id keybase1.SigID, sig string) (err error)

func (HackerNewsServiceType) DisplayName

func (t HackerNewsServiceType) DisplayName(un string) string

func (HackerNewsServiceType) GetPrompt

func (t HackerNewsServiceType) GetPrompt() string

func (HackerNewsServiceType) GetProofType

func (t HackerNewsServiceType) GetProofType() string

func (HackerNewsServiceType) GetTypeName

func (t HackerNewsServiceType) GetTypeName() string

func (HackerNewsServiceType) MakeProofChecker

func (HackerNewsServiceType) NormalizeRemoteName

func (t HackerNewsServiceType) NormalizeRemoteName(m libkb.MetaContext, s string) (string, error)

func (HackerNewsServiceType) NormalizeUsername

func (t HackerNewsServiceType) NormalizeUsername(s string) (string, error)

func (HackerNewsServiceType) PostInstructions

func (t HackerNewsServiceType) PostInstructions(un string) *libkb.Markup

func (HackerNewsServiceType) PreProofCheck

func (t HackerNewsServiceType) PreProofCheck(m libkb.MetaContext, un string) (markup *libkb.Markup, err error)

func (HackerNewsServiceType) RecheckProofPosting

func (t HackerNewsServiceType) RecheckProofPosting(tryNumber int, status keybase1.ProofStatus, _ string) (warning *libkb.Markup, err error)

func (HackerNewsServiceType) ToServiceJSON

func (t HackerNewsServiceType) ToServiceJSON(un string) *jsonw.Wrapper

type RedditChecker

type RedditChecker struct {
	// contains filtered or unexported fields
}

func (*RedditChecker) GetTorError

func (rc *RedditChecker) GetTorError() libkb.ProofError

type RedditServiceType

type RedditServiceType struct{ libkb.BaseServiceType }

func (RedditServiceType) AllStringKeys

func (t RedditServiceType) AllStringKeys() []string

func (RedditServiceType) CheckProofText

func (t RedditServiceType) CheckProofText(text string, id keybase1.SigID, sig string) (err error)

func (RedditServiceType) DisplayName

func (t RedditServiceType) DisplayName(un string) string

func (RedditServiceType) FormatProofText

func (t RedditServiceType) FormatProofText(m libkb.MetaContext, ppr *libkb.PostProofRes,
	kbUsername string, sigID keybase1.SigID) (res string, err error)

func (RedditServiceType) GetPrompt

func (t RedditServiceType) GetPrompt() string

func (RedditServiceType) GetProofType

func (t RedditServiceType) GetProofType() string

func (RedditServiceType) GetTypeName

func (t RedditServiceType) GetTypeName() string

func (RedditServiceType) MakeProofChecker

func (RedditServiceType) NormalizeRemoteName

func (t RedditServiceType) NormalizeRemoteName(m libkb.MetaContext, s string) (ret string, err error)

func (RedditServiceType) NormalizeUsername

func (t RedditServiceType) NormalizeUsername(s string) (string, error)

func (RedditServiceType) PostInstructions

func (t RedditServiceType) PostInstructions(un string) *libkb.Markup

func (RedditServiceType) RecheckProofPosting

func (t RedditServiceType) RecheckProofPosting(tryNumber int, status keybase1.ProofStatus, _ string) (warning *libkb.Markup, err error)

func (RedditServiceType) ToServiceJSON

func (t RedditServiceType) ToServiceJSON(un string) *jsonw.Wrapper

type RooterChecker

type RooterChecker struct {
	// contains filtered or unexported fields
}

func (*RooterChecker) CheckStatus

func (*RooterChecker) GetTorError

func (rc *RooterChecker) GetTorError() libkb.ProofError

type RooterServiceType

type RooterServiceType struct{ libkb.BaseServiceType }

func (RooterServiceType) AllStringKeys

func (t RooterServiceType) AllStringKeys() []string

func (RooterServiceType) CheckProofText

func (t RooterServiceType) CheckProofText(text string, id keybase1.SigID, sig string) (err error)

func (RooterServiceType) DisplayName

func (t RooterServiceType) DisplayName(un string) string

func (RooterServiceType) GetPrompt

func (t RooterServiceType) GetPrompt() string

func (RooterServiceType) GetProofType

func (t RooterServiceType) GetProofType() string

func (RooterServiceType) GetTypeName

func (t RooterServiceType) GetTypeName() string

func (RooterServiceType) IsDevelOnly

func (t RooterServiceType) IsDevelOnly() bool

func (RooterServiceType) MakeProofChecker

func (RooterServiceType) NormalizeRemoteName

func (t RooterServiceType) NormalizeRemoteName(_ libkb.MetaContext, s string) (string, error)

func (RooterServiceType) NormalizeUsername

func (t RooterServiceType) NormalizeUsername(s string) (string, error)

func (RooterServiceType) PostInstructions

func (t RooterServiceType) PostInstructions(un string) *libkb.Markup

func (RooterServiceType) RecheckProofPosting

func (t RooterServiceType) RecheckProofPosting(tryNumber int, status keybase1.ProofStatus, _ string) (warning *libkb.Markup, err error)

func (RooterServiceType) ToServiceJSON

func (t RooterServiceType) ToServiceJSON(un string) *jsonw.Wrapper

type TwitterChecker

type TwitterChecker struct {
	// contains filtered or unexported fields
}

func (*TwitterChecker) GetTorError

func (rc *TwitterChecker) GetTorError() libkb.ProofError

type TwitterServiceType

type TwitterServiceType struct{ libkb.BaseServiceType }

func (TwitterServiceType) AllStringKeys

func (t TwitterServiceType) AllStringKeys() []string

func (TwitterServiceType) CheckProofText

func (t TwitterServiceType) CheckProofText(text string, id keybase1.SigID, sig string) (err error)

func (TwitterServiceType) DisplayName

func (t TwitterServiceType) DisplayName(un string) string

func (TwitterServiceType) GetPrompt

func (t TwitterServiceType) GetPrompt() string

func (TwitterServiceType) GetProofType

func (t TwitterServiceType) GetProofType() string

func (TwitterServiceType) GetTypeName

func (t TwitterServiceType) GetTypeName() string

func (TwitterServiceType) MakeProofChecker

func (TwitterServiceType) NormalizeRemoteName

func (t TwitterServiceType) NormalizeRemoteName(m libkb.MetaContext, s string) (string, error)

func (TwitterServiceType) NormalizeUsername

func (t TwitterServiceType) NormalizeUsername(s string) (string, error)

func (TwitterServiceType) PostInstructions

func (t TwitterServiceType) PostInstructions(un string) *libkb.Markup

func (TwitterServiceType) RecheckProofPosting

func (t TwitterServiceType) RecheckProofPosting(tryNumber int, status keybase1.ProofStatus, _ string) (warning *libkb.Markup, err error)

func (TwitterServiceType) ToServiceJSON

func (t TwitterServiceType) ToServiceJSON(un string) *jsonw.Wrapper

type WebChecker

type WebChecker struct {
	// contains filtered or unexported fields
}

func (*WebChecker) GetTorError

func (rc *WebChecker) GetTorError() libkb.ProofError

type WebServiceType

type WebServiceType struct {
	libkb.BaseServiceType
	// contains filtered or unexported fields
}

func (WebServiceType) AllStringKeys

func (t WebServiceType) AllStringKeys() []string

func (WebServiceType) CheckProofText

func (t WebServiceType) CheckProofText(text string, id keybase1.SigID, sig string) (err error)

func (WebServiceType) DisplayName

func (t WebServiceType) DisplayName(un string) string

func (WebServiceType) GetAPIArgKey

func (t WebServiceType) GetAPIArgKey() string

func (WebServiceType) GetPrompt

func (t WebServiceType) GetPrompt() string

func (WebServiceType) GetProofType

func (t WebServiceType) GetProofType() string

func (WebServiceType) GetTypeName

func (t WebServiceType) GetTypeName() string

func (WebServiceType) LastWriterWins

func (t WebServiceType) LastWriterWins() bool

func (WebServiceType) MakeProofChecker

func (WebServiceType) MarkupFilenames

func (t WebServiceType) MarkupFilenames(un string, mkp *libkb.Markup)

func (WebServiceType) NormalizeRemoteName

func (t WebServiceType) NormalizeRemoteName(m libkb.MetaContext, s string) (ret string, err error)

func (WebServiceType) NormalizeUsername

func (t WebServiceType) NormalizeUsername(s string) (ret string, err error)

func (WebServiceType) PostInstructions

func (t WebServiceType) PostInstructions(un string) *libkb.Markup

func (WebServiceType) PreProofWarning

func (t WebServiceType) PreProofWarning(un string) *libkb.Markup

func (WebServiceType) RecheckProofPosting

func (t WebServiceType) RecheckProofPosting(tryNumber int, status keybase1.ProofStatus, _ string) (warning *libkb.Markup, err error)

func (WebServiceType) ToServiceJSON

func (t WebServiceType) ToServiceJSON(un string) *jsonw.Wrapper

Jump to

Keyboard shortcuts

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