Documentation ¶
Index ¶
- func BootstrapCommitteeMemberStorage(storageDir string) *localfile.CommitteeMemberStorage
- func BootstrapCommitteeService(storageDir string) committee.Service
- func BootstrapCommitteeStorage(storageDir string) *localfile.CommitteeStorage
- func BootstrapDecryptProposalApprovalStorage(storageDir string) *localfile.DecryptProposalApprovalStorage
- func BootstrapDecryptProposalStorage(storageDir string) *localfile.DecryptProposalStorage
- func BootstrapEncryptedRecordSliceStorage(storageDir string) *localfile.EncryptedRecordSliceStorage
- func BootstrapProposalService(storageDir string) proposal.Service
- func BootstrapRecordService(storageDir string) record.Service
- func BootstrapRecordStorage(storageDir string) *localfile.RecordStorage
- func NewCommitteeAddCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewCommitteeCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewCommitteeGetCommand(globalOptions *GlobalOptions) *cobra.Command
- func NewCommitteeListCommand(globalOptions *GlobalOptions) *cobra.Command
- func NewCommitteeMemberAddCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewCommitteeMemberCommand(globalOption *GlobalOptions) (*cobra.Command, error)
- func NewCommitteeMemberListCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewCommitteeMemberRemoveCommand(*GlobalOptions) *cobra.Command
- func NewCommitteeRemoveCommand(*GlobalOptions) *cobra.Command
- func NewDecryptProposalApproveCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewDecryptProposalCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewDecryptProposalCreateCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewDecryptProposalGetEncryptedSliceCmd(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewDecryptProposalInspectCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewDecryptProposalListCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewRecordAddCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewRecordClearCommand(*GlobalOptions) *cobra.Command
- func NewRecordCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewRecordDecryptCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewRecordListCommand(globalOptions *GlobalOptions) (*cobra.Command, error)
- func NewRootCommand() (*cobra.Command, error)
- type CommitteeAddOptions
- type CommitteeMemberAddOptions
- type CommitteeMemberListOptions
- type DecryptProposalApproveOptions
- type DecryptProposalCreateOptions
- type DecryptProposalInspectOptions
- type GlobalOptions
- type RecordAddOptions
- type RecordDecryptOptions
- type RecordGetEncryptedSliceOptions
- type RecordListOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BootstrapCommitteeMemberStorage ¶
func BootstrapCommitteeMemberStorage(storageDir string) *localfile.CommitteeMemberStorage
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 BootstrapRecordService ¶
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 ¶
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 ¶
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 ¶
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
Source Files ¶
- bootstrap.go
- committee-add.go
- committee-get.go
- committee-list.go
- committee-member-add.go
- committee-member-list.go
- committee-member-remove.go
- committee-member.go
- committee-remove.go
- committee.go
- decrypt-proposal-approve.go
- decrypt-proposal-create.go
- decrypt-proposal-get-encrypted-slice.go
- decrypt-proposal-inspect.go
- decrypt-proposal-list.go
- decrypt-proposal.go
- record-add.go
- record-clear.go
- record-decrypt.go
- record-list.go
- record.go
- root.go
Click to show internal directories.
Click to hide internal directories.