Documentation ¶
Index ¶
- func AmiUpdate(region, cluster, nodegroup string, dryrun bool, ctx context.Context) error
- func Ec2ClientSetup() (*ec2.EC2, error)
- func EksClientSetup(awsRegion string) (*eks.EKS, error)
- func GetClusters(region string, awsEks EKS, ctx context.Context) ([]string, error)
- func GetLatestAmiWithinEc2(amiVersion string, awsEc2 Ec2, ctx context.Context) (*string, error)
- func GetLatestAmiWithinSsm(amiType, amiVersion, region string, awsSsm SSM, awsEc2 Ec2, ...) (time.Time, *string, error)
- func GetNodegroupDescription(nodegroup NodeGroup, awsEks EKS, ctx context.Context) (eks.DescribeNodegroupOutput, error)
- func GetNodegroupsFromCluster(clusterName, region string, awsEks EKS, ctx context.Context) ([]string, error)
- func GetRegionsToCheck(regionsVar []string, awsEc2 Ec2, ctx context.Context) ([]string, error)
- func HasNodegroupTag(tag string, nodegroupTags map[string]*string, ctx context.Context) (bool, error)
- func IsLastAmiOldEnough(skipNewerThan uint, nodegroup NodeGroup, today time.Time, ...) (bool, error)
- func IsTheSameAmiVersion(nodegroup NodeGroup, ngAmiType, ngAmiVersion, ngAmiReleaseVersion string, ...) (bool, error)
- func SsmClientSetup(awsRegion string) (*ssm.SSM, error)
- type EKS
- type Ec2
- type NodeGroup
- type RealEc2
- type RealEks
- type RealSsm
- type SSM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ec2ClientSetup ¶
func GetClusters ¶
func GetLatestAmiWithinEc2 ¶ added in v1.4.0
func GetLatestAmiWithinSsm ¶ added in v1.4.0
func GetNodegroupDescription ¶
func GetRegionsToCheck ¶
func HasNodegroupTag ¶
func IsLastAmiOldEnough ¶
func IsTheSameAmiVersion ¶ added in v1.4.0
Types ¶
type EKS ¶
type EKS interface { ListClusters(input *eks.ListClustersInput) (*eks.ListClustersOutput, error) ListNodegroups(input *eks.ListNodegroupsInput) (*eks.ListNodegroupsOutput, error) DescribeNodegroup(input *eks.DescribeNodegroupInput) (*eks.DescribeNodegroupOutput, error) }
type Ec2 ¶
type Ec2 interface { DescribeRegions(input *ec2.DescribeRegionsInput) (*ec2.DescribeRegionsOutput, error) DescribeImages(input *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error) }
type RealEc2 ¶
func (RealEc2) DescribeImages ¶ added in v1.4.0
func (t RealEc2) DescribeImages(input *ec2.DescribeImagesInput) (*ec2.DescribeImagesOutput, error)
func (RealEc2) DescribeRegions ¶
func (t RealEc2) DescribeRegions(input *ec2.DescribeRegionsInput) (*ec2.DescribeRegionsOutput, error)
type RealEks ¶
func (RealEks) DescribeNodegroup ¶
func (t RealEks) DescribeNodegroup(input *eks.DescribeNodegroupInput) (*eks.DescribeNodegroupOutput, error)
func (RealEks) ListClusters ¶
func (t RealEks) ListClusters(input *eks.ListClustersInput) (*eks.ListClustersOutput, error)
func (RealEks) ListNodegroups ¶
func (t RealEks) ListNodegroups(input *eks.ListNodegroupsInput) (*eks.ListNodegroupsOutput, error)
type RealSsm ¶
func (RealSsm) GetParameter ¶
func (t RealSsm) GetParameter(input *ssm.GetParameterInput) (*ssm.GetParameterOutput, error)
type SSM ¶
type SSM interface {
GetParameter(input *ssm.GetParameterInput) (*ssm.GetParameterOutput, error)
}
Click to show internal directories.
Click to hide internal directories.