Documentation ¶
Index ¶
- Variables
- func Add[K any](c *Client, ctx context.Context, opts ReqOpts, resource *K) (string, error)
- func Delete(c *Client, ctx context.Context, opts ReqOpts, id string) error
- func Get[K any](c *Client, ctx context.Context, opts ReqOpts, resource *K, id string) (*K, error)
- func GetAll[K any](c *Client, ctx context.Context, opts ReqOpts, resources []K) ([]K, error)
- func GetFilter[K any](c *Client, ctx context.Context, opts ReqOpts, resource *K, key string) (*K, error)
- func Update[K any](c *Client, ctx context.Context, opts ReqOpts, resource *K, id string) error
- type Client
- type Options
- type ReqOpts
- type SelectedMap
- type SelectedMapList
- type SelectedMapListNL
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalMutexKV = newMutexKV()
GlobalMutexKV is a global MutexKV for use within this plugin.
Functions ¶
Types ¶
type SelectedMap ¶
type SelectedMap string
func (*SelectedMap) String ¶
func (s *SelectedMap) String() string
func (*SelectedMap) UnmarshalJSON ¶
func (s *SelectedMap) UnmarshalJSON(data []byte) error
type SelectedMapList ¶ added in v0.3.0
type SelectedMapList []string
func (*SelectedMapList) MarshalJSON ¶ added in v0.3.0
func (s *SelectedMapList) MarshalJSON() ([]byte, error)
func (*SelectedMapList) String ¶ added in v0.3.0
func (s *SelectedMapList) String() string
func (*SelectedMapList) UnmarshalJSON ¶ added in v0.3.0
func (s *SelectedMapList) UnmarshalJSON(data []byte) error
type SelectedMapListNL ¶ added in v0.5.0
type SelectedMapListNL []string
func (*SelectedMapListNL) MarshalJSON ¶ added in v0.5.0
func (s *SelectedMapListNL) MarshalJSON() ([]byte, error)
func (*SelectedMapListNL) String ¶ added in v0.5.0
func (s *SelectedMapListNL) String() string
func (*SelectedMapListNL) UnmarshalJSON ¶ added in v0.5.0
func (s *SelectedMapListNL) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.