Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Put ¶
type Put interface { // ReadCreator reads the user ID of the subnet creator. // Returns an error if the ID is missing. ReadCreator(id *user.ID) error // ReadInfo reads information about a subnet to be created. ReadInfo(info *subnet.Info) error // contains filtered or unexported methods }
Put represents a notification about NeoFS subnet creation. Generated by a contract when intending to create a subnet.
type PutValidator ¶
type PutValidator struct{}
PutValidator asserts intent to create a subnet.
func (PutValidator) Assert ¶
func (x PutValidator) Assert(event Put) error
Assert processes the attempt to create a subnet. It approves the creation through nil return.
All read errors of Put are forwarded.
It returns an error on:
- zero subnet creation;
- empty ID or different from the one wired into info;
- empty owner ID or different from the one wired into info.
Click to show internal directories.
Click to hide internal directories.