Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateUserTask(ctx context.Context, req *usertaskv1.UserTask) (*usertaskv1.UserTask, error)
- func (c *Client) DeleteAllUserTasks(_ context.Context) error
- func (c *Client) DeleteUserTask(ctx context.Context, name string) error
- func (c *Client) GetUserTask(ctx context.Context, name string) (*usertaskv1.UserTask, error)
- func (c *Client) ListUserTasks(ctx context.Context, pageSize int64, nextToken string) ([]*usertaskv1.UserTask, string, error)
- func (c *Client) ListUserTasksByIntegration(ctx context.Context, pageSize int64, nextToken string, integration string) ([]*usertaskv1.UserTask, string, error)
- func (c *Client) UpdateUserTask(ctx context.Context, req *usertaskv1.UserTask) (*usertaskv1.UserTask, error)
- func (c *Client) UpsertUserTask(ctx context.Context, req *usertaskv1.UserTask) (*usertaskv1.UserTask, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for the User Task API.
func NewClient ¶
func NewClient(grpcClient usertaskv1.UserTaskServiceClient) *Client
NewClient creates a new User Task client.
func (*Client) CreateUserTask ¶
func (c *Client) CreateUserTask(ctx context.Context, req *usertaskv1.UserTask) (*usertaskv1.UserTask, error)
CreateUserTask creates a new User Task.
func (*Client) DeleteAllUserTasks ¶
DeleteAllUserTasks deletes all User Tasks. Not implemented. Added to satisfy the interface.
func (*Client) DeleteUserTask ¶
DeleteUserTask deletes a User Task.
func (*Client) GetUserTask ¶
GetUserTask returns a User Task by name.
func (*Client) ListUserTasks ¶
func (c *Client) ListUserTasks(ctx context.Context, pageSize int64, nextToken string) ([]*usertaskv1.UserTask, string, error)
ListUserTasks returns a list of User Tasks.
func (*Client) ListUserTasksByIntegration ¶
func (c *Client) ListUserTasksByIntegration(ctx context.Context, pageSize int64, nextToken string, integration string) ([]*usertaskv1.UserTask, string, error)
ListUserTasksByIntegration returns a list of User Tasks filtered by an integration.
func (*Client) UpdateUserTask ¶
func (c *Client) UpdateUserTask(ctx context.Context, req *usertaskv1.UserTask) (*usertaskv1.UserTask, error)
UpdateUserTask updates an existing User Task.
func (*Client) UpsertUserTask ¶
func (c *Client) UpsertUserTask(ctx context.Context, req *usertaskv1.UserTask) (*usertaskv1.UserTask, error)
UpsertUserTask upserts a User Task.
Click to show internal directories.
Click to hide internal directories.