cmd

package
v0.0.0-...-b1adc2c Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootstrapCommitteeMemberStorage

func BootstrapCommitteeMemberStorage(storageDir string) *localfile.CommitteeMemberStorage

func BootstrapCommitteeService

func BootstrapCommitteeService(storageDir string) committee.Service

func BootstrapCommitteeStorage

func BootstrapCommitteeStorage(storageDir string) *localfile.CommitteeStorage

func BootstrapDecryptProposalApprovalStorage

func BootstrapDecryptProposalApprovalStorage(storageDir string) *localfile.DecryptProposalApprovalStorage

func BootstrapDecryptProposalStorage

func BootstrapDecryptProposalStorage(storageDir string) *localfile.DecryptProposalStorage

func BootstrapEncryptedRecordSliceStorage

func BootstrapEncryptedRecordSliceStorage(storageDir string) *localfile.EncryptedRecordSliceStorage

func BootstrapProposalService

func BootstrapProposalService(storageDir string) proposal.Service

func BootstrapRecordService

func BootstrapRecordService(storageDir string) record.Service

func BootstrapRecordStorage

func BootstrapRecordStorage(storageDir string) *localfile.RecordStorage

func NewCommitteeAddCommand

func NewCommitteeAddCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewCommitteeCommand

func NewCommitteeCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewCommitteeGetCommand

func NewCommitteeGetCommand(globalOptions *GlobalOptions) *cobra.Command

func NewCommitteeListCommand

func NewCommitteeListCommand(globalOptions *GlobalOptions) *cobra.Command

func NewCommitteeMemberAddCommand

func NewCommitteeMemberAddCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewCommitteeMemberCommand

func NewCommitteeMemberCommand(globalOption *GlobalOptions) (*cobra.Command, error)

func NewCommitteeMemberListCommand

func NewCommitteeMemberListCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewCommitteeMemberRemoveCommand

func NewCommitteeMemberRemoveCommand(*GlobalOptions) *cobra.Command

func NewCommitteeRemoveCommand

func NewCommitteeRemoveCommand(*GlobalOptions) *cobra.Command

func NewDecryptProposalApproveCommand

func NewDecryptProposalApproveCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewDecryptProposalCommand

func NewDecryptProposalCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewDecryptProposalCreateCommand

func NewDecryptProposalCreateCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewDecryptProposalGetEncryptedSliceCmd

func NewDecryptProposalGetEncryptedSliceCmd(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewDecryptProposalInspectCommand

func NewDecryptProposalInspectCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewDecryptProposalListCommand

func NewDecryptProposalListCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewRecordAddCommand

func NewRecordAddCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewRecordClearCommand

func NewRecordClearCommand(*GlobalOptions) *cobra.Command

func NewRecordCommand

func NewRecordCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewRecordDecryptCommand

func NewRecordDecryptCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewRecordListCommand

func NewRecordListCommand(globalOptions *GlobalOptions) (*cobra.Command, error)

func NewRootCommand

func NewRootCommand() (*cobra.Command, error)

Types

type CommitteeAddOptions

type CommitteeAddOptions struct {
	// Description is the optional description for this committee.
	Description string
}

CommitteeAddOptions is the options for the committee add command.

func NewCommitteeAddOptions

func NewCommitteeAddOptions(description string) *CommitteeAddOptions

type CommitteeMemberAddOptions

type CommitteeMemberAddOptions struct {
	CommitteeName     string
	Description       string
	PublicKeyFilePath string
}

func NewCommitteeMemberAddOptions

func NewCommitteeMemberAddOptions(committeeName string, description string, publicKeyFilePath string) *CommitteeMemberAddOptions

type CommitteeMemberListOptions

type CommitteeMemberListOptions struct {
	CommitteeName string
}

func NewCommitteeMemberListOptions

func NewCommitteeMemberListOptions(committeeName string) *CommitteeMemberListOptions

type DecryptProposalApproveOptions

type DecryptProposalApproveOptions struct {
	ProposalID string
}

func NewDecryptProposalApproveOptions

func NewDecryptProposalApproveOptions(proposalID string) *DecryptProposalApproveOptions

type DecryptProposalCreateOptions

type DecryptProposalCreateOptions struct {
	RecordID string
	Reason   string
}

func NewDecryptProposalCreateOptions

func NewDecryptProposalCreateOptions(recordID string, reason string) *DecryptProposalCreateOptions

type DecryptProposalInspectOptions

type DecryptProposalInspectOptions struct {
	ProposalID string
}

func NewDecryptProposalInspectOptions

func NewDecryptProposalInspectOptions(proposalID string) *DecryptProposalInspectOptions

type GlobalOptions

type GlobalOptions struct {
	StorageDir string
}

type RecordAddOptions

type RecordAddOptions struct {
	CommitteeName string
	Threshold     int
	Message       string
	Description   string
}

func NewRecordAddOptions

func NewRecordAddOptions(committeeName string, threshold int, message string, description string) *RecordAddOptions

type RecordDecryptOptions

type RecordDecryptOptions struct {
	RecordID string
}

func NewRecordDecryptOptions

func NewRecordDecryptOptions(recordID string) *RecordDecryptOptions

type RecordGetEncryptedSliceOptions

type RecordGetEncryptedSliceOptions struct {
	ProposalID string
	MemberName string
	Armored    bool
}

func NewRecordGetEncryptedSliceOptions

func NewRecordGetEncryptedSliceOptions(proposalID string, memberName string, armored bool) *RecordGetEncryptedSliceOptions

type RecordListOptions

type RecordListOptions struct {
	CommitteeName string
}

func NewRecordListOptions

func NewRecordListOptions(committeeName string) *RecordListOptions

Jump to

Keyboard shortcuts

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