Documentation ¶
Index ¶
- func UploadImage(mctx libkb.MetaContext, filename string, teamID *keybase1.TeamID, ...) (err error)
- type FullCachingSource
- func (c *FullCachingSource) ClearCacheForName(ctx context.Context, name string, formats []keybase1.AvatarFormat) (err error)
- func (c *FullCachingSource) LoadTeams(ctx context.Context, teams []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
- func (c *FullCachingSource) LoadUsers(ctx context.Context, usernames []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
- func (c *FullCachingSource) StartBackgroundTasks()
- func (c *FullCachingSource) StopBackgroundTasks()
- type SimpleSource
- func (s *SimpleSource) ClearCacheForName(ctx context.Context, name string, formats []keybase1.AvatarFormat) (err error)
- func (s *SimpleSource) LoadTeams(ctx context.Context, teams []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
- func (s *SimpleSource) LoadUsers(ctx context.Context, usernames []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
- func (s *SimpleSource) StartBackgroundTasks()
- func (s *SimpleSource) StopBackgroundTasks()
- type Source
- type URLCachingSource
- func (c *URLCachingSource) ClearCacheForName(ctx context.Context, name string, formats []keybase1.AvatarFormat) (err error)
- func (c *URLCachingSource) LoadTeams(ctx context.Context, teams []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
- func (c *URLCachingSource) LoadUsers(ctx context.Context, usernames []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
- func (c *URLCachingSource) StartBackgroundTasks()
- func (c *URLCachingSource) StopBackgroundTasks()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UploadImage ¶
func UploadImage(mctx libkb.MetaContext, filename string, teamID *keybase1.TeamID, crop *keybase1.ImageCropRect) (err error)
Types ¶
type FullCachingSource ¶
type FullCachingSource struct { libkb.Contextified // contains filtered or unexported fields }
func NewFullCachingSource ¶
func NewFullCachingSource(g *libkb.GlobalContext, staleThreshold time.Duration, size int) *FullCachingSource
func (*FullCachingSource) ClearCacheForName ¶
func (c *FullCachingSource) ClearCacheForName(ctx context.Context, name string, formats []keybase1.AvatarFormat) (err error)
func (*FullCachingSource) LoadTeams ¶
func (c *FullCachingSource) LoadTeams(ctx context.Context, teams []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
func (*FullCachingSource) LoadUsers ¶
func (c *FullCachingSource) LoadUsers(ctx context.Context, usernames []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
func (*FullCachingSource) StartBackgroundTasks ¶
func (c *FullCachingSource) StartBackgroundTasks()
func (*FullCachingSource) StopBackgroundTasks ¶
func (c *FullCachingSource) StopBackgroundTasks()
type SimpleSource ¶
type SimpleSource struct {
libkb.Contextified
}
func NewSimpleSource ¶
func NewSimpleSource(g *libkb.GlobalContext) *SimpleSource
func (*SimpleSource) ClearCacheForName ¶
func (s *SimpleSource) ClearCacheForName(ctx context.Context, name string, formats []keybase1.AvatarFormat) (err error)
func (*SimpleSource) LoadTeams ¶
func (s *SimpleSource) LoadTeams(ctx context.Context, teams []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
func (*SimpleSource) LoadUsers ¶
func (s *SimpleSource) LoadUsers(ctx context.Context, usernames []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
func (*SimpleSource) StartBackgroundTasks ¶
func (s *SimpleSource) StartBackgroundTasks()
func (*SimpleSource) StopBackgroundTasks ¶
func (s *SimpleSource) StopBackgroundTasks()
type Source ¶
type Source interface { LoadUsers(context.Context, []string, []keybase1.AvatarFormat) (keybase1.LoadAvatarsRes, error) LoadTeams(context.Context, []string, []keybase1.AvatarFormat) (keybase1.LoadAvatarsRes, error) ClearCacheForName(context.Context, string, []keybase1.AvatarFormat) error StartBackgroundTasks() StopBackgroundTasks() }
func CreateSourceFromEnv ¶
func CreateSourceFromEnv(g *libkb.GlobalContext) (s Source)
type URLCachingSource ¶
type URLCachingSource struct { libkb.Contextified // contains filtered or unexported fields }
func NewURLCachingSource ¶
func NewURLCachingSource(g *libkb.GlobalContext, staleThreshold time.Duration, size int) *URLCachingSource
func (*URLCachingSource) ClearCacheForName ¶
func (c *URLCachingSource) ClearCacheForName(ctx context.Context, name string, formats []keybase1.AvatarFormat) (err error)
func (*URLCachingSource) LoadTeams ¶
func (c *URLCachingSource) LoadTeams(ctx context.Context, teams []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
func (*URLCachingSource) LoadUsers ¶
func (c *URLCachingSource) LoadUsers(ctx context.Context, usernames []string, formats []keybase1.AvatarFormat) (res keybase1.LoadAvatarsRes, err error)
func (*URLCachingSource) StartBackgroundTasks ¶
func (c *URLCachingSource) StartBackgroundTasks()
func (*URLCachingSource) StopBackgroundTasks ¶
func (c *URLCachingSource) StopBackgroundTasks()
Click to show internal directories.
Click to hide internal directories.