Documentation ¶
Index ¶
- Constants
- type BlockOptions
- type BlockPutOption
- type BlockPutSettings
- type BlockRmOption
- type BlockRmSettings
- type DagOptions
- type DagPutOption
- type DagPutSettings
- type DagTreeOption
- type DagTreeSettings
- type KeyGenerateOption
- type KeyGenerateSettings
- type KeyOptions
- type KeyRenameOption
- type KeyRenameSettings
- type NameOptions
- func (api *NameOptions) WithCache(cache bool) NameResolveOption
- func (api *NameOptions) WithKey(key string) NamePublishOption
- func (api *NameOptions) WithLocal(local bool) NameResolveOption
- func (api *NameOptions) WithRecursive(recursive bool) NameResolveOption
- func (api *NameOptions) WithValidTime(validTime time.Duration) NamePublishOption
- type NamePublishOption
- type NamePublishSettings
- type NameResolveOption
- type NameResolveSettings
- type ObjectAddLinkOption
- type ObjectAddLinkSettings
- type ObjectNewOption
- type ObjectNewSettings
- type ObjectOptions
- type ObjectPutOption
- type ObjectPutSettings
- type PinAddOption
- type PinAddSettings
- type PinLsOption
- type PinLsSettings
- type PinOptions
- type PinUpdateOption
- type PinUpdateSettings
Constants ¶
View Source
const ( RSAKey = "rsa" Ed25519Key = "ed25519" DefaultRSALen = 2048 )
View Source
const (
DefaultNameValidTime = 24 * time.Hour
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockOptions ¶
type BlockOptions struct{}
func (*BlockOptions) WithForce ¶
func (api *BlockOptions) WithForce(force bool) BlockRmOption
func (*BlockOptions) WithFormat ¶
func (api *BlockOptions) WithFormat(codec string) BlockPutOption
func (*BlockOptions) WithHash ¶
func (api *BlockOptions) WithHash(mhType uint64, mhLen int) BlockPutOption
type BlockPutOption ¶
type BlockPutOption func(*BlockPutSettings) error
type BlockPutSettings ¶
func BlockPutOptions ¶
func BlockPutOptions(opts ...BlockPutOption) (*BlockPutSettings, error)
type BlockRmOption ¶
type BlockRmOption func(*BlockRmSettings) error
type BlockRmSettings ¶
type BlockRmSettings struct {
Force bool
}
func BlockRmOptions ¶
func BlockRmOptions(opts ...BlockRmOption) (*BlockRmSettings, error)
type DagOptions ¶
type DagOptions struct{}
func (*DagOptions) WithCodec ¶
func (api *DagOptions) WithCodec(codec uint64) DagPutOption
func (*DagOptions) WithDepth ¶
func (api *DagOptions) WithDepth(depth int) DagTreeOption
func (*DagOptions) WithHash ¶
func (api *DagOptions) WithHash(mhType uint64, mhLen int) DagPutOption
func (*DagOptions) WithInputEnc ¶
func (api *DagOptions) WithInputEnc(enc string) DagPutOption
type DagPutOption ¶
type DagPutOption func(*DagPutSettings) error
type DagPutSettings ¶
func DagPutOptions ¶
func DagPutOptions(opts ...DagPutOption) (*DagPutSettings, error)
type DagTreeOption ¶
type DagTreeOption func(*DagTreeSettings) error
type DagTreeSettings ¶
type DagTreeSettings struct {
Depth int
}
func DagTreeOptions ¶
func DagTreeOptions(opts ...DagTreeOption) (*DagTreeSettings, error)
type KeyGenerateOption ¶
type KeyGenerateOption func(*KeyGenerateSettings) error
type KeyGenerateSettings ¶
func KeyGenerateOptions ¶
func KeyGenerateOptions(opts ...KeyGenerateOption) (*KeyGenerateSettings, error)
type KeyOptions ¶
type KeyOptions struct{}
func (*KeyOptions) WithForce ¶
func (api *KeyOptions) WithForce(force bool) KeyRenameOption
func (*KeyOptions) WithSize ¶
func (api *KeyOptions) WithSize(size int) KeyGenerateOption
func (*KeyOptions) WithType ¶
func (api *KeyOptions) WithType(algorithm string) KeyGenerateOption
type KeyRenameOption ¶
type KeyRenameOption func(*KeyRenameSettings) error
type KeyRenameSettings ¶
type KeyRenameSettings struct {
Force bool
}
func KeyRenameOptions ¶
func KeyRenameOptions(opts ...KeyRenameOption) (*KeyRenameSettings, error)
type NameOptions ¶
type NameOptions struct{}
func (*NameOptions) WithCache ¶
func (api *NameOptions) WithCache(cache bool) NameResolveOption
func (*NameOptions) WithKey ¶
func (api *NameOptions) WithKey(key string) NamePublishOption
func (*NameOptions) WithLocal ¶
func (api *NameOptions) WithLocal(local bool) NameResolveOption
func (*NameOptions) WithRecursive ¶
func (api *NameOptions) WithRecursive(recursive bool) NameResolveOption
func (*NameOptions) WithValidTime ¶
func (api *NameOptions) WithValidTime(validTime time.Duration) NamePublishOption
type NamePublishOption ¶
type NamePublishOption func(*NamePublishSettings) error
type NamePublishSettings ¶
func NamePublishOptions ¶
func NamePublishOptions(opts ...NamePublishOption) (*NamePublishSettings, error)
type NameResolveOption ¶
type NameResolveOption func(*NameResolveSettings) error
type NameResolveSettings ¶
func NameResolveOptions ¶
func NameResolveOptions(opts ...NameResolveOption) (*NameResolveSettings, error)
type ObjectAddLinkOption ¶
type ObjectAddLinkOption func(*ObjectAddLinkSettings) error
type ObjectAddLinkSettings ¶
type ObjectAddLinkSettings struct {
Create bool
}
func ObjectAddLinkOptions ¶
func ObjectAddLinkOptions(opts ...ObjectAddLinkOption) (*ObjectAddLinkSettings, error)
type ObjectNewOption ¶
type ObjectNewOption func(*ObjectNewSettings) error
type ObjectNewSettings ¶
type ObjectNewSettings struct {
Type string
}
func ObjectNewOptions ¶
func ObjectNewOptions(opts ...ObjectNewOption) (*ObjectNewSettings, error)
type ObjectOptions ¶
type ObjectOptions struct{}
func (*ObjectOptions) WithCreate ¶
func (api *ObjectOptions) WithCreate(create bool) ObjectAddLinkOption
func (*ObjectOptions) WithDataType ¶
func (api *ObjectOptions) WithDataType(t string) ObjectPutOption
func (*ObjectOptions) WithInputEnc ¶
func (api *ObjectOptions) WithInputEnc(e string) ObjectPutOption
func (*ObjectOptions) WithType ¶
func (api *ObjectOptions) WithType(t string) ObjectNewOption
type ObjectPutOption ¶
type ObjectPutOption func(*ObjectPutSettings) error
type ObjectPutSettings ¶
func ObjectPutOptions ¶
func ObjectPutOptions(opts ...ObjectPutOption) (*ObjectPutSettings, error)
type PinAddOption ¶
type PinAddOption func(*PinAddSettings) error
type PinAddSettings ¶
type PinAddSettings struct {
Recursive bool
}
func PinAddOptions ¶
func PinAddOptions(opts ...PinAddOption) (*PinAddSettings, error)
type PinLsOption ¶
type PinLsOption func(settings *PinLsSettings) error
type PinLsSettings ¶
type PinLsSettings struct {
Type string
}
func PinLsOptions ¶
func PinLsOptions(opts ...PinLsOption) (*PinLsSettings, error)
type PinOptions ¶
type PinOptions struct{}
func (*PinOptions) WithRecursive ¶
func (api *PinOptions) WithRecursive(recucsive bool) PinAddOption
func (*PinOptions) WithType ¶
func (api *PinOptions) WithType(t string) PinLsOption
func (*PinOptions) WithUnpin ¶
func (api *PinOptions) WithUnpin(unpin bool) PinUpdateOption
type PinUpdateOption ¶
type PinUpdateOption func(*PinUpdateSettings) error
type PinUpdateSettings ¶
type PinUpdateSettings struct {
Unpin bool
}
func PinUpdateOptions ¶
func PinUpdateOptions(opts ...PinUpdateOption) (*PinUpdateSettings, error)
Click to show internal directories.
Click to hide internal directories.