subnetevents

package
v0.27.1 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delete

type Delete interface {
	// contains filtered or unexported methods
}

Delete represents notification about NeoFS subnet removal. Generated by a contract when intending to delete a subnet.

type DeleteValidator

type DeleteValidator struct{}

DeleteValidator asserts intent to remove a subnet.

func (DeleteValidator) Assert

func (x DeleteValidator) Assert(event Delete) error

Assert processes the attempt to remove a subnet. Approves the removal through nil return.

All read errors of Delete are forwarded.

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.

type Put

type Put interface {

	// ReadCreator reads user ID of the subnet creator.
	// Returns an error if ID is missing.
	ReadCreator(id *owner.ID) error

	// ReadInfo reads information about subnet to be created.
	ReadInfo(info *subnet.Info) error
	// contains filtered or unexported methods
}

Put represents 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. Approves the creation through nil return.

All read errors of Put are forwarded.

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.

Jump to

Keyboard shortcuts

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