Versions in this module Expand all Collapse all v1 v1.0.0 Nov 29, 2024 Changes in this version + func DocumentMerge(a, b any, opts ...func(*mergo.Config)) (map[string]interface{}, error) + func GetHttpFile(ctx context.Context, uri string) ([]byte, error) + func GetHttpFileReader(ctx context.Context, uri string) (io.ReadCloser, error) + func IsFilePathExists(filePath string) (bool, error) + func RetryExponentialBackoff(attempts int, initial time.Duration, f func() error) error + func WriteFileWithDir(filePath string, data []byte, perm fs.FileMode) error + func WriteFileWithDirFromReader(path string, reader io.Reader, perm fs.FileMode) error + type EC2API interface + DescribeInstanceTypes func(ctx context.Context, params *ec2.DescribeInstanceTypesInput, ...) (*ec2.DescribeInstanceTypesOutput, error) + type EC2Client struct + Client *ec2.Client + func (c *EC2Client) DescribeInstanceTypes(ctx context.Context, params *ec2.DescribeInstanceTypesInput, ...) (*ec2.DescribeInstanceTypesOutput, error) + type EniInfo struct + EniCount int32 + PodsPerEniCount int32 + func GetEniInfoForInstanceType(ec2API EC2API, instanceType string) (EniInfo, error)