client

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 11 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 {
	*common.Client
}

func NewClient

func NewClient(url, token string) *Client

NewClient initializes and returns a API client.

func (*Client) CommitStatusRedelivery

func (c *Client) CommitStatusRedelivery(ctx context.Context, projectID, commitStatusDeliveryID string) (*Response, error)

func (*Client) GetParsedResponse

func (c *Client) GetParsedResponse(ctx context.Context, method, path string, query url.Values, header http.Header, ibody io.Reader, obj interface{}) (*Response, error)

func (*Client) GetProjectCommitStatusDeliveries

func (c *Client) GetProjectCommitStatusDeliveries(ctx context.Context, projectID string, opts *GetProjectCommitStatusDeliveriesOptions) ([]*types.CommitStatusDelivery, *Response, error)

func (*Client) GetProjectRunWebhookDeliveries

func (c *Client) GetProjectRunWebhookDeliveries(ctx context.Context, projectID string, opts *GetProjectRunWebhookDeliveriesOptions) ([]*types.RunWebhookDelivery, *Response, error)

func (*Client) GetResponse

func (c *Client) GetResponse(ctx context.Context, method, path string, query url.Values, contentLength int64, header http.Header, ibody io.Reader) (*Response, error)

func (*Client) RunWebhookRedelivery

func (c *Client) RunWebhookRedelivery(ctx context.Context, projectID, runWebhookDeliveryID string) (*Response, error)

type GetProjectCommitStatusDeliveriesOptions

type GetProjectCommitStatusDeliveriesOptions struct {
	*ListOptions

	StartSequence        uint64
	DeliveryStatusFilter []string
}

func (*GetProjectCommitStatusDeliveriesOptions) Add

type GetProjectRunWebhookDeliveriesOptions

type GetProjectRunWebhookDeliveriesOptions struct {
	*ListOptions

	StartSequence        uint64
	DeliveryStatusFilter []string
}

func (*GetProjectRunWebhookDeliveriesOptions) Add

type ListOptions

type ListOptions struct {
	Limit         int
	SortDirection types.SortDirection
}

func (*ListOptions) Add

func (o *ListOptions) Add(q url.Values)

type Response

type Response struct {
	*http.Response

	HasMore bool
}

Jump to

Keyboard shortcuts

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