Documentation ¶
Index ¶
- type NcClient
- func (c *NcClient) AssociateElasticIp(request *nc.AssociateElasticIpRequest) (*nc.AssociateElasticIpResponse, error)
- func (c *NcClient) CreateContainers(request *nc.CreateContainersRequest) (*nc.CreateContainersResponse, error)
- func (c *NcClient) CreateSecret(request *nc.CreateSecretRequest) (*nc.CreateSecretResponse, error)
- func (c *NcClient) DeleteContainer(request *nc.DeleteContainerRequest) (*nc.DeleteContainerResponse, error)
- func (c *NcClient) DeleteSecret(request *nc.DeleteSecretRequest) (*nc.DeleteSecretResponse, error)
- func (c *NcClient) DescribeContainer(request *nc.DescribeContainerRequest) (*nc.DescribeContainerResponse, error)
- func (c *NcClient) DescribeContainers(request *nc.DescribeContainersRequest) (*nc.DescribeContainersResponse, error)
- func (c *NcClient) DescribeQuota(request *nc.DescribeQuotaRequest) (*nc.DescribeQuotaResponse, error)
- func (c *NcClient) DescribeSecret(request *nc.DescribeSecretRequest) (*nc.DescribeSecretResponse, error)
- func (c *NcClient) DescribeSecrets(request *nc.DescribeSecretsRequest) (*nc.DescribeSecretsResponse, error)
- func (c *NcClient) DisassociateElasticIp(request *nc.DisassociateElasticIpRequest) (*nc.DisassociateElasticIpResponse, error)
- func (c *NcClient) GetLogs(request *nc.GetLogsRequest) (*nc.GetLogsResponse, error)
- func (c *NcClient) ModifyContainerAttribute(request *nc.ModifyContainerAttributeRequest) (*nc.ModifyContainerAttributeResponse, error)
- func (c *NcClient) SetConfig(config *core.Config)
- func (c *NcClient) SetLogger(logger core.Logger)
- func (c *NcClient) StartContainer(request *nc.StartContainerRequest) (*nc.StartContainerResponse, error)
- func (c *NcClient) StopContainer(request *nc.StopContainerRequest) (*nc.StopContainerResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NcClient ¶
type NcClient struct {
core.JDCloudClient
}
func NewNcClient ¶
func NewNcClient(credential *core.Credential) *NcClient
func (*NcClient) AssociateElasticIp ¶
func (c *NcClient) AssociateElasticIp(request *nc.AssociateElasticIpRequest) (*nc.AssociateElasticIpResponse, error)
容器绑定公网IP 绑定的是主网卡、主内网IP对应的弹性IP
func (*NcClient) CreateContainers ¶
func (c *NcClient) CreateContainers(request *nc.CreateContainersRequest) (*nc.CreateContainersResponse, error)
创建一台或多台指定配置的实例
func (*NcClient) CreateSecret ¶
func (c *NcClient) CreateSecret(request *nc.CreateSecretRequest) (*nc.CreateSecretResponse, error)
创建 secret
func (*NcClient) DeleteContainer ¶
func (c *NcClient) DeleteContainer(request *nc.DeleteContainerRequest) (*nc.DeleteContainerResponse, error)
删除单个实例
func (*NcClient) DeleteSecret ¶
func (c *NcClient) DeleteSecret(request *nc.DeleteSecretRequest) (*nc.DeleteSecretResponse, error)
删除 secret
func (*NcClient) DescribeContainer ¶
func (c *NcClient) DescribeContainer(request *nc.DescribeContainerRequest) (*nc.DescribeContainerResponse, error)
查询容器详情
func (*NcClient) DescribeContainers ¶
func (c *NcClient) DescribeContainers(request *nc.DescribeContainersRequest) (*nc.DescribeContainersResponse, error)
查询容器列表
func (*NcClient) DescribeQuota ¶
func (c *NcClient) DescribeQuota(request *nc.DescribeQuotaRequest) (*nc.DescribeQuotaResponse, error)
查询资源的配额
func (*NcClient) DescribeSecret ¶
func (c *NcClient) DescribeSecret(request *nc.DescribeSecretRequest) (*nc.DescribeSecretResponse, error)
查询 secret 详情
func (*NcClient) DescribeSecrets ¶
func (c *NcClient) DescribeSecrets(request *nc.DescribeSecretsRequest) (*nc.DescribeSecretsResponse, error)
查询secret列表
func (*NcClient) DisassociateElasticIp ¶
func (c *NcClient) DisassociateElasticIp(request *nc.DisassociateElasticIpRequest) (*nc.DisassociateElasticIpResponse, error)
容器解绑公网IP 解绑的是主网卡、主内网IP对应的弹性IP
func (*NcClient) GetLogs ¶
func (c *NcClient) GetLogs(request *nc.GetLogsRequest) (*nc.GetLogsResponse, error)
查询容器日志
func (*NcClient) ModifyContainerAttribute ¶
func (c *NcClient) ModifyContainerAttribute(request *nc.ModifyContainerAttributeRequest) (*nc.ModifyContainerAttributeResponse, error)
修改容器属性
func (*NcClient) StartContainer ¶
func (c *NcClient) StartContainer(request *nc.StartContainerRequest) (*nc.StartContainerResponse, error)
启动单个实例
func (*NcClient) StopContainer ¶
func (c *NcClient) StopContainer(request *nc.StopContainerRequest) (*nc.StopContainerResponse, error)
停止单个实例
Click to show internal directories.
Click to hide internal directories.