dokploy

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Certificate

type Certificate struct {
	CertificateId   string `json:"certificateId"`
	Name            string `json:"name"`
	CertificateData string `json:"certificateData"`
	PrivateKey      string `json:"privateKey"`
	CertificatePath string `json:"certificatePath,omitempty"`
	OrganizationId  string `json:"organizationId,omitempty"`
	ServerId        string `json:"serverId,omitempty"`
}

type CertificatesAllRequest

type CertificatesAllRequest struct{}

type CertificatesAllResponse

type CertificatesAllResponse = []*Certificate

type CertificatesCreateRequest

type CertificatesCreateRequest struct {
	CertificateId   *string `json:"certificateId,omitempty"`
	Name            *string `json:"name,omitempty"`
	CertificateData *string `json:"certificateData,omitempty"`
	PrivateKey      *string `json:"privateKey,omitempty"`
	OrganizationId  *string `json:"organizationId,omitempty"`
	ServerId        *string `json:"serverId,omitempty"`
}

type CertificatesCreateResponse

type CertificatesCreateResponse = Certificate

type Client

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

func NewClient

func NewClient(serverUrl string, apiKey string) (*Client, error)

func (*Client) CertificatesAll

func (c *Client) CertificatesAll(req *CertificatesAllRequest) (*CertificatesAllResponse, error)

func (*Client) CertificatesAllWithContext

func (c *Client) CertificatesAllWithContext(ctx context.Context, req *CertificatesAllRequest) (*CertificatesAllResponse, error)

func (*Client) CertificatesCreate

func (c *Client) CertificatesCreate(req *CertificatesCreateRequest) (*CertificatesCreateResponse, error)

func (*Client) CertificatesCreateWithContext

func (c *Client) CertificatesCreateWithContext(ctx context.Context, req *CertificatesCreateRequest) (*CertificatesCreateResponse, error)

func (*Client) SetTLSConfig

func (c *Client) SetTLSConfig(config *tls.Config) *Client

func (*Client) SetTimeout

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

func (*Client) UserGet

func (c *Client) UserGet(req *UserGetRequest) (*UserGetResponse, error)

func (*Client) UserGetWithContext

func (c *Client) UserGetWithContext(ctx context.Context, req *UserGetRequest) (*UserGetResponse, error)

type UserGetRequest

type UserGetRequest struct{}

type UserGetResponse

type UserGetResponse struct {
	Id             string `json:"id"`
	OrganizationId string `json:"organizationId"`
	UserId         string `json:"userId"`
	Role           string `json:"role"`
	CreatedAt      string `json:"createdAt"`
	TeamId         string `json:"teamId,omitempty"`
	IsDefault      bool   `json:"isDefault"`
	User           *struct {
		Id            string `json:"id"`
		FirstName     string `json:"firstName"`
		LastName      string `json:"lastName"`
		Email         string `json:"email"`
		EmailVerified bool   `json:"emailVerified"`
		Role          string `json:"role"`
		CreatedAt     string `json:"createdAt"`
	} `json:"user,omitempty"`
}

Jump to

Keyboard shortcuts

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