cdnpro

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 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 CertificateVersionIdentificationInfo

type CertificateVersionIdentificationInfo struct {
	Country                 *string   `json:"country,omitempty"`
	State                   *string   `json:"state,omitempty"`
	City                    *string   `json:"city,omitempty"`
	Company                 *string   `json:"company,omitempty"`
	Department              *string   `json:"department,omitempty"`
	CommonName              *string   `json:"commonName,omitempty"`
	Email                   *string   `json:"email,omitempty"`
	SubjectAlternativeNames *[]string `json:"subjectAlternativeNames,omitempty"`
}

type CertificateVersionInfo

type CertificateVersionInfo struct {
	Comments           *string                               `json:"comments,omitempty"`
	PrivateKey         *string                               `json:"privateKey,omitempty"`
	Certificate        *string                               `json:"certificate,omitempty"`
	ChainCert          *string                               `json:"chainCert,omitempty"`
	IdentificationInfo *CertificateVersionIdentificationInfo `json:"identificationInfo,omitempty"`
}

type Client

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

func NewClient

func NewClient(accessKey, secretKey string) (*Client, error)

func (*Client) CreateCertificate

func (c *Client) CreateCertificate(req *CreateCertificateRequest) (*CreateCertificateResponse, error)

func (*Client) CreateCertificateWithContext

func (c *Client) CreateCertificateWithContext(ctx context.Context, req *CreateCertificateRequest) (*CreateCertificateResponse, error)

func (*Client) CreateDeploymentTask

func (c *Client) CreateDeploymentTask(req *CreateDeploymentTaskRequest) (*CreateDeploymentTaskResponse, error)

func (*Client) CreateDeploymentTaskWithContext

func (c *Client) CreateDeploymentTaskWithContext(ctx context.Context, req *CreateDeploymentTaskRequest) (*CreateDeploymentTaskResponse, error)

func (*Client) GetDeploymentTaskDetail

func (c *Client) GetDeploymentTaskDetail(deploymentTaskId string) (*GetDeploymentTaskDetailResponse, error)

func (*Client) GetDeploymentTaskDetailWithContext

func (c *Client) GetDeploymentTaskDetailWithContext(ctx context.Context, deploymentTaskId string) (*GetDeploymentTaskDetailResponse, error)

func (*Client) GetHostnameDetail

func (c *Client) GetHostnameDetail(hostname string) (*GetHostnameDetailResponse, error)

func (*Client) GetHostnameDetailWithContext

func (c *Client) GetHostnameDetailWithContext(ctx context.Context, hostname string) (*GetHostnameDetailResponse, error)

func (*Client) SetTimeout

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

func (*Client) UpdateCertificate

func (c *Client) UpdateCertificate(certificateId string, req *UpdateCertificateRequest) (*UpdateCertificateResponse, error)

func (*Client) UpdateCertificateWithContext

func (c *Client) UpdateCertificateWithContext(ctx context.Context, certificateId string, req *UpdateCertificateRequest) (*UpdateCertificateResponse, error)

type CreateCertificateRequest

type CreateCertificateRequest struct {
	Timestamp   int64                   `json:"-"`
	Name        *string                 `json:"name,omitempty"`
	Description *string                 `json:"description,omitempty"`
	AutoRenew   *string                 `json:"autoRenew,omitempty"`
	ForceRenew  *bool                   `json:"forceRenew,omitempty"`
	NewVersion  *CertificateVersionInfo `json:"newVersion,omitempty"`
}

type CreateCertificateResponse

type CreateCertificateResponse struct {
	CertificateLocation string `json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCertificateResponse) GetCode

func (r *CreateCertificateResponse) GetCode() string

func (*CreateCertificateResponse) GetMessage

func (r *CreateCertificateResponse) GetMessage() string

type CreateDeploymentTaskRequest

type CreateDeploymentTaskRequest struct {
	Name    *string                     `json:"name,omitempty"`
	Target  *string                     `json:"target,omitempty"`
	Actions *[]DeploymentTaskActionInfo `json:"actions,omitempty"`
	Webhook *string                     `json:"webhook,omitempty"`
}

type CreateDeploymentTaskResponse

type CreateDeploymentTaskResponse struct {
	DeploymentTaskLocation string `json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateDeploymentTaskResponse) GetCode

func (r *CreateDeploymentTaskResponse) GetCode() string

func (*CreateDeploymentTaskResponse) GetMessage

func (r *CreateDeploymentTaskResponse) GetMessage() string

type DeploymentTaskActionInfo

type DeploymentTaskActionInfo struct {
	Action        *string `json:"action,omitempty"`
	PropertyId    *string `json:"propertyId,omitempty"`
	CertificateId *string `json:"certificateId,omitempty"`
	Version       *int32  `json:"version,omitempty"`
}

type GetDeploymentTaskDetailResponse

type GetDeploymentTaskDetailResponse struct {
	Name           string                     `json:"name"`
	Target         string                     `json:"target"`
	Actions        []DeploymentTaskActionInfo `json:"actions"`
	Status         string                     `json:"status"`
	StatusDetails  string                     `json:"statusDetails"`
	SubmissionTime string                     `json:"submissionTime"`
	FinishTime     string                     `json:"finishTime"`
	ApiRequestId   string                     `json:"apiRequestId"`
	// contains filtered or unexported fields
}

func (*GetDeploymentTaskDetailResponse) GetCode

func (r *GetDeploymentTaskDetailResponse) GetCode() string

func (*GetDeploymentTaskDetailResponse) GetMessage

func (r *GetDeploymentTaskDetailResponse) GetMessage() string

type GetHostnameDetailResponse

type GetHostnameDetailResponse struct {
	Hostname             string                `json:"hostname"`
	PropertyInProduction *HostnamePropertyInfo `json:"propertyInProduction,omitempty"`
	PropertyInStaging    *HostnamePropertyInfo `json:"propertyInStaging,omitempty"`
	// contains filtered or unexported fields
}

func (*GetHostnameDetailResponse) GetCode

func (r *GetHostnameDetailResponse) GetCode() string

func (*GetHostnameDetailResponse) GetMessage

func (r *GetHostnameDetailResponse) GetMessage() string

type HostnamePropertyInfo

type HostnamePropertyInfo struct {
	PropertyId    string  `json:"propertyId"`
	Version       int32   `json:"version"`
	CertificateId *string `json:"certificateId,omitempty"`
}

type UpdateCertificateRequest

type UpdateCertificateRequest struct {
	Timestamp   int64                   `json:"-"`
	Name        *string                 `json:"name,omitempty"`
	Description *string                 `json:"description,omitempty"`
	AutoRenew   *string                 `json:"autoRenew,omitempty"`
	ForceRenew  *bool                   `json:"forceRenew,omitempty"`
	NewVersion  *CertificateVersionInfo `json:"newVersion,omitempty"`
}

type UpdateCertificateResponse

type UpdateCertificateResponse struct {
	CertificateLocation string `json:"location,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateCertificateResponse) GetCode

func (r *UpdateCertificateResponse) GetCode() string

func (*UpdateCertificateResponse) GetMessage

func (r *UpdateCertificateResponse) GetMessage() string

Jump to

Keyboard shortcuts

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