Documentation ¶
Index ¶
- type ChildClient
- func (c *ChildClient[T]) Create(parentID string, d *T) error
- func (c *ChildClient[T]) Delete(parentID string, id string) error
- func (c *ChildClient[T]) Get(parentID string, id string) (*T, error)
- func (c *ChildClient[T]) Patch(parentID string, id string, d *T) error
- func (c *ChildClient[T]) Search(parentID string, opts ...*api.Options) (api.SearchResult[T], error)
- func (c *ChildClient[T]) Update(parentID string, id string, d *T) error
- type Client
- func (c *Client[T]) Create(d *T) error
- func (c *Client[T]) Delete(id string) error
- func (c *Client[T]) Get(id string) (*T, error)
- func (c *Client[T]) Patch(id string, d *T) error
- func (c *Client[T]) Search(opts ...*api.Options) (api.SearchResult[T], error)
- func (c *Client[T]) Update(id string, d *T) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChildClient ¶
func NewChildClient ¶
func NewChildClient[T any](ctx context.Context, svr string, parentResource, childResouce string, oauth2 *clientcredentials.Config, writeScopes ...string) (*ChildClient[T], error)
func (*ChildClient[T]) Create ¶
func (c *ChildClient[T]) Create(parentID string, d *T) error
func (*ChildClient[T]) Patch ¶
func (c *ChildClient[T]) Patch(parentID string, id string, d *T) error
func (*ChildClient[T]) Search ¶
func (c *ChildClient[T]) Search(parentID string, opts ...*api.Options) (api.SearchResult[T], error)
Click to show internal directories.
Click to hide internal directories.