migrationadmin

package
v0.9.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusActive     = "ACTIVE"
	StatusInactivate = "INACTIVE"
)

Variables

This section is empty.

Functions

func INSCONSTRUCTOR_New

func INSCONSTRUCTOR_New(data []byte) ([]byte, []byte, error)

func INSMETHOD_ActivateDaemon

func INSMETHOD_ActivateDaemon(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_CheckActiveDaemon

func INSMETHOD_CheckActiveDaemon(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_DeactivateDaemon

func INSMETHOD_DeactivateDaemon(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetActiveDaemons

func INSMETHOD_GetActiveDaemons(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetAllMigrationDaemon

func INSMETHOD_GetAllMigrationDaemon(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetCode

func INSMETHOD_GetCode(object []byte, data []byte) ([]byte, []byte, error)

func INSMETHOD_GetPrototype

func INSMETHOD_GetPrototype(object []byte, data []byte) ([]byte, []byte, error)

func INS_META_INFO

func INS_META_INFO() []map[string]string

func Initialize

func Initialize() XXX_insolar.ContractWrapper

Types

type MigrationAdmin

type MigrationAdmin struct {
	foundation.BaseContract
	MigrationDaemon      foundation.StableMap
	MigrationAdminMember insolar.Reference
}

MigrationAdmin manage and change status for migration daemon.

func New

func New(migrationDaemons [insolar.GenesisAmountMigrationDaemonMembers]insolar.Reference, migrationAdminMember insolar.Reference) (*MigrationAdmin, error)

Create new Migration admin in genesis.

func (MigrationAdmin) ActivateDaemon

func (mA MigrationAdmin) ActivateDaemon(daemonMember string, caller insolar.Reference) error

Activate migration daemon.

func (MigrationAdmin) CheckActiveDaemon

func (mA MigrationAdmin) CheckActiveDaemon(daemonMember string) (bool, error)

Check this member is migration daemon or mot. ins:immutable

func (MigrationAdmin) DeactivateDaemon

func (mA MigrationAdmin) DeactivateDaemon(daemonMember string, caller insolar.Reference) error

Deactivate migration daemon.

func (MigrationAdmin) GetActiveDaemons

func (mA MigrationAdmin) GetActiveDaemons() ([]string, error)

Return only active daemons. ins:immutable

func (MigrationAdmin) GetAllMigrationDaemon

func (mA MigrationAdmin) GetAllMigrationDaemon() (foundation.StableMap, error)

Return stable map migration daemon. ins:immutable

Jump to

Keyboard shortcuts

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