mirror of https://github.com/k3s-io/k3s
Remove unused EC2 metadata functions.
parent
89d7eb050a
commit
bbc181d1f8
|
@ -21,7 +21,6 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
"regexp"
|
||||
|
@ -335,19 +334,6 @@ func (self *awsSdkEC2) DescribeInstances(request *ec2.DescribeInstancesInput) ([
|
|||
return results, nil
|
||||
}
|
||||
|
||||
type awsSdkMetadata struct {
|
||||
metadata *ec2metadata.EC2Metadata
|
||||
}
|
||||
|
||||
var metadataClient = http.Client{
|
||||
Timeout: time.Second * 10,
|
||||
}
|
||||
|
||||
// Implements EC2Metadata.GetMetadata
|
||||
func (self *awsSdkMetadata) GetMetadata(path string) (string, error) {
|
||||
return self.metadata.GetMetadata(path)
|
||||
}
|
||||
|
||||
// Implements EC2.DescribeSecurityGroups
|
||||
func (s *awsSdkEC2) DescribeSecurityGroups(request *ec2.DescribeSecurityGroupsInput) ([]*ec2.SecurityGroup, error) {
|
||||
// Security groups are not paged
|
||||
|
|
Loading…
Reference in New Issue