eks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Annotation

type Annotation struct {
	Key   string `json:"Key"`
	Value string `json:"Value"`
}

type Client

type Client struct {
	utils.Client
}

func NewClient

func NewClient(credential *utils.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func (*Client) DescribeEKSNode

func (c *Client) DescribeEKSNode(request *DescribeEKSNodeRequest) (response *DescribeEKSNodeResponse, err error)

func (*Client) ModifyClusterLoad

func (c *Client) ModifyClusterLoad(request *ModifyClusterLoadRequest) (response *ModifyClusterLoadResponse, err error)

func (*Client) NodeCCMInit

func (c *Client) NodeCCMInit(request *NodeCCMInitRequest) (response *NodeCCMInitResponse, err error)

func (*Client) SendAlarm

func (c *Client) SendAlarm(request *SendAlarmRequest) (response *SendAlarmResponse, err error)

type DescribeEKSNodeRequest

type DescribeEKSNodeRequest struct {
	*cdshttp.BaseRequest
	ClusterId string `json:"ClusterId,omitempty"`
	NodeName  string `json:"NodeName,omitempty"`
	NodeId    string `json:"NodeId,omitempty"`
}

func NewDescribeEKSNodeRequest

func NewDescribeEKSNodeRequest() (request *DescribeEKSNodeRequest)

func (*DescribeEKSNodeRequest) FromJsonString

func (req *DescribeEKSNodeRequest) FromJsonString(s string) error

func (*DescribeEKSNodeRequest) ToJsonString

func (req *DescribeEKSNodeRequest) ToJsonString() string

type DescribeEKSNodeResponse

type DescribeEKSNodeResponse struct {
	*cdshttp.BaseResponse
	Code string                       `json:"Code"`
	Msg  string                       `json:"Msg"`
	Data *DescribeEKSNodeResponseData `json:"Data"`
}

func NewDescribeEKSNodeResponse

func NewDescribeEKSNodeResponse() (response *DescribeEKSNodeResponse)

func (*DescribeEKSNodeResponse) FromJsonString

func (resp *DescribeEKSNodeResponse) FromJsonString(s string) error

func (*DescribeEKSNodeResponse) ToJsonString

func (resp *DescribeEKSNodeResponse) ToJsonString() string

type DescribeEKSNodeResponseData

type DescribeEKSNodeResponseData struct {
	NodeId string                             `json:"NodeId"`
	Labels []DescribeEKSNodeResponseDataLabel `json:"Labels"`
	Taints []DescribeEKSNodeResponseDataTaint `json:"Taints"`
}

type DescribeEKSNodeResponseDataLabel

type DescribeEKSNodeResponseDataLabel struct {
	Key   string `json:"Key"`
	Value string `json:"Value"`
}

type DescribeEKSNodeResponseDataTaint

type DescribeEKSNodeResponseDataTaint struct {
	Key    string `json:"Key"`
	Value  string `json:"Value"`
	Effect string `json:"Effect"`
}

type Label

type Label struct {
	Key   string `json:"Key"`
	Value string `json:"Value"`
}

type ModifyClusterLoadReqNode

type ModifyClusterLoadReqNode struct {
	NodeId   string        `json:"NodeId"`
	Cpu      *ResourceInfo `json:"Cpu,omitempty"`
	Memory   *ResourceInfo `json:"Memory,omitempty"`
	Status   string        `json:"Status"`
	NodeName string        `json:"-"`
}

type ModifyClusterLoadRequest

type ModifyClusterLoadRequest struct {
	*cdshttp.BaseRequest
	ClusterId string                     `json:"ClusterId,omitempty"`
	NodeList  []ModifyClusterLoadReqNode `json:"NodeList,omitempty"`
}

func NewModifyClusterLoadRequest

func NewModifyClusterLoadRequest() (request *ModifyClusterLoadRequest)

func (*ModifyClusterLoadRequest) FromJsonString

func (req *ModifyClusterLoadRequest) FromJsonString(s string) error

func (*ModifyClusterLoadRequest) ToJsonString

func (req *ModifyClusterLoadRequest) ToJsonString() string

type ModifyClusterLoadResponse

type ModifyClusterLoadResponse struct {
	*cdshttp.BaseResponse
	Code string `json:"Code"`
	Msg  string `json:"Msg"`
}

func NewModifyClusterLoadResponse

func NewModifyClusterLoadResponse() (response *ModifyClusterLoadResponse)

func (*ModifyClusterLoadResponse) FromJsonString

func (resp *ModifyClusterLoadResponse) FromJsonString(s string) error

func (*ModifyClusterLoadResponse) ToJsonString

func (resp *ModifyClusterLoadResponse) ToJsonString() string

type NodeCCMInitRequest

type NodeCCMInitRequest struct {
	*cdshttp.BaseRequest
	ClusterId string `json:"ClusterId,omitempty"`
	NodeName  string `json:"NodeName,omitempty"`
	NodeId    string `json:"NodeId,omitempty"`
}

func NewNodeCCMInitRequest

func NewNodeCCMInitRequest() (request *NodeCCMInitRequest)

func (*NodeCCMInitRequest) FromJsonString

func (req *NodeCCMInitRequest) FromJsonString(s string) error

func (*NodeCCMInitRequest) ToJsonString

func (req *NodeCCMInitRequest) ToJsonString() string

type NodeCCMInitResponse

type NodeCCMInitResponse struct {
	*cdshttp.BaseResponse
	Code string                   `json:"Code"`
	Msg  string                   `json:"Msg"`
	Data *NodeCCMInitResponseData `json:"Data"`
}

func NewNodeCCMInitResponse

func NewNodeCCMInitResponse() (response *NodeCCMInitResponse)

type NodeCCMInitResponseData

type NodeCCMInitResponseData struct {
	PrivateIp   string       `json:"PrivateIp"`
	Status      string       `json:"Status"`
	Labels      []Label      `json:"Labels"`
	Taints      []Taint      `json:"Taints"`
	Annotations []Annotation `json:"Annotations"`
	NodeId      string       `json:"NodeId"`
}

func (*NodeCCMInitResponseData) FromJsonString

func (resp *NodeCCMInitResponseData) FromJsonString(s string) error

func (*NodeCCMInitResponseData) ToJsonString

func (resp *NodeCCMInitResponseData) ToJsonString() string

type NodeLoad

type NodeLoad struct {
	Cpu    ResourceInfo `json:"Cpu"`
	Mem    ResourceInfo `json:"Mem"`
	Status string       `json:"Status"`
}

type ResourceInfo

type ResourceInfo struct {
	Usage    int64 `json:"Usage"`
	Limits   int64 `json:"Limits"`
	Requests int64 `json:"Requests"`
}

type SendAlarmRequest

type SendAlarmRequest struct {
	*cdshttp.BaseRequest
	Theme     string        `json:"Theme"`
	ClusterId string        `json:"ClusterId"`
	NodeId    string        `json:"NodeId"`
	Source    string        `json:"Source"`
	Keyword   string        `json:"Keyword"`
	Metric    string        `json:"Metric"`
	Value     interface{}   `json:"Value"`
	Tags      []interface{} `json:"Tags"`
	AlarmMsg  string        `json:"AlarmMsg"`
}

func NewSendAlarmRequest

func NewSendAlarmRequest() (request *SendAlarmRequest)

func (*SendAlarmRequest) FromJsonString

func (req *SendAlarmRequest) FromJsonString(s string) error

func (*SendAlarmRequest) ToJsonString

func (req *SendAlarmRequest) ToJsonString() string

type SendAlarmResponse

type SendAlarmResponse struct {
	*cdshttp.BaseResponse
	Code string `json:"Code"`
	Msg  string `json:"Msg"`
}

func NewSendAlarmResponse

func NewSendAlarmResponse() (response *SendAlarmResponse)

func (*SendAlarmResponse) FromJsonString

func (resp *SendAlarmResponse) FromJsonString(s string) error

func (*SendAlarmResponse) ToJsonString

func (resp *SendAlarmResponse) ToJsonString() string

type Taint

type Taint struct {
	Key    string `json:"Key"`
	Value  string `json:"Value"`
	Effect string `json:"Effect"`
}

Jump to

Keyboard shortcuts

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