Help us shape the future of Go! Take the 2026 Go Developer Survey

youtrack

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	StatusCode  int
	Method      string
	Path        string
	ErrorCode   string
	Description string
	RequestID   string
	Body        []byte
}

func (*APIError) DebugString

func (e *APIError) DebugString() string

func (*APIError) Error

func (e *APIError) Error() string

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts Options) (*Client, error)

func (*Client) AddIssueTag

func (c *Client) AddIssueTag(ctx context.Context, ref domain.IssueRef, tag domain.Tag) error

func (*Client) DoRaw

func (c *Client) DoRaw(ctx context.Context, method, endpoint string, body []byte, headers http.Header) (app.RawResponse, error)

func (*Client) GetIssue

func (c *Client) GetIssue(ctx context.Context, ref domain.IssueRef) (domain.Issue, error)

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, ref domain.ProjectRef) (domain.Project, error)

func (*Client) ListFieldOptions

func (c *Client) ListFieldOptions(ctx context.Context, projectID string, field domain.FieldDefinition) ([]domain.FieldOption, error)

func (*Client) ListFieldUsers

func (c *Client) ListFieldUsers(ctx context.Context, projectID string, field domain.FieldDefinition) ([]domain.User, error)

func (*Client) ListProjectFields

func (c *Client) ListProjectFields(ctx context.Context, projectID string) ([]domain.FieldDefinition, error)

func (*Client) Me

func (c *Client) Me(ctx context.Context) (domain.User, error)

func (*Client) MoveIssue

func (c *Client) MoveIssue(ctx context.Context, ref domain.IssueRef, projectID string) (domain.Issue, error)

func (*Client) RemoveIssueTag

func (c *Client) RemoveIssueTag(ctx context.Context, ref domain.IssueRef, tag domain.Tag) error

func (*Client) SearchGroups

func (c *Client) SearchGroups(ctx context.Context, query string) ([]domain.Group, error)

func (*Client) SearchProjects

func (c *Client) SearchProjects(ctx context.Context, query string) ([]domain.Project, error)

func (*Client) SearchTags

func (c *Client) SearchTags(ctx context.Context, query string) ([]domain.Tag, error)

func (*Client) UpdateIssue

func (c *Client) UpdateIssue(ctx context.Context, ref domain.IssueRef, patch app.IssuePatch) (domain.Issue, error)

type Options

type Options struct {
	BaseURL    string
	Token      string
	HTTPClient *http.Client
	UserAgent  string
	Timeout    time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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