extendedcasclient

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CIDFormatOption

type CIDFormatOption func(opts *CIDFormatOptions)

CIDFormatOption is an option for specifying the CID format used in a WriteWithCIDFormat call.

func WithCIDVersion

func WithCIDVersion(cidVersion int) CIDFormatOption

WithCIDVersion sets the CID version to be used in a WriteWithCIDFormat call. Currently, 0 and 1 are the only valid options.

type CIDFormatOptions

type CIDFormatOptions struct {
	CIDVersion int
}

CIDFormatOptions represent CID format options for use in a Client.WriteWithCIDFormat call.

type Client

type Client interface {
	casapi.Client
	WriteWithCIDFormat(content []byte, opts ...CIDFormatOption) (string, error)
	GetPrimaryWriterType() string
}

Client represents a CAS client with an additional method that allows the CID format to be specified for a specific write.

Jump to

Keyboard shortcuts

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