usertask

package
v0.0.0-...-a1881e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

func (c *Client) DeleteAllUserTasks(_ context.Context) error

DeleteAllUserTasks deletes all User Tasks. Not implemented. Added to satisfy the interface.

func (*Client) DeleteUserTask

func (c *Client) DeleteUserTask(ctx context.Context, name string) error

DeleteUserTask deletes a User Task.

func (*Client) GetUserTask

func (c *Client) GetUserTask(ctx context.Context, name string) (*usertaskv1.UserTask, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL