ao

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertDetail

type CertDetail struct {
	CertRecord
	Certs string `json:"certs"`
	Key   string `json:"key"`
}

type CertRecord

type CertRecord struct {
	Id          int64    `json:"id"`
	Name        string   `json:"name"`
	CN          string   `json:"cn"`
	SANs        []string `json:"sans"`
	UsageMode   int32    `json:"usage_mode"`
	State       int32    `json:"state"`
	ExpiresTime int64    `json:"expires"`
	IssueTime   int64    `json:"issue"`
	Issuer      string   `json:"issuer"`
	CreatedTime int64    `json:"created"`
}

type Client

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

func NewClient

func NewClient(accessKeyId, secretAccessKey string) (*Client, error)

func (*Client) CreateCert

func (c *Client) CreateCert(req *CreateCertRequest) (*CreateCertResponse, error)

func (*Client) CreateCertWithContext

func (c *Client) CreateCertWithContext(ctx context.Context, req *CreateCertRequest) (*CreateCertResponse, error)

func (*Client) GetDomainConfig

func (c *Client) GetDomainConfig(req *GetDomainConfigRequest) (*GetDomainConfigResponse, error)

func (*Client) GetDomainConfigWithContext

func (c *Client) GetDomainConfigWithContext(ctx context.Context, req *GetDomainConfigRequest) (*GetDomainConfigResponse, error)

func (*Client) ListCerts

func (c *Client) ListCerts(req *ListCertsRequest) (*ListCertsResponse, error)

func (*Client) ListCertsWithContext

func (c *Client) ListCertsWithContext(ctx context.Context, req *ListCertsRequest) (*ListCertsResponse, error)

func (*Client) ModifyDomainConfig

func (c *Client) ModifyDomainConfig(req *ModifyDomainConfigRequest) (*ModifyDomainConfigResponse, error)

func (*Client) ModifyDomainConfigWithContext

func (c *Client) ModifyDomainConfigWithContext(ctx context.Context, req *ModifyDomainConfigRequest) (*ModifyDomainConfigResponse, error)

func (*Client) QueryCert

func (c *Client) QueryCert(req *QueryCertRequest) (*QueryCertResponse, error)

func (*Client) QueryCertWithContext

func (c *Client) QueryCertWithContext(ctx context.Context, req *QueryCertRequest) (*QueryCertResponse, error)

func (*Client) QueryDomains added in v0.4.5

func (c *Client) QueryDomains(req *QueryDomainsRequest) (*QueryDomainsResponse, error)

func (*Client) QueryDomainsWithContext added in v0.4.5

func (c *Client) QueryDomainsWithContext(ctx context.Context, req *QueryDomainsRequest) (*QueryDomainsResponse, error)

func (*Client) SetTimeout

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

type CreateCertRequest

type CreateCertRequest struct {
	Name  *string `json:"name,omitempty"`
	Certs *string `json:"certs,omitempty"`
	Key   *string `json:"key,omitempty"`
}

type CreateCertResponse

type CreateCertResponse struct {
	ReturnObj *struct {
		Id int64 `json:"id"`
	} `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCertResponse) GetError

func (r *CreateCertResponse) GetError() string

func (*CreateCertResponse) GetErrorMessage

func (r *CreateCertResponse) GetErrorMessage() string

func (*CreateCertResponse) GetMessage

func (r *CreateCertResponse) GetMessage() string

func (*CreateCertResponse) GetStatusCode

func (r *CreateCertResponse) GetStatusCode() string

type DomainHttpsBasicConfig

type DomainHttpsBasicConfig struct {
	HttpsForce  string `json:"https_force,omitempty"`
	ForceStatus string `json:"force_status,omitempty"`
}

type DomainOriginConfig

type DomainOriginConfig struct {
	Origin string `json:"origin"`
	Role   string `json:"role"`
	Weight string `json:"weight"`
}

type DomainOriginConfigWithWeight added in v0.3.21

type DomainOriginConfigWithWeight struct {
	Origin string `json:"origin"`
	Role   string `json:"role"`
	Weight int32  `json:"weight"`
}

type DomainRecord added in v0.4.5

type DomainRecord struct {
	Domain      string `json:"domain"`
	Cname       string `json:"cname"`
	ProductCode string `json:"product_code"`
	ProductName string `json:"product_name"`
	Status      int32  `json:"status"`
	AreaScope   int32  `json:"area_scope"`
	CreatedTime int64  `json:"insert_date"`
}

type GetDomainConfigRequest

type GetDomainConfigRequest struct {
	Domain      *string `json:"domain,omitempty"`
	ProductCode *string `json:"product_code,omitempty"`
}

type GetDomainConfigResponse

type GetDomainConfigResponse struct {
	ReturnObj *struct {
		Domain      string                          `json:"domain"`
		ProductCode string                          `json:"product_code"`
		Status      int32                           `json:"status"`
		AreaScope   int32                           `json:"area_scope"`
		Cname       string                          `json:"cname"`
		Origin      []*DomainOriginConfigWithWeight `json:"origin,omitempty"`
		HttpsStatus string                          `json:"https_status"`
		HttpsBasic  *DomainHttpsBasicConfig         `json:"https_basic,omitempty"`
		CertName    string                          `json:"cert_name"`
	} `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*GetDomainConfigResponse) GetError

