elb

package
v0.4.28 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

A simple SDK client for StateCloud ELB. API documentation: https://eop.ctyun.cn/ebp/ctapiDocument/search?sid=24&vid=82

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAkSk added in v0.4.25

func WithAkSk(ak, sk string) common.OptionsFunc

Types

type Certificate added in v0.4.25

type Certificate struct {
	ID          string `json:"ID"`
	RegionID    string `json:"regionID"`
	AzName      string `json:"azName"`
	ProjectID   string `json:"projectID"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Type        string `json:"type"`
	Certificate string `json:"certificate"`
	PrivateKey  string `json:"privateKey"`
	Status      string `json:"status"`
	CreatedTime string `json:"createdTime"`
	UpdatedTime string `json:"updatedTime"`
}

type Client

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

func NewClient

func NewClient(optFns ...common.OptionsFunc) (*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) ListCertificates

func (c *Client) ListCertificates(req *ListCertificatesRequest) (*ListCertificatesResponse, error)

func (*Client) ListCertificatesWithContext

func (c *Client) ListCertificatesWithContext(ctx context.Context, req *ListCertificatesRequest) (*ListCertificatesResponse, error)

func (*Client) ListListeners

func (c *Client) ListListeners(req *ListListenersRequest) (*ListListenersResponse, error)

func (*Client) ListListenersWithContext

func (c *Client) ListListenersWithContext(ctx context.Context, req *ListListenersRequest) (*ListListenersResponse, error)

func (*Client) SetTimeout

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

func (*Client) ShowListener

func (c *Client) ShowListener(req *ShowListenerRequest) (*ShowListenerResponse, error)

func (*Client) ShowListenerWithContext

func (c *Client) ShowListenerWithContext(ctx context.Context, req *ShowListenerRequest) (*ShowListenerResponse, error)

func (*Client) UpdateListener

func (c *Client) UpdateListener(req *UpdateListenerRequest) (*UpdateListenerResponse, error)

func (*Client) UpdateListenerWithContext

func (c *Client) UpdateListenerWithContext(ctx context.Context, req *UpdateListenerRequest) (*UpdateListenerResponse, error)

type CreateCertificateRequest

type CreateCertificateRequest struct {
	ClientToken *string `json:"clientToken,omitempty"`
	RegionID    *string `json:"regionID,omitempty"`
	Name        *string `json:"name,omitempty"`
	Description *string `json:"description,omitempty"`
	Type        *string `json:"type,omitempty"`
	Certificate *string `json:"certificate,omitempty"`
	PrivateKey  *string `json:"privateKey,omitempty"`
}

type CreateCertificateResponse

type CreateCertificateResponse struct {
	ReturnObj *struct {
		ID string `json:"id"`
	} `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateCertificateResponse) GetDescription

func (r *CreateCertificateResponse) GetDescription() string

func (*CreateCertificateResponse) GetError

func (r *CreateCertificateResponse) GetError() string

func (*CreateCertificateResponse) GetMessage

func (r *CreateCertificateResponse) GetMessage() string

func (*CreateCertificateResponse) GetStatusCode

func (r *CreateCertificateResponse) GetStatusCode() string

type ListCertificatesRequest

type ListCertificatesRequest struct {
	ClientToken *string `json:"clientToken,omitempty" url:"clientToken,omitempty"`
	RegionID    *string `json:"regionID,omitempty"    url:"regionID,omitempty"`
	IDs         *string `json:"IDs,omitempty"         url:"IDs,omitempty"`
	Name        *string `json:"name,omitempty"        url:"name,omitempty"`
	Type        *string `json:"type,omitempty"        url:"type,omitempty"`
}

type ListCertificatesResponse

