Documentation ¶
Index ¶
- Constants
- Variables
- func ComputeResponse(secret []byte, client []byte, server []byte) []byte
- func NewTagService(c *Client) v2.TagService
- func RandomChallenge() []byte
- func StartServer(config *Config) (net.Listener, error)
- type AddLeaseArgs
- type Client
- type Color
- type Coloring
- type Config
- type FreeCallback
- type KeyLease
- type Leases
- type Log
- type Master
- func (t *Master) AddLease(args *AddLeaseArgs, reply *bool) error
- func (t *Master) GC(label *string, reply *v2.Key) error
- func (t *Master) Get(label *string, reply *v2.Key) error
- func (t *Master) GetAll(ignored *string, reply *[]NameAndKey) error
- func (t *Master) GetConfig(nothing *string, reply *Config) error
- func (t *Master) Set(args *SetArgs, reply *bool) error
- type NameAndKey
- type Roots
- func (r *Roots) AddLease(expiry uint64, key *v2.Key)
- func (r *Roots) Expire(oldestToKeep uint64) []*v2.Key
- func (r *Roots) GC(dirService v2.DirectoryService, chunks v2.IterableChunkService, ...)
- func (r *Roots) Get(label string) *v2.Key
- func (r *Roots) GetNamedRoots() []NameAndKey
- func (r *Roots) GetRoots() []*v2.Key
- func (r *Roots) Set(label string, key *v2.Key)
- type SetArgs
- type TagService
Constants ¶
View Source
const CHALLENGE_SIZE int = 64
View Source
const GREETING string = "minion_v1\n"
Variables ¶
View Source
var NO_SUCH_KEY error = errors.New("No such key")
Functions ¶
func NewTagService ¶
func NewTagService(c *Client) v2.TagService
func RandomChallenge ¶
func RandomChallenge() []byte
Types ¶
type AddLeaseArgs ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAll ¶
func (c *Client) GetAll() ([]NameAndKey, error)
type FreeCallback ¶
type NameAndKey ¶
type Roots ¶
type Roots struct {
// contains filtered or unexported fields
}
func (*Roots) Expire ¶
Find all leases which have expired, remove them and return the list of the removed
func (*Roots) GC ¶
func (r *Roots) GC(dirService v2.DirectoryService, chunks v2.IterableChunkService, freeCallback FreeCallback)
func (*Roots) GetNamedRoots ¶
func (r *Roots) GetNamedRoots() []NameAndKey
return a snapshot of all root keeps to be used for reachability analysis
type TagService ¶
type TagService struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.