eks

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Code generated by generate-cached. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsClient

type AwsClient interface {
	GetRegion() ptypes.AwsRegion
	GetAccountID() ptypes.AwsAccountID
}

type Cluster

type Cluster struct {
	service.AbstractResource
	*types.Cluster
}

func NewCluster

func NewCluster(client AwsClient, cluster *types.Cluster) Cluster

func (Cluster) GetName

func (e Cluster) GetName() string

func (Cluster) GetTagValue

func (e Cluster) GetTagValue(tag string) string

func (Cluster) GetTags

func (e Cluster) GetTags() map[string]string

type ClusterList

type ClusterList struct {
	Items []Cluster
}

type EksRepository

type EksRepository struct {
	// contains filtered or unexported fields
}

func NewEksRepository

func NewEksRepository(ctx context.Context, client *v3.Client) *EksRepository

func (*EksRepository) GetRegion

func (r *EksRepository) GetRegion() ptypes.AwsRegion

func (*EksRepository) ListClustersAll

func (r *EksRepository) ListClustersAll() ([]Cluster, error)

func (*EksRepository) ListClustersByInput

func (r *EksRepository) ListClustersByInput(query *awseks.ListClustersInput) ([]Cluster, error)

func (*EksRepository) WithCache added in v0.4.0

func (r *EksRepository) WithCache(dc *cache.DataCache) *EksRepositoryCached

WithCache returns a EksRepositoryCached that stores/retrieves results via the given DataCache. The cache namespace is set to "<accountID>:<region>".

type EksRepositoryCached added in v0.4.0

type EksRepositoryCached struct {
	// contains filtered or unexported fields
}

EksRepositoryCached wraps EksRepository and caches results of Get*/List* calls.

func (*EksRepositoryCached) ListClustersAll added in v0.4.0

func (c *EksRepositoryCached) ListClustersAll() ([]Cluster, error)

ListClustersAll returns cached results when available, otherwise delegates to the underlying repository.

func (*EksRepositoryCached) ListClustersByInput added in v0.4.0

func (c *EksRepositoryCached) ListClustersByInput(query *awseks.ListClustersInput) ([]Cluster, error)

ListClustersByInput returns cached results when available, otherwise delegates to the underlying repository.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL