Versions in this module Expand all Collapse all v7 v7.3.3 Apr 22, 2026 v7.3.2 Apr 21, 2026 Changes in this version + const DefaultBinary + var ErrBinaryNotFound = errors.New(...) + var ErrClusterNotFound = errors.New("eks cluster not found") + var ErrEmptyClusterName = errors.New("cluster name must not be empty") + var ErrEmptyConfigPath = errors.New("config path must not be empty") + var ErrEmptyNodegroupName = errors.New("nodegroup name must not be empty") + var ErrExecFailed = errors.New("eksctl command failed") + type Client struct + func NewClient(opts ...Option) *Client + func (c *Client) Binary() string + func (c *Client) CheckAvailable() error + func (c *Client) CreateCluster(ctx context.Context, configPath, region string) error + func (c *Client) DeleteCluster(ctx context.Context, name, region, configPath string, wait bool) error + func (c *Client) Exec(ctx context.Context, args ...string) ([]byte, []byte, error) + func (c *Client) ExecWithStdin(ctx context.Context, stdin io.Reader, args ...string) ([]byte, []byte, error) + func (c *Client) GetCluster(ctx context.Context, name, region string) (*ClusterSummary, error) + func (c *Client) ListClusters(ctx context.Context, region string) ([]ClusterSummary, error) + func (c *Client) ListNodegroups(ctx context.Context, clusterName, region string) ([]NodegroupSummary, error) + func (c *Client) ScaleNodegroup(ctx context.Context, clusterName, nodegroupName, region string, ...) error + func (c *Client) UpgradeCluster(ctx context.Context, configPath string, approve bool) error + type ClusterSummary struct + EKSCTLCreated string + Name string + Region string + type ExecRunner struct + func (ExecRunner) Run(ctx context.Context, name string, args []string, stdin io.Reader) ([]byte, []byte, error) + type NodegroupSummary struct + Cluster string + CreationTime string + DesiredCap int + ImageID string + InstanceType string + MaxSize int + MinSize int + Name string + NodeGroupType string + Status string + Version string + type Option func(*Client) + func WithBinary(binary string) Option + func WithRunner(runner Runner) Option + type Runner interface + Run func(ctx context.Context, name string, args []string, stdin io.Reader) (stdout, stderr []byte, err error) Other modules containing this package github.com/devantler-tech/ksail/v6