rocks

package
v0.0.0-...-2b7f6e1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommunityMemberPull

func CommunityMemberPull(teamID model.TeamID) error

CommunityMemberPull grabs the member list from the associated community at enl.rocks and adds each agent to the team

func CommunitySync

func CommunitySync(msg json.RawMessage) error

CommunitySync is called from the https server when it receives a push notification

func Search(id string) (*model.RocksAgent, error)

Search checks a agent at enl.rocks and returns an Agent

func Start

func Start(ctx context.Context)

Start is called from main() to initialize the config

Types

type Rocks

type Rocks struct{}

Rocks is the interface to satisfy auth.AuthProvider

func (*Rocks) Authorize

func (r *Rocks) Authorize(gid model.GoogleID) bool

Authorize checks Rocks to see if an agent is permitted to use Wasabee responses are cached for an hour unknown agents are permitted implicitly if an agent is marked as smurf at rocks, they are prohibited

Jump to

Keyboard shortcuts

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