cliutils

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressValue

type AddressValue struct {
	Value *common.Address
}

func (*AddressValue) Set

func (v *AddressValue) Set(value string) error

func (*AddressValue) String

func (v *AddressValue) String() string

type BridgeTopic added in v0.9.0

type BridgeTopic struct {
	FromTopic string
	ToTopic   string
}

func (BridgeTopic) String added in v0.9.0

func (p BridgeTopic) String() string

type BridgeTopicSlice added in v0.9.0

type BridgeTopicSlice struct {
	Values *[]BridgeTopic
}

func (*BridgeTopicSlice) Set added in v0.9.0

func (k *BridgeTopicSlice) Set(value string) error

func (*BridgeTopicSlice) String added in v0.9.0

func (k *BridgeTopicSlice) String() string

type ChoiceValue

type ChoiceValue struct {
	Choices []string // the choices that this value can take
	Value   *string  // the actual value
}

func (*ChoiceValue) Set

func (v *ChoiceValue) Set(value string) error

func (*ChoiceValue) String

func (v *ChoiceValue) String() string

type GenericFlagMultiValue added in v0.4.0

type GenericFlagMultiValue struct {
	*cli.GenericFlag
	// contains filtered or unexported fields
}

func NewGenericFlagMultiValue added in v0.4.0

func NewGenericFlagMultiValue(fl *cli.GenericFlag) *GenericFlagMultiValue

func (*GenericFlagMultiValue) Apply added in v0.4.0

func (f *GenericFlagMultiValue) Apply(set *flag.FlagSet) error

func (*GenericFlagMultiValue) ApplyInputSourceValue added in v0.4.0

func (f *GenericFlagMultiValue) ApplyInputSourceValue(cCtx *cli.Context, isc altsrc.InputSourceContext) error

type GenericFlagSingleValue added in v0.4.0

type GenericFlagSingleValue struct {
	*cli.GenericFlag
	// contains filtered or unexported fields
}

func NewGenericFlagSingleValue added in v0.4.0

func NewGenericFlagSingleValue(fl *cli.GenericFlag) *GenericFlagSingleValue

func (*GenericFlagSingleValue) Apply added in v0.4.0

func (f *GenericFlagSingleValue) Apply(set *flag.FlagSet) error

func (*GenericFlagSingleValue) ApplyInputSourceValue added in v0.4.0

func (f *GenericFlagSingleValue) ApplyInputSourceValue(cCtx *cli.Context, isc altsrc.InputSourceContext) error

type MultiaddrSlice

type MultiaddrSlice struct {
	Values *[]multiaddr.Multiaddr
}

func (*MultiaddrSlice) Set

func (k *MultiaddrSlice) Set(value string) error

func (*MultiaddrSlice) String

func (k *MultiaddrSlice) String() string

type MultiaddrValue

type MultiaddrValue struct {
	Value **multiaddr.Multiaddr
}

func (*MultiaddrValue) Set

func (v *MultiaddrValue) Set(value string) error

func (*MultiaddrValue) String

func (v *MultiaddrValue) String() string

type OptionalUint added in v0.8.0

type OptionalUint struct {
	Value **uint
}

OptionalUint represents a urfave/cli flag to store uint values that can be optionally set and not have any default value assigned to it

func (*OptionalUint) Set added in v0.8.0

func (v *OptionalUint) Set(value string) error

Set assigns a value to the flag only if it represents a valid uint value

func (*OptionalUint) String added in v0.8.0

func (v *OptionalUint) String() string

String returns the string representation of the OptionalUint flag, if set

type PrivateKeyValue

type PrivateKeyValue struct {
	Value **ecdsa.PrivateKey
}

func (*PrivateKeyValue) Set

func (v *PrivateKeyValue) Set(value string) error

func (*PrivateKeyValue) String

func (v *PrivateKeyValue) String() string

type ProtectedTopic added in v0.6.0

type ProtectedTopic struct {
	Topic     string
	PublicKey *ecdsa.PublicKey
}

func (ProtectedTopic) String added in v0.6.0

func (p ProtectedTopic) String() string

type ProtectedTopicSlice added in v0.6.0

type ProtectedTopicSlice struct {
	Values *[]ProtectedTopic
}

func (*ProtectedTopicSlice) Set added in v0.6.0

func (k *ProtectedTopicSlice) Set(value string) error

func (*ProtectedTopicSlice) String added in v0.6.0

func (k *ProtectedTopicSlice) String() string

Jump to

Keyboard shortcuts

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