flyio

package
v0.4.18 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 8 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(apiToken string) (*Client, error)

func (*Client) ImportCustomCertificate

func (c *Client) ImportCustomCertificate(req *ImportCustomCertificateRequest) (*ImportCustomCertificateResponse, error)

func (*Client) ImportCustomCertificateWithContext

func (c *Client) ImportCustomCertificateWithContext(ctx context.Context, req *ImportCustomCertificateRequest) (*ImportCustomCertificateResponse, error)

func (*Client) SetTimeout

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

type ImportCustomCertificateRequest

type ImportCustomCertificateRequest struct {
	AppName    string `json:"-"`
	Hostname   string `json:"hostname"`
	Fullchain  string `json:"fullchain"`
	PrivateKey string `json:"private_key"`
}

type ImportCustomCertificateResponse

type ImportCustomCertificateResponse struct {
	Hostname     string `json:"hostname"`
	Configured   bool   `json:"configured"`
	Status       string `json:"status"`
	Certificates []*struct {
		Source    string `json:"source"`
		Status    string `json:"status"`
		CreatedAt string `json:"created_at"`
		ExpiresAt string `json:"expires_at"`
		Issuer    string `json:"issuer"`
	} `json:"certificates"`
	// contains filtered or unexported fields
}

func (*ImportCustomCertificateResponse) GetError

func (r *ImportCustomCertificateResponse) GetError() string

Jump to

Keyboard shortcuts

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