func (r *GetDomainConfigResponse) GetError() string

func (*GetDomainConfigResponse) GetErrorMessage

func (r *GetDomainConfigResponse) GetErrorMessage() string

func (*GetDomainConfigResponse) GetMessage

func (r *GetDomainConfigResponse) GetMessage() string

func (*GetDomainConfigResponse) GetStatusCode

func (r *GetDomainConfigResponse) GetStatusCode() string

type ListCertsRequest

type ListCertsRequest struct {
	Page      *int32 `json:"page,omitempty" url:"page,omitempty"`
	PerPage   *int32 `json:"per_page,omitempty" url:"per_page,omitempty"`
	UsageMode *int32 `json:"usage_mode,omitempty" url:"usage_mode,omitempty"`
}

type ListCertsResponse

type ListCertsResponse struct {
	ReturnObj *struct {
		Results      []*CertRecord `json:"result,omitempty"`
		Page         int32         `json:"page,omitempty"`
		PerPage      int32         `json:"per_page,omitempty"`
		TotalPage    int32         `json:"total_page,omitempty"`
		TotalRecords int32         `json:"total_records,omitempty"`
	} `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCertsResponse) GetError

func (r *ListCertsResponse) GetError() string

func (*ListCertsResponse) GetErrorMessage

func (r *ListCertsResponse) GetErrorMessage() string

func (*ListCertsResponse) GetMessage

func (r *ListCertsResponse) GetMessage() string

func (*ListCertsResponse) GetStatusCode

func (r *ListCertsResponse) GetStatusCode() string

type ModifyDomainConfigRequest

type ModifyDomainConfigRequest struct {
	Domain      *string                 `json:"domain,omitempty"`
	ProductCode *string                 `json:"product_code,omitempty"`
	Origin      []*DomainOriginConfig   `json:"origin,omitempty"`
	HttpsStatus *string                 `json:"https_status,omitempty"`
	HttpsBasic  *DomainHttpsBasicConfig `json:"https_basic,omitempty"`
	CertName    *string                 `json:"cert_name,omitempty"`
}

type ModifyDomainConfigResponse

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

func (*ModifyDomainConfigResponse) GetError

func (r *ModifyDomainConfigResponse) GetError() string

func (*ModifyDomainConfigResponse) GetErrorMessage

func (r *ModifyDomainConfigResponse) GetErrorMessage() string

func (*ModifyDomainConfigResponse) GetMessage

func (r *ModifyDomainConfigResponse) GetMessage() string

func (*ModifyDomainConfigResponse) GetStatusCode

func (r *ModifyDomainConfigResponse) GetStatusCode() string

type QueryCertRequest

type QueryCertRequest struct {
	Id        *int64  `json:"id,omitempty" url:"id,omitempty"`
	Name      *string `json:"name,omitempty" url:"name,omitempty"`
	UsageMode *int32  `json:"usage_mode,omitempty" url:"usage_mode,omitempty"`
}

type QueryCertResponse

type QueryCertResponse struct {
	ReturnObj *struct {
		Result *CertDetail `json:"result,omitempty"`
	} `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryCertResponse) GetError

func (r *QueryCertResponse) GetError() string

func (*QueryCertResponse) GetErrorMessage

func (r *QueryCertResponse) GetErrorMessage() string

func (*QueryCertResponse) GetMessage

func (r *QueryCertResponse) GetMessage() string

func (*QueryCertResponse) GetStatusCode

func (r *QueryCertResponse) GetStatusCode() string

type QueryDomainsRequest added in v0.4.5

type QueryDomainsRequest struct {
	Page        *int32  `json:"page,omitempty" url:"page,omitempty"`
	PageSize    *int32  `json:"page_size,omitempty" url:"page_size,omitempty"`
	Domain      *string `json:"domain,omitempty" url:"domain,omitempty"`
	ProductCode *string `json:"product_code,omitempty" url:"product_code,omitempty"`
	Status      *int32  `json:"status,omitempty" url:"status,omitempty"`
	AreaScope   *int32  `json:"area_scope,omitempty" url:"area_scope,omitempty"`
}

type QueryDomainsResponse added in v0.4.5

type QueryDomainsResponse struct {
	ReturnObj *struct {
		Results   []*DomainRecord `json:"result,omitempty"`
		Page      int32           `json:"page,omitempty"`
		PageSize  int32           `json:"page_size,omitempty"`
		PageCount int32           `json:"page_count,omitempty"`
		Total     int32           `json:"total,omitempty"`
	} `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryDomainsResponse) GetError added in v0.4.5

func (r *QueryDomainsResponse) GetError() string

func (*QueryDomainsResponse) GetErrorMessage added in v0.4.5

func (r *QueryDomainsResponse) GetErrorMessage() string

func (*QueryDomainsResponse) GetMessage added in v0.4.5

func (r *QueryDomainsResponse) GetMessage() string

func (*QueryDomainsResponse) GetStatusCode added in v0.4.5

func (r *QueryDomainsResponse) GetStatusCode() string

Jump to

Keyboard shortcuts

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