Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyPublicKeys is returned when no HCS keys are provided. ErrEmptyPublicKeys = errors.New("HCS public keys could not be empty") // ErrEmptyBearerToken is returned when no bearer token is provided. ErrEmptyBearerToken = errors.New("Bearer token could not be empty") )
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Credentials interface { GetBox(context.Context, *object.Address) (*accessbox.Box, error) Put(context.Context, *cid.ID, *owner.ID, *accessbox.AccessBox, ...*keys.PublicKey) (*object.Address, error) }
Credentials is a bearer token get/put interface.
func New ¶
func New(conns pool.Pool, key *keys.PrivateKey) Credentials
New creates new Credentials instance using given cli and key.
Click to show internal directories.
Click to hide internal directories.