Documentation
¶
Index ¶
- Variables
- type ACT
- func (t *ACT) CreateUpdateACT(actName string, publicKeyGrant, publicKeyRevoke *ecdsa.PublicKey) (*Act, error)
- func (t *ACT) GetACT(actName string) (*Act, error)
- func (t *ACT) GetContentList(actName string) ([]*Content, error)
- func (t *ACT) GetGrantees(actName string) ([]string, error)
- func (t *ACT) GetList() (List, error)
- func (t *ACT) GetPodAccess(actName string) (swarm.Address, error)
- func (t *ACT) GrantAccess(actName string, address swarm.Address) (*Content, error)
- func (t *ACT) SaveGrantedPod(actName string, c *Content) error
- type Act
- type Content
- type List
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrACTAlreadyExists = errors.New("ACT already exists") ErrACTDoesNowExist = errors.New("ACT does not exist") )
Functions ¶
This section is empty.
Types ¶
type ACT ¶
type ACT struct {
// contains filtered or unexported fields
}
func NewACT ¶
func NewACT(client blockstore.Client, feed *feed.API, account *account.Account, m taskmanager.TaskManagerGO, logger logging.Logger) *ACT
func (*ACT) CreateUpdateACT ¶
func (*ACT) GrantAccess ¶
type Act ¶
type Act struct { Name string `json:"name"` HistoryRef string `json:"historyRef"` GranteesRef string `json:"granteesRef"` CreatedAt time.Time `json:"createdAt"` Content []*Content `json:"content"` }
Act represents an Access Control Trie (ACT) with its metadata, grantees, and associated content.
Click to show internal directories.
Click to hide internal directories.