Documentation ¶
Index ¶
- Constants
- Variables
- func OptionGet(v any, opt string) any
- func OptionSet(v any, opt string, value any) error
- func OptionType(v any, opt string) reflect.Type
- func Options(v any) []string
- func SetOptions(val any, opts map[string]string) error
- type Provider
- type SinkBuilder
- type SinkOptions
- type SourceBuilder
- type SourceOptions
- type UnsupportedSinkBuilder
- type UnsupportedSourceBuilder
Constants ¶
View Source
const (
OptionCASAlgorithm = "cas-algorithm"
)
Variables ¶
View Source
var ErrUnsupported = errors.New("unsupported")
Functions ¶
func OptionType ¶
OptionType returns the type of the option.
Types ¶
type Provider ¶
type Provider interface { Name() string SourceBuilder() SourceBuilder SinkBuilder() SinkBuilder CAS() (api.CAS, api.CloseWaitFunc, error) CASReader() (api.CASReader, api.CloseWaitFunc, error) CASWriter() (api.CASWriter, api.CloseWaitFunc, error) }
type SinkBuilder ¶
type SinkBuilder interface { WithSinkRef(string) SinkBuilder Set(string, any) SinkBuilder Build() (api.Sink, api.CloseWaitFunc, error) }
type SinkOptions ¶
type SinkOptions interface {
SinkRef() string
}
type SourceBuilder ¶
type SourceBuilder interface { WithSourceRef(string) SourceBuilder Build() (api.Source, api.CloseWaitFunc, error) }
type SourceOptions ¶
type SourceOptions interface {
SourceRef() string
}
type UnsupportedSinkBuilder ¶
type UnsupportedSinkBuilder struct{}
func (UnsupportedSinkBuilder) Build ¶
func (b UnsupportedSinkBuilder) Build() (api.Sink, api.CloseWaitFunc, error)
func (UnsupportedSinkBuilder) Set ¶
func (b UnsupportedSinkBuilder) Set(_ string, _ any) SinkBuilder
func (UnsupportedSinkBuilder) WithSinkRef ¶
func (b UnsupportedSinkBuilder) WithSinkRef(_ string) SinkBuilder
type UnsupportedSourceBuilder ¶
type UnsupportedSourceBuilder struct{}
func (UnsupportedSourceBuilder) Build ¶
func (b UnsupportedSourceBuilder) Build() (api.Source, api.CloseWaitFunc, error)
func (UnsupportedSourceBuilder) Set ¶
func (b UnsupportedSourceBuilder) Set(_ string, _ any) SourceBuilder
func (UnsupportedSourceBuilder) WithSourceRef ¶
func (b UnsupportedSourceBuilder) WithSourceRef(_ string) SourceBuilder
Click to show internal directories.
Click to hide internal directories.