Versions in this module Expand all Collapse all v1 v1.0.48 May 8, 2018 v1.0.44 Feb 21, 2018 Changes in this version + const MaxIDStringLength + const ServerTokenExpireIn + const ServerTokenServer + const StatusCodeServerError + const StatusCodeServerErrorBadRequest + const StatusCodeServerErrorBlockArchived + const StatusCodeServerErrorBlockDeleted + const StatusCodeServerErrorBlockNonExistent + const StatusCodeServerErrorMaxRefExceeded + const StatusCodeServerErrorNoPermission + const StatusCodeServerErrorNonceNonExistent + const StatusCodeServerErrorOverQuota + const StatusCodeServerErrorThrottle + const StatusCodeServerErrorUnauthorized + var ZeroID = ID + var ZeroRefNonce = RefNonce([8]byte{ ... }) + func BatchDowngradeReferences(ctx context.Context, log logger.Logger, tlfID tlf.ID, contexts ContextMap, ...) (doneRefs map[ID]map[RefNonce]int, finalError error) + func GetLiveCounts(doneRefs map[ID]map[RefNonce]int) map[ID]int + func IsThrottleError(err error) bool + func MakeAddReferenceArg(tlfID tlf.ID, id ID, context Context) keybase1.AddReferenceArg + func MakeGetBlockArg(tlfID tlf.ID, id ID, context Context) keybase1.GetBlockArg + func MakePutBlockAgainArg(tlfID tlf.ID, id ID, bContext Context, buf []byte, ...) keybase1.PutBlockAgainArg + func MakePutBlockArg(tlfID tlf.ID, id ID, bContext Context, buf []byte, ...) keybase1.PutBlockArg + func ParseGetBlockRes(res keybase1.GetBlockRes, resErr error) (buf []byte, serverHalf kbfscrypto.BlockCryptKeyServerHalf, err error) + func VerifyID(encodedEncryptedData []byte, id ID) error + type Context struct + BlockType keybase1.BlockType + Creator keybase1.UserOrTeamID + RefNonce RefNonce + Writer keybase1.UserOrTeamID + func MakeContext(creator keybase1.UserOrTeamID, writer keybase1.UserOrTeamID, nonce RefNonce, ...) Context + func MakeFirstContext(creator keybase1.UserOrTeamID, bType keybase1.BlockType) Context + func (c *Context) SetWriter(newWriter keybase1.UserOrTeamID) + func (c Context) GetBlockType() keybase1.BlockType + func (c Context) GetCreator() keybase1.UserOrTeamID + func (c Context) GetRefNonce() RefNonce + func (c Context) GetWriter() keybase1.UserOrTeamID + func (c Context) IsFirstRef() bool + func (c Context) String() string + type ContextMap map[ID][]Context + type ID struct + func FakeID(b byte) ID + func FakeIDAdd(id ID, b byte) ID + func FakeIDMul(id ID, b byte) ID + func IDFromBytes(idBytes []byte) (ID, error) + func IDFromString(idStr string) (ID, error) + func MakePermanentID(encodedEncryptedData []byte) (ID, error) + func MakeRandomIDInRange(start, end float64) (ID, error) + func MakeTemporaryID() (ID, error) + func (id *ID) UnmarshalBinary(data []byte) error + func (id *ID) UnmarshalText(buf []byte) error + func (id ID) Bytes() []byte + func (id ID) IsValid() bool + func (id ID) MarshalBinary() (data []byte, err error) + func (id ID) MarshalText() ([]byte, error) + func (id ID) String() string + type QuotaInfo struct + Folders map[string]*UsageStat + GitLimit int64 + Limit int64 + Total *UsageStat + func NewQuotaInfo() *QuotaInfo + func ParseGetQuotaInfoRes(codec kbfscodec.Codec, res []byte, resErr error) (info *QuotaInfo, err error) + func QuotaInfoDecode(b []byte, codec kbfscodec.Codec) (*QuotaInfo, error) + func (u *QuotaInfo) Accum(another *QuotaInfo, accumF func(int64, int64) int64) + func (u *QuotaInfo) AccumOne(change int, folder string, usage UsageType) + func (u *QuotaInfo) ToBytes(codec kbfscodec.Codec) ([]byte, error) + type RefNonce [8]byte + func MakeRefNonce() (RefNonce, error) + func (nonce RefNonce) String() string + type ServerError struct + Msg string + func (e ServerError) Error() string + func (e ServerError) ToStatus() (s keybase1.Status) + type ServerErrorBadRequest struct + Msg string + func (e ServerErrorBadRequest) Error() string + func (e ServerErrorBadRequest) ToStatus() (s keybase1.Status) + type ServerErrorBlockArchived struct + Msg string + func (e ServerErrorBlockArchived) Error() string + func (e ServerErrorBlockArchived) ToStatus() (s keybase1.Status) + type ServerErrorBlockDeleted struct + Msg string + func (e ServerErrorBlockDeleted) Error() string + func (e ServerErrorBlockDeleted) ToStatus() (s keybase1.Status) + type ServerErrorBlockNonExistent struct + Msg string + func (e ServerErrorBlockNonExistent) Error() string + func (e ServerErrorBlockNonExistent) ToStatus() (s keybase1.Status) + type ServerErrorMaxRefExceeded struct + Msg string + func (e ServerErrorMaxRefExceeded) Error() string + func (e ServerErrorMaxRefExceeded) ToStatus() (s keybase1.Status) + type ServerErrorNoPermission struct + Msg string + func (e ServerErrorNoPermission) Error() string + func (e ServerErrorNoPermission) ToStatus() (s keybase1.Status) + type ServerErrorNonceNonExistent struct + Msg string + func (e ServerErrorNonceNonExistent) Error() string + func (e ServerErrorNonceNonExistent) ToStatus() (s keybase1.Status) + type ServerErrorOverQuota struct + Limit int64 + Msg string + Throttled bool + Usage int64 + func (e ServerErrorOverQuota) Error() string + func (e ServerErrorOverQuota) ToStatus() (s keybase1.Status) + type ServerErrorThrottle struct + Msg string + func (e ServerErrorThrottle) Error() string + func (e ServerErrorThrottle) ToStatus() (s keybase1.Status) + type ServerErrorUnauthorized struct + Msg string + func (e ServerErrorUnauthorized) Error() string + func (e ServerErrorUnauthorized) ToStatus() (s keybase1.Status) + type ServerErrorUnwrapper struct + func (eu ServerErrorUnwrapper) MakeArg() interface{} + func (eu ServerErrorUnwrapper) UnwrapError(arg interface{}) (appError error, dispatchError error) + type UsageStat struct + Blocks map[UsageType]int64 + Bytes map[UsageType]int64 + Mtime int64 + func NewUsageStat() *UsageStat + func (u *UsageStat) Accum(another *UsageStat, accumF func(int64, int64) int64) + func (u *UsageStat) AccumOne(change int, usage UsageType) + func (u *UsageStat) NonZero() bool + type UsageType int + const NumUsage + const UsageArchive + const UsageGitArchive + const UsageGitWrite + const UsageMDWrite + const UsageRead + const UsageWrite Incompatible versions in this module v2.11.0+incompatible Nov 30, 2018