Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFactory ¶
GetFactory returns a factory method for the join command
func PutFactory ¶
PutFactory returns a factory method for the split command
Types ¶
type ChunkOpts ¶
type ChunkOpts struct {
ChunkerType string `` /* 154-byte string literal not displayed */
}
ChunkOpts configures how we will receive chunks
func (*ChunkOpts) CreateChunkReader ¶
func (opts *ChunkOpts) CreateChunkReader(r io.Reader, secret bits.Secret) (cr bits.ChunkReader, err error)
CreateChunkReader will setup a chunk reader based on the cli options
func (*ChunkOpts) CreateChunkWriter ¶
CreateChunkWriter will setup a chunk writer based on the cli options
type Get ¶
type Get struct {
// contains filtered or unexported fields
}
Get command
func (*Get) Help ¶
Help returns long-form help text that includes the command-line usage, a brief few sentences explaining the function of the command, and the complete list of flags the command accepts.
type GetOpts ¶
type GetOpts struct { KeyOpts ChunkOpts SecretOpts }
GetOpts describes command options
type KeyOpts ¶
type KeyOpts struct {
KeyFormat string `long:"key-fmt" default:"b64-textlines" value-name:"b64-textlines" description:"DOC ME"`
}
KeyOpts configures how keys are handled
func (*KeyOpts) CreateKeyReader ¶
CreateKeyReader will setup a way of writing keys using cli options
type Mv ¶
type Mv struct {
// contains filtered or unexported fields
}
Mv command
func (*Mv) Help ¶
Help returns long-form help text that includes the command-line usage, a brief few sentences explaining the function of the command, and the complete list of flags the command accepts.
type Put ¶
type Put struct {
// contains filtered or unexported fields
}
Put command
func (*Put) Help ¶
Help returns long-form help text that includes the command-line usage, a brief few sentences explaining the function of the command, and the complete list of flags the command accepts.
type PutOpts ¶
type PutOpts struct { SecretOpts ChunkOpts KeyOpts }
PutOpts describes command options
type SecretOpts ¶
type SecretOpts struct {
Secret string `` /* 141-byte string literal not displayed */
}
SecretOpts documents the secret option used by various commands
func (*SecretOpts) CreateSecret ¶
CreateSecret uses the command line options to setup a secret for the bits library and checks validity. Errors should focus on usability