type ListCertificatesResponse struct {
	ReturnObj []*Certificate `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*ListCertificatesResponse) GetDescription

func (r *ListCertificatesResponse) GetDescription() string

func (*ListCertificatesResponse) GetError

func (r *ListCertificatesResponse) GetError() string

func (*ListCertificatesResponse) GetMessage

func (r *ListCertificatesResponse) GetMessage() string

func (*ListCertificatesResponse) GetStatusCode

func (r *ListCertificatesResponse) GetStatusCode() string

type ListListenersRequest

type ListListenersRequest struct {
	ClientToken     *string `json:"clientToken,omitempty"     url:"clientToken,omitempty"`
	RegionID        *string `json:"regionID,omitempty"        url:"regionID,omitempty"`
	ProjectID       *string `json:"projectID,omitempty"       url:"projectID,omitempty"`
	IDs             *string `json:"IDs,omitempty"             url:"IDs,omitempty"`
	Name            *string `json:"name,omitempty"            url:"name,omitempty"`
	LoadBalancerID  *string `json:"loadBalancerID,omitempty"  url:"loadBalancerID,omitempty"`
	AccessControlID *string `json:"accessControlID,omitempty" url:"accessControlID,omitempty"`
}

type ListListenersResponse

type ListListenersResponse struct {
	ReturnObj []*Listener `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*ListListenersResponse) GetDescription

func (r *ListListenersResponse) GetDescription() string

func (*ListListenersResponse) GetError

func (r *ListListenersResponse) GetError() string

func (*ListListenersResponse) GetMessage

func (r *ListListenersResponse) GetMessage() string

func (*ListListenersResponse) GetStatusCode

func (r *ListListenersResponse) GetStatusCode() string

type Listener added in v0.4.25

type Listener struct {
	ID                  string `json:"ID"`
	RegionID            string `json:"regionID"`
	AzName              string `json:"azName"`
	ProjectID           string `json:"projectID"`
	Name                string `json:"name"`
	Description         string `json:"description"`
	LoadBalancerID      string `json:"loadBalancerID"`
	Protocol            string `json:"protocol"`
	ProtocolPort        int32  `json:"protocolPort"`
	CertificateID       string `json:"certificateID,omitempty"`
	CaEnabled           bool   `json:"caEnabled"`
	ClientCertificateID string `json:"clientCertificateID,omitempty"`
	Status              string `json:"status"`
	CreatedTime         string `json:"createdTime"`
	UpdatedTime         string `json:"updatedTime"`
}

type ShowListenerRequest

type ShowListenerRequest struct {
	ClientToken *string `json:"clientToken,omitempty" url:"clientToken,omitempty"`
	RegionID    *string `json:"regionID,omitempty"    url:"regionID,omitempty"`
	ListenerID  *string `json:"listenerID,omitempty"  url:"listenerID,omitempty"`
}

type ShowListenerResponse

type ShowListenerResponse struct {
	ReturnObj []*Listener `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*ShowListenerResponse) GetDescription

func (r *ShowListenerResponse) GetDescription() string

func (*ShowListenerResponse) GetError

func (r *ShowListenerResponse) GetError() string

func (*ShowListenerResponse) GetMessage

func (r *ShowListenerResponse) GetMessage() string

func (*ShowListenerResponse) GetStatusCode

func (r *ShowListenerResponse) GetStatusCode() string

type UpdateListenerRequest

type UpdateListenerRequest struct {
	ClientToken         *string `json:"clientToken,omitempty"`
	RegionID            *string `json:"regionID,omitempty"`
	ListenerID          *string `json:"listenerID,omitempty"`
	Name                *string `json:"name,omitempty"`
	Description         *string `json:"description,omitempty"`
	CertificateID       *string `json:"certificateID,omitempty"`
	CaEnabled           *bool   `json:"caEnabled,omitempty"`
	ClientCertificateID *string `json:"clientCertificateID,omitempty"`
}

type UpdateListenerResponse

type UpdateListenerResponse struct {
	ReturnObj []*Listener `json:"returnObj,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateListenerResponse) GetDescription

func (r *UpdateListenerResponse) GetDescription() string

func (*UpdateListenerResponse) GetError

func (r *UpdateListenerResponse) GetError() string

func (*UpdateListenerResponse) GetMessage

func (r *UpdateListenerResponse) GetMessage() string

func (*UpdateListenerResponse) GetStatusCode

func (r *UpdateListenerResponse) GetStatusCode() string

Jump to

Keyboard shortcuts

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