Versions in this module Expand all Collapse all v1 v1.7.1 Jun 16, 2023 Changes in this version + func WriteIndented(w io.Writer, b []byte) error + func WriteIndentedN(w io.Writer, b []byte, n int) error + type Client interface + APIVersion func() uint8 + Delete func(ctx context.Context, path, id string, params OrderedValues, ...) error + Do func(ctx context.Context, method, path, id string, params OrderedValues, ...) error + DoWithHeaders func(ctx context.Context, method, path, id string, params OrderedValues, ...) error + Get func(ctx context.Context, path, id string, params OrderedValues, ...) error + Group func() string + Post func(ctx context.Context, path, id string, params OrderedValues, ...) error + Put func(ctx context.Context, path, id string, params OrderedValues, ...) error + User func() string + VolumePath func(name string) string + VolumesPath func() string + func New(ctx context.Context, host, user, pass, group string, opts *ClientOptions) (Client, error) + type ClientOptions struct + Insecure bool + Timeout time.Duration + VolumesPath string + type Error struct + Code string + Field string + Message string + type JSONError struct + Err []Error + StatusCode int + func (err *JSONError) Error() string + type OrderedValues [][][]byte + func NewOrderedValues(vals [][]string) OrderedValues + func ParseQuery(query string) (OrderedValues, error) + func (v *OrderedValues) Add(key, val []byte) + func (v *OrderedValues) Del(key []byte) + func (v *OrderedValues) Encode() string + func (v *OrderedValues) EncodeTo(w io.Writer) error + func (v *OrderedValues) Get(key []byte) []byte + func (v *OrderedValues) GetOk(key []byte) ([]byte, bool) + func (v *OrderedValues) Set(key, val []byte) + func (v *OrderedValues) String() string + func (v *OrderedValues) StringAdd(key, val string) + func (v *OrderedValues) StringDel(key string) + func (v *OrderedValues) StringGet(key string) string + func (v *OrderedValues) StringGetOk(key string) (string, bool) + func (v *OrderedValues) StringSet(key, val string)