Documentation ¶
Index ¶
- func ParseGroup(items []types.GroupIdentifier) []string
- func ParseTag(items []types.Tag) []*resource.Tag
- func ParseTagName(items []types.Tag) string
- type Ec2operator
- func (o *Ec2operator) DescribeDisk(ctx context.Context, req *provider.DescribeRequest) (*disk.Disk, error)
- func (o *Ec2operator) DescribeHost(ctx context.Context, req *provider.DescribeRequest) (*host.Host, error)
- func (o *Ec2operator) PageQueryDisk(req *provider.QueryRequest) pager.Pager
- func (o *Ec2operator) PageQueryEip(req *provider.QueryRequest) pager.Pager
- func (o *Ec2operator) PageQueryHost(req *provider.QueryRequest) pager.Pager
- func (o *Ec2operator) Query(ctx context.Context, req *ec2.DescribeInstancesInput) (*host.HostSet, error)
- func (o *Ec2operator) QueryDisk(req *provider.QueryRequest) pager.Pager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseGroup ¶
func ParseGroup(items []types.GroupIdentifier) []string
func ParseTagName ¶
Types ¶
type Ec2operator ¶
type Ec2operator struct {
// contains filtered or unexported fields
}
func NewEc2Operator ¶
func NewEc2Operator(client *ec2.Client) *Ec2operator
NewEc2Operator Ec2Operator
func (*Ec2operator) DescribeDisk ¶
func (o *Ec2operator) DescribeDisk(ctx context.Context, req *provider.DescribeRequest) ( *disk.Disk, error)
func (*Ec2operator) DescribeHost ¶
func (o *Ec2operator) DescribeHost(ctx context.Context, req *provider.DescribeRequest) (*host.Host, error)
func (*Ec2operator) PageQueryDisk ¶
func (o *Ec2operator) PageQueryDisk(req *provider.QueryRequest) pager.Pager
func (*Ec2operator) PageQueryEip ¶
func (o *Ec2operator) PageQueryEip(req *provider.QueryRequest) pager.Pager
func (*Ec2operator) PageQueryHost ¶
func (o *Ec2operator) PageQueryHost(req *provider.QueryRequest) pager.Pager
func (*Ec2operator) Query ¶
func (o *Ec2operator) Query(ctx context.Context, req *ec2.DescribeInstancesInput) (*host.HostSet, error)
参考文档: https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/APIReference/API_DescribeInstances.html 实例参数说明文档: https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/APIReference/API_Instance.html
func (*Ec2operator) QueryDisk ¶
func (o *Ec2operator) QueryDisk(req *provider.QueryRequest) pager.Pager
Click to show internal directories.
Click to hide internal directories.