vercel

package
v0.4.25 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: MIT Imports: 7 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
}

func NewClient

func NewClient(optFns ...OptionsFunc) (*Client, error)

func (*Client) SetTimeout

func (c *Client) SetTimeout(timeout time.Duration) *Client

func (*Client) UploadCert

func (c *Client) UploadCert(req *UploadCertRequest) (*UploadCertResponse, error)

func (*Client) UploadCertWithContext

func (c *Client) UploadCertWithContext(ctx context.Context, req *UploadCertRequest) (*UploadCertResponse, error)

type Options added in v0.4.25

type Options struct {
	ApiToken string
	TeamId   string
}

type OptionsFunc added in v0.4.25

type OptionsFunc func(*Options)

func WithApiToken added in v0.4.25

func WithApiToken(apiToken string) OptionsFunc

func WithTeamId added in v0.4.25

func WithTeamId(teamId string) OptionsFunc

type UploadCertRequest added in v0.4.25

type UploadCertRequest struct {
	CA             string `json:"ca"`
	Cert           string `json:"cert"`
	Key            string `json:"key"`
	SkipValidation bool   `json:"skipValidation,omitempty"`
}

type UploadCertResponse

type UploadCertResponse struct {
	ID        string `json:"id,omitempty"`
	ExpiresAt string `json:"expiresAt,omitempty"`
	CreatedAt string `json:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadCertResponse) GetError

func (r *UploadCertResponse) GetError() *sdkError

Jump to

Keyboard shortcuts

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